ChangeLog: fix encoding typo
[gnulib.git] / ChangeLog
1 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2
3         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5         $(abs_top_builddir) instead of $(top_builddir).
6
7 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8
9         strftime-tests: also test nanoseconds
10         * tests/test-strftime.c (T): Add a test of %N.
11
12 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
13
14         inttypes, stdint: add C++11 support
15         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
16         when including inttypes.h and stdint.h.  Support this change to
17         the standard.
18         * doc/posix-headers/inttypes.texi (inttypes.h):
19         * doc/posix-headers/stdint.texi (stdint.h): Document this.
20         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
21         Define if not defined already, for the benefit of pre-C++11 hosts.
22         Define the standard format macros (e.g., PRId8) always.
23         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
24         Likewise, if __cpluspus.  Define the standard constant and limit
25         macros (e.g., INT8_C, INT8_MAX) always.
26         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
27         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
29         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
30         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
31         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
32         Likewise.
33
34 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
35
36         nonblocking tests: Fix test failure on Linux/PPC.
37         Suggested by Prerna Saxena in
38         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
39         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40         Set to 1100000.
41
42 2011-12-12  Jim Meyering  <meyering@redhat.com>
43
44         argmatch: don't hard-code `' when listing valid option arguments
45         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
46         use the quote function to add quotes.  Use fputs rather than
47         fprintf for the format string with no format directive.
48
49 2011-12-07  Eric Blake  <eblake@redhat.com>
50
51         bootstrap: detect tools required by gnulib-tool
52         * build-aux/bootstrap (buildreq): Provide minimum implicit
53         dependencies.
54         * DEPENDENCIES: Mention patch as a prereq.
55
56 2011-12-04  Bruno Haible  <bruno@clisp.org>
57
58         sethostname: Port to Windows platforms.
59         * lib/sethostname.c: Provide an alternate implementation for Windows
60         platforms.
61         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
62         (main): Skip the test if sethostname() fails with EPERM. On Windows
63         platforms, don't check the result of gethostname().
64
65 2011-12-04  Bruno Haible  <bruno@clisp.org>
66             Jim Meyering  <meyering@redhat.com>
67
68         tests: Avoid spurious error message on platforms without mktemp program.
69         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
70
71 2011-12-04  Bruno Haible  <bruno@clisp.org>
72
73         sethostname: Fix documentation.
74         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
75         "not fixed" section.
76
77 2011-12-03  Bruno Haible  <bruno@clisp.org>
78
79         gnulib-tool: Verify that the License field is present and non-empty.
80         * gnulib-tool (func_get_license_raw): New function, extracted from
81         func_get_license.
82         (func_get_license): Use it. Warn if the module is not a test module and
83         has no license.
84         Suggested by Jim Meyering.
85
86 2011-12-03  Bruno Haible  <bruno@clisp.org>
87
88         sethostname tests: Fix link error on mingw.
89         * tests/test-sethostname1.c: New file, extracted from
90         tests/test-sethostname.c.
91         * tests/test-sethostname2.c: New file, extracted from
92         tests/test-sethostname.c.
93         * tests/test-sethostname.c: Remove file.
94         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
95         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
96         (Depends-on): Add gethostname.
97         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
98         Link the latter with $(GETHOSTNAME_LIB).
99
100         sethostname tests: Fix compilation error on mingw.
101         * tests/test-sethostname.c: Don't include <sys/types.h>.
102         (geteuid): Use a dummy value without uid_t.
103         * modules/sethostname-tests (Depends-on): Remove sys_types.
104
105         sethostname tests: Avoid a gcc warning.
106         * tests/test-sethostname.c (main): Remove an unused variable.
107
108         Tweak last commit.
109         * modules/sethostname-tests (Files): Sort by decreasing importance.
110         (configure.ac): Check for geteuid.
111         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
112         the test when there's nothing to test. Drop an unnecessary cast.
113         Improve an error message. Verify that the final sethostname() call
114         succeeds.
115
116 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
117
118         Add a test suite for the sethostname module.
119         * modules/sethostname-tests: New file.  A test program
120         for the sethostname module.
121         * tests/test-sethostname.c: Likewise.
122
123 2011-12-03  Bruno Haible  <bruno@clisp.org>
124
125         Tweak last commit.
126         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
127         Fix preprocessor directives indentation. Fix typos.
128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
129         * modules/unistd (Makefile): Likewise.
130
131 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
132
133         Integrate the sethostname module into unistd.
134         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
135         into the unistd.h header.
136         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
137         preprocessor directives.
138         * modules/unistd: Setup the Makefile substitutions of the
139         SETHOSTNAME preprocessor directives.
140
141 2011-12-03  Bruno Haible  <bruno@clisp.org>
142
143         Tweak last commit.
144         * lib/sethostname.c: Don't include <string.h>.
145         (sethostname): No need to copy the argument string to the stack. Don't
146         call clearerr. Preserve errno when fprintf failed.
147         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
148         Don't invoke AC_REPLACE_FUNCS.
149         * modules/sethostname (Link): Remove empty section.
150         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
151         failure problem.
152
153 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
154
155         New module 'sethostname'.
156         * lib/sethostname.c (sethostname): New file.  Provide sethostname
157         for systems that lack it.
158         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
159         sethostname declaration and function.
160         * modules/sethostname: New file.  Define the sethostname module.
161
162 2011-12-03  Bruno Haible  <bruno@clisp.org>
163
164         Tweak last commit.
165         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
166
167 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
168
169         Split the HOST_NAME_MAX detection into a separate m4 macro.
170         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
171         macro so it can be used by the pending sethostname module.
172
173 2011-12-03  Bruno Haible  <bruno@clisp.org>
174
175         Fix module descriptions syntax.
176         * modules/argv-iter (License): Fix syntax.
177         * modules/di-set (License): Likewise.
178         * modules/ino-map (License): Likewise.
179         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
180
181 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
182
183         stdalign: port to Clang 3.0
184         Problem reported by Simon Josefsson in
185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
186         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
187         which has <stdalign.h> but which does not define alignof.
188         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
189
190 2011-12-01  Eric Blake  <eblake@redhat.com>
191
192         mktempd: silence dd usage
193         * build-aux/mktempd (rand_bytes): Silence dd.
194
195 2011-11-30  Simon Josefsson  <simon@josefsson.org>
196
197         manywarnings: Don't mention gcc version in docstring.
198         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
199         Jim Meyering <meyering@redhat.com>.
200
201 2011-11-30  Jim Meyering  <meyering@redhat.com>
202
203         hash: mark a few floating point constants with "f" suffix
204         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
205         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
206         floating point constants with "f", since they're destined to be
207         saved/used as "float"s.
208
209 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
210
211         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
212         * tests/test-float.c (test_long_double): Correct and re-enable the
213         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
214
215 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
216
217         Avoid subtracting two pointers that don't point into the same block.
218         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
219         only pointers into the same memory block are subtracted. We cannot
220         assume that sizeof (ptrdiff_t) == sizeof (void *).
221
222 2011-11-29  Eric Blake  <eblake@redhat.com>
223
224         maint.mk: add syntax check for use of compare from init.sh
225         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
226         moved here from coreutils.
227
228         manywarnings: drop -Wunsuffixed-float-constants
229         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
230         '1.0D', which is the only way to silence this warning for 'double'.
231
232 2011-11-29  Jim Meyering  <meyering@redhat.com>
233
234         hash: mark compute_bucket_size with the pure attribute
235         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
236
237         quotearg, propername: correct pragma guard expression
238         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
239         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
240
241 2011-11-28  Jim Meyering  <meyering@redhat.com>
242
243         propername: do not mark proper_name with the const attribute
244         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
245         since it examines data pointed to by its parameter.
246         * lib/propername.c (proper_name): Instead, add a pragma to suppress
247         the suggestion from -Wsuggest-attribute=const.
248
249         propername: mark one more function as const
250         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
251
252 2011-11-27  Jim Meyering  <meyering@redhat.com>
253
254         mark functions with const and pure attributes
255
256         Mark functions per suggestions from gcc-4.6 when using these options:
257         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
258         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
259         Follow these guidelines: when possible, apply the attribute to
260         an extern declaration, not to its definition.  Apply it to the
261         definition only when the definition is static.
262         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
263         * lib/argv-iter.h (argv_iter_n_args): Likewise.
264         * lib/base64.h (isbase64): Likewise.
265         * lib/basename-lgpl.c (last_component, base_len): Likewise.
266         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
267         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
268         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
269         (c_tolower, c_toupper): Likewise.
270         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
271         * lib/chdir-long.c (find_non_slash): Likewise.
272         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
273         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
274         * lib/file-type.h (file_type): Likewise.
275         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
276         * lib/filevercmp.c (verrevcmp): Likewise.
277         * lib/freadahead.h (freadahead): Likewise.
278         * lib/fts.c (fts_maxarglen): Likewise.
279         * lib/hash-pjw.h (hash_pjw): Likewise.
280         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
281         * lib/hash.c (is_prime, next_prime): Likewise.
282         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
283         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
284         (hash_table_ok, hash_get_first, hash_string): Likewise.
285         (compute_bucket_size): Likewise.
286         * lib/i-ring.h (i_ring_empty): Likewise.
287         * lib/isnan.c (isnanl): Likewise.
288         * lib/math.h (isnanl, rpl_isnanl): Likewise.
289         * lib/memcasecmp.h (memcasecmp): Likewise.
290         * lib/memchr2.h (memchr2): Likewise.
291         * lib/memcmp2.h (memcmp2): Likewise.
292         * lib/parse-datetime.y (lookup_zone): Likewise.
293         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
294         [!WINDOWS_SOCKETS]: Likewise.
295         * lib/strnlen1.h (strnlen1): Likewise.
296         * lib/uniwidth.in.h (uc_width): Likewise.
297         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
298         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
299         (quoting_options_from_style): Add a comment.
300         * lib/propername.h (proper_name): Add a comment.
301
302 2011-11-27  Bruno Haible  <bruno@clisp.org>
303
304         Remove unused macros from !_LIBC code in glibc-borrowed files.
305         * lib/fnmatch.c (STRCOLL): Remove macro.
306         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
307         * lib/glob.c (__stat, __readdir64): Remove macros.
308         * lib/tempname.c (__open64, __xstat64): Remove macros.
309         Suggested by Paul Eggert.
310
311 2011-11-27  Bruno Haible  <bruno@clisp.org>
312
313         getcwd: Fix link error on MSVC 9.
314         * modules/getcwd (Depends-on): Add readdir, rewinddir.
315
316 2011-11-27  Bruno Haible  <bruno@clisp.org>
317
318         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
319         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
320         HAVE_OPENDIR is 0.
321         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
322         HAVE_CLOSEDIR is 0.
323         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
324         is 0.
325         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
326
327 2011-11-27  Bruno Haible  <bruno@clisp.org>
328
329         getcwd: Fix bug from 2011-08-17.
330         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
331         platforms that need it.
332         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
333         code of 4 to be a failure, not a success. This ensures that
334         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
335
336 2011-11-27  Bruno Haible  <bruno@clisp.org>
337
338         binary-io tests: Avoid test failure on mingw when libtool is used.
339         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
340         Don't verify the size of t-bin-out1.tmp here.
341         * tests/test-binary-io.sh: Verify it here.
342         Reported by Simon Josefsson.
343
344 2011-11-26  Bruno Haible  <bruno@clisp.org>
345
346         Fix conflict between two instantiations of module 'unistd'.
347         * gnulib-tool (func_emit_autoconf_snippet): Substitute
348         ${include_guard_prefix} also in the autoconf snippet.
349         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
351         GNULIB_UNISTD_H_GETOPT.
352         * modules/getopt-posix (configure.ac): Set the
353         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
354         * modules/getopt-gnu (configure.ac): Likewise.
355         * modules/unistd (Makefile.am): Change the substitution value of
356         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
357         Reported by Simon Josefsson.
358
359 2011-11-25  Bruno Haible  <bruno@clisp.org>
360
361         pagealign_alloc: Doc and comments.
362         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
363         module.
364         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
365
366 2011-11-25  Jim Meyering  <meyering@redhat.com>
367
368         test-update-copyright.sh: avoid false-positive failure
369         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
370         around false positive failure on Cygwin/Windows.  The latter was
371         matching erroneously-created files with names like
372         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
373
374 2011-11-25  Simon Josefsson  <simon@josefsson.org>
375
376         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
377         * m4/valgrind-tests.m4: Check that the parameters that will be
378         used works, not just a subset of them.  Reported by Bruno Haible
379         <bruno@clisp.org>.
380
381 2011-11-24  Jim Meyering  <meyering@redhat.com>
382
383         test-stdalign.c: comment out long double tests
384         * tests/test-stdalign.c: Don't try to reduce alignment of long double
385         variables.  That provokes errors like this from gcc-4.7.0 20111124:
386         error: '_Alignas' specifiers cannot reduce alignment of \
387         'static_longdouble_alignas'.
388
389 2011-11-22  Jim Meyering  <meyering@redhat.com>
390
391         init.sh: make "compare /dev/null FILE" output more readable
392         * tests/init.sh (compare_): Document the preferred order of arguments.
393         (emit_diff_u_header_): New function.
394         (compare_dev_null_): Emit a simulated diff, rather than just the
395         contents of the unexpected file.  Suggestion from Bruno Haible.
396
397 2011-11-21  Jim Meyering  <meyering@redhat.com>
398             Eric Blake  <eblake@redhat.com>
399
400         init.sh: work around OSF/1 5.1's mishandling of /dev/null
401         * tests/init.sh: Make our compare function slightly more portable.
402         Reported by Bruno Haible in
403         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
404
405 2011-11-21  Simon Josefsson  <simon@josefsson.org>
406
407         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
408         before using it, in code that ends up in config.h.
409
410 2011-11-20  Bruno Haible  <bruno@clisp.org>
411
412         getcwd: Work around getcwd bug on AIX 5..7.
413         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
414         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
415         Use a different value for gl_cv_func_getcwd_path_max. Move the
416         definition of HAVE_PARTLY_WORKING_GETCWD from here...
417         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
418         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
419         Define HAVE_MINIMALLY_WORKING_GETCWD.
420         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
421         where it is not even minimally working, that is, on AIX.
422         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
423         m4/getcwd-path-max.m4.
424         (main): Update exit code computation.
425         * doc/posix-functions/getcwd.texi: Mention list of platforms where
426         getcwd does not handle long file names.
427
428 2011-11-20  Bruno Haible  <bruno@clisp.org>
429
430         getcwd: Fix bug from 2009-09-10.
431         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
432         like "no".
433
434 2011-11-20  Simon Josefsson  <simon@josefsson.org>
435
436         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
437
438 2011-11-20  Bruno Haible  <bruno@clisp.org>
439
440         fma tests: Avoid shadowing local variables.
441         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
442         expected.
443
444 2011-11-20  Bruno Haible  <bruno@clisp.org>
445
446         copysignf tests: Fix.
447         * tests/test-copysignf.c: Fix signature check.
448
449 2011-11-20  Bruno Haible  <bruno@clisp.org>
450
451         fma: Remove unused code.
452         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
453         unused macros.
454
455 2011-11-20  Bruno Haible  <bruno@clisp.org>
456
457         sethostname: Fix doc about AIX.
458         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
459         sethostname; it has it.
460
461         sethostname: Mention more portability problems.
462         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
463         problem.
464         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
465
466 2011-11-19  Bruno Haible  <bruno@clisp.org>
467
468         Depend on module fcntl-h when AT_FDCWD is used.
469         * modules/utimens (Depends-on): Add fcntl-h.
470         * modules/areadlinkat (Depends-on): Likewise.
471         * modules/areadlinkat-with-size (Depends-on): Likewise.
472         * modules/faccessat (Depends-on): Likewise.
473         * modules/fchmodat (Depends-on): Likewise.
474         * modules/fchownat (Depends-on): Likewise.
475         * modules/getcwd (Depends-on): Likewise.
476         * modules/mkdirat (Depends-on): Likewise.
477         * modules/mkfifoat (Depends-on): Likewise.
478         * modules/readlinkat (Depends-on): Likewise.
479         * modules/symlinkat (Depends-on): Likewise.
480         * modules/dup2-tests (Depends-on): Likewise.
481         * modules/fdutimensat-tests (Depends-on): Likewise.
482         * modules/futimens-tests (Depends-on): Likewise.
483
484 2011-11-19  Bruno Haible  <bruno@clisp.org>
485
486         euidaccess: Update a comment.
487         * lib/euidaccess.c: Update comment about platforms with faccessat.
488
489 2011-11-19  Bruno Haible  <bruno@clisp.org>
490
491         openat: Fix file list.
492         * modules/openat (Files): Remove lib/at-func.c.
493
494 2011-11-19  Bruno Haible  <bruno@clisp.org>
495
496         fstatat: Simplify.
497         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
498         gnulib should define rpl_fstatat, there is a
499         "#define fstatat rpl_fstatat" in <sys/stat.h>.
500
501 2011-11-19  Bruno Haible  <bruno@clisp.org>
502
503         Ensure 'inline' can be used in tests/test-utimens-common.h.
504         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
505         * modules/futimens-tests (configure.ac): Likewise.
506         * modules/utimens-tests (configure.ac): Likewise.
507         * modules/utimensat-tests (configure.ac): Likewise.
508
509 2011-11-19  Simon Josefsson  <simon@josefsson.org>
510
511         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
512         not hash_insert0.
513         (hash_insert_if_absent): Doc fix.
514
515 2011-11-19  Simon Josefsson  <simon@josefsson.org>
516
517         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
518
519 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
520
521         test-getcwd: disambiguate exit status
522         * tests/test-getcwd.c (test_long_name): Return 0..7.
523         (main): Exit with an unambiguous exit status.  The old
524         code yielded a mysterious mixture of two failure codes.
525
526         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
527         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
528         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
529         rpl_fstatat or fstatat.  This should fix the other problem
530         reported by Kai Habel in
531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
532         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
534         and I reproduced it on a Solaris 8 host we still have in production.
535
536 2011-11-18  Jim Meyering  <meyering@redhat.com>
537
538         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
539         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
540         Add a sentence to the comment.
541         (hash_insert0): New function that simply calls hash_insert_if_absent.
542         * lib/hash.h (hash_insert_if_absent): Declare it.
543         (hash_insert0): Add deprecation attribute.
544         (_GL_ATTRIBUTE_DEPRECATED): Define.
545         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
546         not hash_insert0.
547         * NEWS: Mention it, even though it's not really an incompatible change.
548
549 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
550
551         openat: avoid compilation failure due to lack of <errno.h> inclusion
552         * lib/openat.c: Include <errno.h>.
553
554 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
555
556         * modules/getcwd (Depends-on): Add fdopendir.
557         This fixes one of the two problems reported by Kai Habel in
558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
559
560         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
561         stdalign problem reported by Ian Beckwith in
562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
563         * modules/crypto/gc-arcfour (Depends-on):
564         Depend conditionally on crypto/arcfour.
565         * modules/crypto/gc-arctwo (Depends-on):
566         Depend conditionally on crypto/arctwo.
567         * modules/crypto/gc-des (Depends-on):
568         Depend conditionally on crypto/des.
569         * modules/crypto/gc-hmac-md5 (Depends-on):
570         Depend conditionally on crypto/hmac-md5.
571         * modules/crypto/gc-hmac-sha1 (Depends-on):
572         Depend conditionally on crypto/hmac-sha1.
573         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
574         * modules/crypto/gc-md4 (Depends-on):
575         Depend conditionally on crypto/md4.
576         * modules/crypto/gc-md5 (Depends-on):
577         Depend conditionally on crypto/md5.
578         * modules/crypto/gc-rijndael (Depends-on):
579         Depend conditionally on crypto/rijndael.
580         * modules/crypto/gc-sha1 (Depends-on):
581         Depend conditionally on crypto/sha1.
582         * modules/crypto/gc-arcfour:
583         * modules/crypto/gc-arctwo:
584         * modules/crypto/gc-des:
585         * modules/crypto/gc-hmac-md5:
586         * modules/crypto/gc-hmac-sha1:
587         * modules/crypto/gc-md2:
588         * modules/crypto/gc-md4:
589         * modules/crypto/gc-md5:
590         * modules/crypto/gc-rijndael:
591         * modules/crypto/gc-sha1:
592         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
593         now that the conditional dependencies do the work for us.
594
595 2011-11-17  Jim Meyering  <meyering@redhat.com>
596
597         tests: factor st_ctime-comparison out of two headers
598         * tests/test-utimens-common.h (ctime_compare): Define.
599         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
600         * tests/test-lutimens.h (test_lutimens): Likewise.
601         * tests/test-utimens.h (test_utimens): Likewise.
602
603         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
604         Invoke the test program via an init.sh-using wrapper.
605         * tests/test-getcwd.sh: New file.
606         * modules/getcwd-tests (Files): Add it.
607         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
608
609 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
610
611         gitlog-to-changelog: support multi-author commits.
612         The FSF cares about keeping track of all authors of patches to its
613         projects, but Git doesn't provide obvious support for multi-author
614         changesets. Consensus seems to be forming around the use of extra
615         Signed-off-by inspired lines in the log message formatted as
616         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
617         multi-author commits between version control systems.
618         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
619         log message and output in standard ChangeLog multi-author format.
620         Reported by Peter Rosin <peda@lysator.liu.se>
621
622 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
623             Bruno Haible  <bruno@clisp.org>
624
625         Fix some modules' file list.
626         * modules/fstatat (Files): Add m4/lstat.m4.
627         * modules/openat (Files): Likewise.
628         * modules/unlinkat (Files): Likewise.
629
630 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
631
632         maint.mk: fix tight-scope.mk generation in VPATH builds.
633         * top/maint.mk (tight-scope.mk): Make sure to prefix file
634         reference with $(srcdir) so that the file is found correctly even
635         when running `make syntax-check' in a VPATH build.
636
637 2011-11-13  Bruno Haible  <bruno@clisp.org>
638             Jim Meyering  <meyering@redhat.com>
639
640         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
641         * tests/init.sh (compare): Remove "No differences encountered" or
642         synonymous output from the 'diff' program.
643
644 2011-11-13  Bruno Haible  <bruno@clisp.org>
645
646         Makefile: Tweak indentation.
647         * Makefile: Use tab as first character in every line that contains rule
648         commands.
649
650 2011-11-13  Bruno Haible  <bruno@clisp.org>
651
652         Syntax check for copyright statements.
653         * check-copyright: New file.
654         * Makefile (sc_check_copyright): New rule.
655
656 2011-11-13  Simon Josefsson  <simon@josefsson.org>
657
658         * build-aux/git-version-gen: Add --prefix to configure the tag
659         match string.
660
661 2011-11-13  Simon Josefsson  <simon@josefsson.org>
662
663         * build-aux/git-version-gen: Add --help and --version.
664
665 2011-11-12  Jim Meyering  <meyering@redhat.com>
666
667         revamp the other test-exclude?.sh scripts to use init.sh, too
668         * tests/test-exclude1.sh: Use init.sh.
669         * tests/test-exclude2.sh: Likewise.
670         * tests/test-exclude3.sh: Likewise.
671         * tests/test-exclude4.sh: Likewise.
672         * tests/test-exclude5.sh: Likewise.
673         * tests/test-exclude6.sh: Likewise.
674         * tests/test-exclude7.sh: Likewise.
675         * tests/test-exclude8.sh: Likewise.
676         * modules/exclude-tests (Files): List init.sh.
677
678         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
679         These shell scripts ignored failure of the binary test-exclude,
680         so making the latter return 77 didn't cause them to be skipped.
681         * tests/test-exclude5.sh: Exit with test-exclude's error status
682         when that program fails.  Revamp to use init.sh.
683         * tests/test-exclude2.sh: Likewise.
684
685         test-exclude: fix a typo
686         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
687
688 2011-11-11  Bruno Haible  <bruno@clisp.org>
689
690         obstack: Fix compilation error on MSVC 9.
691         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
692
693 2011-11-11  Jim Meyering  <meyering@redhat.com>
694
695         test-exclude: skip tests rather than failing on deficient systems
696         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
697         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
698         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
699         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
700
701 2011-11-10  Bruno Haible  <bruno@clisp.org>
702
703         ptsname_r test: Avoid gcc warning on glibc systems.
704         * tests/test-ptsname_r.c (null_ptr): New function.
705         (test_errors): Use it.
706
707 2011-11-10  Bruno Haible  <bruno@clisp.org>
708
709         ptsname_r: Avoid compilation error on OSF/1 5.1.
710         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
712         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
713         function is not declared or incompatibly declared.
714         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
715         * modules/ptsname_r (Depends-on, configure.ac): Update.
716         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
717
718 2011-11-10  Bruno Haible  <bruno@clisp.org>
719
720         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
721         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
722         When cross-compiling, guess yes on all platforms except AIX.
723         Reported by Ludovic Courtès <ludo@gnu.org>.
724
725 2011-11-09  Bruno Haible  <bruno@clisp.org>
726
727         ptsname_r tests: Fix bugs.
728         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
729         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
730
731 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
732
733         fstatat: work with cross-compilation
734         Problem reported by Ludovic Courtès in
735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
736         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
737         "cross-compiling" and assume the bug is present.  Replace
738         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
739         an inverted sense, to be more conservative about our assumptions.
740         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
741
742 2011-11-09  Bruno Haible  <bruno@clisp.org>
743
744         Improve MODULES.html output.
745         * modules/mkfifoat (Description): Use the word "function".
746         * modules/readlinkat (Description): Likewise.
747         * modules/symlinkat (Description): Likewise.
748
749 2011-11-09  Eric Blake  <eblake@redhat.com>
750
751         ptsname_r-tests: new test module
752         * modules/ptsname_r-tests: New module.
753         * tests/test-ptsname_r.c: New file.
754
755         ptsname_r: new module
756         * modules/ptsname_r: New module.
757         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
758         * lib/ptsname.c (__ptsname_r): Split...
759         * lib/ptsname_r.c: ...into new file.
760         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
761         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
762         * modules/stdlib (Makefile.am): Substitute witnesses.
763         * lib/stdlib.in.h (ptsname_r): Declare it.
764         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
765         * MODULES.html.sh (Misc): Likewise.
766         * modules/ptsname (Depends-on): Alter dependency.
767         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
768
769 2011-11-09  Jim Meyering  <meyering@redhat.com>
770
771         announce-gen: be more concise when there's only one URL+tarball
772         * build-aux/announce-gen (get_tool_versions): When you distribute
773         only one type of tarball, combine the first two "Here are..."
774         sections and make the key-checking grammar independent of
775         how many tarballs there are.
776
777 2011-11-09  Eric Blake  <eblake@redhat.com>
778
779         openpty: provide a stub on mingw
780         * lib/pty.in.h (includes): Provide forward declarations.
781         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
782
783         raise: fix mingw handling of SIGPIPE
784         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
785
786 2011-11-08  Bruno Haible  <bruno@clisp.org>
787
788         More conditional dependencies.
789         * modules/faccessat (Depends-on): Add conditions.
790         * modules/fchmodat (Depends-on): Likewise.
791         * modules/fchownat (Depends-on): Likewise.
792         * modules/fstatat (Depends-on): Likewise.
793         * modules/mkfifoat (Depends-on): Likewise.
794         * modules/readlinkat (Depends-on): Likewise.
795         * modules/symlinkat (Depends-on): Likewise.
796         * modules/unlinkat (Depends-on): Likewise.
797         * modules/utimensat (Depends-on): Likewise.
798         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
799         * modules/linkat (Depends-on): Refine the conditions.
800         * modules/renameat (Depends-on): Likewise.
801
802 2011-11-08  Bruno Haible  <bruno@clisp.org>
803
804         faccessat: Move AC_LIBOBJ invocation to module description.
805         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
806         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
807         invocation from here...
808         * modules/faccessat (configure.ac): ... to here. Invoke
809         gl_PREREQ_FACCESSAT.
810
811 2011-11-08  Bruno Haible  <bruno@clisp.org>
812
813         faccessat: Simplify autoconf macro.
814         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
815         gl_FUNC_EUIDACCESS.
816
817 2011-11-08  Bruno Haible  <bruno@clisp.org>
818
819         renameat: Fix dependencies.
820         * modules/renameat (Depends-on): Add stdbool.
821
822 2011-11-08  Bruno Haible  <bruno@clisp.org>
823
824         mkfifoat: Fix module description.
825         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
826         not gl_UNISTD_MODULE_INDICATOR.
827
828 2011-11-08  Bruno Haible  <bruno@clisp.org>
829
830         fstatat: Remove unused dependency.
831         * modules/fstatat (Depends-on): Remove fstat.
832
833 2011-11-08  Simon Josefsson  <simon@josefsson.org>
834
835         GNUmakefile: behave when Makefile is missing.
836         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
837
838 2011-11-08  Bruno Haible  <bruno@clisp.org>
839
840         openat: Conditionalize dependencies.
841         * lib/openat.c: Reduce the scope of some #includes.
842         * modules/openat (Depends-on): Add conditions.
843
844 2011-11-07  Jim Meyering  <meyering@redhat.com>
845
846         maint.mk: extract GPG key ID without using a temporary file
847         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
848         without using a temporary file.  Based on a suggestion from Werner Koch
849         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
850
851 2011-11-07  Eric Blake  <eblake@redhat.com>
852
853         grantpt: fix typo
854         * lib/stdlib.in.h (grantpt): Check correct function.
855
856         maint.mk: silence new syntax check
857         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
858
859 2011-11-06  Bruno Haible  <bruno@clisp.org>
860
861         Doc about floating-point and math API.
862         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
863         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
864
865 2011-11-06  Bruno Haible  <bruno@clisp.org>
866
867         stdalign tests: Skip the test when compiled by Sun C.
868         * tests/test-stdalign.c (main): Skip the test on Sun C.
869
870 2011-11-06  Bruno Haible  <bruno@clisp.org>
871
872         ansi-c++-opt: Complete the 2011-06-05 change.
873         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
874         does not support namespaces, set the variable to "no", not to ":".
875
876 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
877
878         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
879
880 2011-11-06  Bruno Haible  <bruno@clisp.org>
881
882         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
883         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
884         (minus_zerol) [HP-UX]: New macro.
885         (unary_minus) [HP-UX]: New function.
886         (copysignl) [HP-UX]: Use unary_minus function.
887
888 2011-11-06  Bruno Haible  <bruno@clisp.org>
889
890         ldexp, ldexpf, ldexpl: Enhance tests.
891         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
892         and tests/test-ldexpl.c.
893         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
894         LDEXP, MIN_EXP, MAX_EXP): New macros.
895         Include test-ldexp.h.
896         (main): Just call test_function.
897         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
898         infinity.h, nan.h.
899         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
900         MAX_EXP): New macros.
901         Include test-ldexp.h.
902         (x, y): Remove variables.
903         (main): Just call test_function.
904         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
905         infinity.h, nan.h.
906         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
907         MAX_EXP): New macros.
908         Include test-ldexp.h.
909         (x, y): Remove variables.
910         (main): Just call test_function.
911         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
912         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
913         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
914         (Depends-on): Add isnand-nolibm, signbit, float.
915         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
916         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
917         (Depends-on): Add isnanf-nolibm, signbit, float.
918
919 2011-11-06  Bruno Haible  <bruno@clisp.org>
920
921         math tests: Cosmetics.
922         * tests/test-math-c++.cc: Reorder declarations.
923
924 2011-11-05  Bruno Haible  <bruno@clisp.org>
925
926         fma*: Simplify test.
927         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
928         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
929
930         Tests for module 'fmal'.
931         * modules/fmal-tests: New file.
932         * tests/test-fmal1.c: New file.
933         * tests/test-fmal2.c: New file.
934
935         New module 'fmal'.
936         * lib/math.in.h (fmal): New declaration.
937         * lib/fmal.c: New file.
938         * m4/fmal.m4: New file.
939         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
941         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
942         REPLACE_FMAL.
943         * modules/fmal: New file.
944         * doc/posix-functions/fmal.texi: Mention the new module and the various
945         bugs.
946
947         Tests for module 'fmaf'.
948         * modules/fmaf-tests: New file.
949         * tests/test-fmaf1.c: New file.
950         * tests/test-fmaf2.c: New file.
951
952         New module 'fmaf'.
953         * lib/math.in.h (fmaf): New declaration.
954         * lib/fmaf.c: New file.
955         * m4/fmaf.m4: New file.
956         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
958         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
959         REPLACE_FMAF.
960         * modules/fmaf: New file.
961         * doc/posix-functions/fmaf.texi: Mention the new module and the various
962         bugs.
963
964         Tests for module 'fma'.
965         * modules/fma-tests: New file.
966         * tests/test-fma1.c: New file.
967         * tests/test-fma1.h: New file.
968         * tests/test-fma2.c: New file.
969         * tests/test-fma2.h: New file.
970
971         New module 'fma'.
972         * lib/math.in.h (fma): New declaration.
973         * lib/fma.c: New file.
974         * m4/fma.m4: New file.
975         * m4/fegetround.m4: New file.
976         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
978         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
979         REPLACE_FMA.
980         * modules/fma: New file.
981         * doc/posix-functions/fma.texi: Mention the new module and the various
982         bugs.
983
984         Extend gl_MATHFUNC.
985         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
986         Support 'void' as argument type.
987         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
988
989 2011-11-05  Jim Meyering  <meyering@redhat.com>
990
991         maint.mk: also prohibit inclusion of dirent.h without use
992         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
993
994 2011-11-05  Bruno Haible  <bruno@clisp.org>
995
996         ldexpl tests: Avoid test failure on MSVC 9.
997         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
998         value. Needed in order to enforce the conversion from a value greater
999         than LDBL_MAX to Infinity.
1000
1001 2011-11-05  Bruno Haible  <bruno@clisp.org>
1002
1003         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1004         * modules/at-internal: New file, extracted from modules/openat.
1005         * modules/openat-h: New file.
1006         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1007         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1008         * modules/openat (Description): Add reference to POSIX function.
1009         (Files): Remove lib/openat.h, lib/openat-proc.c.
1010         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1011         intprops, unistd.
1012         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1013         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1014         gl_FCNTL_MODULE_INDICATOR.
1015         (Include): Remove unistd.h, openat.h.
1016         * modules/areadlinkat (Files): Add lib/at-func.c.
1017         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1018         openat-die, openat-h, save-cwd.
1019         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1020         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1021         openat-die, openat-h, save-cwd, unistd.
1022         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1023         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1024         openat-h, save-cwd. Remove fcntl-h, openat.
1025         * modules/fchmodat (Files): Remove lib/openat.h.
1026         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1027         openat, stdbool, unistd.
1028         * modules/fchownat (Files): Remove lib/openat.h.
1029         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1030         openat, stdbool, sys_stat.
1031         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1032         lib/openat-proc.c.
1033         (Depends-on): Add at-internal.
1034         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1035         * modules/fstatat (Files): Remove lib/openat.h.
1036         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1037         stdbool, unistd.
1038         * modules/fts (Depends-on): Add openat-h.
1039         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1040         openat.
1041         * modules/mkdirat (Files): Remove lib/openat.h.
1042         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1043         openat, stdbool, sys_stat.
1044         * modules/mkfifoat (Files): Add lib/at-func.c.
1045         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1046         openat-h, save-cwd. Remove fcntl-h, openat.
1047         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1048         * modules/readlinkat (Files): Add lib/at-func.c.
1049         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1050         openat-h, save-cwd. Remove fcntl-h, openat.
1051         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1052         openat.
1053         * modules/selinux-at (Files): Add lib/at-func.c.
1054         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1055         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1056         * modules/symlinkat (Files): Add lib/at-func.c.
1057         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1058         openat-h, save-cwd. Remove fcntl-h, openat.
1059         * modules/unlinkat (Files): Remove lib/openat.h.
1060         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1061         stdbool.
1062         * modules/utimensat (Files): Add lib/at-func.c.
1063         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1064         openat-die, openat-h, save-cwd.
1065         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1066         * modules/fdutimensat-tests (Depends-on): Add openat.
1067         * modules/fstatat-tests (Depends-on): Add openat-h.
1068         * modules/readlinkat-tests (Depends-on): Add openat.
1069         * modules/symlinkat-tests (Depends-on): Add openat.
1070
1071 2011-11-05  Bruno Haible  <bruno@clisp.org>
1072
1073         openat: Include <stdbool.h>.
1074         * lib/openat.c: Include <stdbool.h>.
1075
1076 2011-11-04  Bruno Haible  <bruno@clisp.org>
1077
1078         fchownat, renameat, unlinkat: Fix dependencies.
1079         * modules/fchownat (Depends-on): Add fstatat.
1080         * modules/renameat (Depends-on): Likewise.
1081         * modules/unlinkat (Depends-on): Likewise.
1082
1083 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         openat: remove direct dependency on dirent
1086         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1087         and hasn't been needed ever since fdopendir was split into its own
1088         module on 2009-08-31.
1089         * modules/openat (Depends-on): Remove dirent.
1090
1091 2011-11-04  Bruno Haible  <bruno@clisp.org>
1092
1093         renameat: Optimize code size.
1094         * modules/renameat (configure.ac): Don't compile at-func2.c if
1095         REPLACE_RENAMEAT is 1.
1096
1097 2011-11-04  Bruno Haible  <bruno@clisp.org>
1098
1099         openat tests: Fix file list.
1100         * modules/openat-tests (Files): Add tests/test-open.h.
1101
1102 2011-11-04  Bruno Haible  <bruno@clisp.org>
1103
1104         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1105         * modules/fchmodat (Depends-on): Add openat-die.
1106         * modules/fchownat (Depends-on): Likewise.
1107         * modules/linkat (Depends-on): Likewise.
1108         * modules/renameat (Depends-on): Likewise.
1109         * modules/openat (Depends-on): Add dirent.
1110
1111 2011-11-04  Jim Meyering  <meyering@redhat.com>
1112
1113         at-func*.c: fix comments
1114         * lib/at-func2.c: Correct/improve first-line comment.
1115         * lib/at-func.c: Correct grammar in first-line comment.
1116
1117 2011-11-04  Bruno Haible  <bruno@clisp.org>
1118
1119         New module 'mkdirat', split off from module 'openat'.
1120         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1121         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1122         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1123         * modules/mkdirat: New file, extracted from modules/openat.
1124         * modules/openat (Files): Remove lib/mkdirat.c.
1125         (Depends-on): Remove mkdir.
1126         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1127         (Include): Remove <sys/stat.h>.
1128         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1129         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1130         tests/test-mkdir.h.
1131         (Depends-on): Remove ignore-value.
1132         (Makefile.am): Remove rules for test-mkdirat.
1133         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1134         of module 'openat'.
1135         * NEWS: Mention the change.
1136
1137 2011-11-04  Bruno Haible  <bruno@clisp.org>
1138
1139         closedir: Avoid warning on mingw.
1140         * lib/closedir.c: Include <unistd.h>.
1141
1142 2011-11-04  Bruno Haible  <bruno@clisp.org>
1143
1144         New module 'fstatat', split off from module 'openat'.
1145         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1146         defined.
1147         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1148         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1149         gl_FUNC_FSTATAT.
1150         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1151         * modules/fstatat: New file, extracted from modules/openat.
1152         * modules/openat (Files): Remove lib/fstatat.c.
1153         (Depends-on): Remove lstat.
1154         (configure.ac): Remove AC_LIBOBJ of fstatat.
1155         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1156         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1157         tests/test-lstat.h, tests/test-stat.h.
1158         (Depends-on): Remove getcwd-lgpl.
1159         (Makefile.am): Remove rules for test-fstatat.
1160         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1161         of module 'openat'.
1162         * NEWS: Mention the change.
1163         * modules/getcwd (Depends-on): Add fstatat.
1164         * modules/linkat (Depends-on): Likewise.
1165         * modules/mkfifoat-tests (Depends-on): Likewise.
1166         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1167
1168 2011-11-03  Bruno Haible  <bruno@clisp.org>
1169
1170         New module 'unlinkat', split off from module 'openat'.
1171         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1172         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1173         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1174         * modules/unlinkat: New file, extracted from modules/openat. Correct
1175         the dependency conditions.
1176         * modules/openat (Files): Remove lib/unlinkat.c.
1177         (Depends-on): Remove rmdir, unlink.
1178         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1179         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1180         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1181         tests/test-rmdir.h, tests/test-unlink.h.
1182         (Depends-on): Remove unlinkdir.
1183         (Makefile.am): Remove rules for test-unlinkat.
1184         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1185         of module 'openat'.
1186         * NEWS: Mention the change.
1187         * modules/linkat-tests (Depends-on): Add unlinkat.
1188         * modules/mkfifoat-tests (Depends-on): Likewise.
1189         * modules/readlinkat-tests (Depends-on): Likewise.
1190
1191 2011-11-02  Bruno Haible  <bruno@clisp.org>
1192
1193         New module 'fchmodat', split off from module 'openat'.
1194         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1195         defined.
1196         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1197         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1198         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1199         * modules/fchmodat: New file, extracted from modules/openat.
1200         * modules/openat (Files): Remove lib/fchmodat.c.
1201         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1202         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1203         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1204         (Makefile.am): Remove rules for test-fchmodat.
1205         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1206         of module 'openat'.
1207         * NEWS: Mention the change.
1208
1209 2011-11-02  Jim Meyering  <meyering@redhat.com>
1210
1211         putenv: indent #definition of "environ" to placate cppi
1212         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1213
1214         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1215         Git logs are often treated as immutable, because editing them
1216         changes the SHA1 checksums of all descendants.  Thus, errors in
1217         git logs tend to stay there forever.  However, when we generate
1218         a ChangeLog file -- typically for distribution -- from that git log,
1219         we can actually make corrections in the generated file.  The key
1220         lies in recording in machine-readable/applicable form the desired
1221         corrections.  See --help for description and an example.
1222         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1223         (usage): Describe it; alphabetize option descriptions.
1224         (main): Honor the new option, carefully.
1225
1226 2011-11-01  Jim Meyering  <meyering@redhat.com>
1227
1228         gitlog-to-changelog: avoid an infloop
1229         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1230         that ends up being empty.
1231
1232 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1235         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1236         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1237         contains (possibly-quoted) backslashes.  This should avoid
1238         all-too-common shell bugs if COMPLICATED contains backslashes in
1239         the "wrong" places.  Reported by David Evans in
1240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1241         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1242         because we want ASCII ranges.  Is there some reason we don't use
1243         the C locale everywhere in this script?
1244         (func_module, top level): Avoid unwanted pathname expansion when
1245         $repo_url_prefix or $repo_url_suffix_repl contain shell
1246         metacharacters like '?' and '*'.
1247
1248 2011-11-01  Bruno Haible  <bruno@clisp.org>
1249
1250         fchownat: Improve description.
1251         * modules/fchownat (Description): Add link to function.
1252
1253 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1254
1255         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1256         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1258         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1259
1260 2011-11-01  Bruno Haible  <bruno@clisp.org>
1261
1262         alignof: Avoid collision with stdalign module.
1263         * lib/alignof.h (alignof): Remove macro.
1264         * NEWS: Mention the change.
1265         Reported by Paul Eggert.
1266
1267 2011-11-01  Bruno Haible  <bruno@clisp.org>
1268
1269         New module 'fchownat', split off from module 'openat'.
1270         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1271         defined.
1272         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1273         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1274         invoke gl_FUNC_FCHOWNAT.
1275         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1276         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1277         * modules/fchownat: New file, extracted from modules/openat.
1278         * modules/openat (Files): Remove lib/fchownat.c.
1279         (Depends-on): Remove lchown.
1280         (configure.ac): Remove AC_LIBOBJ of fchownat.
1281         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1282         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1283         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1284         (Depends-on): Remove mgetgroups, usleep, stat-time.
1285         (configure.ac): Remove test for getegid.
1286         (Makefile.am): Remove rules for test-fchownat.
1287         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1288         of module 'openat'.
1289         * NEWS: Mention the change.
1290
1291 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         stdalign: port better to MSVC and to Sun C 5.11
1294         This fixes some of the problems reported by Bruno Haible in
1295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1296         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1297         shortcomings of MSVC and of Sun C 5.11.
1298         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1299         around __declspec arg.
1300         * modules/stdalign-tests (Files): Add tests/macros.h.
1301         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1302         Include macros.h, for ASSERT.
1303         (DECLARE_ALIGNED): Remove.
1304         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1305         to catch bug), and to 1 if not (simplifies the rest of the code).
1306         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1307         (CHECK_AUTO): Remove.
1308         (CHECK_ALIGNED): Check only the alignment of the static vars,
1309         since auto var alignment isn't supported by Sun C 5.11.
1310         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1311         ASSERT failures are easier to diagnose.
1312
1313 2011-10-31  Bruno Haible  <bruno@clisp.org>
1314
1315         doc about some IRIX 5.3 problems.
1316         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1317         on IRIX 5.3.
1318         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1319         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1320         5.3.
1321         * doc/posix-functions/grantpt.texi: Likewise.
1322         * doc/posix-functions/unlockpt.texi: Likewise.
1323         * doc/posix-functions/lgamma.texi: Likewise.
1324         * doc/posix-functions/nextafter.texi: Likewise.
1325         * doc/posix-functions/remainder.texi: Likewise.
1326         * doc/posix-functions/select.texi: Mention misplaced declaration on
1327         IRIX 5.3.
1328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1329
1330 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1331
1332         gitlog-to-changelog: fix git-log invocation.
1333         git-log mishandles date strings before 1970-01-01 UTC, and there is
1334         no use to specify --since=1970-01-01 by default anyway.
1335         * build-aux/gitlog-to-changelog: By default, when no --since option
1336         was given, do not specify explicit --since option to git-log.
1337
1338 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1339
1340         gitlog-to-changelog: new option --append-dot.
1341         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1342         first non-blank line of each commit message terminated with a dot.
1343
1344 2011-10-30  Bruno Haible  <bruno@clisp.org>
1345
1346         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1347         * lib/ffsl.h: Include <config.h>.
1348         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1349
1350 2011-10-30  Jim Meyering  <meyering@redhat.com>
1351
1352         GNUmakefile: reenable "make syntax-check" for most projects
1353         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1354         build-aux variable", "syntax-check" would do nothing but succeed with
1355         the "No version control files detected..." diagnostic (unless you
1356         happened to override _build-aux via cfg.mk).
1357         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1358         to precede inclusion of maint.mk.  Otherwise, these variables would
1359         be used undefined in any project that does not override the default.
1360
1361 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1362
1363         gitlog-to-changelog: treat a message with only blank lines as empty.
1364         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1365         trailing blank lines before the code that issues a warning about an
1366         empty commit message.
1367
1368 2011-10-30  Jim Meyering  <meyering@redhat.com>
1369
1370         test-parse-datetime.c: avoid new DST-related false positive test failure
1371         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1372         based on the time/date we'll convert, not the current time.
1373         Otherwise, the moment we cross a DST boundary like today's in
1374         Europe, (CEST to CET), that offset ends up being one hour off.
1375
1376 2011-10-27  Bruno Haible  <bruno@clisp.org>
1377
1378         fstat: Tweak documentation.
1379         * modules/fstat (Description): More precise description.
1380
1381 2011-10-27  Bruno Haible  <bruno@clisp.org>
1382
1383         Update documentation regarding 'largefile' module.
1384         * doc/posix-functions/fstat.texi: Tweak wording.
1385         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1386         problems with huge directories and/or small ino_t types.
1387         * doc/posix-functions/readdir.texi: Likewise.
1388         * doc/posix-functions/rewinddir.texi: Likewise.
1389
1390 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1391
1392         maint.mk: don't maintain a second build-aux variable.
1393         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1394         depends on GNUmakefile, which already maintains a cfg.mk
1395         overridable $(_build-aux) for projects with a non-standard
1396         build-aux directory location, although without the $(srcdir)
1397         prefix.  Use that variable consistently instead of introducing a
1398         second one.  Adjust all call sites.
1399
1400 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         Add stdalign module and use it in other modules.
1403         This is based on a previous proposal by Bruno Haible
1404         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1405
1406         stdalign: new module
1407         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1408         * modules/stdalign: New files.
1409         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1410         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1411
1412         stdalign-tests: new module
1413         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1414
1415         argp: use stdalign
1416         * lib/argp-parse.c: Include <stdalign.h>.
1417         (alignof): Remove.
1418         * modules/argp (Depends-on): Add stdalign.
1419
1420         crypto libraries: use stdalign
1421         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1422         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1423         Do not include <stdlib.h> twice, in md4.c.
1424         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1425         because we are accessing a pointer's bit-pattern, not a size.
1426         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1427         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1428         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1429         * modules/crypto/sha512: Likewise.
1430
1431         sys_socket: use stdalign, not alignof
1432         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1433         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1434
1435 2011-10-27  Bruno Haible  <bruno@clisp.org>
1436
1437         raise test: Avoid a test failure on Linux/MIPS.
1438         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1439         because 99 is a valid signal on Linux/MIPS.
1440
1441 2011-10-27  Bruno Haible  <bruno@clisp.org>
1442
1443         nonblocking tests: Fix test failure on Linux/MIPS.
1444         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1445         Set to 270000.
1446
1447 2011-10-27  Bruno Haible  <bruno@clisp.org>
1448
1449         utimensat: Work around problem on Linux/hppa.
1450         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1451         values.
1452         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1453
1454 2011-10-25  Jim Meyering  <meyering@redhat.com>
1455
1456         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1457         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1458         after symbols like NULL, size_t, etc.
1459         Reported by Alfred M. Szmidt.
1460
1461         maint.mk: exempt ENODATA from a syntax-check rule
1462         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1463         from the sc_prohibit_always-defined_macros syntax-check rule.
1464         Add a comment.  See this for more details:
1465         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1466
1467 2011-10-23  Jim Meyering  <meyering@redhat.com>
1468
1469         fts: close parent dir FD before returning from post-traversal fts_read
1470         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1471         unlink A, even though an FD open on A remained.  This is suboptimal
1472         (holding a file descriptor open longer than needed), but otherwise not
1473         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1474         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1475         that represents a real problem: it causes the removal of A to fail
1476         with e.g., "rm: cannot remove `A': Device or resource busy"
1477
1478         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1479         directory file descriptors.  After completing the final, FTS_DP,
1480         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1481         cache, but then proceeded to add a new FD to it via the subsequent
1482         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1483         final file descriptor would be closed only via fts_close's call to
1484         fd_ring_clear.  Now, it is usually closed earlier, via the final
1485         FTS_DP-returning fts_read call.
1486         * lib/fts.c (restore_initial_cwd): New function, converted from
1487         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1488         Update callers.
1489         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1490         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1491
1492 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1493             Bruno Haible  <bruno@clisp.org>
1494             Jim Meyering  <jim@meyering.net>
1495
1496         readme-release: improve safety of release prep instructions.
1497         * README-release: Don't git pull all branches when only master
1498         is needed for the release process.
1499         Run make maintainer-clean before changing trees and merging.
1500         Don't try to run ./configure right after git pull in case files
1501         that influence the bootstrap process have changed, move the
1502         ./configure step to after running ./bootstrap.
1503         Don't bootstrap "one last time"... it's the first time!
1504
1505 2011-10-22  Bruno Haible  <bruno@clisp.org>
1506
1507         errno, strerror-override: Support for MSVC 10.
1508         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1509         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1510         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1511         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1512         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1513         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1514         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1515         Assign values compatible with MSVC 10.
1516         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1517         New macros.
1518         (GNULIB_defined_EWINSOCK): New macro.
1519         * lib/strerror-override.c (strerror_override): Update accordingly.
1520         * lib/strerror-override.h: Likewise.
1521         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1522         longer equal to the corresponding errno value.
1523         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1524
1525 2011-10-22  Bruno Haible  <bruno@clisp.org>
1526
1527         perror: Recognize when test program crashes.
1528         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1529         strerror, set gl_cv_func_perror_works to no.
1530         Reported by Daniel Richard G. <skunk@iskunk.org>.
1531
1532         perror: Fix indentation.
1533         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1534
1535 2011-10-22  Bruno Haible  <bruno@clisp.org>
1536
1537         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1538         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1539         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1540         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1541         functions, not as a macro.
1542         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1543         macros.
1544         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1545         absence of macro.
1546         Suggested by Eric Blake.
1547         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1548
1549 2011-10-21  Bruno Haible  <bruno@clisp.org>
1550
1551         relocatable-prog-wrapper: Don't leave object files behind.
1552         * build-aux/install-reloc: Re-synchronize list of .o files to be
1553         removed with list of compilation units.
1554
1555 2011-10-20  Bruno Haible  <bruno@clisp.org>
1556
1557         openpty, posix_openpt: Remove code duplication.
1558         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1559         * lib/openpty.c: Include <stdlib.h>.
1560         (openpty): Use posix_openpt on all platforms except IRIX.
1561         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1562
1563 2011-10-20  Bruno Haible  <bruno@clisp.org>
1564
1565         unlockpt: Detect invalid argument.
1566         * lib/unlockpt.c: Include <fcntl.h>.
1567         (unlockpt): Check whether fd is valid, using fcntl().
1568         * modules/unlockpt (Depends-on): Add fcntl-h.
1569
1570 2011-10-20  Bruno Haible  <bruno@clisp.org>
1571
1572         openpty: Avoid compilation error on AIX 6.1.
1573         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1574
1575 2011-10-20  Bruno Haible  <bruno@clisp.org>
1576
1577         posix_openpt: Support for OpenBSD.
1578         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1579         (posix_openpt) [OpenBSD]: New code.
1580         * lib/grantpt.c: Include <fcntl.h>.
1581         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1582         * modules/grantpt (Depends-on): Add fcntl-h.
1583
1584 2011-10-20  Bruno Haible  <bruno@clisp.org>
1585
1586         posix_openpt test: Coding style.
1587         * tests/test-posix_openpt.c: Use GNU coding style.
1588
1589 2011-10-20  Bruno Haible  <bruno@clisp.org>
1590
1591         grantpt: Support --avoid=pt_chown.
1592         * modules/grantpt (Files): Add lib/pty-private.h.
1593
1594 2011-10-20  Bruno Haible  <bruno@clisp.org>
1595
1596         posix_openpt: Fix autoconf macro.
1597         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1598         unneeded check for _getpty.
1599
1600 2011-10-20  Bruno Haible  <bruno@clisp.org>
1601
1602         openpty: Update comments.
1603         * lib/openpty.c: Add comments about Minix.
1604
1605 2011-10-19  Eric Blake  <eblake@redhat.com>
1606
1607         openpty: relax license
1608         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1609
1610         pt_chown: use configmake to simplify build
1611         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1612
1613         ptsname and others: relax license
1614         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1615         * modules/unlockpt (License): Likewise.
1616         * modules/pt_chown (License): Likewise.
1617         * modules/ptsname (License): Likewise.
1618         * modules/ttyname_r (License): Likewise.
1619
1620 2011-10-19  Jim Meyering  <meyering@redhat.com>
1621
1622         posix_openpt: remove spurious #endif
1623         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1624
1625 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1626
1627         maint.mk: Respect $(build_aux) in web-manual rule.
1628         * top/maint.mk (web-manual): Find gen-announce script in user's
1629         $(build_aux) directory instead of hard-coding 'build-aux'.
1630
1631 2011-10-19  Bruno Haible  <bruno@clisp.org>
1632
1633         posix_openpt: Fix compilation error.
1634         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1635         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1636         Mention the openpty module as an alternative.
1637
1638 2011-10-19  Bruno Haible  <bruno@clisp.org>
1639
1640         Support for old NeXTstep 3.3 frexp().
1641         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1642         execution time of the test to 5 seconds.
1643         Reported by Daniel Richard G. <skunk@iskunk.org>.
1644
1645 2011-10-19  Bruno Haible  <bruno@clisp.org>
1646
1647         Support for old NeXTstep 3.3 sed.
1648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1649         part, use /.../, not \|...|. Escape periods in the header file name.
1650         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1651         Reported by Daniel Richard G. <skunk@iskunk.org>.
1652
1653 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1654
1655         Support for old NeXTstep 3.3 gcc.
1656         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1657         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1658         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1659         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1660         * lib/regex.h (_Restrict_arr_): Likewise.
1661         * lib/regex_internal.h (re_token_t): Likewise.
1662         * lib/regexec.c (check_node_accept_bytes): Likewise.
1663         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1664
1665 2011-10-18  Eric Blake  <eblake@redhat.com>
1666
1667         posix_openpt: new module
1668         * modules/posix_openpt: New module.
1669         * m4/posix_openpt.m4: New file.
1670         * lib/posix_openpt.c: Likewise.
1671         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1672         (gl_STDLIB_H_DEFAULTS): Set defaults.
1673         * modules/stdlib (Makefile.am): Substitute macros.
1674         * lib/stdlib.in.h (posix_openpt): Declare.
1675         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1676         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1677         * modules/posix_openpt-tests: New test module.
1678         * tests/test-posix_openpt.c: New test.
1679
1680 2011-10-15  Bruno Haible  <bruno@clisp.org>
1681
1682         xstrtoll: Fix compilation failure.
1683         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1684         from lib/strtol.c.
1685         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1686         some platforms.
1687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1688
1689 2011-10-15  Bruno Haible  <bruno@clisp.org>
1690
1691         vasnprintf: Optimize bit search operation.
1692         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1694         gl_DOUBLE_EXPONENT_LOCATION.
1695         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1696         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1697         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1698         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1699         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1700         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1701         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1702         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1703         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1704
1705 2011-10-15  Bruno Haible  <bruno@clisp.org>
1706
1707         vasnprintf: Fix comments.
1708         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1709
1710 2011-10-14  Bruno Haible  <bruno@clisp.org>
1711
1712         Tests for module 'integer_length_ll'.
1713         * modules/integer_length_ll-tests: New file.
1714         * tests/test-integer_length_ll.c: New file.
1715
1716         New module 'integer_length_ll'.
1717         * lib/integer_length_ll.c: New file.
1718         * modules/integer_length_ll: New file.
1719
1720 2011-10-14  Bruno Haible  <bruno@clisp.org>
1721
1722         Tests for module 'integer_length_l'.
1723         * modules/integer_length_l-tests: New file.
1724         * tests/test-integer_length_l.c: New file.
1725
1726         New module 'integer_length_l'.
1727         * lib/integer_length_l.c: New file.
1728         * modules/integer_length_l: New file.
1729
1730 2011-10-14  Bruno Haible  <bruno@clisp.org>
1731
1732         Tests for module 'integer_length'.
1733         * modules/integer_length-tests: New file.
1734         * tests/test-integer_length.c: New file.
1735
1736         New module 'integer_length'.
1737         * lib/integer_length.h: New file.
1738         * lib/integer_length.c: New file.
1739         * modules/integer_length: New file.
1740
1741 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1742
1743         popen: Fix dependency conditions.
1744         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1745
1746 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1747
1748         perror: Fix autoconf test.
1749         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1750         <stdlib.h> and <string.h>.
1751
1752 2011-10-14  Bruno Haible  <bruno@clisp.org>
1753
1754         ffsl: Optimize on 64-bit platforms.
1755         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1756         unrolling.
1757
1758 2011-10-13  Bruno Haible  <bruno@clisp.org>
1759
1760         ffsl: Optimize on 32-bit platforms.
1761         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1762         use ffs() without a loop.
1763
1764         ffsl, ffsll: Optimize for GCC.
1765         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1766         * lib/ffsl.c (GCC_BUILTIN): New macro.
1767         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1768
1769 2011-10-13  Bruno Haible  <bruno@clisp.org>
1770
1771         ffs, bcopy, memset: Support symbol renaming via config.h.
1772         * lib/ffs.c: Include <config.h>.
1773         * lib/bcopy.c: Likewise.
1774         * lib/memset.c: Likewise.
1775
1776 2011-10-10  Bruno Haible  <bruno@clisp.org>
1777
1778         atanl: Simplify for platforms where 'long double' == 'double'.
1779         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1780         alternative implementation.
1781         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1782         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1783         * modules/atanl (Depends-on): Add atan. Update conditions.
1784
1785 2011-10-10  Bruno Haible  <bruno@clisp.org>
1786
1787         acosl: Simplify for platforms where 'long double' == 'double'.
1788         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1789         alternative implementation.
1790         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1791         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1792         * modules/acosl (Depends-on): Add acos. Update conditions.
1793
1794 2011-10-10  Bruno Haible  <bruno@clisp.org>
1795
1796         asinl: Simplify for platforms where 'long double' == 'double'.
1797         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1798         alternative implementation.
1799         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1800         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1801         * modules/asinl (Depends-on): Add asin. Update conditions.
1802
1803 2011-10-10  Bruno Haible  <bruno@clisp.org>
1804
1805         tanl: Simplify for platforms where 'long double' == 'double'.
1806         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1807         implementation.
1808         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1809         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1810         * modules/tanl (Depends-on): Add tan. Update conditions.
1811         (configure.ac): Don't compile trigl.c if
1812         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1813
1814 2011-10-10  Bruno Haible  <bruno@clisp.org>
1815
1816         cosl: Simplify for platforms where 'long double' == 'double'.
1817         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1818         implementation.
1819         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1820         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1821         * modules/cosl (Depends-on): Add cos. Update conditions.
1822         (configure.ac): Don't compile sincosl.c and trigl.c if
1823         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1824
1825 2011-10-10  Bruno Haible  <bruno@clisp.org>
1826
1827         sinl: Simplify for platforms where 'long double' == 'double'.
1828         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1829         implementation.
1830         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1831         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1832         * modules/sinl (Depends-on): Add sin. Update conditions.
1833         (configure.ac): Don't compile sincosl.c and trigl.c if
1834         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1835
1836 2011-10-10  Bruno Haible  <bruno@clisp.org>
1837
1838         logl: Simplify for platforms where 'long double' == 'double'.
1839         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1840         implementation.
1841         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1842         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1843         * modules/logl (Depends-on): Add log. Update conditions.
1844
1845 2011-10-10  Bruno Haible  <bruno@clisp.org>
1846
1847         expl: Simplify for platforms where 'long double' == 'double'.
1848         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1849         implementation.
1850         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1851         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1852         * modules/expl (Depends-on): Add exp. Update conditions.
1853
1854 2011-10-10  Bruno Haible  <bruno@clisp.org>
1855
1856         sqrtl: Simplify for platforms where 'long double' == 'double'.
1857         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1858         alternative implementation.
1859         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1860         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1861         * modules/sqrtl (Depends-on): Update conditions.
1862
1863 2011-10-10  Bruno Haible  <bruno@clisp.org>
1864
1865         ldexpl: Simplify for platforms where 'long double' == 'double'.
1866         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1867         alternative implementation.
1868         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1869         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1870         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1871
1872 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1873
1874         ffsll: set correct witness
1875         * modules/ffsll (configure.ac): Fix typo.
1876
1877 2011-10-10  Bruno Haible  <bruno@clisp.org>
1878
1879         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1880         * lib/printf-frexpl.c: Include <config.h>.
1881         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1882         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1883         second time.
1884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1885         gl_LONG_DOUBLE_VS_DOUBLE.
1886         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1887         conditions.
1888
1889 2011-10-10  Bruno Haible  <bruno@clisp.org>
1890
1891         frexpl: Simplify for platforms where 'long double' == 'double'.
1892         * lib/frexpl.c: Include <config.h>.
1893         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1894         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1895         time.
1896         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1897         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1898         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1899         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1900         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1901         conditions.
1902
1903 2011-10-10  Jim Meyering  <meyering@redhat.com>
1904
1905         test-renameat: don't leave behind a temporary file
1906         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1907           ERROR: files left in build directory after distclean:
1908           ./gltests/test-renameat.too
1909           make[1]: *** [distcleancheck] Error 1
1910         Reported by Tom G. Christensen.
1911
1912 2011-10-09  Bruno Haible  <bruno@clisp.org>
1913
1914         rint: Determine RINT_LIBM correctly on AIX 7.
1915         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1916         directly, not only through a function pointer. Also accept an optional
1917         4th argument with extra code.
1918         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1919         rintf() call by gcc when optimizing.
1920
1921         mathfunc.m4: Refactor.
1922         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1923         m4 variable.
1924
1925 2011-10-09  Bruno Haible  <bruno@clisp.org>
1926
1927         rintl: Simplify for platforms where 'long double' == 'double'.
1928         * lib/rintl.c: Include <config.h>.
1929         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1930         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1931         time.
1932         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1933         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1934         * modules/rintl (Depends-on): Add rint. Update conditions.
1935
1936 2011-10-09  Bruno Haible  <bruno@clisp.org>
1937
1938         roundl: Simplify for platforms where 'long double' == 'double'.
1939         * lib/roundl.c: Include <config.h>.
1940         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1941         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1942         time.
1943         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1944         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1945         * modules/roundl (Depends-on): Add round. Update conditions.
1946
1947 2011-10-09  Bruno Haible  <bruno@clisp.org>
1948
1949         truncl: Simplify for platforms where 'long double' == 'double'.
1950         * lib/truncl.c: Include <config.h>.
1951         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1952         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1953         time.
1954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1955         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1956         * modules/truncl (Depends-on): Add trunc. Update conditions.
1957
1958 2011-10-09  Bruno Haible  <bruno@clisp.org>
1959
1960         ceill: Simplify for platforms where 'long double' == 'double'.
1961         * lib/ceill.c: Include <config.h>.
1962         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1963         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1964         time.
1965         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1966         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1967         * modules/ceill (Depends-on): Add ceil. Update conditions.
1968
1969 2011-10-09  Bruno Haible  <bruno@clisp.org>
1970
1971         floorl: Simplify for platforms where 'long double' == 'double'.
1972         * lib/floorl.c: Include <config.h>.
1973         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1974         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1975         time.
1976         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1977         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1978         * modules/floorl (Depends-on): Add floor. Update conditions.
1979
1980 2011-10-09  Bruno Haible  <bruno@clisp.org>
1981
1982         rint: Fix ordering constraints.
1983         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1984         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1985         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1986
1987 2011-10-09  Bruno Haible  <bruno@clisp.org>
1988
1989         copysignl: Simplify for platforms where 'long double' == 'double'.
1990         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1991         alternative.
1992         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1993         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1994         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1995
1996 2011-10-09  Bruno Haible  <bruno@clisp.org>
1997
1998         Tests for module 'rintl'.
1999         * modules/rintl-tests: New file.
2000         * tests/test-rintl.c: New file.
2001
2002         New module 'rintl'.
2003         * lib/math.in.h (rintl): New declaration.
2004         * lib/rintl.c: New file.
2005         * m4/rintl.m4: New file.
2006         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2008         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2009         * modules/rintl: New file.
2010         * tests/test-math-c++.cc: Check the declaration of rintl.
2011         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2012         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2013         * doc/posix-functions/rintl.texi: Mention the new module.
2014
2015 2011-10-09  Bruno Haible  <bruno@clisp.org>
2016
2017         Tests for module 'rintf'.
2018         * modules/rintf-tests: New file.
2019         * tests/test-rintf.c: New file.
2020
2021         New module 'rintf'.
2022         * lib/math.in.h (rintf): New declaration.
2023         * lib/rintf.c: New file.
2024         * m4/rintf.m4: New file.
2025         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2027         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2028         * modules/rintf: New file.
2029         * tests/test-math-c++.cc: Check the declaration of rintf.
2030         * doc/posix-functions/rintf.texi: Mention the new module.
2031
2032 2011-10-09  Bruno Haible  <bruno@clisp.org>
2033
2034         rint: Support for MSVC.
2035         * lib/math.in.h (rint): New declaration.
2036         * lib/rint.c: New file.
2037         * m4/rint.m4: New file.
2038         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2040         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2041         * modules/rint (Description): Fix.
2042         (Files): Add lib/rint.c, m4/rint.m4.
2043         (Depends-on): Add math.
2044         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2045         gl_MATH_MODULE_INDICATOR.
2046         * tests/test-math-c++.cc: Check the declaration of rint.
2047         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2048         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2049         * doc/posix-functions/rint.texi: Mention the replacement provided by
2050         the module.
2051
2052         rint tests: More tests.
2053         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2054         minus-zero.h, infinity.h, nan.h.
2055         (main): Skip the test if the current rounding mode is not standard. Add
2056         tests for negative numbers, minus zero, infinity, NaN.
2057         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2058         tests/nan.h.
2059         (Depends-on): Add isnand-nolibm.
2060
2061 2011-10-09  Bruno Haible  <bruno@clisp.org>
2062
2063         Tests for module 'copysignl'.
2064         * modules/copysignl-tests: New file.
2065         * tests/test-copysignl.c: New file.
2066
2067         New module 'copysignl'.
2068         * lib/math.in.h (copysignl): New declaration.
2069         * lib/copysignl.c: New file.
2070         * m4/copysignl.m4: New file.
2071         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2073         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2074         HAVE_COPYSIGNL.
2075         * modules/copysignl: New file.
2076         * tests/test-math-c++.cc: Check the declaration of copysignl.
2077         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2078         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2079         * doc/posix-functions/copysignl.texi: Mention the new module.
2080
2081 2011-10-09  Bruno Haible  <bruno@clisp.org>
2082
2083         Tests for module 'copysignf'.
2084         * modules/copysignf-tests: New file.
2085         * tests/test-copysignf.c: New file.
2086
2087         New module 'copysignf'.
2088         * lib/math.in.h (copysignf): New declaration.
2089         * lib/copysignf.c: New file.
2090         * m4/copysignf.m4: New file.
2091         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2093         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2094         HAVE_COPYSIGNF.
2095         * modules/copysignf: New file.
2096         * tests/test-math-c++.cc: Check the declaration of copysignf.
2097         * doc/posix-functions/copysignf.texi: Mention the new module.
2098
2099 2011-10-09  Bruno Haible  <bruno@clisp.org>
2100
2101         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2102         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2103         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2104         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2105         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2106         gl_SIGNAL_H_DEFAULTS.
2107
2108 2011-10-09  Bruno Haible  <bruno@clisp.org>
2109
2110         poll: Make macro safer.
2111         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2112         ac_cv_header_poll_h is not set.
2113
2114 2011-10-09  Bruno Haible  <bruno@clisp.org>
2115
2116         copysign: Provide replacement.
2117         * lib/math.in.h (copysign): New declaration.
2118         * lib/copysign.c: New file.
2119         * m4/copysign.m4: New file.
2120         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2122         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2123         HAVE_COPYSIGN.
2124         * modules/copysign (Description): Clarify.
2125         (Files): Add lib/copysign.c, m4/copysign.m4.
2126         (Depends-on): Add math, signbit.
2127         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2128         gl_MATH_MODULE_INDICATOR.
2129         * tests/test-math-c++.cc: Check the declaration of copysign.
2130         * doc/posix-functions/copysign.texi: Mention the effects of the module
2131         on Minix and MSVC.
2132
2133 2011-10-09  Bruno Haible  <bruno@clisp.org>
2134
2135         isinf: Ensure macro on AIX 5.1.
2136         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2137         macro.
2138         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2139
2140 2011-10-09  Bruno Haible  <bruno@clisp.org>
2141
2142         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2143         * modules/snprintf-posix-tests (configure.ac): Require
2144         gl_LONG_DOUBLE_VS_DOUBLE.
2145         * modules/sprintf-posix-tests (configure.ac): Likewise.
2146         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2147         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2148         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2149         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2150         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2151         tests on platforms where 'long double' is the same as 'double'.
2152         * tests/test-sprintf-posix.h (test_function): Likewise.
2153         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2154         * tests/test-vasprintf-posix.c (test_function): Likewise.
2155
2156         *printf: Fix for platforms where 'long double' == 'double'.
2157         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2158         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2159         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2160         * modules/fprintf-posix (Files): Likewise.
2161         * modules/obstack-printf-posix (Files): Likewise.
2162         * modules/snprintf-posix (Files): Likewise.
2163         * modules/sprintf-posix (Files): Likewise.
2164         * modules/vasnprintf (Files): Likewise.
2165         * modules/vasnprintf-posix (Files): Likewise.
2166         * modules/vasprintf-posix (Files): Likewise.
2167         * modules/vdprintf-posix (Files): Likewise.
2168         * modules/vfprintf-posix (Files): Likewise.
2169         * modules/vsnprintf-posix (Files): Likewise.
2170         * modules/vsprintf-posix (Files): Likewise.
2171         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2172         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2173         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2174         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2175         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2176         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2177         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2178
2179         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2180         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2181         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2182         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2183         'long double'.
2184         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2185
2186         isinf: Fix for platforms where 'long double' == 'double'.
2187         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2188         Don't blindly assume 80-bit 'long double'.
2189
2190         isfinite: Fix for platforms where 'long double' == 'double'.
2191         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2192         Don't blindly assume 80-bit 'long double'.
2193
2194         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2195         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2196         * modules/isfinite-tests (configure.ac): Require
2197         gl_LONG_DOUBLE_VS_DOUBLE.
2198         * modules/isinf-tests (configure.ac): Likewise.
2199         * modules/isnan-tests (configure.ac): Likewise.
2200         * modules/isnanl-tests (configure.ac): Likewise.
2201         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2202         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2203         tests on platforms where 'long double' is the same as 'double'.
2204         * tests/test-isinf.c (test_isinfl): Likewise.
2205         * tests/test-isnan.c (test_long_double): Likewise.
2206         * tests/test-isnanl.h (main): Likewise.
2207
2208 2011-10-08  Bruno Haible  <bruno@clisp.org>
2209
2210         Tests for module 'tanhf'.
2211         * modules/tanhf-tests: New file.
2212         * tests/test-tanhf.c: New file.
2213
2214         New module 'tanhf'.
2215         * lib/math.in.h (tanhf): New declaration.
2216         * lib/tanhf.c: New file.
2217         * m4/tanhf.m4: New file.
2218         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2220         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2221         * modules/tanhf: New file.
2222         * tests/test-math-c++.cc: Check the declaration of tanhf.
2223         * doc/posix-functions/tanhf.texi: Mention the new module.
2224
2225         tanh: Use a .m4 file.
2226         * m4/tanh.m4: New file.
2227         * modules/tanh (Files): Add it.
2228         (configure.ac): Just invoke gl_FUNC_TANH.
2229
2230 2011-10-08  Bruno Haible  <bruno@clisp.org>
2231
2232         Tests for module 'coshf'.
2233         * modules/coshf-tests: New file.
2234         * tests/test-coshf.c: New file.
2235
2236         New module 'coshf'.
2237         * lib/math.in.h (coshf): New declaration.
2238         * lib/coshf.c: New file.
2239         * m4/coshf.m4: New file.
2240         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2242         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2243         * modules/coshf: New file.
2244         * tests/test-math-c++.cc: Check the declaration of coshf.
2245         * doc/posix-functions/coshf.texi: Mention the new module.
2246
2247         cosh: Use a .m4 file.
2248         * m4/cosh.m4: New file.
2249         * modules/cosh (Files): Add it.
2250         (configure.ac): Just invoke gl_FUNC_COSH.
2251
2252 2011-10-08  Bruno Haible  <bruno@clisp.org>
2253
2254         Tests for module 'sinhf'.
2255         * modules/sinhf-tests: New file.
2256         * tests/test-sinhf.c: New file.
2257
2258         New module 'sinhf'.
2259         * lib/math.in.h (sinhf): New declaration.
2260         * lib/sinhf.c: New file.
2261         * m4/sinhf.m4: New file.
2262         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2264         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2265         * modules/sinhf: New file.
2266         * tests/test-math-c++.cc: Check the declaration of sinhf.
2267         * doc/posix-functions/sinhf.texi: Mention the new module.
2268
2269         sinh: Use a .m4 file.
2270         * m4/sinh.m4: New file.
2271         * modules/sinh (Files): Add it.
2272         (configure.ac): Just invoke gl_FUNC_SINH.
2273
2274 2011-10-08  Bruno Haible  <bruno@clisp.org>
2275
2276         Tests for module 'atan2f'.
2277         * modules/atan2f-tests: New file.
2278         * tests/test-atan2f.c: New file.
2279
2280         New module 'atan2f'.
2281         * lib/math.in.h (atan2f): New declaration.
2282         * lib/atan2f.c: New file.
2283         * m4/atan2f.m4: New file.
2284         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2286         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2287         * modules/atan2f: New file.
2288         * tests/test-math-c++.cc: Check the declaration of atan2f.
2289         * doc/posix-functions/atan2f.texi: Mention the new module.
2290
2291         atan2: Use a .m4 file.
2292         * m4/atan2.m4: New file.
2293         * modules/atan2 (Files): Add it.
2294         (configure.ac): Just invoke gl_FUNC_ATAN2.
2295
2296 2011-10-08  Bruno Haible  <bruno@clisp.org>
2297
2298         Tests for module 'atanf'.
2299         * modules/atanf-tests: New file.
2300         * tests/test-atanf.c: New file.
2301
2302         New module 'atanf'.
2303         * lib/math.in.h (atanf): New declaration.
2304         * lib/atanf.c: New file.
2305         * m4/atanf.m4: New file.
2306         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2308         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2309         * modules/atanf: New file.
2310         * tests/test-math-c++.cc: Check the declaration of atanf.
2311         * doc/posix-functions/atanf.texi: Mention the new module.
2312
2313         atan: Use a .m4 file.
2314         * m4/atan.m4: New file.
2315         * modules/atan (Files): Add it.
2316         (configure.ac): Just invoke gl_FUNC_ATAN.
2317
2318 2011-10-08  Bruno Haible  <bruno@clisp.org>
2319
2320         Tests for module 'acosf'.
2321         * modules/acosf-tests: New file.
2322         * tests/test-acosf.c: New file.
2323
2324         New module 'acosf'.
2325         * lib/math.in.h (acosf): New declaration.
2326         * lib/acosf.c: New file.
2327         * m4/acosf.m4: New file.
2328         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2330         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2331         * modules/acosf: New file.
2332         * tests/test-math-c++.cc: Check the declaration of acosf.
2333         * doc/posix-functions/acosf.texi: Mention the new module.
2334
2335         acos: Use a .m4 file.
2336         * m4/acos.m4: New file.
2337         * modules/acos (Files): Add it.
2338         (configure.ac): Just invoke gl_FUNC_ACOS.
2339
2340 2011-10-08  Bruno Haible  <bruno@clisp.org>
2341
2342         Tests for module 'asinf'.
2343         * modules/asinf-tests: New file.
2344         * tests/test-asinf.c: New file.
2345
2346         New module 'asinf'.
2347         * lib/math.in.h (asinf): New declaration.
2348         * lib/asinf.c: New file.
2349         * m4/asinf.m4: New file.
2350         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2352         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2353         * modules/asinf: New file.
2354         * tests/test-math-c++.cc: Check the declaration of asinf.
2355         * doc/posix-functions/asinf.texi: Mention the new module.
2356
2357         asin: Use a .m4 file.
2358         * m4/asin.m4: New file.
2359         * modules/asin (Files): Add it.
2360         (configure.ac): Just invoke gl_FUNC_ASIN.
2361
2362 2011-10-08  Bruno Haible  <bruno@clisp.org>
2363
2364         Tests for module 'tanf'.
2365         * modules/tanf-tests: New file.
2366         * tests/test-tanf.c: New file.
2367
2368         New module 'tanf'.
2369         * lib/math.in.h (tanf): New declaration.
2370         * lib/tanf.c: New file.
2371         * m4/tanf.m4: New file.
2372         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2374         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2375         * modules/tanf: New file.
2376         * tests/test-math-c++.cc: Check the declaration of tanf.
2377         * doc/posix-functions/tanf.texi: Mention the new module.
2378
2379         tan: Use a .m4 file.
2380         * m4/tan.m4: New file.
2381         * modules/tan (Files): Add it.
2382         (configure.ac): Just invoke gl_FUNC_TAN.
2383
2384 2011-10-08  Bruno Haible  <bruno@clisp.org>
2385
2386         Tests for module 'cosf'.
2387         * modules/cosf-tests: New file.
2388         * tests/test-cosf.c: New file.
2389
2390         New module 'cosf'.
2391         * lib/math.in.h (cosf): New declaration.
2392         * lib/cosf.c: New file.
2393         * m4/cosf.m4: New file.
2394         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2396         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2397         * modules/cosf: New file.
2398         * tests/test-math-c++.cc: Check the declaration of cosf.
2399         * doc/posix-functions/cosf.texi: Mention the new module.
2400
2401         cos: Use a .m4 file.
2402         * m4/cos.m4: New file.
2403         * modules/cos (Files): Add it.
2404         (configure.ac): Just invoke gl_FUNC_COS.
2405
2406 2011-10-08  Bruno Haible  <bruno@clisp.org>
2407
2408         Tests for module 'sinf'.
2409         * modules/sinf-tests: New file.
2410         * tests/test-sinf.c: New file.
2411
2412         New module 'sinf'.
2413         * lib/math.in.h (sinf): New declaration.
2414         * lib/sinf.c: New file.
2415         * m4/sinf.m4: New file.
2416         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2418         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2419         * modules/sinf: New file.
2420         * tests/test-math-c++.cc: Check the declaration of sinf.
2421         * doc/posix-functions/sinf.texi: Mention the new module.
2422
2423         sin: Use a .m4 file.
2424         * m4/sin.m4: New file.
2425         * modules/sin (Files): Add it.
2426         (configure.ac): Just invoke gl_FUNC_SIN.
2427
2428 2011-10-08  Bruno Haible  <bruno@clisp.org>
2429
2430         Tests for module 'powf'.
2431         * modules/powf-tests: New file.
2432         * tests/test-powf.c: New file.
2433
2434         New module 'powf'.
2435         * lib/math.in.h (powf): New declaration.
2436         * lib/powf.c: New file.
2437         * m4/powf.m4: New file.
2438         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2440         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2441         * modules/powf: New file.
2442         * tests/test-math-c++.cc: Check the declaration of powf.
2443         * doc/posix-functions/powf.texi: Mention the new module.
2444
2445         pow: Use a .m4 file.
2446         * m4/pow.m4: New file.
2447         * modules/pow (Files): Add it.
2448         (configure.ac): Just invoke gl_FUNC_POW.
2449
2450 2011-10-08  Bruno Haible  <bruno@clisp.org>
2451
2452         Tests for module 'log10f'.
2453         * modules/log10f-tests: New file.
2454         * tests/test-log10f.c: New file.
2455
2456         New module 'log10f'.
2457         * lib/math.in.h (log10f): New declaration.
2458         * lib/log10f.c: New file.
2459         * m4/log10f.m4: New file.
2460         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2462         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2463         * modules/log10f: New file.
2464         * tests/test-math-c++.cc: Check the declaration of log10f.
2465         * doc/posix-functions/log10f.texi: Mention the new module.
2466
2467         log10: Use a .m4 file.
2468         * m4/log10.m4: New file.
2469         * modules/log10 (Files): Add it.
2470         (configure.ac): Just invoke gl_FUNC_LOG10.
2471
2472 2011-10-08  Bruno Haible  <bruno@clisp.org>
2473
2474         Tests for module 'logf'.
2475         * modules/logf-tests: New file.
2476         * tests/test-logf.c: New file.
2477
2478         New module 'logf'.
2479         * lib/math.in.h (logf): New declaration.
2480         * lib/logf.c: New file.
2481         * m4/logf.m4: New file.
2482         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2484         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2485         * modules/logf: New file.
2486         * tests/test-math-c++.cc: Check the declaration of logf.
2487         * doc/posix-functions/logf.texi: Mention the new module.
2488
2489         log: Use a .m4 file.
2490         * m4/log.m4: New file.
2491         * modules/log (Files): Add it.
2492         (configure.ac): Just invoke gl_FUNC_LOG.
2493
2494 2011-10-08  Bruno Haible  <bruno@clisp.org>
2495
2496         Tests for module 'expf'.
2497         * modules/expf-tests: New file.
2498         * tests/test-expf.c: New file.
2499
2500         New module 'expf'.
2501         * lib/math.in.h (expf): New declaration.
2502         * lib/expf.c: New file.
2503         * m4/expf.m4: New file.
2504         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2506         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2507         * modules/expf: New file.
2508         * tests/test-math-c++.cc: Check the declaration of expf.
2509         * doc/posix-functions/expf.texi: Mention the new module.
2510
2511         exp: Use a .m4 file.
2512         * m4/exp.m4: New file.
2513         * modules/exp (Files): Add it.
2514         (configure.ac): Just invoke gl_FUNC_EXP.
2515
2516 2011-10-08  Bruno Haible  <bruno@clisp.org>
2517
2518         Tests for module 'sqrtf'.
2519         * modules/sqrtf-tests: New file.
2520         * tests/test-sqrtf.c: New file.
2521
2522         New module 'sqrtf'.
2523         * lib/math.in.h (sqrtf): New declaration.
2524         * lib/sqrtf.c: New file.
2525         * m4/sqrtf.m4: New file.
2526         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2528         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2529         * modules/sqrtf: New file.
2530         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2531         * doc/posix-functions/sqrtf.texi: Mention the new module.
2532
2533 2011-10-08  Bruno Haible  <bruno@clisp.org>
2534
2535         Tests: Avoid link failures w.r.t. libintl.
2536         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2537         $(LIBINTL).
2538         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2539         $(LIBINTL).
2540         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2541         against $(LIBINTL).
2542         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2543         $(LIBINTL).
2544         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2545         $(LIBINTL).
2546         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2547
2548 2011-10-08  Bruno Haible  <bruno@clisp.org>
2549
2550         pow tests: Defeat compiler optimizations.
2551         * tests/test-pow.c (main): Assign arguments to x and y before use.
2552
2553 2011-10-08  Bruno Haible  <bruno@clisp.org>
2554
2555         gnulib-tool: Improve last commit.
2556         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2557         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2558         ignore dependencies that are not among the modules list.
2559
2560 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         gnulib-tool: don't follow dependencies to avoided modules
2563         This fixes a bug that is related to the previous one.
2564         * gnulib-tool (func_modules_transitive_closure)
2565         (func_emit_autoconf_snippets):
2566         Check whether a dependency is acceptable before using it.
2567         (--extract-dependencies): Report an error if --avoid is also used,
2568         since this combination of options is not yet supported.
2569
2570         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2571         Problem reported by Peter Dyballa in
2572         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2573         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2574         when echoing "$condition".
2575
2576 2011-10-07  Bruno Haible  <bruno@clisp.org>
2577
2578         Fix documentation about math functions on MacOS X.
2579         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2580         MacOS X 10.5.
2581         * doc/posix-functions/fdim.texi: Likewise.
2582         * doc/posix-functions/feclearexcept.texi: Likewise.
2583         * doc/posix-functions/fegetenv.texi: Likewise.
2584         * doc/posix-functions/fegetround.texi: Likewise.
2585         * doc/posix-functions/feholdexcept.texi: Likewise.
2586         * doc/posix-functions/feraiseexcept.texi: Likewise.
2587         * doc/posix-functions/fesetenv.texi: Likewise.
2588         * doc/posix-functions/fesetround.texi: Likewise.
2589         * doc/posix-functions/fetestexcept.texi: Likewise.
2590         * doc/posix-functions/feupdateenv.texi: Likewise.
2591         * doc/posix-functions/fmax.texi: Likewise.
2592         * doc/posix-functions/fmin.texi: Likewise.
2593         * doc/posix-functions/log2.texi: Likewise.
2594         * doc/posix-functions/modff.texi: Likewise.
2595         * doc/posix-functions/nan.texi: Likewise.
2596         * doc/posix-functions/nanf.texi: Likewise.
2597         * doc/posix-functions/nextafterf.texi: Likewise.
2598         * doc/posix-functions/remquo.texi: Likewise.
2599
2600 2011-10-07  Bruno Haible  <bruno@clisp.org>
2601
2602         modff: Drop assumption about library that defines modff.
2603         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2604         AC_CHECK_FUNCS.
2605         * modules/modff (Files): Add m4/mathfunc.m4.
2606
2607 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2608
2609         raise tests: Avoid a GCC warning.
2610         * tests/test-raise.c (handler): Use _Noreturn.
2611
2612 2011-10-07  Bruno Haible  <bruno@clisp.org>
2613
2614         Tests for module 'ldexpf'.
2615         * modules/ldexpf-tests: New file.
2616         * tests/test-ldexpf.c: New file.
2617
2618         New module 'ldexpf'.
2619         * lib/math.in.h (ldexpf): New declaration.
2620         * lib/ldexpf.c: New file.
2621         * m4/ldexpf.m4: New file.
2622         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2624         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2625         * modules/ldexpf: New file.
2626         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2627         * doc/posix-functions/ldexpf.texi: Mention the new module.
2628
2629 2011-10-06  Bruno Haible  <bruno@clisp.org>
2630
2631         frexpf: Work around problems on IRIX and mingw.
2632         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2634         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2635         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2636         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2637         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2638         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2639
2640 2011-10-06  Bruno Haible  <bruno@clisp.org>
2641
2642         fabsf: Drop assumption about library that defines fabsf.
2643         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2644         AC_CHECK_FUNCS.
2645         * modules/fabsf (Files): Add m4/mathfunc.m4.
2646
2647 2011-10-06  Bruno Haible  <bruno@clisp.org>
2648
2649         frexpf: Drop assumption about library that defines frexpf.
2650         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2651         'int *', 'float *', 'long double *', 'float', 'long double'.
2652         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2653         AC_CHECK_FUNCS.
2654         * modules/frexpf (Files): Add m4/mathfunc.m4.
2655
2656         Tests for module 'frexpf'.
2657         * modules/frexpf-tests: New file.
2658         * tests/test-frexpf.c: New file.
2659
2660         New module 'frexpf'.
2661         * lib/math.in.h (frexpf): New declaration.
2662         * lib/frexpf.c: New file.
2663         * m4/frexpf.m4: New file.
2664         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2666         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2667         * modules/frexpf: New file.
2668         * tests/test-math-c++.cc: Check the declaration of frexpf.
2669         * doc/posix-functions/frexpf.texi: Mention the new module.
2670
2671 2011-10-06  Bruno Haible  <bruno@clisp.org>
2672
2673         math: Sort function declarations of math.in.h.
2674         * lib/math.in.h (frexp, logb): Move declarations.
2675
2676 2011-10-05  Bruno Haible  <bruno@clisp.org>
2677
2678         Tests for module 'modff'.
2679         * modules/modff-tests: New file.
2680         * tests/test-modff.c: New file.
2681
2682         New module 'modff'.
2683         * lib/math.in.h (modff): New declaration.
2684         * lib/modff.c: New file.
2685         * m4/modff.m4: New file.
2686         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2688         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2689         * modules/modff: New file.
2690         * tests/test-math-c++.cc: Check the declaration of modff.
2691         * doc/posix-functions/modff.texi: Mention the new module.
2692
2693         modf tests: Make test sharper.
2694         * tests/test-modf.c (main): Strengthen upper bound.
2695
2696         modf: Use a .m4 file.
2697         * m4/modf.m4: New file.
2698         * modules/modf (Files): Add it.
2699         (configure.ac): Just invoke gl_FUNC_MODF.
2700
2701 2011-10-05  Bruno Haible  <bruno@clisp.org>
2702
2703         Tests for module 'fmodf'.
2704         * modules/fmodf-tests: New file.
2705         * tests/test-fmodf.c: New file.
2706
2707         New module 'fmodf'.
2708         * lib/math.in.h (fmodf): New declaration.
2709         * lib/fmodf.c: New file.
2710         * m4/fmodf.m4: New file.
2711         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2713         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2714         * modules/fmodf: New file.
2715         * tests/test-math-c++.cc: Check the declaration of fmodf.
2716         * doc/posix-functions/fmodf.texi: Mention the new module.
2717
2718         fmod: Use a .m4 file.
2719         * m4/fmod.m4: New file.
2720         * modules/fmod (Files): Add it.
2721         (configure.ac): Just invoke gl_FUNC_FMOD.
2722
2723 2011-10-05  Bruno Haible  <bruno@clisp.org>
2724
2725         Tests for module 'fabsf'.
2726         * modules/fabsf-tests: New file.
2727         * tests/test-fabsf.c: New file.
2728
2729         New module 'fabsf'.
2730         * lib/math.in.h (fabsf): New declaration.
2731         * lib/fabsf.c: New file.
2732         * m4/fabsf.m4: New file.
2733         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2735         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2736         * modules/fabsf: New file.
2737         * tests/test-math-c++.cc: Check the declaration of fabsf.
2738         * doc/posix-functions/fabsf.texi: Mention the new module.
2739
2740         fabs: Use a .m4 file.
2741         * m4/fabs.m4: New file.
2742         * modules/fabs (Files): Add it.
2743         (configure.ac): Just invoke gl_FUNC_FABS.
2744
2745 2011-10-05  Jim Meyering  <meyering@redhat.com>
2746
2747         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2748         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2749         ls -lL regression introduced in coreutils-8.12, it does so at the
2750         cost of an additional stat call in the common case.  Besides, now
2751         that the kernel change that prompted commit 95f7c57f has been reverted
2752         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2753         we have no use for commit 95f7c57f, "file-has-acl: use
2754         acl_extended_file_nofollow if available".
2755
2756 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2757
2758         file-has-acl: revert unintended change in behavior of ls -L
2759         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2760         derived from...
2761         (file_has_acl): ...code here.  Call it.
2762         This problem was introduced with 2011-07-22 commit 95f7c57f,
2763         "file-has-acl: use acl_extended_file_nofollow if available".
2764         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2765
2766 2011-10-03  Bruno Haible  <bruno@clisp.org>
2767
2768         poll: Avoid link errors on MSVC.
2769         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2770         * modules/poll (Depends-on): Add sockets.
2771         (Link): New section.
2772         * NEWS: Mention the change.
2773         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2774         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2775         $(LIB_POLL) instead of $(LIBSOCKET).
2776
2777 2011-10-03  Bruno Haible  <bruno@clisp.org>
2778
2779         sys_select tests: Fix link error on MSVC 9.
2780         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2781         with $(LIB_SELECT) instead of $(LIBSOCKET).
2782
2783 2011-10-03  Bruno Haible  <bruno@clisp.org>
2784
2785         sys_select: Fix compilation error on mingw.
2786         * lib/sys_select.in.h: On native Windows, include <io.h>.
2787
2788 2011-10-03  Bruno Haible  <bruno@clisp.org>
2789
2790         wmemset: Support for MSVC.
2791         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2792         whether wmemset() exists.
2793
2794 2011-10-03  Bruno Haible  <bruno@clisp.org>
2795
2796         wmemmove: Support for MSVC.
2797         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2798         whether wmemmove() exists.
2799
2800 2011-10-03  Bruno Haible  <bruno@clisp.org>
2801
2802         wmemcpy: Support for MSVC.
2803         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2804         whether wmemcpy() exists.
2805
2806 2011-10-03  Bruno Haible  <bruno@clisp.org>
2807
2808         wmemcmp: Support for MSVC.
2809         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2810         whether wmemcmp() exists.
2811
2812 2011-10-03  Bruno Haible  <bruno@clisp.org>
2813
2814         wmemchr: Support for MSVC.
2815         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2816         whether wmemchr() exists.
2817
2818 2011-10-03  Bruno Haible  <bruno@clisp.org>
2819
2820         glthread/*, strsignal: Support for MSVC.
2821         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2822         including <winsock.h> on MSVC 9.
2823         * lib/glthread/lock.h: Likewise.
2824         * lib/glthread/thread.h: Likewise.
2825         * lib/glthread/tls.h: Likewise.
2826         * lib/glthread/yield.h: Likewise.
2827         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2828         if HAVE_UNISTD_H is false.
2829         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2830
2831 2011-10-03  Bruno Haible  <bruno@clisp.org>
2832
2833         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2834         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2835         Set to 100000.
2836
2837 2011-10-03  Bruno Haible  <bruno@clisp.org>
2838
2839         acl: Fix specification.
2840         * lib/file-has-acl.c (file_has_acl): Fix specification.
2841
2842 2011-10-03  Bruno Haible  <bruno@clisp.org>
2843
2844         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2845         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2846         (compute_curr_prefix, shared_library_fullname,
2847         find_shared_library_fullname, get_shared_library_fullname, relocate):
2848         Use it together with PIC && INSTALLDIR.
2849         Reported by <jojelino@gmail.com>
2850         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2851
2852 2011-10-01  Jim Meyering  <meyering@redhat.com>
2853
2854         maint.mk: adjust a release-related rule not to require use of gzip
2855         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2856         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2857         projects that build only .tar.xz files.  Also fix an erroneous test.
2858
2859         test-linkat: don't leave behind a temporary file
2860         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2861         Otherwise, coreutils' "make distcheck" would fail with this:
2862           Only in /c/cu/tests/torture/coreutils/test/\
2863             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2864           make[2]: *** [my-distcheck] Error 1
2865
2866         float, math: add omitted file
2867         * lib/itold.c: Add file, required for yesterday's float change.
2868
2869 2011-10-01  Bruno Haible  <bruno@clisp.org>
2870
2871         isinf: Fix for OpenBSD/x86.
2872         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2873         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2874         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2875
2876 2011-10-01  Bruno Haible  <bruno@clisp.org>
2877
2878         isfinite: Fix syntax error in configure test.
2879         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2880
2881         isfinite: Fix typo.
2882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2883         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2884
2885 2011-10-01  Bruno Haible  <bruno@clisp.org>
2886
2887         nonblocking tests: Fix test failure on Linux/IA-64.
2888         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2889         Set to 270000.
2890
2891 2011-10-01  Bruno Haible  <bruno@clisp.org>
2892
2893         mkfifoat tests: Fix a test failure on mingw.
2894         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2895         with error ENOSYS.
2896
2897 2011-09-30  Bruno Haible  <bruno@clisp.org>
2898
2899         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2900         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2901         'long double'. Set REPLACE_ITOLD.
2902         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2903         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2904         * lib/itold.c: New file.
2905         * modules/float (Files): Add lib/itold.c.
2906         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2907         (Makefile.am): Substitute REPLACE_ITOLD.
2908         * modules/math (Depends-on): Add float.
2909         (Makefile.am): Substitute REPLACE_ITOLD.
2910         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2911         * doc/posix-headers/math.texi: Likewise.
2912         * doc/posix-functions/logl.texi: Likewise.
2913
2914 2011-09-30  Bruno Haible  <bruno@clisp.org>
2915
2916         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2917         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2918         Set to 140000.
2919
2920 2011-09-30  Bruno Haible  <bruno@clisp.org>
2921
2922         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2923         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2924         invocation, say "right after AC_PROG_CC_STDC", not "right after
2925         AC_PROG_CC".
2926         Reported by Gary V. Vaughan <gary@gnu.org>.
2927
2928 2011-09-30  Bruno Haible  <bruno@clisp.org>
2929
2930         Centralize C99 requirement.
2931         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2932         * modules/stdarg (configure.ac-early): Invoke it instead of
2933         AC_PROG_CC_STDC.
2934         Reported by Gary V. Vaughan and Paul Eggert.
2935
2936 2011-09-29  Bruno Haible  <bruno@clisp.org>
2937
2938         float: Fix LDBL_MAX value on Linux/PowerPC.
2939         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2940         on Linux/PowerPC.
2941         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2942         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2943         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2944         platform.
2945         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2946
2947 2011-09-29  Bruno Haible  <bruno@clisp.org>
2948
2949         doc: Improve doc about gl_EARLY.
2950         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2951         AC_PROG_CC_STDC invocation.
2952         Reported by Gary V. Vaughan <gary@gnu.org>.
2953
2954 2011-09-28  Bruno Haible  <bruno@clisp.org>
2955
2956         fgetc, fputc, fread, fwrite tests: Fix link error.
2957         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2958         on non-MSVC platforms.
2959         * tests/test-fputc.c (main): Likewise.
2960         * tests/test-fread.c (main): Likewise.
2961         * tests/test-fwrite.c (main): Likewise.
2962         Reported by Jim Meyering.
2963
2964 2011-09-27  Bruno Haible  <bruno@clisp.org>
2965
2966         fputc, fwrite tests: Avoid test failure on MSVC.
2967         * tests/test-fgetc.c: Include msvc-inval.h.
2968         (main): Invoke gl_msvc_inval_ensure_handler.
2969         * tests/test-fputc.c: Include msvc-inval.h.
2970         (main): Invoke gl_msvc_inval_ensure_handler.
2971         * tests/test-fread.c: Include msvc-inval.h.
2972         (main): Invoke gl_msvc_inval_ensure_handler.
2973         * tests/test-fwrite.c: Include msvc-inval.h.
2974         (main): Invoke gl_msvc_inval_ensure_handler.
2975         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2976         * modules/fputc-tests (Depends-on): Likewise.
2977         * modules/fread-tests (Depends-on): Likewise.
2978         * modules/fwrite-tests (Depends-on): Likewise.
2979
2980 2011-09-27  Bruno Haible  <bruno@clisp.org>
2981
2982         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2983         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2984         (raise): Remove older, duplicated declaration.
2985         (_gl_raise_SIGPIPE): New declaration.
2986         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2987         (rpl_raise): Remove function.
2988         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2989         a gnulib-defined SIGPIPE here.
2990         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2991         'sigprocmask' has detected missing signal-blocking and the module
2992         'sigpipe' is enabled.
2993         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2994
2995 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2996
2997         base64-tests: avoid memory leak
2998         * tests/test-base64.c (main): Plug memory leak.
2999
3000         base32: new module
3001         * modules/base32: New module.
3002         * lib/base32.c: New file.
3003         * lib/base32.h: Likewise.
3004         * m4/base32.m4: Likewise.
3005         * modules/base32-tests: New test.
3006         * tests/test-base32.c: Likewise.
3007         * MODULES.html.sh (Misc): Mention it.
3008
3009 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3010
3011         gnulib: use more-standard license notice wording
3012         * gnulib-tool (func_emit_copyright_notice): When emitting a
3013         license notice into a file, use the standard wording as suggested
3014         by the current information for GNU maintainers, except say "file"
3015         rather than "program".  The new wording gives a license version
3016         number, which addresses an issue raised by Glenn Morris in
3017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3018         * m4/onceonly.m4: Use that same wording here, too.
3019
3020         dup2: minor simplification
3021         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3022         as lib/dup2.c no longer uses 'inline'.
3023
3024 2011-09-25  Bruno Haible  <bruno@clisp.org>
3025
3026         strings: Fix compilation error on MSVC.
3027         * lib/strings.in.h: Include <stddef.h> for size_t.
3028
3029 2011-09-25  Bruno Haible  <bruno@clisp.org>
3030
3031         fflush et al.: Document limitation on MSVC.
3032         * doc/posix-functions/fflush.texi: Document possible crash in handling
3033         mode other than DEFAULT_HANDLING.
3034         * doc/posix-functions/fgetc.texi: Likewise.
3035         * doc/posix-functions/fputc.texi: Likewise.
3036         * doc/posix-functions/fread.texi: Likewise.
3037         * doc/posix-functions/fwrite.texi: Likewise.
3038
3039 2011-09-25  Bruno Haible  <bruno@clisp.org>
3040
3041         msvc-inval: Allow three invalid parameter handling modes.
3042         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3043         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3044         macros.
3045         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3046         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3047         SANE_LIBRARY_HANDLING as a no-op.
3048         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3049         <stdlib.h>.
3050         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3051
3052 2011-09-25  Bruno Haible  <bruno@clisp.org>
3053
3054         msvc-inval: Make handler multithread-safe.
3055         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3056         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3057         declarations.
3058         (gl_msvc_inval_current): New declaration.
3059         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3060         Operate on the structure returned by gl_msvc_inval_current().
3061         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3062         Remove varaiables.
3063         (tls_index, tls_initialized): New variables.
3064         (not_per_thread): New variable.
3065         (gl_msvc_inval_current): New function.
3066         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3067         returned by gl_msvc_inval_current().
3068
3069 2011-09-25  Bruno Haible  <bruno@clisp.org>
3070
3071         msvc-inval: Install handler globally.
3072         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3073         !_MSC_VER.
3074         (gl_msvc_invalid_parameter_handler): Remove declaration.
3075         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3076         declarations.
3077         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3078         Install the handler globally, don't uninstall it.
3079         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3080         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3081         currently valid, call RaiseException instead.
3082         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3083         for !_MSC_VER.
3084
3085 2011-09-25  Bruno Haible  <bruno@clisp.org>
3086
3087         strerror_r-posix: Fix for MSVC 9.
3088         * lib/strerror_r.c (local_snprintf): New function.
3089         (snprintf): Define to local_snprintf, not to _snprintf.
3090
3091 2011-09-25  Bruno Haible  <bruno@clisp.org>
3092
3093         ftruncate: Support for MSVC 9.
3094         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3095         (chsize_nothrow): New function.
3096         (chsize): Redefine as a macro.
3097         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3098         * modules/ftruncate (Depends-on): Add msvc-inval.
3099
3100 2011-09-25  Bruno Haible  <bruno@clisp.org>
3101
3102         New module 'fstat'.
3103         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3104         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3105         * lib/fchdir.c (rpl_fstat): Remove function.
3106         * m4/fstat.m4: New file.
3107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3108         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3109         declared.
3110         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3111         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3112         * modules/fstat: New file.
3113         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3114         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3115         is set.
3116         * doc/posix-functions/fstat.texi: Mention the new module and the
3117         problem on MSVC.
3118         * NEWS: Mention the change.
3119         * modules/acl (Depends-on): Add fstat.
3120         * modules/chdir-safer (Depends-on): Likewise.
3121         * modules/chown (Depends-on): Likewise.
3122         * modules/copy-file (Depends-on): Likewise.
3123         * modules/fchdir (Depends-on): Likewise.
3124         * modules/fdopendir (Depends-on): Likewise.
3125         * modules/fopen (Depends-on): Likewise.
3126         * modules/fts (Depends-on): Likewise.
3127         * modules/getcwd (Depends-on): Likewise.
3128         * modules/isapipe (Depends-on): Likewise.
3129         * modules/linkat (Depends-on): Likewise.
3130         * modules/lseek (Depends-on): Likewise.
3131         * modules/mkdir-p (Depends-on): Likewise.
3132         * modules/open (Depends-on): Likewise.
3133         * modules/openat (Depends-on): Likewise.
3134         * modules/read-file (Depends-on): Likewise.
3135         * modules/renameat (Depends-on): Likewise.
3136         * modules/utimens (Depends-on): Likewise.
3137
3138 2011-09-25  Bruno Haible  <bruno@clisp.org>
3139
3140         linkat: Fix compilation on MSVC 9.
3141         * lib/linkat.c: Don't include <stdint.h>.
3142
3143 2011-09-25  Bruno Haible  <bruno@clisp.org>
3144
3145         fclose: Support for MSVC 9.
3146         * lib/fclose.c: Include msvc-inval.h.
3147         (fclose_nothrow): New function.
3148         (rpl_fclose): Use it.
3149         * modules/fclose (Depends-on): Add msvc-inval.
3150         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3151
3152 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3153
3154         dup2: minor simplifications
3155         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3156         that it's a performance win.
3157         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3158         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3159
3160 2011-09-24  Jim Meyering  <meyering@redhat.com>
3161
3162         test-futimens: avoid a warning from gcc -Wshadow
3163         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3164         to avoid a shadowing warning.
3165
3166 2011-09-24  Bruno Haible  <bruno@clisp.org>
3167
3168         fdopen: Support for MSVC 9.
3169         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3170         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3171         * lib/fdopen.c: Include msvc-inval.h.
3172         (fdopen_nothrow): New function.
3173         (rpl_fdopen): Use it.
3174         * modules/fdopen (Depends-on): Add msvc-inval.
3175         * modules/fclose-tests (Depends-on): Add fdopen.
3176         * modules/fflush-tests (Depends-on): Likewise.
3177         * modules/fgetc-tests (Depends-on): Likewise.
3178         * modules/fputc-tests (Depends-on): Likewise.
3179         * modules/fread-tests (Depends-on): Likewise.
3180         * modules/freopen-tests (Depends-on): Likewise.
3181         * modules/fseeko-tests (Depends-on): Likewise.
3182         * modules/ftello-tests (Depends-on): Likewise.
3183         * modules/fwrite-tests  (Depends-on): Likewise.
3184         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3185
3186 2011-09-24  Bruno Haible  <bruno@clisp.org>
3187
3188         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3189         * modules/fgetc-tests (Depends-on): Add unistd.
3190         * modules/fputc-tests (Depends-on): Likewise.
3191         * modules/fread-tests (Depends-on): Likewise.
3192         * modules/fwrite-tests (Depends-on): Likewise.
3193
3194 2011-09-24  Bruno Haible  <bruno@clisp.org>
3195
3196         dup: Simplify autoconf test.
3197         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3198         on gl_MSVC_INVAL's result.
3199
3200 2011-09-24  Bruno Haible  <bruno@clisp.org>
3201
3202         Tests for function fwrite().
3203         * modules/fwrite-tests: New file.
3204         * tests/test-fwrite.c: New file.
3205         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3206
3207         Tests for function fread().
3208         * modules/fread-tests: New file.
3209         * tests/test-fread.c: New file.
3210         * modules/stdio-tests (Depends-on): Add fread-tests.
3211
3212         Activate fputc tests.
3213         * modules/stdio-tests (Depends-on): Add fputc-tests.
3214
3215         Enhance fgetc, fputc tests.
3216         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3217         * tests/test-fputc.c (main): Likewise.
3218
3219 2011-09-24  Bruno Haible  <bruno@clisp.org>
3220
3221         write: Support for MSVC 9.
3222         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3223         is not 1.
3224         * lib/write.c (write_nothrow): New function.
3225         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3226         not 1. Use write_nothrow.
3227         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3228         invalid parameter handler.
3229         (gl_PREREQ_WRITE): New macro.
3230         * modules/write (Depends-on): Add msvc-inval.
3231         (configure.ac): Invoke gl_PREREQ_WRITE.
3232         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3233
3234 2011-09-24  Bruno Haible  <bruno@clisp.org>
3235
3236         read: Fix last commit.
3237         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3238
3239 2011-09-24  Bruno Haible  <bruno@clisp.org>
3240
3241         dup2: Fix last commit.
3242         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3243         (rpl_dup2): Disable fcntl workaround on native Windows.
3244
3245         sigprocmask: Make code safer.
3246         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3247         section that changes macro definitions for this compilation unit.
3248
3249 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3250
3251         dup2: clarify by coalescing Windows-specific material
3252         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3253         "msvc-nothrow.h"' to the Windows-specific section, so that the
3254         Emacs source need not contain these include files.
3255         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3256         Windows-specific fixes into this function rather than just the
3257         nothrow fix, as this shortens and clarifies the code.  Always
3258         define as a function, as that's a bit cleaner than having it be
3259         sometimes a function and sometimes a macro.
3260         (rpl_dup2): Move the Windows-specific stuff out of here and into
3261         ms_windows_dup2.  Don't protect the Haiku-related fix with
3262         "#if !defined __linux__", as the same code also works around
3263         a Linux kernel bug, and it doesn't add any system calls on any
3264         platform.  Add comment about FreeBSD 6.1.
3265
3266         sigprocmask: move #include directive
3267         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3268         Windows-specific section, so that the Emacs source need not
3269         contain msvc-inval.h.
3270
3271 2011-09-23  Bruno Haible  <bruno@clisp.org>
3272
3273         read: Support for MSVC 9.
3274         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3275         is not 1.
3276         * lib/read.c (read_nothrow): New function.
3277         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3278         read_nothrow.
3279         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3280         invalid parameter handler.
3281         (gl_PREREQ_READ): New macro.
3282         * modules/read (Depends-on): Add msvc-inval.
3283         (configure.ac): Invoke gl_PREREQ_READ.
3284         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3285
3286 2011-09-23  Bruno Haible  <bruno@clisp.org>
3287
3288         close: Support for MSVC 9.
3289         * lib/close.c: Include <errno.h>, msvc-inval.h.
3290         (close_nothrow): New function.
3291         (rpl_close): Use it.
3292         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3293         invalid parameter handler.
3294         * modules/close (Depends-on): Add msvc-inval.
3295         * modules/dup2-tests (Depends-on): Add close.
3296         * modules/dup3-tests (Depends-on): Likewise.
3297         * modules/fcntl-tests (Depends-on): Likewise.
3298         * modules/spawn-pipe-tests (Depends-on): Likewise.
3299         * modules/unistd-safer-tests (Depends-on): Likewise.
3300         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3301
3302 2011-09-23  Bruno Haible  <bruno@clisp.org>
3303
3304         New module 'dup'.
3305         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3306         Allow replacement.
3307         * lib/dup.c: New file.
3308         * lib/fchdir.c (rpl_dup): Remove function.
3309         * m4/dup.m4: New file.
3310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3311         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3312         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3313         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3314         * modules/dup: New file.
3315         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3316         'dup' module is in use.
3317         * modules/fdopendir (Depends-on): Add dup.
3318         * modules/fdutimensat-tests (Depends-on): Likewise.
3319         * modules/fts (Depends-on): Likewise.
3320         * modules/futimens-tests (Depends-on): Likewise.
3321         * modules/posix_spawnp-tests (Depends-on): Likewise.
3322         * modules/unistd-safer-tests (Depends-on): Likewise.
3323         * modules/utimens-tests (Depends-on): Likewise.
3324         * doc/posix-functions/dup.texi: Mention the new module and the problem
3325         on MSVC.
3326
3327 2011-09-23  Bruno Haible  <bruno@clisp.org>
3328
3329         getdtablesize: Support for MSVC 9.
3330         * lib/getdtablesize.c: Include msvc-inval.h.
3331         (_setmaxstdio_nothrow): New function.
3332         (_setmaxstdio): Redefine it.
3333         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3334         * modules/getdtablesize (Depends-on): Add msvc-inval.
3335         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3336
3337 2011-09-23  Bruno Haible  <bruno@clisp.org>
3338
3339         signal-h: Rename from signal.
3340         * modules/signal-h: Renamed from modules/signal.
3341         * modules/pthread_sigmask (Depends-on): Update.
3342         * modules/raise (Depends-on): Likewise.
3343         * modules/sigaction (Depends-on): Likewise.
3344         * modules/sigpipe (Depends-on): Likewise.
3345         * modules/sigprocmask (Depends-on): Likewise.
3346         * modules/sys_select (Depends-on): Likewise.
3347         * modules/signal-h-tests: Renamed from modules/signal-tests.
3348         (Files, Depends-on, Makefile.am): Update.
3349         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3350         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3351         (Files, Makefile.am): Update.
3352         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3353         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3354         * modules/signal: New placeholder file.
3355         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3356         * doc/posix-headers/signal.texi: Update.
3357         * NEWS: Mention the change.
3358
3359 2011-09-23  Bruno Haible  <bruno@clisp.org>
3360
3361         sigprocmask: Avoid crashes through signal() on MSVC 9.
3362         * lib/sigprocmask.c: Include msvc-inval.h.
3363         (signal_nothrow): New function.
3364         (signal): Redefine it.
3365         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3366         * modules/sigprocmask (Depends-on): Add msvc-inval.
3367         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3368
3369 2011-09-23  Bruno Haible  <bruno@clisp.org>
3370
3371         Tests for module 'raise'.
3372         * modules/raise-tests: New file.
3373         * tests/test-raise.c: New file.
3374
3375         raise: Support for MSVC.
3376         * lib/signal.in.h (raise): New declaration.
3377         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3378         for native Windows platforms.
3379         * m4/raise.m4: New file.
3380         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3381         HAVE_RAISE, REPLACE_RAISE.
3382         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3383         REPLACE_RAISE.
3384         * modules/raise (Status, Notice): Remove fields.
3385         (Files): Add m4/raise.m4.
3386         (Depends-on): Add signal, msvc-inval.
3387         (configure.ac): Use the common idioms.
3388         (Maintainer): Add me.
3389         * tests/test-signal-c++.cc: Check the signature of raise.
3390         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3391
3392 2011-09-23  Bruno Haible  <bruno@clisp.org>
3393
3394         pipe2: Fix compilation on pre-C99 compilers.
3395         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3396
3397 2011-09-23  Bruno Haible  <bruno@clisp.org>
3398
3399         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3400         * lib/msvc-nothrow.h: New file.
3401         * lib/msvc-nothrow.c: New file.
3402         * m4/msvc-nothrow.m4: New file.
3403         * modules/msvc-nothrow: New file.
3404         * lib/dup2.c: Include msvc-nothrow.h.
3405         (rpl_dup2): No need to protect _get_osfhandle call here.
3406         * lib/accept4.c: Include msvc-nothrow.h.
3407         * lib/error.c: Likewise.
3408         * lib/fcntl.c: Likewise.
3409         * lib/lseek.c: Likewise.
3410         * lib/nonblocking.c: Likewise.
3411         * lib/poll.c: Likewise.
3412         * lib/read.c: Likewise.
3413         * lib/select.c: Likewise.
3414         * lib/sockets.h: Likewise.
3415         * lib/sockets.c: Likewise.
3416         * lib/stdio-read.c: Likewise.
3417         * lib/stdio-write.c: Likewise.
3418         * lib/write.c: Likewise.
3419         * lib/w32sock.h: Likewise.
3420         * lib/w32spawn.h: Likewise.
3421         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3422         * lib/fsync.c: Likewise.
3423         * lib/isapipe.c: Likewise.
3424         * modules/dup2 (Depends-on): Add msvc-nothrow.
3425         * modules/accept4 (Depends-on): Likewise.
3426         * modules/error (Depends-on): Likewise.
3427         * modules/fcntl (Depends-on): Likewise.
3428         * modules/lseek (Depends-on): Likewise.
3429         * modules/nonblocking (Depends-on): Likewise.
3430         * modules/poll (Depends-on): Likewise.
3431         * modules/read (Depends-on): Likewise.
3432         * modules/select (Depends-on): Likewise.
3433         * modules/sockets (Depends-on): Likewise.
3434         * modules/sigpipe (Depends-on): Likewise.
3435         * modules/write (Depends-on): Likewise.
3436         * modules/accept (Depends-on): Likewise.
3437         * modules/bind (Depends-on): Likewise.
3438         * modules/connect (Depends-on): Likewise.
3439         * modules/gethostname (Depends-on): Likewise.
3440         * modules/getpeername (Depends-on): Likewise.
3441         * modules/getsockname (Depends-on): Likewise.
3442         * modules/getsockopt (Depends-on): Likewise.
3443         * modules/ioctl (Depends-on): Likewise.
3444         * modules/listen (Depends-on): Likewise.
3445         * modules/recv (Depends-on): Likewise.
3446         * modules/recvfrom (Depends-on): Likewise.
3447         * modules/send (Depends-on): Likewise.
3448         * modules/sendto (Depends-on): Likewise.
3449         * modules/setsockopt (Depends-on): Likewise.
3450         * modules/shutdown (Depends-on): Likewise.
3451         * modules/socket (Depends-on): Likewise.
3452         * modules/execute (Depends-on): Likewise.
3453         * modules/spawn-pipe (Depends-on): Likewise.
3454         * modules/flock (Depends-on): Likewise.
3455         * modules/fsync (Depends-on): Likewise.
3456         * modules/isapipe (Depends-on): Likewise.
3457         * tests/test-cloexec.c: Include msvc-nothrow.h.
3458         * tests/test-dup-safer.c: Likewise.
3459         * tests/test-dup2.c: Likewise.
3460         * tests/test-dup3.c: Likewise.
3461         * tests/test-fcntl.c: Likewise.
3462         * tests/test-pipe.c: Likewise.
3463         * tests/test-pipe2.c: Likewise.
3464         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3465         * modules/unistd-safer-tests (Depends-on): Likewise.
3466         * modules/dup2-tests (Depends-on): Likewise.
3467         * modules/dup3-tests (Depends-on): Likewise.
3468         * modules/fcntl-tests (Depends-on): Likewise.
3469         * modules/pipe-posix-tests (Depends-on): Likewise.
3470         * modules/pipe2-tests (Depends-on): Likewise.
3471
3472 2011-09-23  Bruno Haible  <bruno@clisp.org>
3473
3474         dup2: Make code more maintainable.
3475         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3476         (rpl_dup2): Use it.
3477         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3478         * modules/dup2 (configure.ac): Invoke it.
3479         Reported by Paul Eggert.
3480
3481 2011-09-23  Bruno Haible  <bruno@clisp.org>
3482
3483         msvc-inval: Fix compilation error.
3484         * lib/msvc-inval.h: Include <excpt.h>.
3485
3486 2011-09-23  Bruno Haible  <bruno@clisp.org>
3487
3488         mkdir: Tweak for MSVC 9.
3489         * lib/sys_stat.in.h: Update comments.
3490         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3491
3492         Tests for module 'chdir'.
3493         * modules/chdir-tests: New file.
3494         * tests/test-chdir.c: New file.
3495
3496         New module 'chdir'.
3497         * modules/chdir: New file.
3498         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3499         (chdir): New declaration.
3500         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3501         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3502         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3503         * tests/test-unistd-c++.cc: Check signature of chdir.
3504         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3505         * modules/chdir-long (Depends-on): Add chdir.
3506         * modules/fchdir (Depends-on): Likewise.
3507         * modules/rename (Depends-on): Likewise.
3508         * modules/savewd (Depends-on): Likewise.
3509
3510         rmdir: Support for mingw, MSVC 9.
3511         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3512         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3513
3514         getcwd: Tweak for MSVC 9.
3515         * lib/unistd.in.h: Update comments.
3516         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3517
3518 2011-09-22  Bruno Haible  <bruno@clisp.org>
3519
3520         strerror_r-posix: Avoid a link error on MSVC.
3521         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3522         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3523
3524 2011-09-22  Bruno Haible  <bruno@clisp.org>
3525
3526         select: Avoid link errors on MSVC.
3527         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3528         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3529         * modules/pselect (Link): Likewise.
3530         * NEWS: Mention the change.
3531         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3532         test-select-stdin against $(LIB_SELECT).
3533         * modules/pselect-tests (Makefile.am): Link test-pselect against
3534         $(LIB_SELECT).
3535
3536 2011-09-22  Bruno Haible  <bruno@clisp.org>
3537
3538         select: Avoid compilation error on MSVC.
3539         * lib/select.c: Don't include <stdbool.h>.
3540
3541 2011-09-21  Bruno Haible  <bruno@clisp.org>
3542
3543         Consolidate all uses of PATH_MAX in *.m4 files.
3544         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3545         macros.
3546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3547         and gl_PATHMAX_SNIPPET.
3548         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3550         * modules/chdir-long (Files): Add m4/pathmax.m4.
3551         * modules/getcwd (Files): Likewise.
3552
3553 2011-09-21  Bruno Haible  <bruno@clisp.org>
3554
3555         ftruncate: Un-deprecate, concentrate on Win32 support.
3556         * modules/ftruncate (Status, Notice): Remove sections.
3557         (Depends-on): Add largefile.
3558         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3559         non-mingw platforms.
3560         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3561         include <io.h>.
3562         * modules/perror-tests (Depends-on): Add ftruncate.
3563         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3564         'ftruncate' module.
3565
3566 2011-09-21  Bruno Haible  <bruno@clisp.org>
3567
3568         Add dependencies to new dirent related modules.
3569         * modules/opendir (Depends-on): Add closedir.
3570         * modules/getcwd (Depends-on): Add opendir, closedir.
3571         * modules/dirent-safer-tests (Depends-on): Likewise.
3572         * modules/fdopendir-tests (Depends-on): Likewise.
3573         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3574         * modules/renameat-tests (Depends-on): Likewise.
3575
3576 2011-09-21  Bruno Haible  <bruno@clisp.org>
3577
3578         opendir: Avoid compilation error on mingw.
3579         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3580         * modules/opendir (Depends-on): Add unistd.
3581
3582 2011-09-21  Bruno Haible  <bruno@clisp.org>
3583
3584         ftruncate tests: Avoid a test failure on mingw.
3585         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3586
3587 2011-09-21  Bruno Haible  <bruno@clisp.org>
3588
3589         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3590         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3591         native Windows.
3592
3593 2011-09-21  Bruno Haible  <bruno@clisp.org>
3594
3595         New module 'fdopen'.
3596         * lib/stdio.in.h (fdopen): New declaration.
3597         * lib/fdopen.c: New file.
3598         * m4/fdopen.m4: New file.
3599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3600         REPLACE_FDOPEN.
3601         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3602         REPLACE_FDOPEN.
3603         * modules/fdopen: New file.
3604         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3605         * tests/test-stdio-c++.cc: Check signature of fdopen.
3606         * doc/posix-functions/fdopen.texi: Mention the new module.
3607
3608 2011-09-21  Bruno Haible  <bruno@clisp.org>
3609
3610         unlockpt tests: Avoid test failure on NetBSD 5.1.
3611         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3612         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3613
3614 2011-09-21  Bruno Haible  <bruno@clisp.org>
3615
3616         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3617         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3618         * tests/test-getlogin_r.c (main): Likewise.
3619
3620 2011-09-20  Bruno Haible  <bruno@clisp.org>
3621
3622         time tests: Don't require pid_t.
3623         * doc/posix-headers/time.texi: Revert last change.
3624         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3625         * tests/test-time.c: Comment out the check for pid_t.
3626
3627 2011-09-20  Bruno Haible  <bruno@clisp.org>
3628
3629         fsync tests: Avoid a test failure on mingw.
3630         * tests/test-fsync.c (main): Allow a failure with EIO.
3631
3632 2011-09-20  Bruno Haible  <bruno@clisp.org>
3633
3634         euidaccess: Update comments.
3635         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3636
3637 2011-09-20  Bruno Haible  <bruno@clisp.org>
3638
3639         Ensure EBADF returns for socket functions on mingw.
3640         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3641         descriptor is invalid.
3642         * lib/bind.c (rpl_bind): Likewise.
3643         * lib/connect.c (rpl_connect): Likewise.
3644         * lib/getpeername.c (rpl_getpeername): Likewise.
3645         * lib/getsockname.c (rpl_getsockname): Likewise.
3646         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3647         * lib/listen.c (rpl_listen): Likewise.
3648         * lib/recv.c (rpl_recv): Likewise.
3649         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3650         * lib/send.c (rpl_send): Likewise.
3651         * lib/sendto.c (rpl_sendto): Likewise.
3652         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3653         * lib/shutdown.c (rpl_shutdown): Likewise.
3654
3655 2011-09-20  Bruno Haible  <bruno@clisp.org>
3656
3657         select tests: EBADF tests.
3658         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3659         test_bad_fd): New functions.
3660         (test_function): Invoke also test_bad_fd.
3661
3662 2011-09-20  Bruno Haible  <bruno@clisp.org>
3663
3664         Tests for module 'posix_spawn_file_actions_addopen.
3665         * modules/posix_spawn_file_actions_addopen-tests: New file.
3666         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3667
3668         Tests for module 'posix_spawn_file_actions_adddup2'.
3669         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3670         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3671
3672         Tests for module 'posix_spawn_file_actions_addclose'.
3673         * modules/posix_spawn_file_actions_addclose-tests: New file.
3674         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3675
3676 2011-09-20  Bruno Haible  <bruno@clisp.org>
3677
3678         Tests for module 'unlockpt'.
3679         * modules/unlockpt-tests: New file.
3680         * tests/test-unlockpt.c: New file.
3681         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3682
3683         Tests for module 'grantpt'.
3684         * modules/grantpt-tests: New file.
3685         * tests/test-grantpt.c: New file.
3686         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3687
3688 2011-09-20  Bruno Haible  <bruno@clisp.org>
3689
3690         freopen tests: EBADF tests.
3691         * tests/test-freopen.c: Include errno.h, unistd.h.
3692         (main): Add tests for EBADF, commented out for the moment.
3693
3694         fclose tests: EBADF tests.
3695         * tests/test-fclose.c (main): Add tests for EBADF.
3696
3697         fflush tests: EBADF tests.
3698         * tests/test-fflush.c: Include errno.h, macros.h.
3699         (main): Add tests for EBADF.
3700
3701         ftello tests: EBADF tests.
3702         * tests/test-ftello4.sh: New file.
3703         * tests/test-ftello4.c: New file.
3704         * modules/ftello-tests (Files): Add them.
3705         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3706
3707         fseeko tests: EBADF tests.
3708         * tests/test-fseeko4.sh: New file.
3709         * tests/test-fseeko4.c: New file.
3710         * modules/fseeko-tests (Files): Add them.
3711         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3712
3713         Tests for function fputc().
3714         * modules/fputc-tests: New file.
3715         * tests/test-fputc.c: New file.
3716         * modules/stdio-tests (Depends-on): Add fputc-tests.
3717
3718         Tests for function fgetc().
3719         * modules/fgetc-tests: New file.
3720         * tests/test-fgetc.c: New file.
3721         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3722
3723         Tests for function fdopen().
3724         * modules/fdopen-tests: New file.
3725         * tests/test-fdopen.c: New file.
3726         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3727
3728         Tests for module 'vdprintf'.
3729         * modules/vdprintf-tests: New file.
3730         * tests/test-vdprintf.c: New file.
3731
3732         Tests for module 'dprintf'.
3733         * modules/dprintf-tests: New file.
3734         * tests/test-dprintf.c: New file.
3735
3736 2011-09-20  Bruno Haible  <bruno@clisp.org>
3737
3738         Tests for module 'ioctl'.
3739         * modules/ioctl-tests: New file.
3740         * tests/test-ioctl.c: New file.
3741
3742 2011-09-20  Bruno Haible  <bruno@clisp.org>
3743
3744         fcntl tests: EBADF tests.
3745         * tests/test-fcntl.c (main): Add more tests for EBADF.
3746
3747 2011-09-20  Bruno Haible  <bruno@clisp.org>
3748
3749         utimensat tests: EBADF tests.
3750         * tests/test-utimensat.c (main): Add tests for EBADF.
3751
3752         renameat tests: EBADF tests.
3753         * tests/test-renameat.c (main): Add tests for EBADF.
3754
3755         mkfifoat tests: EBADF tests.
3756         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3757
3758         readlinkat tests: EBADF tests.
3759         * tests/test-readlinkat.c (main): Add tests for EBADF.
3760
3761         symlinkat tests: EBADF tests.
3762         * tests/test-symlinkat.c (main): Add tests for EBADF.
3763
3764         linkat tests: EBADF tests.
3765         * tests/test-linkat.c (main): Add tests for EBADF.
3766
3767         Tests for module 'faccessat'.
3768         * modules/faccessat-tests: New file.
3769         * tests/test-faccessat.c: New file.
3770
3771         fdopendir tests: EBADF tests.
3772         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3773
3774         openat tests: EBADF tests.
3775         * tests/test-fchownat.c (main): Add tests for EBADF.
3776         * tests/test-fstatat.c (main): Likewise.
3777         * tests/test-mkdirat.c (main): Likewise.
3778         * tests/test-openat.c (main): Likewise.
3779         * tests/test-unlinkat.c (main): Likewise.
3780         * tests/test-fchmodat.c: New file.
3781         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3782         (Makefile.am): Also run 'test-fchmodat'.
3783
3784 2011-09-20  Bruno Haible  <bruno@clisp.org>
3785
3786         utimens, futimens, fdutimensat tests: EBADF tests.
3787         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3788
3789         Tests for function fstat().
3790         * modules/fstat-tests: New file.
3791         * tests/test-fstat.c: New file.
3792         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3793
3794 2011-09-20  Bruno Haible  <bruno@clisp.org>
3795
3796         test-ttyname_r tests: EBADF tests.
3797         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3798
3799         Tests for module 'isatty'.
3800         * modules/isatty-tests: New file.
3801         * tests/test-isatty.c: New file.
3802
3803         Tests for module 'write'.
3804         * modules/write-tests: New file.
3805         * tests/test-write.c: New file.
3806
3807         Tests for module 'read'.
3808         * modules/read-tests: New file.
3809         * tests/test-read.c: New file.
3810
3811         pwrite tests: EBADF tests.
3812         * tests/test-pwrite.c (main): Add tests for EBADF.
3813
3814         pread tests: EBADF tests.
3815         * tests/test-pread.c (main): Add tests for EBADF.
3816
3817         lseek tests: EBADF tests.
3818         * tests/test-lseek.c (main): Add more tests for EBADF.
3819
3820         Tests for module 'ftruncate'.
3821         * modules/ftruncate-tests: New file.
3822         * tests/test-ftruncate.sh: New file.
3823         * tests/test-ftruncate.c: New file.
3824
3825         fsync tests: EBADF tests.
3826         * tests/test-fsync.c (main): Add more tests for EBADF.
3827
3828         fdatasync tests: EBADF tests.
3829         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3830
3831         Tests for module 'fchown'.
3832         * modules/fchown-tests: New file.
3833         * tests/test-fchown.c: New file.
3834
3835         Tests for module 'fchmod'.
3836         * modules/fchmod-tests: New file.
3837         * tests/test-fchmod.c: New file.
3838
3839         fchdir tests: EBADF tests.
3840         * tests/test-fchdir.c (main): Add more tests for EBADF.
3841
3842         dup2 tests: EBADF tests.
3843         * tests/test-dup2.c (main): Add more tests for EBADF.
3844
3845         Tests for module 'dup'.
3846         * modules/dup-tests: New file.
3847         * tests/test-dup.c: New file.
3848
3849         Tests for module 'close'.
3850         * modules/close-tests: New file.
3851         * tests/test-close.c: New file.
3852
3853 2011-09-20  Bruno Haible  <bruno@clisp.org>
3854
3855         Tests for module 'shutdown'.
3856         * modules/shutdown-tests: New file.
3857         * tests/test-shutdown.c: New file.
3858
3859         Tests for module 'setsockopt'.
3860         * modules/setsockopt-tests: New file.
3861         * tests/test-setsockopt.c: New file.
3862
3863         Tests for module 'sendto'.
3864         * modules/sendto-tests: New file.
3865         * tests/test-sendto.c: New file.
3866
3867         Tests for module 'send'.
3868         * modules/send-tests: New file.
3869         * tests/test-send.c: New file.
3870
3871         Tests for module 'recvfrom'.
3872         * modules/recvfrom-tests: New file.
3873         * tests/test-recvfrom.c: New file.
3874
3875         Tests for module 'recv'.
3876         * modules/recv-tests: New file.
3877         * tests/test-recv.c: New file.
3878
3879         Tests for module 'listen'.
3880         * modules/listen-tests: New file.
3881         * tests/test-listen.c: New file.
3882
3883         Tests for module 'getsockopt'.
3884         * modules/getsockopt-tests: New file.
3885         * tests/test-getsockopt.c: New file.
3886
3887         Tests for module 'getsockname'.
3888         * modules/getsockname-tests: New file.
3889         * tests/test-getsockname.c: New file.
3890
3891         Tests for module 'getpeername'.
3892         * modules/getpeername-tests: New file.
3893         * tests/test-getpeername.c: New file.
3894
3895         Tests for module 'connect'.
3896         * modules/connect-tests: New file.
3897         * tests/test-connect.c: New file.
3898
3899         Tests for module 'bind'.
3900         * modules/bind-tests: New file.
3901         * tests/test-bind.c: New file.
3902
3903         accept4 tests: Fix for native Windows.
3904         * tests/test-accept4.c: Include sockets.h.
3905         (main): Invoke gl_sockets_startup.
3906         * modules/accept4-tests (Depends-on): Add sockets.
3907
3908         accept tests: Fix for native Windows.
3909         * tests/test-accept.c: Include sockets.h.
3910         (main): Invoke gl_sockets_startup.
3911         * modules/accept-tests (Depends-on): Add sockets.
3912
3913 2011-09-19  Bruno Haible  <bruno@clisp.org>
3914
3915         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3916         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3917         do...while(0).
3918         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3919         Suggested by Paul Eggert.
3920
3921 2011-09-19  Bruno Haible  <bruno@clisp.org>
3922
3923         sched: Ensure pid_t is defined.
3924         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3925         not define pid_t.
3926         * lib/sched.in.h: Include <sys/types.h>.
3927         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3929
3930 2011-09-19  Bruno Haible  <bruno@clisp.org>
3931
3932         msvc-inval: Ensure the entire expansion is a single statement.
3933         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3934         of braces.
3935
3936 2011-09-19  Jim Meyering  <meyering@redhat.com>
3937
3938         tests: use printf, not echo in init.sh's warn_ function
3939         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3940         misbehave when given strings containing a backslash or starting
3941         with e.g., -n.  James Youngman suggested setting IFS.
3942
3943 2011-09-19  Eric Blake  <eblake@redhat.com>
3944
3945         futimens: enhance test
3946         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3947         closed non-negative fd.
3948
3949         date: accept 'hence' as opposite of 'ago'
3950         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3951         * tests/test-parse-datetime.c (main): Enhance test.
3952         Suggested by Jesse Wilson.
3953
3954 2011-09-19  Jim Meyering  <meyering@redhat.com>
3955
3956         getcwd: don't fail in a deep directory on a system without openat
3957         Before this change, getcwd would fail when called from a directory
3958         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3959         the non-openat implementation used "..", "../..", "../../..", etc.
3960         to access ancestor directories.  With too many, that string would
3961         be longer than PATH_MAX.
3962         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3963         using gnulib's openat replacement.
3964         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3965         we're using the replacement function.
3966
3967 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3968
3969         maint.mk: avoid warnings from perl about missing files
3970         * top/maint.mk (def_sym_regex): Ignore files listed in
3971         $(gl_other_headers_) that do not exist, say because a project
3972         does not use a corresponding module.
3973
3974 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3975
3976         stat: use pathmax.h only if needed
3977         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3978         This is better for Emacs, which does not have a mingw port and
3979         therefore can avoid the pathmax module.
3980
3981         utimens: remove dependency on dup2
3982         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3983         to work around the Linux kernel bug.
3984         * modules/utimens (Depends-on): Remove dup2.
3985
3986 2011-09-18  Bruno Haible  <bruno@clisp.org>
3987
3988         inet_ntop, inet_pton: Look for it also in libresolv.
3989         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3990         libnsl, search for it in libresolv.
3991         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3992         Needed on Solaris 7.
3993
3994 2011-09-18  Bruno Haible  <bruno@clisp.org>
3995
3996         accept, accept4 tests: Avoid link error on Solaris.
3997         * modules/accept-tests (Makefile.am): Link test-accept against
3998         $(LIBSOCKET).
3999         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4000         $(LIBSOCKET).
4001
4002         accept4: Avoid link error on Solaris.
4003         * modules/accept4 (Link): New section.
4004
4005         socket functions: Avoid link errors on Solaris.
4006         * modules/accept (Depends-on): Add socketlib.
4007         (Link): New section.
4008         * modules/bind (Depends-on): Add socketlib.
4009         (Link): New section.
4010         * modules/connect (Depends-on): Add socketlib.
4011         (Link): New section.
4012         * modules/getpeername (Depends-on): Add socketlib.
4013         (Link): New section.
4014         * modules/getsockname (Depends-on): Add socketlib.
4015         (Link): New section.
4016         * modules/getsockopt (Depends-on): Add socketlib.
4017         (Link): New section.
4018         * modules/listen (Depends-on): Add socketlib.
4019         (Link): New section.
4020         * modules/recv (Depends-on): Add socketlib.
4021         (Link): New section.
4022         * modules/recvfrom (Depends-on): Add socketlib.
4023         (Link): New section.
4024         * modules/send (Depends-on): Add socketlib.
4025         (Link): New section.
4026         * modules/sendto (Depends-on): Add socketlib.
4027         (Link): New section.
4028         * modules/setsockopt (Depends-on): Add socketlib.
4029         (Link): New section.
4030         * modules/shutdown (Depends-on): Add socketlib.
4031         (Link): New section.
4032         * modules/socket (Depends-on): Add socketlib.
4033         (Link): New section.
4034
4035 2011-09-18  Bruno Haible  <bruno@clisp.org>
4036
4037         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4038         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4039         than 5 seconds.
4040         * modules/ptsname-tests (configure.ac): Test for alarm.
4041
4042 2011-09-18  Bruno Haible  <bruno@clisp.org>
4043
4044         posix_spawn_file_actions_add*: Fix module dependencies.
4045         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4046         posix_spawn_file_actions_init.
4047         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4048         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4049
4050 2011-09-18  Bruno Haible  <bruno@clisp.org>
4051
4052         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4053         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4054         * tests/test-renameat.c (main): Likewise.
4055
4056 2011-09-18  Bruno Haible  <bruno@clisp.org>
4057
4058         Tests for module 'accept4'.
4059         * modules/accept4-tests: New file.
4060         * tests/test-accept4.c: New file.
4061
4062 2011-09-18  Bruno Haible  <bruno@clisp.org>
4063
4064         Tests for module 'accept'.
4065         * modules/accept-tests: New file.
4066         * tests/test-accept.c: New file.
4067
4068 2011-09-18  Bruno Haible  <bruno@clisp.org>
4069
4070         dup2: Support for MSVC.
4071         * lib/dup2.c: Include msvc-inval.h.
4072         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4073         _get_osfhandle calls.
4074         * modules/dup2 (Depends-on): Add msvc-inval.
4075         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4076
4077         New module 'msvc-inval'.
4078         * lib/msvc-inval.h: New file.
4079         * lib/msvc-inval.c: New file.
4080         * m4/msvc-inval.m4: New file.
4081         * modules/msvc-inval: New file.
4082
4083 2011-09-17  Bruno Haible  <bruno@clisp.org>
4084
4085         Tests for module 'pclose'.
4086         * modules/pclose-tests: New file.
4087
4088         New module 'pclose'.
4089         * lib/stdio.in.h (pclose): New declaration.
4090         * lib/pclose.c: New file.
4091         * m4/pclose.m4: New file.
4092         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4093         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4094         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4095         * modules/pclose: New file.
4096         * modules/popen-tests (Depends-on): Add pclose.
4097         * modules/popen-safer-tests (Depends-on): Likewise.
4098         * doc/posix-functions/pclose.texi: Mention the new module.
4099
4100 2011-09-17  Bruno Haible  <bruno@clisp.org>
4101
4102         popen: Support for MSVC.
4103         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4104         * lib/popen.c (popen): Provide alternate definition for native Windows.
4105         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4107         * modules/popen (Depends-on, configure.ac): Update condition.
4108         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4109         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4110         fixed.
4111
4112 2011-09-17  Bruno Haible  <bruno@clisp.org>
4113
4114         isnanl, isnand, isnanf: Work around MSVC bug.
4115         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4116
4117 2011-09-17  Bruno Haible  <bruno@clisp.org>
4118
4119         sys_socket tests: Fix recent mistake.
4120         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4121
4122 2011-09-17  Bruno Haible  <bruno@clisp.org>
4123
4124         putenv: Support for MSVC.
4125         * modules/putenv (Depends-on): Add environ.
4126         * lib/putenv.c (environ): Disable declaration.
4127         * lib/unistd.in.h: Update comment.
4128
4129 2011-09-17  Bruno Haible  <bruno@clisp.org>
4130
4131         math: Avoid macro redefinition warnings on MSVC.
4132         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4133         Undefine before redefining.
4134
4135 2011-09-17  Bruno Haible  <bruno@clisp.org>
4136
4137         doc: Mention functions which are declared as macros.
4138         * doc/posix-functions/*[fl].texi: Mention that some functions are
4139         defined as macros with arguments only.
4140
4141 2011-09-17  Bruno Haible  <bruno@clisp.org>
4142
4143         Add dependencies to new dirent related modules.
4144         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4145         * modules/fts (Depends-on): Likewise.
4146         * modules/glob (Depends-on): Likewise.
4147         * modules/savedir (Depends-on): Likewise.
4148         * modules/scandir (Depends-on): Likewise.
4149         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4150         * modules/fdopendir (Depends-on): Add opendir.
4151
4152 2011-09-17  Bruno Haible  <bruno@clisp.org>
4153
4154         inet_pton: Support for MSVC on Windows Vista or newer.
4155         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4156         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4157         HAVE_DECL_INET_PTON is defined.
4158         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4159         On platforms with <winsock2.h>, test whether inet_pton is declared in
4160         <ws2tcpip.h>. If so, arrange to replace it.
4161         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4162         REPLACE_INET_PTON.
4163         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4164         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4165         (Depends-on, configure.ac): Update condition.
4166         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4167
4168 2011-09-17  Bruno Haible  <bruno@clisp.org>
4169
4170         inet_ntop: Support for MSVC on Windows Vista or newer.
4171         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4172         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4173         HAVE_DECL_INET_NTOP is defined.
4174         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4175         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4176         <ws2tcpip.h>. If so, arrange to replace it.
4177         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4178         REPLACE_INET_NTOP.
4179         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4180         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4181         (Depends-on, configure.ac): Update condition.
4182         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4183
4184 2011-09-16  Eric Blake  <eblake@redhat.com>
4185
4186         test-fsync: yet another enhancement
4187         * tests/test-fsync.c (main): Also test behavior on read-only text
4188         file.
4189
4190 2011-09-16  Bruno Haible  <bruno@clisp.org>
4191
4192         Enhance fsync, fdatasync tests.
4193         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4194         * tests/test-fdatasync.c (main): Likewise.
4195
4196 2011-09-16  Bruno Haible  <bruno@clisp.org>
4197
4198         Support for MSVC compiler: Ensure mode_t gets defined.
4199         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4200         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4202         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4203         * tests/test-fcntl-h.c: Check that mode_t is defined.
4204         * tests/test-sys_stat.c: Likewise.
4205         * tests/test-sys_types.c: Likewise.
4206         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4207         * doc/posix-headers/sys_stat.texi: Likewise.
4208         * doc/posix-headers/sys_types.texi: Likewise.
4209
4210 2011-09-16  Bruno Haible  <bruno@clisp.org>
4211
4212         sys_stat: Support for MSVC.
4213         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4214         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4215         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4216         MSVC.
4217
4218 2011-09-16  Bruno Haible  <bruno@clisp.org>
4219
4220         Support for MSVC compiler: Ensure off_t gets defined.
4221         * lib/unistd.in.h: Include <sys/types.h>.
4222         * tests/test-fcntl-h.c: Check that off_t is defined.
4223         * tests/test-sys_stat.c: Likewise.
4224         * tests/test-sys_types.c: Likewise.
4225
4226 2011-09-16  Eric Blake  <eblake@redhat.com>
4227
4228         fdatasync: port to Solaris
4229         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4230         * modules/fdatasync (Link): Document it.
4231         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4232
4233         fdatasync: port to MacOS X 10.7
4234         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4235         declared.
4236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4237         * modules/unistd (Makefile.am): Substitute it.
4238         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4239         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4240
4241         fdatasync: minor improvements
4242         * modules/fdatasync (Depends-on): Add condition for fsync.
4243         * lib/fdatasync.c (fdatasync): Add comment.
4244         * tests/test-unistd-c++.cc: Test fdatasync.
4245
4246         unistd: update refs to newer POSIX
4247         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4248         Suggested by Bruno Haible.
4249
4250         fdatasync: new module
4251         * modules/fsync (Description): Document difference to fdatasync.
4252         * modules/fdatasync: New module.
4253         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4254         * lib/fdatasync.c (fdatasync): Likewise.
4255         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4256         defaults.
4257         * modules/unistd (Makefile.am): Set witnesses.
4258         * lib/unistd.in.h (fdatasync): Declare.
4259         * MODULES.html.sh: Document it.
4260         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4261         * modules/fdatasync-tests: New test.
4262         * tests/test-fdatasync.c: Likewise.
4263
4264 2011-09-16  Eric Blake  <eblake@redhat.com>
4265
4266         test-fsync: enhance tests
4267         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4268         * tests/test-fsync.c (main): Enhance test.
4269
4270 2011-09-15  Bruno Haible  <bruno@clisp.org>
4271
4272         Support for MSVC compiler: Ensure ssize_t gets defined.
4273         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4274         * doc/posix-headers/stdio.texi: Likewise.
4275         * modules/stdio (Depends-on): Add ssize_t.
4276         * modules/sys_socket (Depends-on): Likewise.
4277         * modules/sys_types (Depends-on): Likewise.
4278         * modules/sys_uio (Depends-on): Likewise.
4279         * modules/unistd (Depends-on): Likewise.
4280         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4281         * tests/test-sys_types.c: Check that ssize_t is defined.
4282
4283 2011-09-14  Bruno Haible  <bruno@clisp.org>
4284
4285         Avoid using #, the m4 comment starter character, near brackets.
4286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4287         delimiter character in sed expressions.
4288         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4289         Suggested by Eric Blake.
4290
4291         Properly quote AC_CHECK_DECLS' 4th argument.
4292         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4293         argument.
4294         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4295         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4296         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4297         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4298         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4299         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4301         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4302         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4304         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4305         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4306         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4307         * m4/isinf.m4 (gl_ISINF): Likewise.
4308         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4309         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4310         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4311         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4313         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4314         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4315         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4316         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4317         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4318         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4319         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4321         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4323         Reported by Eric Blake.
4324
4325         Properly quote AC_CHECK_DECL's 4th argument.
4326         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4327         argument.
4328         * m4/argp.m4 (gl_ARGP): Likewise.
4329         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4330         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4331         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4332         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4333         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4334         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4335         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4336         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4337         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4338         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4339         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4340         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4341         Reported by Eric Blake.
4342
4343 2011-09-14  Eric Blake  <eblake@redhat.com>
4344
4345         opendir: avoid compile warning
4346         * lib/opendir.c (includes): Always include errno.h.
4347         Reported by Tatsuro MATSUOKA.
4348
4349 2011-09-14  Jim Meyering  <meyering@redhat.com>
4350
4351         maint.mk: sc_tight_scope: propagate failure from sub-make
4352         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4353         Reported by Martin von Gagern.
4354
4355 2011-09-13  Bruno Haible  <bruno@clisp.org>
4356
4357         tempname: Support for MSVC.
4358         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4359         MSVC.
4360         * modules/tempname (Depends-on): Add fcntl-h.
4361
4362 2011-09-13  Bruno Haible  <bruno@clisp.org>
4363
4364         sys_time: Support for MSVC.
4365         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4366         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4367         include <winsock2.h>.
4368         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4369         function declarations that collide with POSIX.
4370         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4371         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4372
4373 2011-09-13  Bruno Haible  <bruno@clisp.org>
4374
4375         stat: Support for MSVC.
4376         * lib/stat.c: Include pathmax.h.
4377         * modules/stat (Depends-on): Add pathmax.
4378
4379         pathmax: Support for native Windows.
4380         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4381
4382 2011-09-12  Bruno Haible  <bruno@clisp.org>
4383
4384         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4385         * lib/dirent.in.h (struct dirent): New type.
4386         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4387         DT_WHT): New macros.
4388         (DIR): New type.
4389         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4390         (readdir, rewinddir): New declarations.
4391         * lib/dirent-private.h: New file.
4392         * lib/opendir.c: New file.
4393         * lib/readdir.c: New file.
4394         * lib/rewinddir.c: New file.
4395         * lib/closedir.c: New file.
4396         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4397         * m4/opendir.m4: New file.
4398         * m4/readdir.m4: New file.
4399         * m4/rewinddir.m4: New file.
4400         * m4/closedir.m4: New file.
4401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4402         REPLACE_CLOSEDIR here.
4403         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4404         readdir, rewinddir are declared.
4405         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4406         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4407         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4408         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4409         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4410         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4411         * modules/opendir: New file.
4412         * modules/readdir: New file.
4413         * modules/rewinddir: New file.
4414         * modules/closedir: New file.
4415         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4416         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4417         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4418         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4419         * NEWS: Mention the 'fchdir' change.
4420
4421 2011-09-11  Bruno Haible  <bruno@clisp.org>
4422
4423         asm-underscore.m4: Support for MSVC.
4424         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4425         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4426
4427 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4428
4429         Doc about crypt functions.
4430         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4431         needing for _GNU_SOURCE to get crypt.
4432         * doc/posix-functions/encrypt.texi: Likewise.
4433         * doc/posix-functions/setkey.texi: Likewise.
4434
4435 2011-09-11  Bruno Haible  <bruno@clisp.org>
4436
4437         doc: Update regarding MSVC 9.
4438         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4439         tested".
4440         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4441         * doc/posix-headers/*.texi: Likewise.
4442         * doc/pastposix-functions/*.texi: Likewise.
4443         * doc/glibc-functions/*.texi: Likewise.
4444         * doc/glibc-headers/*.texi: Likewise.
4445
4446 2011-09-11  Bruno Haible  <bruno@clisp.org>
4447
4448         unistd et al.: Don't assume <unistd.h> exists.
4449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4450         does not exist.
4451         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4452         exist. But include <stdlib.h>.
4453         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4454         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4455         symlink() does not exist.
4456         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4457         include <io.h> instead.
4458         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4459         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4460         include <direct.h> instead.
4461         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4463         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4464         <io.h> instead.
4465         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4466         correctly if the system does not have hard links.
4467         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4468         <direct.h> instead.
4469         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4470         it when looking for function declarations.
4471         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4472         <direct.h> and <io.h> instead.
4473         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4474
4475 2011-09-11  Bruno Haible  <bruno@clisp.org>
4476
4477         strcase: Support for MSVC.
4478         * modules/strcase (Status, Notice): Remove obsoletion mark.
4479         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4480         * doc/posix-functions/strncasecmp.texi: Likewise.
4481
4482         strings: Don't assume <strings.h> exists.
4483         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4484         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4485         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4486         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4487
4488 2011-09-11  Bruno Haible  <bruno@clisp.org>
4489
4490         dirent: Don't assume <dirent.h> exists.
4491         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4492         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4493         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4494         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4495
4496 2011-09-11  Bruno Haible  <bruno@clisp.org>
4497
4498         Fix wint_t on MSVC.
4499         * lib/wchar.in.h (wint_t): On MSVC, override it.
4500         * lib/wctype.in.h (wint_t): Likewise.
4501         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4502         MSVC.
4503         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4504         * doc/posix-headers/wctype.texi: Likewise.
4505
4506 2011-09-11  Bruno Haible  <bruno@clisp.org>
4507
4508         sys_types: Fix typo.
4509         * lib/sys_types.in.h: Fix typo in comment.
4510         Reported by Paul Eggert.
4511
4512         Support for MSVC compiler: Ensure size_t gets defined.
4513         * modules/strings (Depends-on): Add 'sys_types'.
4514         * modules/sys_uio (Depends-on): Likewise.
4515         * lib/sys_uio.in.h: Update comment.
4516
4517         C++ tests for module 'sys_types'.
4518         * modules/sys_types-c++-tests: New file.
4519         * tests/test-sys_types-c++.cc: New file.
4520
4521         Tests for module 'sys_types'.
4522         * modules/sys_types-tests: New file.
4523         * tests/test-sys_types.c: New file.
4524
4525         New module 'sys_types'.
4526         * lib/sys_types.in.h: New file.
4527         * m4/sys_types_h.m4: New file.
4528         * modules/sys_types: New file.
4529         * doc/posix-headers/sys_types.texi: Mention the new module and the
4530         size_t problem on MSVC 9.
4531
4532 2011-09-11  Bruno Haible  <bruno@clisp.org>
4533
4534         Support for MSVC compiler: Avoid division by a literal 0.
4535         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4536         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4537         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4538         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4539         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4540         * tests/infinity.h: New file.
4541         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4542         on MSVC.
4543         * tests/test-ceilf1.c: Include infinity.h.
4544         (main): Use Infinityf.
4545         * tests/test-ceil1.c: Include infinity.h.
4546         (main): Use Infinityd.
4547         * tests/test-ceill.c: Include infinity.h.
4548         (main): Use Infinityl.
4549         * tests/test-dprintf-posix.c: Include infinity.h.
4550         (test_function): Use Infinityd.
4551         * tests/test-floorf1.c: Include infinity.h.
4552         (main): Use Infinityf.
4553         * tests/test-floor1.c: Include infinity.h.
4554         (main): Use Infinityd.
4555         * tests/test-floorl.c: Include infinity.h.
4556         (main): Use Infinityl.
4557         * tests/test-fprintf-posix.c: Include infinity.h.
4558         (test_function): Use Infinityd.
4559         * tests/test-frexp.c: Include infinity.h.
4560         (main): Use Infinityd.
4561         * tests/test-frexpl.c: Include infinity.h.
4562         (main): Use Infinityl.
4563         * tests/test-isfinite.c: Include infinity.h.
4564         (test_isfinitef): Use Infinityf.
4565         (test_isfinited): Use Infinityd.
4566         (test_isfinitel): Use Infinityl.
4567         * tests/test-isinf.c: Include infinity.h.
4568         (test_isinff): Use Infinityf.
4569         (test_isinfd): Use Infinityd.
4570         (test_isinfl): Use Infinityl.
4571         * tests/test-isnan.c: Include infinity.h.
4572         (test_float): Use Infinityf.
4573         (test_double): Use Infinityd.
4574         (test_long_double): Use Infinityl.
4575         * tests/test-isnanf.h: Include infinity.h.
4576         (main): Use Infinityf.
4577         * tests/test-isnand.h: Include infinity.h.
4578         (main): Use Infinityd.
4579         * tests/test-isnanl.h: Include infinity.h.
4580         (main): Use Infinityl.
4581         * tests/test-ldexpl.c: Include infinity.h.
4582         (main): Use Infinityl.
4583         * tests/test-printf-posix.h: Include infinity.h.
4584         (test_function): Use Infinityd.
4585         * tests/test-roundf1.c: Include infinity.h.
4586         (main): Use Infinityf.
4587         * tests/test-round1.c: Include infinity.h.
4588         (main): Use Infinityd.
4589         * tests/test-roundl.c: Include infinity.h.
4590         (main): Use Infinityl.
4591         * tests/test-signbit.c: Include infinity.h.
4592         (test_signbitf): Use Infinityf.
4593         (test_signbitd): Use Infinityd.
4594         (test_signbitl): Use Infinityl.
4595         * tests/test-snprintf-posix.h: Include infinity.h.
4596         (test_function): Use Infinityd, Infinityl.
4597         * tests/test-sprintf-posix.h: Include infinity.h.
4598         (test_function): Use Infinityd, Infinityl.
4599         * tests/test-truncf1.c: Include infinity.h.
4600         (main): Use Infinityf.
4601         * tests/test-trunc1.c: Include infinity.h.
4602         (main): Use Infinityd.
4603         * tests/test-truncl.c: Include infinity.h.
4604         (main): Use Infinityl.
4605         * tests/test-vasnprintf-posix.c: Include infinity.h.
4606         (test_function): Use Infinityd, Infinityl.
4607         * tests/test-vasprintf-posix.c: Include infinity.h.
4608         (test_function): Use Infinityd, Infinityl.
4609         * modules/ceilf-tests (Files): Add tests/infinity.h.
4610         * modules/ceil-tests (Files): Likewise.
4611         * modules/ceill-tests (Files): Likewise.
4612         * modules/dprintf-posix-tests (Files): Likewise.
4613         * modules/floorf-tests (Files): Likewise.
4614         * modules/floor-tests (Files): Likewise.
4615         * modules/floorl-tests (Files): Likewise.
4616         * modules/fprintf-posix-tests (Files): Likewise.
4617         * modules/frexp-tests (Files): Likewise.
4618         * modules/frexp-nolibm-tests (Files): Likewise.
4619         * modules/frexpl-tests (Files): Likewise.
4620         * modules/frexpl-nolibm-tests (Files): Likewise.
4621         * modules/isfinite-tests (Files): Likewise.
4622         * modules/isinf-tests (Files): Likewise.
4623         * modules/isnan-tests (Files): Likewise.
4624         * modules/isnanf-tests (Files): Likewise.
4625         * modules/isnanf-nolibm-tests (Files): Likewise.
4626         * modules/isnand-tests (Files): Likewise.
4627         * modules/isnand-nolibm-tests (Files): Likewise.
4628         * modules/isnanl-tests (Files): Likewise.
4629         * modules/isnanl-nolibm-tests (Files): Likewise.
4630         * modules/ldexpl-tests (Files): Likewise.
4631         * modules/printf-posix-tests (Files): Likewise.
4632         * modules/roundf-tests (Files): Likewise.
4633         * modules/round-tests (Files): Likewise.
4634         * modules/roundl-tests (Files): Likewise.
4635         * modules/signbit-tests (Files): Likewise.
4636         * modules/snprintf-posix-tests (Files): Likewise.
4637         * modules/sprintf-posix-tests (Files): Likewise.
4638         * modules/truncf-tests (Files): Likewise.
4639         * modules/trunc-tests (Files): Likewise.
4640         * modules/truncl-tests (Files): Likewise.
4641         * modules/vasnprintf-posix-tests (Files): Likewise.
4642         * modules/vasprintf-posix-tests (Files): Likewise.
4643         * modules/vdprintf-posix-tests (Files): Likewise.
4644         * modules/vfprintf-posix-tests (Files): Likewise.
4645         * modules/vprintf-posix-tests (Files): Likewise.
4646         * modules/vsnprintf-posix-tests (Files): Likewise.
4647         * modules/vsprintf-posix-tests (Files): Likewise.
4648         * modules/xprintf-posix-tests (Files): Likewise.
4649
4650 2011-09-11  Bruno Haible  <bruno@clisp.org>
4651
4652         Ensure pid_t gets defined.
4653         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4654         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4655         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4656         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4657         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4658         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4659         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4660         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4661         * tests/test-fcntl-h.c: Check that pid_t is defined.
4662         * tests/test-sched.c: Likewise.
4663         * tests/test-termios.c: Likewise.
4664         * tests/test-time.c: Likewise.
4665         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4666         * doc/posix-headers/signal.texi: Likewise.
4667         * doc/posix-headers/sys_types.texi: Likewise.
4668         * doc/posix-headers/time.texi: Likewise.
4669
4670 2011-09-11  Bruno Haible  <bruno@clisp.org>
4671
4672         acl: Fix compilation on Solaris 10 (older version).
4673         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4674         of ACE_EVERYONE.
4675         * lib/set-mode-acl.c (qset_acl): Likewise.
4676         Reported by Christian Jullien <eligis@orange.fr>.
4677
4678 2011-09-10  Bruno Haible  <bruno@clisp.org>
4679
4680         iconv, unsetenv: Add support for MSVC compiler.
4681         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4682         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4683
4684 2011-09-10  Bruno Haible  <bruno@clisp.org>
4685
4686         *printf: Add support for MSVC compiler.
4687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4688         handles the exception caused by the %n directive. When cross-compiling,
4689         guess no on native Windows.
4690         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4691         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4692         emulate it through vsnprintf.
4693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4694         * doc/posix-functions/dprintf.texi: Update documentation regarding
4695         MSVC 9.
4696         * doc/posix-functions/fprintf.texi: Likewise.
4697         * doc/posix-functions/printf.texi: Likewise.
4698         * doc/posix-functions/snprintf.texi: Likewise.
4699         * doc/posix-functions/sprintf.texi: Likewise.
4700         * doc/posix-functions/swprintf.texi: Likewise.
4701         * doc/posix-functions/vdprintf.texi: Likewise.
4702         * doc/posix-functions/vfprintf.texi: Likewise.
4703         * doc/posix-functions/vprintf.texi: Likewise.
4704         * doc/posix-functions/vsnprintf.texi: Likewise.
4705         * doc/posix-functions/vsprintf.texi: Likewise.
4706         * doc/glibc-functions/asprintf.texi: Likewise.
4707         * doc/glibc-functions/obstack_printf.texi: Likewise.
4708         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4709         * doc/glibc-functions/vasprintf.texi: Likewise.
4710
4711 2011-09-10  Bruno Haible  <bruno@clisp.org>
4712
4713         nocrash: Add support for native Windows.
4714         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4715
4716 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4717             Bruno Haible  <bruno@clisp.org>
4718
4719         absolute-header, include-next: Add support for MSVC compiler.
4720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4721         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4722         directory separator in #line directives.
4723         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4724         recognize also backslash as directory separator in #line directives.
4725
4726 2011-09-08  Jim Meyering  <meyering@redhat.com>
4727
4728         maint.mk: mark the post-release commit log with "maint: " prefix
4729         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4730         one-line commit-log summary.
4731
4732 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4733             Bruno Haible  <bruno@clisp.org>
4734
4735         Doc about crypt functions.
4736         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4737         systems.
4738         * doc/posix-functions/encrypt.texi: Likewise.
4739         * doc/posix-functions/setkey.texi: Likewise.
4740
4741 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4742
4743         * lib/gc.h: Fix copyright header.
4744
4745 2011-09-07  Bruno Haible  <bruno@clisp.org>
4746
4747         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4748         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4749         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4750
4751 2011-09-07  Bruno Haible  <bruno@clisp.org>
4752
4753         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4754         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4755         * lib/freopen.c: Likewise.
4756         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4757         * lib/lstat.c: Likewise.
4758         * lib/stat.c: Likewise.
4759         * lib/open.c: Use different syntax for include of <fcntl.h>.
4760         * lib/openat.c: Include fcntl.h again, explicitly.
4761
4762 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4763
4764         parse-datetime: document the newly accepted format
4765         * doc/parse-datetime.texi (Combined date and time of day items):
4766         New section.
4767
4768 2011-09-06  Bruno Haible  <bruno@clisp.org>
4769
4770         acl: Fix a test failure on newer Solaris 10 with ZFS.
4771         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4772         ENOSYS as no ACL.
4773         Reported by Jim Meyering.
4774
4775 2011-09-06  Bruno Haible  <bruno@clisp.org>
4776
4777         acl: Update for AIX >= 5.3 with NFS.
4778         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4779         ENOSYS as no ACL.
4780
4781         acl: Fix a test failure on AIX >= 5.3 with NFS.
4782         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4783         as no ACL.
4784
4785 2011-09-06  Bruno Haible  <bruno@clisp.org>
4786
4787         acl: Fix a test failure on IRIX 6.5 with NFS.
4788         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4789         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4790         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4791         * lib/copy-acl.c (qcopy_acl): Likewise.
4792
4793 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4794
4795         openat: port to AIX 7.1 with large files
4796         AIX 7.1 does a "#define openat open64at" if large files are in use,
4797         so we can't simply #undef openat.  Use the orig_openat trick (similar
4798         to orig_open in lib/open.c) to work around the problem.  Problem
4799         reported by Kevin Brott for GNU tar, in the thread containing
4800         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4801         * lib/openat.c (__need_system_fcntl_h): Define first.
4802         Include <fcntl.h> and <sys/types.h> before undefining.
4803         (orig_openat) [HAVE_OPENAT]: New inline function.
4804         (openat) [HAVE_OPENAT]: Do not undef.
4805         (rpl_openat): Use orig_openat, not openat.
4806
4807 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4808             Bruno Haible  <bruno@clisp.org>
4809
4810         acl: Avoid errors on NonStop Kernel.
4811         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4812         ENOTSUP errors.
4813
4814 2011-09-05  Bruno Haible  <bruno@clisp.org>
4815
4816         acl: Clean up Solaris code.
4817         * lib/acl-internal.h: Remove no-op #if.
4818         * lib/file-has-acl.c: Likewise.
4819         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4820         * lib/copy-acl.c (qcopy_acl): Likewise.
4821
4822 2011-09-05  Bruno Haible  <bruno@clisp.org>
4823
4824         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4825         binaries built on the original Solaris 10.
4826         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4827         trivial.
4828
4829 2011-09-05  Bruno Haible  <bruno@clisp.org>
4830
4831         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4832         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4833         10.
4834         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4835         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4836         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4837         instead of acl_get, facl_get, acl_set, facl_set.
4838
4839 2011-09-05  Bruno Haible  <bruno@clisp.org>
4840
4841         copy-file: Try unit tests on more file systems.
4842         * tests/test-copy-file-1.sh: New file.
4843         * tests/test-copy-file-2.sh: New file.
4844         * modules/copy-file-tests (Files): Add them.
4845         (Makefile.am): Add them to TESTS.
4846
4847         acl: Try unit tests on more file systems.
4848         * tests/test-file-has-acl-1.sh: New file.
4849         * tests/test-file-has-acl-2.sh: New file.
4850         * tests/test-set-mode-acl-1.sh: New file.
4851         * tests/test-set-mode-acl-2.sh: New file.
4852         * tests/test-copy-acl-1.sh: New file.
4853         * tests/test-copy-acl-2.sh: New file.
4854         * modules/acl-tests (Files): Add them.
4855         (Makefile.am): Add them to TESTS.
4856
4857 2011-09-04  Bruno Haible  <bruno@clisp.org>
4858
4859         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4860         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4861         10.
4862         (OLD_ALLOW, OLD_DENY): New macros.
4863         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4864         ACE_ACCESS_ALLOWED_ACE_TYPE.
4865         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4866         ACE_ACCESS_DENIED_ACE_TYPE.
4867         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4868         (NEW_ACE_EXECUTE): Fix value.
4869         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4870         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4871         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4872         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4873         NEW_ACE_SYNCHRONIZE): New macros.
4874         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4875         instead of acl_fromtext, acl_set, facl_set.
4876         Fixes a coreutils/tests/cp/perm failure.
4877
4878 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4879
4880         openat: test for fstatat (..., 0) bug
4881         Further testing with tar suggests that fstatat (..., 0)
4882         does not work in general, on AIX 7.1; see
4883         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4884         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4885         replacement fstatat (which is what older AIX releases were using
4886         anyway).
4887         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4888         use is now changed to orig_fstatat.  This was probably the right
4889         thing to do anyway.
4890         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4891         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4892         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4893         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4894         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4895         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4896         if the bug is found.
4897
4898         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4899         This tests for another fstatat bug on AIX 7.1:
4900         fstatat (AT_FDCWD, ..., 0) does not work.  See
4901         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4902         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4903         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4904         (rpl_fstatat): Adjust so that it works around either (or both)
4905         bugs if present.
4906         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4907
4908 2011-09-03  Karl Berry  <karl@gnu.org>
4909
4910         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4911         in index entries.
4912
4913 2011-09-02  Bruno Haible  <bruno@clisp.org>
4914
4915         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4916         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4917         values of AR, ARFLAGS, RANLIB.
4918         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4919
4920 2011-09-02  Bruno Haible  <bruno@clisp.org>
4921
4922         Find 'ar' program that fits with --host argument.
4923         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4924
4925 2011-09-02  Bruno Haible  <bruno@clisp.org>
4926
4927         tests: init.sh: Support any non-GNU diff.
4928         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4929         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4930         Solaris 8.
4931
4932 2011-09-02  Bruno Haible  <bruno@clisp.org>
4933
4934         tests: init.sh: work also with any non-GNU diff that supports -u
4935         * tests/init.sh: Relax check for diff -u support.
4936         Rather than checking for GNU diff via --version, simply check
4937         for support for -u itself.  Useful at least on OpenBSD 4.9,
4938         AIX 7.1, IRIX 6.5, and Solaris 10.
4939
4940 2011-09-01  Bruno Haible  <bruno@clisp.org>
4941
4942         strtoimax, strtoumax: Document problem on HP-UX 11.
4943         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4944         * doc/posix-functions/strtoumax.texi: Likewise.
4945
4946 2011-09-01  Bruno Haible  <bruno@clisp.org>
4947
4948         strtoumax: Avoid link error on OSF/1 with DTK cc.
4949         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4950         defined as a function.
4951         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4952         strtoumax is defined, not whether it is declared.
4953
4954 2011-09-01  Bruno Haible  <bruno@clisp.org>
4955
4956         strtoimax: Avoid link error on OSF/1 with DTK cc.
4957         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4958         defined as a function.
4959         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4960         strtoimax is defined, not whether it is declared.
4961
4962 2011-09-01  Bruno Haible  <bruno@clisp.org>
4963
4964         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4965         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4966         as a function.
4967         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4968         whether it is declared.
4969
4970 2011-09-01  Bruno Haible  <bruno@clisp.org>
4971
4972         imaxabs: Avoid link error on OSF/1 with DTK cc.
4973         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4974         as a function.
4975         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4976         whether it is declared.
4977
4978 2011-09-01  Bruno Haible  <bruno@clisp.org>
4979
4980         Tests for module 'strtoumax'.
4981         * modules/strtoumax-tests: New file.
4982         * tests/test-strtoumax.c: New file.
4983
4984         Tests for module 'strtoimax'.
4985         * modules/strtoimax-tests: New file.
4986         * tests/test-strtoimax.c: New file.
4987
4988         Tests for module 'imaxdiv'.
4989         * modules/imaxdiv-tests: New file.
4990         * tests/test-imaxdiv.c: New file.
4991
4992         Tests for module 'imaxabs'.
4993         * modules/imaxabs-tests: New file.
4994         * tests/test-imaxabs.c: New file.
4995
4996 2011-09-01  Bruno Haible  <bruno@clisp.org>
4997
4998         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4999         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5000         pthread_create.
5001
5002 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5003
5004         openat: work around AIX 7.1 fstatat issue
5005         This should fix the problem that was not properly fixed
5006         in the previous change, dated 2011-08-30.
5007         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5008         __need_system_stat_h defined.
5009         (orig_fstatat) [HAVE_FSTATAT]: New function.
5010         (rpl_fstatat): Go back to the old way of doing things,
5011         except call orig_fstatat instead of fstatat.
5012         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5013         Remove unnecessary check whether fstatat fills in st_size etc.
5014
5015 2011-09-01  Bruno Haible  <bruno@clisp.org>
5016
5017         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5018         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5019         just include the system's header.
5020
5021 2011-08-31  Jim Meyering  <meyering@redhat.com>
5022
5023         tests: avoid spurious assertion failure in test-float.c on ppc64
5024         * tests/test-float.c (test_long_double): Comment out an assertion,
5025         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5026         with gcc-4.4.4.
5027
5028         maint: indent with spaces, not TABs
5029         I need to get in the habit of running gnulib's "make check".
5030         Both of these would have been caught.
5031         * m4/largefile.m4: Indent with spaces, not TABs.
5032         * lib/parse-datetime.y (iso_8601_time): Likewise.
5033         Spotted by Pádraig Brady.
5034
5035         test-parse-datetime.c: accommodate a relatively strict gcc warning
5036         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5037         to avoid a warning from gcc's -Werror=missing-declarations.
5038         Insert a few spaces-before-funcall-parenthesis.
5039
5040 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5041
5042         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5043         The parser now accepts ISO 8601 date-time strings with "T" as the
5044         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5045         with a space between the date and time strings.  Now it also parses
5046         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5047         variants like "2004-02-29T16:21:42.333-07:00"
5048         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5049         of day representation using the 'T' separator character.
5050         * doc/parse-datetime.texi (General date syntax): replace use of
5051         deprecated --iso-8601 option with --rfc-3339 in example of date
5052         command output formats that can be parsed.
5053         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5054         lib/parse-datetime.y.
5055         (gmt_offset): New function.
5056         (main): Add additional test cases to validate ISO8601 extended
5057         date and time of day parsing.
5058
5059 2011-08-31  Bruno Haible  <bruno@clisp.org>
5060
5061         freopen: Documentation.
5062         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5063         name.
5064         Reported by Claudio Bley <claudio.bley@gmail.com>.
5065
5066 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5067
5068         freopen: Don't crash if the filename argument is NULL.
5069         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5070         NULL.
5071
5072 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5073
5074         openat: work around AIX 7.1 fstatat bug
5075         Problem reported by Kevin Brott for GNU tar, in the thread containing
5076         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5077         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5078         FSTATAT_ST_SIZE_ETC_BROKEN.
5079         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5080         rpl_fstatat.
5081         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5082         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5083         AC_CHECK_FUNCS_ONCE for fstatat.
5084         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5085         fchmodat, mkdirat, openat and unlinkat.
5086
5087 2011-08-30  Bruno Haible  <bruno@clisp.org>
5088
5089         Avoid endless recursions if config.h includes some header files.
5090         * lib/fopen.c (__need_FILE): Define already before including config.h.
5091         * lib/freopen.c (__need_FILE): Likewise.
5092         * lib/open.c (__need_system_fcntl_h): Likewise.
5093         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5094         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5095         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5096
5097 2011-08-25  Karl Berry  <karl@gnu.org>
5098
5099         * config/srclist.txt (ylwrap): new try.
5100         * build-aux/ylwrap: new file.
5101
5102 2011-08-23  Bruno Haible  <bruno@clisp.org>
5103
5104         tmpdir: Use a good default directory on native Windows.
5105         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5106         (P_tmpdir): Default to _P_tmpdir on native Windows.
5107         (path_search): On native Windows, try the value returned by GetTempPath
5108         before trying P_tmpdir.
5109         * modules/tmpdir (Depends-on): Add pathmax.
5110         Suggested by John Darrington <john@darrington.wattle.id.au>.
5111
5112 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5113
5114         doc: fix typo in README-release
5115         * top/README-release: Capitalize first word of a sentence.
5116
5117 2011-08-19  Jim Meyering  <meyering@redhat.com>
5118
5119         fts: do not exhaust memory when processing million-entry directories
5120         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5121         directory would require about 256*N bytes of memory.  Thus, it was
5122         easy to construct a directory too large to be processed by any of
5123         those tools.  With this change, fts' maximum memory utilization is
5124         now limited to around 30MB.
5125         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5126         (fts_read): When we've processed the final entry (i.e., when
5127         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5128         using the parent entry to read any remaining entries.  Dispatch
5129         depending on what fts_build returns:
5130         - NULL+stop, aka failure: stop
5131         - NULL otherwise: move up in the dir hierarchy
5132         - non-NULL: handle this new entry
5133         (fts_build): Declare and use new local, continue_readdir.
5134         Prepare to be called from fts_read, when the entries
5135         from a partially-read directory have just been exhausted.
5136         In that case, we'll skip the opendir and instead use the parent's
5137         fts_dirp and derive dir_fd from that.
5138         Finally, in the readdir loop, if we read max_entries entries,
5139         exit the loop ensuring *not* to call closedir.  This is required
5140         so that fts_dirp can be reused on a subsequent call.
5141         Prompted by Ben England's report of memory exhaustion in find
5142         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5143
5144         maint: fts: move decl of `dp' down into while loop; split a long line
5145         * lib/fts.c (fts_build): No semantic change.
5146
5147         fts: add/use new struct member, fts_dirp
5148         We are about to use this to manage any directory with
5149         too many entries to read all of them into memory at once.
5150         To do that, we'll need to save the DIR* pointer in each
5151         affected FTSENT struct.
5152         * lib/fts_.h: Include <dirent.h>.
5153         (struct FTSENT) [fts_dirp]: New member.
5154         * lib/fts.c (closedir_and_clear): Define.
5155         Use it in place of closedir so that we are sure to
5156         clear the new fts_dirp member when done with it.
5157         (fts_alloc): Initialize the new member.
5158         (fts_lfree): Free, if needed.
5159
5160         maint: fts: give __opendir2 a new parameter and rename
5161         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5162         than surreptitiously using sole caller's "dir_fd".
5163         (fts_opendir): Rename from __opendir2.
5164
5165         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5166         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5167
5168         maint: fts.c: correct off-by-one indentation
5169         * lib/fts.c (fts_build): Correct indentation, change style
5170         of a couple of block comments, and bracing style.
5171
5172         maint: fts.c: move __opendir2 #define "up" out of function body
5173         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5174
5175         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5176         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5177         out for a long time and besides was useful only on BSD systems.
5178
5179 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5180
5181         regex: port to Stratus OpenVOS
5182         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5183         define to empty, rather than attempting nonportable optimizations.
5184         Problem reported by Paul Green in:
5185         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5186         and fix suggested by Eric Blake in:
5187         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5188
5189 2011-08-17  Eric Blake  <eblake@redhat.com>
5190
5191         getcwd: fix test failures on mingw
5192         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5193         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5194         test if long directory cannot be created, and allow mingw errno.
5195
5196         getcwd-lgpl: fix m4 to match relaxed test for BSD
5197         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5198         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5199         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5200         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5201         signature problem.
5202
5203         getcwd: fix compilation on mingw64
5204         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5205         getcwd.
5206         Reported by Marc-André Lureau.
5207
5208         pipe2: silence compiler warning
5209         * lib/pipe2.c (pipe2): Hide label if it is not used.
5210
5211 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5212
5213         relocatable-prog: fix link error
5214         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5215         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5216         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5217         into modules/relocatable-lib without noticing that
5218         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5219         also needs to build relocatable.c.
5220
5221 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5222
5223         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5225         shell code: it contained a 'break' that was not in a loop.
5226         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5227         via a shell-language loop; this may have been true in old Autoconf
5228         versions, but it's not true in Autoconf 2.68.  I found this bug
5229         when testing coreutils git on Solaris 8, whose shell complains
5230         about the syntax error.
5231
5232 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5233
5234         * lib/base64.c: Fix comment to reference RFC 4648.
5235         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5236         <gvtulder@gmail.com>.
5237
5238 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5239
5240         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5241
5242         po/Makefile.in.in: fix make -q problem
5243         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5244         rule, since there's no file named 'check-macro-version' and its
5245         use as a file breaks make -q.
5246         (all): Don't depend on check-macro-version.
5247         (CHECK_MACRO_VERSION): New macro.
5248         (stamp-po): Use it.
5249
5250         configmake: fix make -q problem
5251         * modules/configmake (configmake.h): Update configmake.h's time stamp
5252         even if the file does not change.  Otherwise, 'make -q' fails.
5253         Problem reported by Simon Josefsson in
5254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5255
5256 2011-08-11  Jim Meyering  <meyering@redhat.com>
5257
5258         git-version-gen: correct the advice in a comment
5259         * build-aux/git-version-gen: Correct comment.
5260         Don't recommend to list .tarball-version in .gitignore.
5261
5262 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5263
5264         base64: fix off-by-one buffer size bug
5265         Problem and (trivial) fix reported by Gijs van Tulder in
5266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5267         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5268         * tests/test-base64.c (main): Catch the bug.
5269
5270 2011-08-10  Eric Blake  <eblake@redhat.com>
5271
5272         closein: correct comments
5273         * lib/closein.c (close_stdin): Improve comments.
5274
5275 2011-08-09  Bruno Haible  <bruno@clisp.org>
5276
5277         More tests for 'fseeko'.
5278         * tests/test-fseeko3.c: New file, from Eric Blake.
5279         * tests/test-fseeko3.sh: New file.
5280         * modules/fseeko-tests (Files): Add them.
5281         (TESTS): Add test-fseeko3.sh.
5282         (check_PROGRAMS): Add test-fseeko3.
5283
5284 2011-08-09  Eric Blake  <eblake@redhat.com>
5285
5286         fseeko: remove unneeded hack
5287         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5288
5289         fseeko: fix bug on glibc
5290         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5291         Reported by John W. Eaton.
5292
5293 2011-08-08  Bruno Haible  <bruno@clisp.org>
5294
5295         unictype/base: Fix interoperability with preinstalled libunistring.
5296         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5297         Reported by Simon Josefsson.
5298
5299 2011-08-08  Bruno Haible  <bruno@clisp.org>
5300
5301         iswblank: Detect declaration correctly.
5302         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5303         AC_CHECK_DECLS invocation.
5304
5305 2011-08-08  Bruno Haible  <bruno@clisp.org>
5306
5307         tcgetsid: Detect declaration correctly.
5308         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5309         AC_CHECK_DECLS invocation.
5310         Reported by Simon Josefsson.
5311
5312 2011-08-08  Eric Blake  <eblake@redhat.com>
5313
5314         largefile: fix typo that regressed large file support
5315         * modules/largefile (configure.ac-early): Fix section name.
5316
5317 2011-08-06  Karl Berry  <karl@gnu.org>
5318
5319         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5320         a separate module.
5321
5322 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5323
5324         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5325         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5326         get prototype for free.
5327
5328 2011-08-04  Bruno Haible  <bruno@clisp.org>
5329
5330         Tests for module 'pathmax'.
5331         * modules/pathmax-tests: New file.
5332         * tests/test-pathmax.c: New file.
5333
5334         canonicalize-lgpl: Support larger filenames on the Hurd.
5335         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5336         Reported by Paul Eggert.
5337
5338         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5339         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5340         * lib/chdir-long.h: Include pathmax.h.
5341         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5342         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5343         (PATH_MAX): Remove code that is done by pathmax.h.
5344         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5345         * lib/tmpfile.c: Add a comment.
5346         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5347         * modules/chdir-long (Depends-on): Add pathmax.
5348         * modules/getcwd (Depends-on): Add pathmax.
5349         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5350         is not defined.
5351         * doc/posix-headers/limits.texi: Mention the pathmax module.
5352         * NEWS: Mention the change.
5353
5354 2011-08-02  Bruno Haible  <bruno@clisp.org>
5355
5356         pthread_sigmask: Actually use results of gl_THREADLIB.
5357         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5358         gl_THREADLIB, not gl_[]THREADLIB.
5359         Reported by Eric Blake.
5360
5361 2011-08-02  Jim Meyering  <meyering@redhat.com>
5362
5363         maint.mk: relax the default _gl_TS_function_match regexp
5364         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5365         space between function name and "(" in an "extern" declaration.
5366         That would fail to match a decl with no space there: extern void foo();
5367
5368 2011-07-31  Iain Nicol  <iain@thenicols.net>
5369
5370         git-version-gen: document that EXTRA_DIST must include .version
5371         * build-aux/git-version-gen: In the how-to-use comment, document
5372         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5373         will fail when run from an unpacked distribution tarball.
5374
5375 2011-08-01  Bruno Haible  <bruno@clisp.org>
5376
5377         wctype-h: Fix last change.
5378         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5379         REPLACE_TOWLOWER to 0.
5380         Reported by Sam Steingold <sds@gnu.org>.
5381
5382 2011-07-31  Bruno Haible  <bruno@clisp.org>
5383
5384         frexpl: Update autoconf test.
5385         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5386         according to changes of 2011-06-20.
5387
5388 2011-07-31  Bruno Haible  <bruno@clisp.org>
5389
5390         sys_utsname: Add support for Minix.
5391         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5392         <sys/utsname.h>.
5393         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5394         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5395
5396 2011-07-31  Bruno Haible  <bruno@clisp.org>
5397
5398         strings: Add support for Minix.
5399         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5400         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5401         * doc/posix-headers/strings.texi: Document the Minix problem.
5402
5403 2011-07-31  Bruno Haible  <bruno@clisp.org>
5404
5405         wctype-h: Add support for Minix.
5406         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5407         REPLACE_TOWLOWER.
5408         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5409         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5410         REPLACE_ISWCNTRL.
5411
5412 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5413
5414         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5415         This is a performance improvement for 64-bit hosts: it causes the
5416         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5417
5418 2011-07-31  Bruno Haible  <bruno@clisp.org>
5419
5420         stdioext: Add support for Minix.
5421         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5422         * lib/fpurge.c (fpurge): Likewise.
5423         * lib/freadahead.c (freadahead): Likewise.
5424         * lib/freadable.c (freadable): Likewise.
5425         * lib/freading.c (freading): Likewise.
5426         * lib/freadptr.c (freadptr): Likewise.
5427         * lib/freadseek.c (freadptrinc): Likewise.
5428         * lib/fseeko.c (rpl_fseeko): Likewise.
5429         * lib/fseterr.c (fseterr): Likewise.
5430         * lib/fwritable.c (fwritable): Likewise.
5431         * lib/fwriting.c (fwriting): Likewise.
5432         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5433         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5434
5435 2011-07-31  Bruno Haible  <bruno@clisp.org>
5436
5437         errno: Port to Minix.
5438         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5439         ECONNABORTED are defined.
5440         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5441         GNULIB_defined_ECONNABORTED): New macros.
5442         * lib/strerror-override.h (strerror_override): Test also
5443         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5444         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5445         ECONNABORTED.
5446         * doc/posix-headers/errno.texi: Mention the Minix problem.
5447
5448 2011-07-31  Bruno Haible  <bruno@clisp.org>
5449
5450         Work around declaration collisions on Minix.
5451         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5452         defined, set REPLACE_MBSINIT.
5453         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5454         defined, set REPLACE_MBRTOWC.
5455         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5456         set REPLACE_MBRLEN.
5457         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5458         defined, set REPLACE_MBSRTOWCS.
5459         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5460         defined, set REPLACE_WCRTOMB.
5461         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5462         defined, set REPLACE_WCSRTOMBS.
5463
5464 2011-07-31  Bruno Haible  <bruno@clisp.org>
5465
5466         Add support for Minix with ACK compiler.
5467         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5468         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5469         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5470
5471 2011-07-31  Bruno Haible  <bruno@clisp.org>
5472
5473         Documentation about Minix.
5474         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5475         * doc/glibc-headers/*.texi: Likewise.
5476         * doc/posix-functions/*.texi: Likewise.
5477         * doc/glibc-functions/*.texi: Likewise.
5478
5479 2011-07-31  Bruno Haible  <bruno@clisp.org>
5480
5481         snippet/warn-on-use: Fix indentation.
5482         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5483
5484 2011-07-25  Jim Meyering  <meyering@redhat.com>
5485
5486         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5487         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5488         commands.
5489
5490 2011-07-27  Jim Meyering  <meyering@redhat.com>
5491
5492         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5493         * top/maint.mk (gl_extract_significant_defines_): Now that
5494         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5495         gnulib/lib/signal.in.h, and now that we recommend to
5496         define-if-undefined those two symbols in application code,
5497         we must filter them out of the "significant" list.
5498         This avoids a "make syntax-check" failure in coreutils.
5499
5500 2011-07-26  Eric Blake  <eblake@redhat.com>
5501
5502         warnings: add comments about previous patch
5503         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5504         * m4/include_next.m4: Likewise.
5505         * m4/warn-on-use.m4: Likewise.
5506         * m4/warnings.m4: Likewise, and simplify use.
5507         Suggested by Stefano Lattarini.
5508
5509         include-next, warnings: support older autoconf
5510         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5511         AS_VAR_PUSHDEF in a way that works with older autoconf.
5512         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5513         Reported by Daniel P. Berrange.
5514
5515 2011-07-25  Bruno Haible  <bruno@clisp.org>
5516
5517         fseek, ftell: Fix doc.
5518         * doc/posix-functions/fseek.texi: Reword statement about
5519         AC_SYS_LARGEFILE.
5520         * doc/posix-functions/ftell.texi: Likewise.
5521
5522 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5523             Bruno Haible  <bruno@clisp.org>
5524
5525         Add dependencies to the 'largefile' module.
5526         * modules/fopen (Depends-on): Add 'largefile'.
5527         * modules/freopen (Depends-on): Likewise.
5528         * modules/fseeko (Depends-on): Likewise.
5529         * modules/ftello (Depends-on): Likewise.
5530         * modules/glob (Depends-on): Likewise.
5531         * modules/lseek (Depends-on): Likewise.
5532         * modules/lstat (Depends-on): Likewise.
5533         * modules/mkostemp (Depends-on): Likewise.
5534         * modules/mkostemps (Depends-on): Likewise.
5535         * modules/mkstemp (Depends-on): Likewise.
5536         * modules/mkstemps (Depends-on): Likewise.
5537         * modules/open (Depends-on): Likewise.
5538         * modules/openat (Depends-on): Likewise.
5539         * modules/pread (Depends-on): Likewise.
5540         * modules/pwrite (Depends-on): Likewise.
5541         * modules/scandir (Depends-on): Likewise.
5542         * modules/stat (Depends-on): Likewise.
5543         * modules/tmpfile (Depends-on): Likewise.
5544         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5545         since the containing module now depends on the largefile module.
5546         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5547         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5548         off_t is fixed by gnulib.
5549         * doc/posix-functions/freopen.texi: Likewise.
5550         * doc/posix-functions/fseeko.texi: Likewise.
5551         * doc/posix-functions/fstatat.texi: Likewise.
5552         * doc/posix-functions/ftello.texi: Likewise.
5553         * doc/posix-functions/glob.texi: Likewise.
5554         * doc/posix-functions/lseek.texi: Likewise.
5555         * doc/posix-functions/lstat.texi: Likewise.
5556         * doc/posix-functions/mkstemp.texi: Likewise.
5557         * doc/posix-functions/open.texi: Likewise.
5558         * doc/posix-functions/openat.texi: Likewise.
5559         * doc/posix-functions/pread.texi: Likewise.
5560         * doc/posix-functions/pwrite.texi: Likewise.
5561         * doc/posix-functions/scandir.texi: Likewise.
5562         * doc/posix-functions/stat.texi: Likewise.
5563         * doc/posix-functions/tmpfile.texi: Likewise.
5564         * doc/glibc-functions/mkostemp.texi: Likewise.
5565         * doc/glibc-functions/mkostemps.texi: Likewise.
5566         * doc/glibc-functions/mkstemps.texi: Likewise.
5567
5568 2011-07-25  Bruno Haible  <bruno@clisp.org>
5569
5570         fcntl: Move AC_LIBOBJ invocation to module description.
5571         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5572         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5573
5574         fcntl: Remove call-in from fchdir.m4.
5575         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5577
5578         dup3: Remove potential call-in from fchdir.m4.
5579         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5581
5582         dup2: Move AC_LIBOBJ invocation to module description.
5583         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5584         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5585         Don't invoke AC_LIBOBJ.
5586         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5587
5588         dup2: Remove call-in from fchdir.m4.
5589         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5591
5592         fclose: Move AC_LIBOBJ invocation to module description.
5593         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5594         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5595         to 1.
5596         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5597
5598         fclose: Remove call-in from close.m4.
5599         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5600         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5601
5602         close: Move AC_LIBOBJ invocation to module description.
5603         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5604         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5605         1.
5606         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5607
5608         close: Remove call-in from fchdir.m4.
5609         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5610         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5611
5612         open: Move AC_LIBOBJ invocation to module description.
5613         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5614         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5615         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5616
5617         open: Remove call-in from fchdir.m4.
5618         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5620
5621         fchdir: Start to remove gl_REPLACE_* idiom.
5622         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5623         (gl_FUNC_FCHDIR): Invoke it.
5624
5625 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         * lib/ftell.c (ftell): Comment out cast.
5628
5629         close: use gl_REPLACE_FCLOSE only if defined
5630         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5631         is defined.  The close module doesn't depend on the fclose module
5632         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5634         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5635
5636 2011-07-24  Jim Meyering  <meyering@redhat.com>
5637
5638         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5639         * tests/test-select.h (test_function): Declare as "static".
5640
5641 2011-07-24  Bruno Haible  <bruno@clisp.org>
5642
5643         doc: Mention the effects of AC_SYS_LARGEFILE.
5644         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5645         on this function.
5646         * doc/posix-functions/aio_error.texi: Likewise.
5647         * doc/posix-functions/aio_fsync.texi: Likewise.
5648         * doc/posix-functions/aio_read.texi: Likewise.
5649         * doc/posix-functions/aio_return.texi: Likewise.
5650         * doc/posix-functions/aio_suspend.texi: Likewise.
5651         * doc/posix-functions/aio_write.texi: Likewise.
5652         * doc/posix-functions/fgetpos.texi: Likewise.
5653         * doc/posix-functions/fopen.texi: Likewise.
5654         * doc/posix-functions/freopen.texi: Likewise.
5655         * doc/posix-functions/fsetpos.texi: Likewise.
5656         * doc/posix-functions/fstatvfs.texi: Likewise.
5657         * doc/posix-functions/ftruncate.texi: Likewise.
5658         * doc/posix-functions/ftw.texi: Likewise.
5659         * doc/posix-functions/getrlimit.texi: Likewise.
5660         * doc/posix-functions/glob.texi: Likewise.
5661         * doc/posix-functions/lio_listio.texi: Likewise.
5662         * doc/posix-functions/lockf.texi: Likewise.
5663         * doc/posix-functions/mkstemp.texi: Likewise.
5664         * doc/posix-functions/mmap.texi: Likewise.
5665         * doc/posix-functions/nftw.texi: Likewise.
5666         * doc/posix-functions/openat.texi: Likewise.
5667         * doc/posix-functions/opendir.texi: Likewise.
5668         * doc/posix-functions/posix_fadvise.texi: Likewise.
5669         * doc/posix-functions/posix_fallocate.texi: Likewise.
5670         * doc/posix-functions/pread.texi: Likewise.
5671         * doc/posix-functions/pwrite.texi: Likewise.
5672         * doc/posix-functions/readdir.texi: Likewise.
5673         * doc/posix-functions/readdir_r.texi: Likewise.
5674         * doc/posix-functions/rewinddir.texi: Likewise.
5675         * doc/posix-functions/scandir.texi: Likewise.
5676         * doc/posix-functions/seekdir.texi: Likewise.
5677         * doc/posix-functions/setrlimit.texi: Likewise.
5678         * doc/posix-functions/statvfs.texi: Likewise.
5679         * doc/posix-functions/telldir.texi: Likewise.
5680         * doc/posix-functions/tmpfile.texi: Likewise.
5681         * doc/posix-functions/truncate.texi: Likewise.
5682         * doc/glibc-functions/fallocate.texi: Likewise.
5683         * doc/glibc-functions/fstatfs.texi: Likewise.
5684         * doc/glibc-functions/fts_children.texi: Likewise.
5685         * doc/glibc-functions/fts_read.texi: Likewise.
5686         * doc/glibc-functions/getdirentries.texi: Likewise.
5687         * doc/glibc-functions/mkostemp.texi: Likewise.
5688         * doc/glibc-functions/mkostemps.texi: Likewise.
5689         * doc/glibc-functions/mkstemps.texi: Likewise.
5690         * doc/glibc-functions/preadv.texi: Likewise.
5691         * doc/glibc-functions/pwritev.texi: Likewise.
5692         * doc/glibc-functions/sendfile.texi: Likewise.
5693         * doc/glibc-functions/statfs.texi: Likewise.
5694
5695 2011-07-24  Bruno Haible  <bruno@clisp.org>
5696
5697         doc: Fix typo.
5698         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5699
5700 2011-07-24  Bruno Haible  <bruno@clisp.org>
5701
5702         doc: Mention fsusage.
5703         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5704
5705 2011-07-24  Bruno Haible  <bruno@clisp.org>
5706
5707         doc: Mention new glibc headers and functions.
5708         * doc/glibc-headers/gshadow.texi: New file.
5709         * doc/glibc-functions/endsgent.texi: New file.
5710         * doc/glibc-functions/fgetsgent.texi: New file.
5711         * doc/glibc-functions/fgetsgent_r.texi: New file.
5712         * doc/glibc-functions/getsgent.texi: New file.
5713         * doc/glibc-functions/getsgent_r.texi: New file.
5714         * doc/glibc-functions/getsgnam.texi: New file.
5715         * doc/glibc-functions/getsgnam_r.texi: New file.
5716         * doc/glibc-functions/putsgent.texi: New file.
5717         * doc/glibc-functions/setsgent.texi: New file.
5718         * doc/glibc-functions/sgetsgent.texi: New file.
5719         * doc/glibc-functions/sgetsgent_r.texi: New file.
5720         * doc/glibc-functions/malloc_info.texi: New file.
5721         * doc/glibc-functions/preadv.texi: New file.
5722         * doc/glibc-functions/pwritev.texi: New file.
5723         * doc/glibc-functions/register_printf_modifier.texi: New file.
5724         * doc/glibc-functions/register_printf_specifier.texi: New file.
5725         * doc/glibc-functions/register_printf_type.texi: New file.
5726         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5727         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5728         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5729         * doc/glibc-functions/pthread_getname_np.texi: New file.
5730         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5731         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5732         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5733         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5734         * doc/glibc-functions/pthread_setname_np.texi: New file.
5735         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5736         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5737         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5738         * doc/glibc-functions/qsort_r.texi: New file.
5739         * doc/glibc-functions/quick_exit.texi: New file.
5740         * doc/glibc-functions/syncfs.texi: New file.
5741         * doc/gnulib.texi: Include them.
5742         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5743         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5744         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5745         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5746         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5747         * doc/glibc-functions/execvpe.texi: Likewise.
5748
5749 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5750
5751         ftell: don't include <unistd.h>
5752         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5753         guaranteed to define off_t, and the ftell module depends on the
5754         stdio module.
5755
5756         ftell: do not assume wraparound signed arithmetic
5757         * lib/ftell.c: Include <limits.h>.
5758         (ftell): Don't assume wraparound signed arithmetic.
5759
5760 2011-07-24  Bruno Haible  <bruno@clisp.org>
5761
5762         close: No longer depend on module 'fclose'.
5763         * modules/close (Depends-on): Remove fclose.
5764         * NEWS: Mention the change.
5765         Suggested by Sam Steingold <sds@gnu.org>.
5766
5767 2011-07-24  Bruno Haible  <bruno@clisp.org>
5768
5769         fsusage: Enable large volume support on AIX >= 5.2.
5770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5771         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5772         instead of STAT_STATVFS.
5773         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5774
5775         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5777         f_blocks field only on MacOS X.
5778
5779         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5780         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5781         * modules/fsusage (Depends-on): Add largefile.
5782
5783 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5784
5785         * README: Modernize discussion of signed integers.
5786         Assuming overflow wraparound is no longer safe.
5787         Mention ones' complement and signed magnitude.
5788
5789 2011-07-22  Bruno Haible  <bruno@clisp.org>
5790
5791         select tests, pselect tests: Refactor.
5792         * tests/test-select.h: New file, extracted from tests/test-select.c.
5793         (select_fn): New type.
5794         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5795         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5796         test_pipe): Add my_select argument.
5797         (test_function): Renamed from main. Add my_select argument.
5798         * tests/test-select.c: Move most code to tests/test-select.h. Include
5799         test-select.h.
5800         * modules/select-tests (Files): Add tests/test-select.h.
5801         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5802         (my_select, main): New functions.
5803         * modules/pselect-tests (Files): Add tests/test-select.h,
5804         tests/macros.h, tests/signature.h.
5805         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5806         (configure.ac): Check for <sys/wait.h>.
5807
5808 2011-07-22  Bruno Haible  <bruno@clisp.org>
5809
5810         sys_select tests: Check the signature of FD_*.
5811         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5812         signature tests from here...
5813         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5814         here.
5815         * modules/sys_select-tests (Files): Add tests/signature.h.
5816
5817 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5818
5819         largefile: new module, replacing large-inode
5820         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5821         * MODULES.html.sh: Add largefile, remove large-inode.
5822         * modules/largefile, m4/largefile.m4: New files.
5823         * modules/large-inode, m4/large-inode.m4: Remove.
5824
5825         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5826         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5827         implementations that use only 32 bits to count blocks.
5828         On typical hosts with 1024-byte blocks, this fails with file
5829         systems as small as 4 TiB.  Problem reported by Herb Wartens
5830         <http://debbugs.gnu.org/9140> and this should also fix a similar
5831         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5832
5833         large-inode: New module
5834         * MODULES.html.sh: Add it.
5835         * modules/large-inode, m4/large-inode.m4: New files.
5836
5837         extensions: Enable extensions on MacOS X 10.5 and later.
5838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5839
5840 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5841
5842         file-has-acl: use acl_extended_file_nofollow if available
5843         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5844         (acl_extended_file): New macro.
5845         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5846         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5847
5848 2011-07-21  Bruno Haible  <bruno@clisp.org>
5849
5850         Declare system functions in a way that works with C++.
5851         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5852         declare fdopendir as extern "C".
5853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5854         declare frexpl as extern "C".
5855         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5856         declare gai_strerror as extern "C".
5857         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5858         programs, declare gai_strerror as extern "C".
5859         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5860         declare getlogin_r as extern "C".
5861         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5862         as extern "C".
5863         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5864         declare ldexpl as extern "C".
5865         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5866         as extern "C".
5867         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5868         program, declare getmntinfo as extern "C".
5869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5870         stpncpy as extern "C".
5871         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5872         program, declare __xpg_strerror_r as extern "C".
5873         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5874         strndup as extern "C".
5875         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5876         declare memset and bzero as extern "C".
5877         Reported by Sam Steingold <sds@gnu.org>.
5878
5879 2011-07-12  Jim Meyering  <meyering@redhat.com>
5880
5881         maint.mk: prohibit inclusion of "verify.h" without use
5882         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5883
5884 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5885
5886         timer-time: A new module to check for timer_settime()
5887         * m4/timer_time.m4: Check for the posix function.
5888         * modules/timer-time: Add the new module.
5889         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5890         Mention it.
5891
5892 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5893             Bruno Haible  <bruno@clisp.org>
5894
5895         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5896         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5897         not defined, assume POSIX threads and look for pthread_sigmask in
5898         $LIBS, without changing $CPPFLAGS.
5899
5900 2011-07-19  Bruno Haible  <bruno@clisp.org>
5901
5902         strstr: Update cross-compilation guess.
5903         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5904         CPUs, guess no, in view of glibc
5905         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5906         Suggested by Eric Blake. Reported by Reuben Thomas.
5907
5908 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5909
5910         getopt-gnu: suppress core dumps from detection code
5911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5912         to suppress core dumps that may well occur on glibc systems.
5913         * modules/getopt-gnu: Depend on nocrash.
5914
5915 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5916
5917         pthread_sigmask: ensure usleep is declared
5918         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5919         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5920
5921 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5922
5923         doc: Document NonStop portability issues.
5924         * doc/posix-functions/sigaction.texi (sigaction):
5925         * doc/posix-headers/signal.texi (signal.h):
5926         Document NonStop.  See Joachim Schmitz in
5927         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5928
5929 2011-07-15  Bruno Haible  <bruno@clisp.org>
5930
5931         ffsl, ffsll: Avoid unportable behaviour.
5932         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5933
5934 2011-07-15  Bruno Haible  <bruno@clisp.org>
5935
5936         ffs: More tests.
5937         * tests/test-ffs.c (NBITS): New macro.
5938         (main): Add more tests.
5939         * tests/test-ffsl.c (NBITS): New macro.
5940         (main): Add more tests.
5941         * tests/test-ffsll.c (NBITS): New macro.
5942         (main): Add more tests.
5943
5944 2011-07-15  Eric Blake  <eblake@redhat.com>
5945
5946         ffsl, ffsll: new modules
5947         * modules/ffsl: New file.
5948         * modules/ffsll: Likewise.
5949         * m4/ffsl.m4: Likewise.
5950         * m4/ffsll.m4: Likewise.
5951         * lib/ffsl.c: Likewise.
5952         * lib/ffsl.h: Likewise.
5953         * lib/ffsll.c: Likewise.
5954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5955         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5956         * modules/string (Makefile.am): Substitute witnesses.
5957         * lib/strings.in.h (ffsl, ffsll): Declare.
5958         * modules/ffsl-tests: New test file.
5959         * modules/ffsll-tests: Likewise.
5960         * tests/test-ffsl.c: Likewise.
5961         * tests/test-ffsll.c: Likewise.
5962         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5963         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5964         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5965
5966         ffs: fix m4 prerequisite
5967         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5968
5969         ffs: avoid undefined behavior
5970         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5971         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5972         Reported by Bruno Haible.
5973
5974 2011-07-12  Bruno Haible  <bruno@clisp.org>
5975
5976         pthread_sigmask: Rely on module 'threadlib'.
5977         * modules/pthread_sigmask (Depends-on): Add threadlib.
5978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5979         is defined.
5980
5981 2011-07-12  Bruno Haible  <bruno@clisp.org>
5982
5983         regex: Depend on module 'strcase'.
5984         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5985
5986 2011-07-12  Jim Meyering  <meyering@redhat.com>
5987
5988         warn-on-use: fix typo in file name
5989         * modules/snippet/warn-on-use (Files): Correct file name:
5990         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5991
5992 2011-07-12  Bruno Haible  <bruno@clisp.org>
5993
5994         strings: Document module.
5995         * doc/posix-headers/strings.texi: Mention module 'strings'.
5996
5997 2011-07-12  Bruno Haible  <bruno@clisp.org>
5998
5999         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6000         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6001         (Files, Makefile.am): Update.
6002         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6003         * modules/stdlib (Depends-on): Update.
6004
6005 2011-07-12  Bruno Haible  <bruno@clisp.org>
6006
6007         * NEWS: Mention the changes.
6008
6009         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6010         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6011         (Files, Makefile.am): Update.
6012         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6013         * modules/arpa_inet (Depends-on): Update.
6014         * modules/ctype (Depends-on): Update.
6015         * modules/dirent (Depends-on): Update.
6016         * modules/fcntl-h (Depends-on): Update.
6017         * modules/glob (Depends-on): Update.
6018         * modules/iconv-h (Depends-on): Update.
6019         * modules/inttypes-incomplete (Depends-on): Update.
6020         * modules/langinfo (Depends-on): Update.
6021         * modules/locale (Depends-on): Update.
6022         * modules/math (Depends-on): Update.
6023         * modules/netdb (Depends-on): Update.
6024         * modules/poll-h (Depends-on): Update.
6025         * modules/pty (Depends-on): Update.
6026         * modules/search (Depends-on): Update.
6027         * modules/signal (Depends-on): Update.
6028         * modules/spawn (Depends-on): Update.
6029         * modules/stdio (Depends-on): Update.
6030         * modules/stdlib (Depends-on): Update.
6031         * modules/string (Depends-on): Update.
6032         * modules/strings (Depends-on): Update.
6033         * modules/sys_file (Depends-on): Update.
6034         * modules/sys_ioctl (Depends-on): Update.
6035         * modules/sys_select (Depends-on): Update.
6036         * modules/sys_socket (Depends-on): Update.
6037         * modules/sys_stat (Depends-on): Update.
6038         * modules/sys_time (Depends-on): Update.
6039         * modules/sys_times (Depends-on): Update.
6040         * modules/sys_utsname (Depends-on): Update.
6041         * modules/sys_wait (Depends-on): Update.
6042         * modules/termios (Depends-on): Update.
6043         * modules/time (Depends-on): Update.
6044         * modules/unistd (Depends-on): Update.
6045         * modules/wchar (Depends-on): Update.
6046         * modules/wctype-h (Depends-on): Update.
6047         * MODULES.html.sh (Support for building libraries and executables):
6048         Update.
6049
6050         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6051         * modules/snippet/unused-parameter: Renamed from
6052         modules/unused-parameter.
6053         (Files, Makefile.am): Update.
6054         * build-aux/snippet/unused-parameter.h: Renamed from
6055         build-aux/unused-parameter.h.
6056         * modules/selinux-h (Depends-on): Update.
6057         * modules/unistr/base (Depends-on): Update.
6058         * MODULES.html.sh (Core language properties): Update.
6059
6060         Rename module 'link-warning' to 'snippet/link-warning'.
6061         * modules/snippet/link-warning: Renamed from modules/link-warning.
6062         (Files, Makefile.am): Update.
6063         * build-aux/snippet/link-warning.h: Renamed from
6064         build-aux/link-warning.h.
6065         * MODULES.html.sh (Support for building libraries and executables):
6066         Update.
6067
6068         Rename module 'c++defs' to 'snippet/c++defs'.
6069         * modules/snippet/c++defs: Renamed from modules/c++defs.
6070         (Files, Makefile.am): Update.
6071         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6072         * modules/arpa_inet (Depends-on): Update.
6073         * modules/ctype (Depends-on): Update.
6074         * modules/dirent (Depends-on): Update.
6075         * modules/fcntl-h (Depends-on): Update.
6076         * modules/glob (Depends-on): Update.
6077         * modules/iconv-h (Depends-on): Update.
6078         * modules/langinfo (Depends-on): Update.
6079         * modules/locale (Depends-on): Update.
6080         * modules/math (Depends-on): Update.
6081         * modules/netdb (Depends-on): Update.
6082         * modules/poll-h (Depends-on): Update.
6083         * modules/pty (Depends-on): Update.
6084         * modules/search (Depends-on): Update.
6085         * modules/signal (Depends-on): Update.
6086         * modules/spawn (Depends-on): Update.
6087         * modules/stdio (Depends-on): Update.
6088         * modules/stdlib (Depends-on): Update.
6089         * modules/string (Depends-on): Update.
6090         * modules/strings (Depends-on): Update.
6091         * modules/sys_ioctl (Depends-on): Update.
6092         * modules/sys_select (Depends-on): Update.
6093         * modules/sys_socket (Depends-on): Update.
6094         * modules/sys_stat (Depends-on): Update.
6095         * modules/sys_time (Depends-on): Update.
6096         * modules/sys_wait (Depends-on): Update.
6097         * modules/termios (Depends-on): Update.
6098         * modules/time (Depends-on): Update.
6099         * modules/unistd (Depends-on): Update.
6100         * modules/wchar (Depends-on): Update.
6101         * modules/wctype-h (Depends-on): Update.
6102
6103         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6104         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6105         (Files, Makefile.am): Update.
6106         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6107         * modules/argv-iter (Depends-on): Update.
6108         * modules/arpa_inet (Depends-on): Update.
6109         * modules/dirent (Depends-on): Update.
6110         * modules/fcntl-h (Depends-on): Update.
6111         * modules/fnmatch (Depends-on): Update.
6112         * modules/getopt-posix (Depends-on): Update.
6113         * modules/glob (Depends-on): Update.
6114         * modules/iconv-h (Depends-on): Update.
6115         * modules/inttypes-incomplete (Depends-on): Update.
6116         * modules/locale (Depends-on): Update.
6117         * modules/math (Depends-on): Update.
6118         * modules/netdb (Depends-on): Update.
6119         * modules/search (Depends-on): Update.
6120         * modules/signal (Depends-on): Update.
6121         * modules/spawn (Depends-on): Update.
6122         * modules/stdio (Depends-on): Update.
6123         * modules/stdlib (Depends-on): Update.
6124         * modules/string (Depends-on): Update.
6125         * modules/strings (Depends-on): Update.
6126         * modules/sys_socket (Depends-on): Update.
6127         * modules/sys_stat (Depends-on): Update.
6128         * modules/sys_time (Depends-on): Update.
6129         * modules/sys_times (Depends-on): Update.
6130         * modules/sys_utsname (Depends-on): Update.
6131         * modules/time (Depends-on): Update.
6132         * modules/unistd (Depends-on): Update.
6133         * modules/wchar (Depends-on): Update.
6134         * MODULES.html.sh (Support for building libraries and executables):
6135         Update.
6136
6137 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6138
6139         Improvements on _Noreturn and related modules.
6140
6141         modules/_Exit-tests: test _Noreturn too
6142         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6143         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6144         (main): Use them.
6145
6146         stdnoreturn, stdnoreturn-tests: remove modules
6147         They're not needed here and a bit premature for use elsewhere.  See
6148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6149         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6150         * tests/test-stdnoreturn.c: Remove files.
6151         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6152         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6153         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6154         and using noreturn.
6155         * modules/openat, modules/sigpipe-die, modules/xalloc:
6156         * modules/xmemdup0, modules/xstrtol:
6157         Remove dependency on stdnoreturn.
6158
6159         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6160         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6161         Reparenthesize to avoid GCC warning.
6162         Support Microsoft's syntax.
6163         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6164
6165         _Noreturn-tests: remove module
6166         * modules/_Noreturn-tests: Remove.
6167         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6168         * tests/test-_Noreturn.c: Remove.
6169         * tests/test-stdnoreturn.c: Merge from the old
6170         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6171
6172 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6173
6174         _Noreturn, stdnoreturn, and related modules.
6175
6176         * top/maint.mk: Adjust to new noreturn support.
6177         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6178         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6179
6180         xalloc: use stdnoreturn.h
6181         * lib/xalloc.h: Include <stdnoreturn.h>.
6182         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6183         * modules/xalloc (Depends-on): Add stdnoreturn.
6184
6185         xstrtol: use stdnoreturn.h
6186         * lib/xstrtol.h: Include <stdnoreturn.h>.
6187         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6188         * modules/xstrtol (Depends-on): Add stdnoreturn.
6189
6190         xmemdup0: use stdnoreturn.h
6191         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6192         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6193         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6194
6195         sigpipe-die: use stdnoreturn.h
6196         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6197         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6198         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6199
6200         openat: use stdnoreturn.h
6201         * lib/openat.h: Include <stdnoreturn.h>.
6202         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6203         * modules/openat (Depends-on): Add stdnoreturn.
6204
6205         * lib/openat-die.c (openat_save_fail): Modernize comment.
6206
6207         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6208
6209         * lib/glthread/thread.h: Modernize comment.
6210
6211         obstack: use _Noreturn
6212         * lib/obstack.c (__attribute__): Remove macro.
6213         (print_and_abort): Use _Noreturn.
6214
6215         c-stack: use _Noreturn
6216         * lib/c-stack.c (die, overflow_handler, segv_handler):
6217         Use _Noreturn rather than __attribute__((noreturn)).
6218
6219         argmatch-tests, exclude_tests: use _Noreturn
6220         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6221         Remove.
6222         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6223
6224         stdlib: use _Noreturn
6225         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6226         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6227         * modules/stdlib (Depends-on): Add _Noreturn.
6228         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6229
6230         stdnoreturn-tests: new module
6231         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6232
6233         stdnoreturn: new module
6234         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6235         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6236
6237         _Noreturn-tests: new module
6238         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6239
6240         _Noreturn: new module
6241         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6242         New section, mentioning it.
6243         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6244
6245         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6246
6247 2011-07-11  Eric Blake  <eblake@redhat.com>
6248
6249         ffs: new module
6250         * modules/ffs: New file.
6251         * m4/ffs.m4: Likewise.
6252         * lib/ffs.c: Likewise.
6253         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6254         * modules/strings (Makefile.am): Substitute witness.
6255         (Depends-on): Add c++defs.
6256         * lib/strings.in.h (ffs): Declare.
6257         * modules/ffs-tests: New test file.
6258         * tests/test-ffs.c: Test new module.
6259         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6260         * doc/posix-functions/ffs.texi (ffs): Likewise.
6261
6262         regex: avoid compiler warning
6263         * lib/regex.c (includes): Include <strings.h>, for use of
6264         strcasecmp in regcomp.c.
6265         Reported by Joachim Schmitz.
6266
6267 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6268
6269         stdint: respect system's intmax_t if INTMAX_MAX
6270         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6271         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6272         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6273         long but int64_t is long long, and where we will clash with the
6274         system intmax_t if we override it.  See
6275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6276         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6277         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6278         similarly for UINTMAX_C.
6279
6280 2011-07-08  Bruno Haible  <bruno@clisp.org>
6281
6282         pthread_sigmask tests: Avoid a compiler warning.
6283         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6284         non-zero.
6285
6286         sigprocmask tests: A better way to avoid a compiler warning.
6287         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6288         (main): Complain if system() returns non-zero.
6289         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6290
6291 2011-07-08  Bruno Haible  <bruno@clisp.org>
6292
6293         pthread_sigmask: Work around IRIX bug.
6294         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6295         bug.
6296         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6297         there may be unblocked pending signals.
6298         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6299
6300 2011-07-08  Bruno Haible  <bruno@clisp.org>
6301
6302         pthread_sigmask: Work around Cygwin bug.
6303         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6304         bug.
6305         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6306         the system's pthread_sigmask function.
6307         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6308
6309 2011-07-08  Bruno Haible  <bruno@clisp.org>
6310
6311         pthread_sigmask: Work around bug in single-threaded implementation.
6312         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6313         FreeBSD, HP-UX, Solaris bug.
6314         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6315         * lib/pthread_sigmask.c: Include <stddef.h>.
6316         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6317         the system's pthread_sigmask function.
6318         * modules/pthread_sigmask (configure.ac): Invoke
6319         gl_PREREQ_PTHREAD_SIGMASK.
6320         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6321         HP-UX, Solaris.
6322
6323 2011-07-08  Eric Blake  <eblake@redhat.com>
6324
6325         test-sigprocmask: avoid compiler warning
6326         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6327         * tests/test-sigprocmask.c (main): Use it to silence warning.
6328         Reported by Jim Meyering.
6329
6330         test-snprintf: avoid compiler warning
6331         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6332         * tests/test-vsnprintf.c (main): Likewise.
6333         Reported by Jim Meyering.
6334
6335 2011-07-08  Bruno Haible  <bruno@clisp.org>
6336
6337         Tests for module 'pthread_sigmask'.
6338         * modules/pthread_sigmask-tests: New file.
6339         * tests/test-pthread_sigmask1.c: New file, based on
6340         tests/test-sigprocmask.c.
6341         * tests/test-pthread_sigmask2.c: New file.
6342
6343 2011-07-08  Jim Meyering  <meyering@redhat.com>
6344
6345         test-getopt.h: avoid warning about an unused variable
6346         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6347
6348 2011-07-07  Jim Meyering  <meyering@redhat.com>
6349
6350         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6351         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6352         now that it no longer contains leading TABs.
6353         Remove unused "url=FIXME" statement.
6354
6355 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6356
6357         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6358         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6359         When gl_THREADLIB is not in use, assume that the POSIX sematics
6360         are desired.  This is better for Emacs, which uses POSIX semantics
6361         on GNUish and/or POSIXish platforms, and does not use threads at
6362         all otherwise.
6363
6364         pthread_sigmask: fix typo when testing for libraries
6365         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6366         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6367
6368 2011-07-08  Eric Blake  <eblake@redhat.com>
6369
6370         fts: introduce FTS_NOATIME
6371         * lib/fts_.h (FTS_NOATIME): New bit flag.
6372         (FTS_OPTIONMASK): Adjust.
6373         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6374         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6375
6376 2011-07-08  Bruno Haible  <bruno@clisp.org>
6377
6378         Tests for module 'thread'.
6379         * modules/thread-tests: New file.
6380         * tests/test-thread_self.c: New file.
6381         * tests/test-thread_create.cc: New file.
6382
6383 2011-07-08  Bruno Haible  <bruno@clisp.org>
6384
6385         thread: Avoid gcc warnings when using gl_thread_self().
6386         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6387         'void *'.
6388         (gl_thread_self_pointer): Update.
6389
6390 2011-07-07  Bruno Haible  <bruno@clisp.org>
6391
6392         signal-c++-tests: Check declaration of pthread_sigmask.
6393         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6394         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6395         $(LIB_PTHREAD_SIGMASK).
6396
6397 2011-07-07  Bruno Haible  <bruno@clisp.org>
6398
6399         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6400         * lib/signal.in.h (pthread_sigmask): Override if
6401         REPLACE_PTHREAD_SIGMASK is 1.
6402         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6403         REPLACE_PTHREAD_SIGMASK.
6404         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6405         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6406         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6407         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6408         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6409
6410 2011-07-07  Bruno Haible  <bruno@clisp.org>
6411
6412         pthread_sigmask: Ensure declaration in <signal.h>.
6413         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6414         include <pthread.h>.
6415         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6416         problem.
6417
6418 2011-07-07  Bruno Haible  <bruno@clisp.org>
6419
6420         pthread_sigmask: Document the module.
6421         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6422
6423 2011-07-07  Bruno Haible  <bruno@clisp.org>
6424
6425         pthread_sigmask: Follow gnulib conventions.
6426         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6427         gl_PTHREAD_SIGMASK.
6428         * modules/pthread_sigmask (configure.ac): Update.
6429
6430 2011-07-07  Bruno Haible  <bruno@clisp.org>
6431
6432         pthread_sigmask: Make declaration C++ safe.
6433         * lib/signal.in.h: In two special conditions, just do an #include_next.
6434         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6435         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6436         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6437         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6438         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6439         not REPLACE_PTHREAD_MASK.
6440         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6441         not REPLACE_PTHREAD_MASK.
6442         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6443
6444 2011-07-07  Bruno Haible  <bruno@clisp.org>
6445
6446         pthread_sigmask: Fix return value.
6447         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6448         * lib/pthread_sigmask.c: New file.
6449         * modules/pthread_sigmask (Files): Add it.
6450         (configure.ac): Invoke AC_LIBOBJ.
6451
6452 2011-07-07  Eric Blake  <eblake@redhat.com>
6453
6454         getopt: more portable argv creation
6455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6456         const, use char arrays rather than strings.
6457         Suggested by Paul Eggert.
6458
6459 2011-07-07  Bruno Haible  <bruno@clisp.org>
6460
6461         Tests for module 'sigprocmask'.
6462         * modules/sigprocmask-tests: New file.
6463         * tests/test-sigprocmask.c: New file.
6464
6465 2011-07-07  Bruno Haible  <bruno@clisp.org>
6466
6467         float tests: Tweak.
6468         * tests/test-float.c (main): Tweak skip message.
6469
6470 2011-07-07  Eric Blake  <eblake@redhat.com>
6471
6472         getopt: avoid compiler warning during configure
6473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6474         assigning string literals to non-const pointer.
6475
6476         getopt-gnu: avoid crash in glibc getopt
6477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6478         * tests/test-getopt.h (test_getopt): Enhance test.
6479         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6480         * doc/posix-functions/getopt.texi (getopt): Document it.
6481         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6482         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6483         Likewise.
6484
6485 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6486
6487         getopt: handle W; without long options in getopt [BZ #12922]
6488         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6489         but no long options are defined, just return 'W'.
6490
6491 2011-07-07  Bruno Haible  <bruno@clisp.org>
6492
6493         Avoid literal tabs.
6494         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6495         variable containing a tab instead of a literal tab.
6496         Reported by Jim Meyering.
6497
6498 2011-07-07  Bruno Haible  <bruno@clisp.org>
6499
6500         Comments.
6501         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6502
6503 2011-07-06  Bruno Haible  <bruno@clisp.org>
6504
6505         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6506         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6507         <winsock2.h>.
6508         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6509         lib/sys_socket.in.h.
6510         (close, gethostname): Hide declarations from <winsock2.h>.
6511         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6512         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6513         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6514         (select): Don't override if gnulib's <sys/select.h> was already
6515         included.
6516         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6517         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6518         setsockopt, shutdown, select): Tweak indentation.
6519
6520 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6521
6522         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6523         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6524         in an application that does not use the sys_select module.
6525
6526 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6527
6528         poll: do not return 0 on timeout=-1
6529         * lib/poll.c: Loop with yield if no events occured
6530
6531 2011-07-06  Eric Blake  <eblake@redhat.com>
6532
6533         pthread_sigmask: always replace when not using pthread
6534         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6535         replacement when using some threading other than pthread.  Fix
6536         logic bug.
6537
6538 2011-07-06  Bruno Haible  <bruno@clisp.org>
6539
6540         Comments.
6541         * m4/printf.m4: Update comments about mingw.
6542
6543 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6544
6545         sys_select: define sigset_t more portably
6546         * lib/sys_select.in.h: Always include <sys/types.h>, since
6547         we now need sigset_t and mingw defines it there.
6548         Include <signal.h> before split inclusion guard, to avoid
6549         mishaps on Solaris, whose <signal.h> eventually includes us.
6550         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6551         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6552         which come from ...
6553         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6554         gl_CHECK_TYPE_SIGSET_T.
6555         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6556         does the real work.
6557         * modules/sys_select (Depends-on): Add 'signal'.
6558
6559         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6560         Suggested by Bruno Haible.
6561
6562         pselect: Use pthread_sigmask, not sigprocmask.
6563         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6564         multithreaded apps better than sigprocmask does.
6565         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6566         sigprocmask directly.
6567
6568 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6569
6570         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6571         Don't #undef,  since we don't need any underlying pselect.
6572         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6573         (Depends-on): Add select.
6574         (Link): Add $(LIBSOCKET).
6575         These changes suggested by Bruno Haible.
6576
6577         pselect: document better
6578         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6579         * doc/posix-functions/pselect.texi (pselect): Document new module.
6580
6581         pthread_sigmask: new module
6582         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6583         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6584         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6585         This is done only as a macro; I don't know how well that'll
6586         work for C++.  Move <sys/types.h> include before the include_next,
6587         to avoid mishap on Solaris.
6588         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6589         * modules/signal (Makefile.am): Substitute the check's results.
6590         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6591
6592         test-pselect: new module
6593         * modules/pselect-tests, tests/test-pselect.c: New files.
6594         * tests/test-select.c, tests/test-sys_select-c++.cc:
6595         If TEST_PSELECT is defined, test pselect instead of testing select.
6596
6597         * tests/test-sys_select.c (sigset_t): Test for it, too.
6598         Suggested by Bruno Haible.
6599
6600 2011-07-05  Eric Blake  <eblake@redhat.com>
6601
6602         snprintf: guarantee %1$d, for libintl
6603         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6604         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6605         * doc/posix-functions/snprintf.texi (snprintf): Update.
6606         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6607         * tests/test-snprintf.c (main): Enhance test.
6608         * tests/test-vsnprintf.c (main): Likewise.
6609
6610 2011-07-05  Jim Meyering  <meyering@redhat.com>
6611
6612         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6613         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6614         per Bruno's request, to accommodate this idiom (no space after "#")
6615         even when the function is inside an #if block:
6616         char *
6617         gets (char *s)
6618         #undef gets
6619         {
6620           ...
6621         }
6622
6623 2011-07-04  Jim Meyering  <meyering@redhat.com>
6624
6625         maint: indent with spaces, not TABs, and add a rule to check this
6626         * tests/test-userspec.c: Indent with spaces, not TABs.
6627         * tests/test-argp.c: Likewise.
6628         * tests/test-c-stack2.sh: Likewise.
6629         * tests/test-parse-duration.sh: Likewise
6630         * m4/strtod.m4: Likewise.
6631         * m4/alloca.m4: Likewise.
6632         * m4/pselect.m4: Likewise.
6633         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6634
6635 2011-07-03  Jim Meyering  <meyering@redhat.com>
6636
6637         maint.mk: correct omissions in prohibit_argmatch_without_use check
6638         This rule would mistakenly report that argmatch.h is included without
6639         use even when both the argmatch and invalid_arg macro were used.
6640         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6641         of argmatch and invalid_arg.
6642
6643 2011-07-03  Bruno Haible  <bruno@clisp.org>
6644
6645         Comments about EINTR.
6646         * lib/safe-read.h: Explain the purpose of this module.
6647         * lib/safe-write.h: Likewise.
6648         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6649         module.
6650         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6651         module.
6652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6653
6654 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6655
6656         xnanosleep: Rewrite to use new dtotimespec module.
6657         It has the conversion code that used to be in xnanosleep.
6658         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6659         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6660         (TIME_T_MAX): Remove.
6661         (xnanosleep): Rewrite in terms of dtotimespec.
6662         * modules/xnanosleep (Depends-on): Add dtotimespec.
6663         Remove intprops, stdbool.
6664
6665         timespec-add, timespec-sub: new modules
6666         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6667         * lib/timespec-add.c, lib/timespec-sub.c:
6668         * modules/timespec-add, modules/timespec-sub: New files.
6669
6670         dtotimespec: new module
6671         * lib/timespec.h (dtotimespec): New decl.
6672         * lib/dtotimespec.c, modules/dtotimespec: New files.
6673
6674         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6675
6676         pselect: new module
6677         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6678         (pselect): New decls.
6679         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6680         since the standard pselect decl uses 'restrict'.
6681         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6682         HAVE_PSELECT, REPLACE_PSELECT.
6683         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6684         HAVE_PSELECT, REPLACE_PSELECT.
6685         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6686
6687         sys_select: don't depend on sys_socket
6688         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6690         This fix works on GNU and GNU-like platforms, but has not been tested
6691         on native Windows.
6692         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6693         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6694         gl_HEADER_SYS_SOCKET.
6695         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6696         gl_PREREQ_SYS_H_WINSOCK2.
6697
6698 2011-06-29  Eric Blake  <eblake@redhat.com>
6699
6700         pipe2: fix C89 compile problem
6701         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6702         Reported by Bruno Haible.
6703
6704         pipe, pipe2: don't corrupt fd on error
6705         * lib/pipe.c (pipe): Leave fd unchanged on error.
6706         * lib/pipe2.c (pipe2): Likewise.
6707         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6708         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6709
6710 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6711
6712         mmap-anon: do not use regular expressions inadvertently
6713         * m4/mmap-anon.m4: Remove trailing period from strings sought
6714         in the output.
6715
6716 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6717
6718         nanosleep: fix integer overflow problem
6719         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6720         arithmetic wraps around on overflow.
6721
6722         nanosleep: simplify carrying
6723         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6724         first call to the underyling nanosleep, not for the last one.
6725         This doesn't fix any bugs, but it simplifies the computation of
6726         the remaining delay.  Found while auditing integer overflow issues.
6727
6728         dup2: remove test for existence of fcntl
6729         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6730         "#if HAVE_FCNTL", in the configure-time test program.
6731         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6732         and therefore speeds up "configure" a bit.  Found while
6733         adding the dup2 module to Emacs.
6734
6735 2011-06-24  Eric Blake  <eblake@redhat.com>
6736
6737         maint.mk: enhance useless header checks
6738         * top/maint.mk (_sc_header_without_use): Check both include
6739         styles.
6740         (sc_prohibit_assert_without_use)
6741         (sc_prohibit_close_stream_without_use)
6742         (sc_prohibit_getopt_without_use)
6743         (sc_prohibit_quotearg_without_use)
6744         (sc_prohibit_quote_without_use)
6745         (sc_prohibit_long_options_without_use)
6746         (sc_prohibit_inttostr_without_use)
6747         (sc_prohibit_ignore_value_without_use)
6748         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6749         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6750         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6751         (sc_prohibit_hash_pjw_without_use)
6752         (sc_prohibit_safe_read_without_use)
6753         (sc_prohibit_argmatch_without_use)
6754         (sc_prohibit_canonicalize_without_use)
6755         (sc_prohibit_root_dev_ino_without_use)
6756         (sc_prohibit_openat_without_use)
6757         (sc_prohibit_c_ctype_without_use)
6758         (sc_prohibit_signal_without_use)
6759         (sc_prohibit_stdio--_without_use)
6760         (sc_prohibit_stdio-safer_without_use)
6761         (sc_prohibit_strings_without_use)
6762         (sc_prohibit_intprops_without_use)
6763         (sc_prohibit_stddef_without_use)
6764         (sc_prohibit_xfreopen_without_use): Update clients.
6765
6766 2011-06-24  Jim Meyering  <meyering@redhat.com>
6767
6768         syntax-check: keep one maint.mk rule in sync with its header
6769         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6770         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6771         I prefer to avoid temporary files here, so use <(...), but that
6772         is not supported by /bin/sh, so...
6773         (SHELL): Define to /bin/bash.
6774
6775 2011-06-24  Eric Blake  <eblake@redhat.com>
6776
6777         maint.mk: update sc_prohibit_intprops_without_use
6778         * top/maint.mk (_intprops_names): Match recent changes.
6779
6780 2011-06-24  Bruno Haible  <bruno@clisp.org>
6781
6782         strerror-override: No-op tweak.
6783         * lib/strerror-override.h (strerror_override): Reorder conditions,
6784         for consistency with lib/strerror-override.c.
6785
6786 2011-06-23  Eric Blake  <eblake@redhat.com>
6787
6788         maint.mk: test further PATH_MAX issues
6789         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6790         (sc_prohibit_path_max_allocation): ...and also test alloca.
6791         Suggested by Jim Meyering.
6792
6793 2011-06-22  Eric Blake  <eblake@redhat.com>
6794
6795         maint.mk: add syntax-check to avoid char[PATH_MAX]
6796         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6797
6798         stat: be robust to PATH_MAX definition
6799         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6800         * modules/stat (Depends-on): Add verify.
6801
6802         link: work around IRIX bug
6803         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6804         * lib/link.c (rpl_link): Work around it.
6805         * tests/test-link.h (test_link): Enhance test.
6806         * doc/posix-functions/link.texi (link): Document the bug.
6807
6808         getopt: silence clang warning
6809         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6810         dereference.
6811         Reported by Gustavo Martin Domato.
6812
6813 2011-06-22  Jim Meyering  <meyering@redhat.com>
6814
6815         bootstrap: do not insert a blank line into each .gitignore file
6816         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6817
6818 2011-06-21  Eric Blake  <eblake@redhat.com>
6819
6820         perror: test for output mismatch
6821         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6822         perror on IRIX.
6823
6824         strerror_r: fix OpenBSD behavior on out-of-range
6825         * lib/strerror_r.c (strerror_r): Always use maximal string.
6826         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6827
6828         strerror_r: fix OpenBSD behavior on 0
6829         * lib/strerror-override.c (strerror_override): Also override 0
6830         when needed.
6831         * lib/strerror-override.h (strerror_override): Likewise.
6832         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6833         earlier.
6834         * lib/strerror_r.c (strerror_r): Likewise.
6835         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6836         behavior...
6837         (gl_FUNC_STRERROR_0): ...into new macro.
6838         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6839         is overridden.
6840         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6841         * modules/strerror-override (Files): Add strerror.m4.
6842         (configure.ac): Also provide override for 0 when needed.
6843         * doc/posix-functions/strerror.texi (strerror): Document this.
6844         * doc/posix-functions/perror.texi (perror): Likewise.
6845
6846         perror: adjust array size
6847         * modules/perror (Depends-on): Add strerror-override.
6848         * lib/perror.c (perror): Use it to avoid magic number.
6849
6850         strerror-override: reduce size
6851         * lib/strerror-override.c (strerror_override): Use fewer lines.
6852
6853 2011-06-20  Bruno Haible  <bruno@clisp.org>
6854
6855         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6856         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6857
6858 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6859
6860         alloca: port to compilers that can optimize like GCC 4.6.0
6861         * lib/alloca.c (find_stack_direction): New signature, taken from
6862         Autoconf git.  This works with GCC 4.6.0.  This code should never
6863         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6864         be used with other compilers that optimize as well as GCC 4.6.0 does.
6865         (alloca): Adjust to new signature.
6866         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6867         New macro, which patches Autoconf in a similar way.
6868
6869         c-stack: stop worrying about stack direction
6870         * lib/c-stack.c (find_stack_direction): Remove.
6871         (segv_handler): Don't worry about stack direction growth, as it's
6872         too much of a pain to configure this correctly, given how compilers
6873         are optimizing-away our stack-growth detection code.  Instead, assume
6874         that any access to just before or just after the stack is OK.
6875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6876         Don't require AC_FUNC_ALLOCA; no longer needed.
6877
6878 2011-06-20  Eric Blake  <eblake@redhat.com>
6879
6880         test-stat: don't allocate PATH_MAX bytes
6881         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6882         PATH_MAX-sized buffer.
6883         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6884         * modules/stat-tests (Depends-on): Likewise.
6885         * tests/test-fstatat.c (includes): Drop pathmax.h.
6886         * tests/test-stat.c (includes): Likewise.
6887         Reported by Bruno Haible.
6888
6889 2011-06-20  Bruno Haible  <bruno@clisp.org>
6890
6891         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6892         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6893         * lib/float.c: New file.
6894         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6895         REPLACE_FLOAT_LDBL.
6896         * modules/float (Files): Add lib/float.c.
6897         (configure.ac): Invoke AC_LIBOBJ.
6898         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6899
6900 2011-06-20  Bruno Haible  <bruno@clisp.org>
6901
6902         Tests for module 'float'.
6903         * modules/float-tests: New file.
6904         * tests/test-float.c: New file.
6905
6906 2011-06-19  Bruno Haible  <bruno@clisp.org>
6907
6908         isinf: Coding style.
6909         * lib/isinf.c: Use GNU coding style.
6910
6911 2011-06-19  Bruno Haible  <bruno@clisp.org>
6912
6913         linkat test: Avoid test failure on AIX 7.1.
6914         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6915         * tests/test-link.h (test_link): Likewise.
6916
6917 2011-06-19  Bruno Haible  <bruno@clisp.org>
6918
6919         pread test: Avoid test failure on OpenBSD 4.9.
6920         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6921
6922 2011-06-19  Bruno Haible  <bruno@clisp.org>
6923
6924         sprintf-posix: Fix test failure on AIX 7.1.
6925         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6926         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6927         on AIX.
6928         * doc/posix-functions/fprintf.texi: Likewise.
6929         * doc/posix-functions/printf.texi: Likewise.
6930         * doc/posix-functions/snprintf.texi: Likewise.
6931         * doc/posix-functions/sprintf.texi: Likewise.
6932         * doc/posix-functions/vdprintf.texi: Likewise.
6933         * doc/posix-functions/vfprintf.texi: Likewise.
6934         * doc/posix-functions/vprintf.texi: Likewise.
6935         * doc/posix-functions/vsnprintf.texi: Likewise.
6936         * doc/posix-functions/vsprintf.texi: Likewise.
6937
6938 2011-06-19  Bruno Haible  <bruno@clisp.org>
6939
6940         roundl-ieee: Fix test failure on AIX 7.1.
6941         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6942         * doc/posix-functions/roundl.texi: Mention problem with negative
6943         arguments.
6944
6945 2011-06-19  Bruno Haible  <bruno@clisp.org>
6946
6947         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6948         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6949         * doc/posix-functions/round.texi: Mention problem with negative
6950         arguments.
6951         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6952
6953 2011-06-19  Bruno Haible  <bruno@clisp.org>
6954
6955         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6956         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6957         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6958         * doc/posix-functions/roundf.texi: Mention problem with negative
6959         arguments.
6960         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6961
6962 2011-06-19  Bruno Haible  <bruno@clisp.org>
6963
6964         ceilf-ieee: Work around bug on MacOS X 10.5.
6965         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6966
6967         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6968         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6969         IEEE compliant, avoid compiler optimizations.
6970         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6971         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6972         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6973         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6974         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6975         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6976         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6977         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6978         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6980
6981 2011-06-19  Bruno Haible  <bruno@clisp.org>
6982
6983         ceilf-ieee: Work around bug on AIX 7.1.
6984         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6985         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6986
6987 2011-06-19  Bruno Haible  <bruno@clisp.org>
6988
6989         ceil-ieee: Work around bug on AIX 7.1.
6990         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6991         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6992
6993 2011-06-18  Bruno Haible  <bruno@clisp.org>
6994
6995         fsync test: Avoid test failure on MacOS X and AIX.
6996         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6997         EINVAL.
6998
6999 2011-06-18  Bruno Haible  <bruno@clisp.org>
7000
7001         openat, fdopendir tests: Fix link errors.
7002         * modules/openat-tests (Depends-on): Add progname.
7003         * modules/fdopendir-tests (Depends-on): Likewise.
7004         * tests/test-fchownat.c: Include progname.h.
7005         (main): Call set_program_name.
7006         * tests/test-fstatat.c: Include progname.h.
7007         (main): Call set_program_name.
7008         * tests/test-mkdirat.c: Include progname.h.
7009         (main): Call set_program_name.
7010         * tests/test-openat.c: Include progname.h.
7011         (main): Call set_program_name.
7012         * tests/test-unlinkat.c: Include progname.h.
7013         (main): Call set_program_name.
7014         * tests/test-fdopendir.c: Include progname.h.
7015         (main): Call set_program_name.
7016
7017 2011-06-18  Bruno Haible  <bruno@clisp.org>
7018
7019         Doc update.
7020         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7021         HP-UX.
7022         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7023
7024 2011-06-18  Bruno Haible  <bruno@clisp.org>
7025
7026         getcwd tests: Avoid compilation error on HP-UX 11.31.
7027         * modules/getcwd-tests (Depends-on): Add pathmax.
7028         * tests/test-getcwd.c: Include pathmax.h.
7029
7030 2011-06-18  Bruno Haible  <bruno@clisp.org>
7031
7032         isfinite, isinf: Fix link error on AIX 6 and 7.
7033         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7034         needed, also test the macro with a 'float' argument.
7035         * m4/isinf.m4 (gl_ISINF): Likewise.
7036
7037 2011-06-18  Bruno Haible  <bruno@clisp.org>
7038
7039         getloadavg: Don't clobber LIBS. Regression from previous commit.
7040         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7041         AC_CHECK_LIB from here...
7042         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7043         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7044         gl_func_getloadavg_done.
7045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7046
7047 2011-06-18  Bruno Haible  <bruno@clisp.org>
7048
7049         clean-temp: Improve documentation.
7050         * lib/clean-temp.h: Explain better how to use this module.
7051         Reported by John Darrington <john@darrington.wattle.id.au>.
7052
7053 2011-06-17  Bruno Haible  <bruno@clisp.org>
7054
7055         pread, pwrite: Avoid cc warning on AIX.
7056         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7057         (pwrite): Likewise.
7058
7059 2011-06-17  Bruno Haible  <bruno@clisp.org>
7060
7061         spawn-pipe tests: Fix link error.
7062         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7064
7065 2011-06-17  Bruno Haible  <bruno@clisp.org>
7066
7067         Tests: Remove unnecessary dependency.
7068         * modules/canonicalize-tests (Depends-on): Remove progname.
7069         * modules/chown-tests (Depends-on): Likewise.
7070         * modules/dirname-tests (Depends-on): Likewise.
7071         * modules/fdopendir-tests (Depends-on): Likewise.
7072         * modules/fdutimensat-tests (Depends-on): Likewise.
7073         * modules/hash-tests (Depends-on): Likewise.
7074         * modules/lchown-tests (Depends-on): Likewise.
7075         * modules/linkat-tests (Depends-on): Likewise.
7076         * modules/renameat-tests (Depends-on): Likewise.
7077         * modules/spawn-pipe-tests (Depends-on): Likewise.
7078         * modules/utimensat-tests (Depends-on): Likewise.
7079
7080 2011-06-17  Bruno Haible  <bruno@clisp.org>
7081
7082         spawn-pipe tests: Fix link error.
7083         * tests/test-spawn-pipe-child.c: Undefine fflush.
7084
7085 2011-06-17  Bruno Haible  <bruno@clisp.org>
7086
7087         Fix tests link errors.
7088         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7089         * modules/chown-tests (Makefile.am): Don't link test-chown with
7090         LIBINTL.
7091         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7092         LIBINTL.
7093         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7094         LIBINTL.
7095         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7096         LIBINTL.
7097
7098 2011-06-16  Bruno Haible  <bruno@clisp.org>
7099
7100         crypto/gc-sha1: Fix recent regression.
7101         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7102         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7103
7104         crypto/gc-md5: Fix recent regression.
7105         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7106
7107         crypto/gc-md4: Fix recent regression.
7108         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7109         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7110
7111         crypto/gc-arctwo: Fix recent regression.
7112         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7113         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7114
7115         crypto/gc-rijndael: Fix recent regression.
7116         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7117         (configure.ac): Invoke AC_LIBOBJ here.
7118         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7120
7121         crypto/gc-hmac-sha1: Fix recent regression.
7122         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7123         (configure.ac): Invoke AC_LIBOBJ here.
7124         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7126
7127         crypto/gc-hmac-md5: Fix recent regression.
7128         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7129         (configure.ac): Invoke AC_LIBOBJ here.
7130         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7132
7133         crypto/gc-des: Fix recent regression.
7134         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7135         (configure.ac): Invoke AC_LIBOBJ here.
7136         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7138
7139         crypto/gc-arcfour: Fix recent regression.
7140         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7141         (configure.ac): Invoke AC_LIBOBJ here.
7142         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7144
7145 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7146
7147         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7148         After the 2011-05-21 change, this macro requires
7149         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7150         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7151
7152 2011-06-16  Bruno Haible  <bruno@clisp.org>
7153
7154         fprintftime: Move AC_LIBOBJ invocations to module description.
7155         * m4/fprintftime.m4: Remove file.
7156         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7157         (configure.ac): Remove gl_FPRINTFTIME call.
7158         (Makefile.am): Augment lib_SOURCES.
7159         Reported by Jim Meyering.
7160
7161 2011-06-16  Bruno Haible  <bruno@clisp.org>
7162
7163         tmpfile-safer: Finish 2011-05-23 commit.
7164         * m4/stdio-safer.m4: Really remove file.
7165         Reported by Jim Meyering.
7166
7167 2011-06-16  Bruno Haible  <bruno@clisp.org>
7168
7169         syntax-check: Fix typo.
7170         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7171         printf-posix.m4.
7172         Reported by Jim Meyering.
7173
7174 2011-06-13  Jim Meyering  <meyering@redhat.com>
7175
7176         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7177         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7178
7179 2011-05-23  Bruno Haible  <bruno@clisp.org>
7180
7181         yesno: Move AC_LIBOBJ invocations to module description.
7182         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7183         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7184
7185 2011-05-23  Bruno Haible  <bruno@clisp.org>
7186
7187         xstrtol: Move AC_LIBOBJ invocations to module description.
7188         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7189         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7190
7191 2011-05-23  Bruno Haible  <bruno@clisp.org>
7192
7193         xstrtold: Move AC_LIBOBJ invocations to module description.
7194         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7195         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7196
7197 2011-05-23  Bruno Haible  <bruno@clisp.org>
7198
7199         xstrtod: Move AC_LIBOBJ invocations to module description.
7200         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7201         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7202
7203 2011-05-23  Bruno Haible  <bruno@clisp.org>
7204
7205         xnanosleep: Move AC_LIBOBJ invocations to module description.
7206         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7207         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7208
7209 2011-05-23  Bruno Haible  <bruno@clisp.org>
7210
7211         xgetcwd: Move AC_LIBOBJ invocations to module description.
7212         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7213         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7214
7215 2011-05-23  Bruno Haible  <bruno@clisp.org>
7216
7217         xalloc: Move AC_LIBOBJ invocations to module description.
7218         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7219         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7220
7221 2011-05-23  Bruno Haible  <bruno@clisp.org>
7222
7223         write-any-file: Move AC_LIBOBJ invocations to module description.
7224         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7225         invocation.
7226         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7227
7228 2011-05-23  Bruno Haible  <bruno@clisp.org>
7229
7230         utimens: Move AC_LIBOBJ invocations to module description.
7231         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7232         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7233
7234 2011-05-23  Bruno Haible  <bruno@clisp.org>
7235
7236         utimecmp: Move AC_LIBOBJ invocations to module description.
7237         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7238         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7239
7240 2011-05-23  Bruno Haible  <bruno@clisp.org>
7241
7242         userspec: Move AC_LIBOBJ invocations to module description.
7243         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7244         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7245
7246 2011-05-23  Bruno Haible  <bruno@clisp.org>
7247
7248         unlinkdir: Move AC_LIBOBJ invocations to module description.
7249         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7250         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7251
7252 2011-05-23  Bruno Haible  <bruno@clisp.org>
7253
7254         unistd-safer: Move AC_LIBOBJ invocations to module description.
7255         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7256         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7257
7258 2011-05-23  Bruno Haible  <bruno@clisp.org>
7259
7260         tempname: Move AC_LIBOBJ invocations to module description.
7261         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7262         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7263
7264 2011-05-23  Bruno Haible  <bruno@clisp.org>
7265
7266         strftime: Move AC_LIBOBJ invocations to module description.
7267         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7268         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7273         * m4/stdlib-safer.m4: Remove file.
7274         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7275         (configure.ac): Remove gl_STDLIB_SAFER call.
7276         (Makefile.am): Augment lib_SOURCES.
7277
7278 2011-05-23  Bruno Haible  <bruno@clisp.org>
7279
7280         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7281         * m4/stdio-safer.m4: Remove file.
7282         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7283         (configure.ac): Remove gl_TMPFILE_SAFER call.
7284         (Makefile.am): Augment lib_SOURCES.
7285
7286 2011-05-23  Bruno Haible  <bruno@clisp.org>
7287
7288         popen-safer: Move AC_LIBOBJ invocations to module description.
7289         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7290         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7291         (configure.ac): Remove gl_POPEN_SAFER call.
7292         (Makefile.am): Augment lib_SOURCES.
7293
7294 2011-05-23  Bruno Haible  <bruno@clisp.org>
7295
7296         freopen-safer: Move AC_LIBOBJ invocations to module description.
7297         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7298         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7299         (configure.ac): Remove gl_FREOPEN_SAFER call.
7300         (Makefile.am): Augment lib_SOURCES.
7301
7302 2011-05-23  Bruno Haible  <bruno@clisp.org>
7303
7304         fopen-safer: Move AC_LIBOBJ invocations to module description.
7305         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7306         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7307         (configure.ac): Remove gl_FOPEN_SAFER call.
7308         (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7313         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7314         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7315
7316 2011-05-23  Bruno Haible  <bruno@clisp.org>
7317
7318         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7319         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7320         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7321
7322 2011-05-23  Bruno Haible  <bruno@clisp.org>
7323
7324         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7325         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7326         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7327
7328 2011-05-23  Bruno Haible  <bruno@clisp.org>
7329
7330         settime: Move AC_LIBOBJ invocations to module description.
7331         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7332         * modules/settime (Makefile.am): Augment lib_SOURCES.
7333
7334 2011-05-23  Bruno Haible  <bruno@clisp.org>
7335
7336         savedir: Move AC_LIBOBJ invocations to module description.
7337         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7338         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7339
7340 2011-05-23  Bruno Haible  <bruno@clisp.org>
7341
7342         save-cwd: Move AC_LIBOBJ invocations to module description.
7343         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7344         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7345
7346 2011-05-23  Bruno Haible  <bruno@clisp.org>
7347
7348         same: Move AC_LIBOBJ invocations to module description.
7349         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7350         * modules/same (Makefile.am): Augment lib_SOURCES.
7351
7352 2011-05-23  Bruno Haible  <bruno@clisp.org>
7353
7354         safe-write: Move AC_LIBOBJ invocations to module description.
7355         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7356         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7357         instead of gl_SAFE_WRITE.
7358         (Makefile.am): Augment lib_SOURCES.
7359
7360 2011-05-23  Bruno Haible  <bruno@clisp.org>
7361
7362         safe-read: Move AC_LIBOBJ invocations to module description.
7363         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7364         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7365         of gl_SAFE_READ.
7366         (Makefile.am): Augment lib_SOURCES.
7367
7368 2011-05-23  Bruno Haible  <bruno@clisp.org>
7369
7370         safe-alloc: Move AC_LIBOBJ invocations to module description.
7371         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7372         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7373
7374 2011-05-23  Bruno Haible  <bruno@clisp.org>
7375
7376         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7377         * m4/rijndael.m4: Remove file.
7378         * modules/crypto/rijndael (Files): Remove it.
7379         (configure.ac): Remove gl_RIJNDAEL call.
7380         (Makefile.am): Augment lib_SOURCES.
7381
7382 2011-05-23  Bruno Haible  <bruno@clisp.org>
7383
7384         readtokens: Move AC_LIBOBJ invocations to module description.
7385         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7386         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7387
7388 2011-05-23  Bruno Haible  <bruno@clisp.org>
7389
7390         read-file: Move AC_LIBOBJ invocations to module description.
7391         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7392         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7393         of gl_FUNC_READ_FILE.
7394         (Makefile.am): Augment lib_SOURCES.
7395
7396 2011-05-23  Bruno Haible  <bruno@clisp.org>
7397
7398         quotearg: Move AC_LIBOBJ invocations to module description.
7399         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7400         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7401
7402 2011-05-23  Bruno Haible  <bruno@clisp.org>
7403
7404         quote: Move AC_LIBOBJ invocations to module description.
7405         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7406         * modules/quote (Makefile.am): Augment lib_SOURCES.
7407
7408 2011-05-23  Bruno Haible  <bruno@clisp.org>
7409
7410         posixver: Move AC_LIBOBJ invocations to module description.
7411         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7412         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7413
7414 2011-05-23  Bruno Haible  <bruno@clisp.org>
7415
7416         posixtm: Move AC_LIBOBJ invocations to module description.
7417         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7418         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7419
7420 2011-05-23  Bruno Haible  <bruno@clisp.org>
7421
7422         physmem: Move AC_LIBOBJ invocations to module description.
7423         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7424         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7425
7426 2011-05-23  Bruno Haible  <bruno@clisp.org>
7427
7428         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7429         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7430         invocation.
7431         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         mpsort: Move AC_LIBOBJ invocations to module description.
7436         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7437         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         modechange: Move AC_LIBOBJ invocations to module description.
7442         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7443         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         mkdir-p: Move AC_LIBOBJ invocations to module description.
7448         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7449         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7454         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7455         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7456
7457 2011-05-23  Bruno Haible  <bruno@clisp.org>
7458
7459         mgetgroups: Move AC_LIBOBJ invocations to module description.
7460         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7461         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7462
7463 2011-05-23  Bruno Haible  <bruno@clisp.org>
7464
7465         memxor: Move AC_LIBOBJ invocations to module description.
7466         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7467         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7468
7469 2011-05-23  Bruno Haible  <bruno@clisp.org>
7470
7471         memcoll: Move AC_LIBOBJ invocations to module description.
7472         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7473         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7474
7475 2011-05-23  Bruno Haible  <bruno@clisp.org>
7476
7477         memcasecmp: Move AC_LIBOBJ invocations to module description.
7478         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7479         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7480
7481 2011-05-23  Bruno Haible  <bruno@clisp.org>
7482
7483         crypto/md5: Move AC_LIBOBJ invocations to module description.
7484         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7485         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         crypto/md4: Move AC_LIBOBJ invocations to module description.
7490         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7491         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         crypto/md2: Move AC_LIBOBJ invocations to module description.
7496         * m4/md2.m4: Remove file.
7497         * modules/crypto/md2 (Files): Remove it.
7498         (configure.ac): Remove gl_MD2 call.
7499         (Makefile.am): Augment lib_SOURCES.
7500
7501 2011-05-23  Bruno Haible  <bruno@clisp.org>
7502
7503         long-options: Move AC_LIBOBJ invocations to module description.
7504         * m4/long-options.m4: Remove file.
7505         * modules/long-options (Files): Remove it.
7506         (configure.ac): Remove gl_LONG_OPTIONS call.
7507         (Makefile.am): Augment lib_SOURCES.
7508
7509 2011-05-23  Bruno Haible  <bruno@clisp.org>
7510
7511         i-ring: Move AC_LIBOBJ invocations to module description.
7512         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7513         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7514
7515 2011-05-23  Bruno Haible  <bruno@clisp.org>
7516
7517         idcache: Move AC_LIBOBJ invocations to module description.
7518         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7519         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7520
7521 2011-05-23  Bruno Haible  <bruno@clisp.org>
7522
7523         human: Move AC_LIBOBJ invocations to module description.
7524         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7525         * modules/human (Makefile.am): Augment lib_SOURCES.
7526
7527 2011-05-23  Bruno Haible  <bruno@clisp.org>
7528
7529         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7530         * m4/hmac-sha1.m4: Remove file.
7531         * modules/crypto/hmac-sha1 (Files): Remove it.
7532         (configure.ac): Remove gl_HMAC_SHA1 call.
7533         (Makefile.am): Augment lib_SOURCES.
7534
7535 2011-05-23  Bruno Haible  <bruno@clisp.org>
7536
7537         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7538         * m4/hmac-md5.m4: Remove file.
7539         * modules/crypto/hmac-md5 (Files): Remove it.
7540         (configure.ac): Remove gl_HMAC_MD5 call.
7541         (Makefile.am): Augment lib_SOURCES.
7542
7543 2011-05-23  Bruno Haible  <bruno@clisp.org>
7544
7545         hash: Move AC_LIBOBJ invocations to module description.
7546         * m4/hash.m4: Remove file.
7547         * modules/hash (Files): Remove it.
7548         (configure.ac): Remove gl_HASH call.
7549         (Makefile.am): Augment lib_SOURCES.
7550
7551 2011-05-23  Bruno Haible  <bruno@clisp.org>
7552
7553         hard-locale: Move AC_LIBOBJ invocations to module description.
7554         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7555         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7556
7557 2011-05-23  Bruno Haible  <bruno@clisp.org>
7558
7559         getugroups: Move AC_LIBOBJ invocations to module description.
7560         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7561         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7562
7563 2011-05-23  Bruno Haible  <bruno@clisp.org>
7564
7565         gettime: Move AC_LIBOBJ invocations to module description.
7566         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7567         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7568
7569 2011-05-23  Bruno Haible  <bruno@clisp.org>
7570
7571         getndelim2: Move AC_LIBOBJ invocations to module description.
7572         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7573         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7574
7575 2011-05-23  Bruno Haible  <bruno@clisp.org>
7576
7577         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7578         * m4/gc-pbkdf2-sha1.m4: Remove file.
7579         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7580         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7581         (Makefile.am): Augment lib_SOURCES.
7582
7583 2011-05-23  Bruno Haible  <bruno@clisp.org>
7584
7585         fts: Move AC_LIBOBJ invocations to module description.
7586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7587         * modules/fts (configure.ac): ... to here.
7588
7589 2011-05-23  Bruno Haible  <bruno@clisp.org>
7590
7591         file-type: Move AC_LIBOBJ invocations to module description.
7592         * m4/file-type.m4: Remove file.
7593         * modules/file-type (Files): Remove it.
7594         (configure.ac): Remove gl_FILE_TYPE call.
7595         (Makefile.am): Augment lib_SOURCES.
7596
7597 2011-05-23  Bruno Haible  <bruno@clisp.org>
7598
7599         filenamecat*: Respect rules for use of AC_LIBOBJ.
7600         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7601         Remove AC_LIBOBJ invocation.
7602         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7603         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7604
7605 2011-05-23  Bruno Haible  <bruno@clisp.org>
7606
7607         filemode: Move AC_LIBOBJ invocations to module description.
7608         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7609         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7610
7611 2011-05-23  Bruno Haible  <bruno@clisp.org>
7612
7613         openat-safer: Move AC_LIBOBJ invocations to module description.
7614         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7615         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7616
7617 2011-05-23  Bruno Haible  <bruno@clisp.org>
7618
7619         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7620         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7621         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7622
7623 2011-05-23  Bruno Haible  <bruno@clisp.org>
7624
7625         exclude: Move AC_LIBOBJ invocations to module description.
7626         * m4/exclude.m4: Remove file.
7627         * modules/exclude (Files): Remove it.
7628         (configure.ac): Remove gl_EXCLUDE call.
7629         (Makefile.am): Augment lib_SOURCES.
7630
7631 2011-05-23  Bruno Haible  <bruno@clisp.org>
7632
7633         dirname*: Respect rules for use of AC_LIBOBJ.
7634         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7635         invocations.
7636         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7637         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7638
7639 2011-05-23  Bruno Haible  <bruno@clisp.org>
7640
7641         dirent-safer: Move AC_LIBOBJ invocations to module description.
7642         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7643         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7644
7645 2011-05-23  Bruno Haible  <bruno@clisp.org>
7646
7647         crypto/des: Move AC_LIBOBJ invocations to module description.
7648         * m4/des.m4: Remove file.
7649         * modules/crypto/des (Files): Remove it.
7650         (configure.ac): Remove gl_DES call.
7651         (Makefile.am): Augment lib_SOURCES.
7652
7653 2011-05-23  Bruno Haible  <bruno@clisp.org>
7654
7655         cycle-check: Move AC_LIBOBJ invocations to module description.
7656         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7657         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7658
7659 2011-05-23  Bruno Haible  <bruno@clisp.org>
7660
7661         c-strtold: Move AC_LIBOBJ invocations to module description.
7662         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7663         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7664
7665 2011-05-23  Bruno Haible  <bruno@clisp.org>
7666
7667         c-strtod: Move AC_LIBOBJ invocations to module description.
7668         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7669         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7670
7671 2011-05-23  Bruno Haible  <bruno@clisp.org>
7672
7673         crc: Move AC_LIBOBJ invocations to module description.
7674         * m4/crc.m4: Remove file.
7675         * modules/crc (Files): Remove it.
7676         (configure.ac): Remove gl_CRC call.
7677         (Makefile.am): Augment lib_SOURCES.
7678
7679 2011-05-23  Bruno Haible  <bruno@clisp.org>
7680
7681         close-stream: Move AC_LIBOBJ invocations to module description.
7682         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7683         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7684
7685 2011-05-23  Bruno Haible  <bruno@clisp.org>
7686
7687         closeout: Move AC_LIBOBJ invocations to module description.
7688         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7689         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7690
7691 2011-05-23  Bruno Haible  <bruno@clisp.org>
7692
7693         closein: Move AC_LIBOBJ invocations to module description.
7694         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7695         * modules/closein (Makefile.am): Augment lib_SOURCES.
7696
7697 2011-05-23  Bruno Haible  <bruno@clisp.org>
7698
7699         cloexec: Move AC_LIBOBJ invocations to module description.
7700         * m4/cloexec.m4: Remove file.
7701         * modules/cloexec (Files): Remove it.
7702         (configure.ac): Remove gl_CLOEXEC call.
7703         (Makefile.am): Augment lib_SOURCES.
7704
7705 2011-05-23  Bruno Haible  <bruno@clisp.org>
7706
7707         check-version: Move AC_LIBOBJ invocations to module description.
7708         * m4/check-version.m4: Remove file.
7709         * modules/check-version (Files): Remove it.
7710         (configure.ac): Remove gl_CHECK_VERSION call.
7711         (Makefile.am): Augment lib_SOURCES.
7712
7713 2011-05-23  Bruno Haible  <bruno@clisp.org>
7714
7715         chdir-safer: Move AC_LIBOBJ invocations to module description.
7716         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7717         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7718
7719 2011-05-23  Bruno Haible  <bruno@clisp.org>
7720
7721         canonicalize: Move AC_LIBOBJ invocations to module description.
7722         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7723         AC_LIBOBJ invocation.
7724         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7725
7726 2011-05-23  Bruno Haible  <bruno@clisp.org>
7727
7728         canon-host: Move AC_LIBOBJ invocations to module description.
7729         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7730         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7731         instead of gl_CANON_HOST.
7732         (Makefile.am): Augment lib_SOURCES.
7733
7734 2011-05-23  Bruno Haible  <bruno@clisp.org>
7735
7736         backupfile: Move AC_LIBOBJ invocations to module description.
7737         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7738         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7739
7740 2011-05-23  Bruno Haible  <bruno@clisp.org>
7741
7742         argmatch: Move AC_LIBOBJ invocations to module description.
7743         * m4/argmatch.m4: Remove file.
7744         * modules/argmatch (Files): Remove it.
7745         (configure.ac): Remove gl_ARGMATCH call.
7746         (Makefile.am): Augment lib_SOURCES.
7747
7748 2011-05-23  Bruno Haible  <bruno@clisp.org>
7749
7750         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7751         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7752         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7753
7754 2011-05-23  Bruno Haible  <bruno@clisp.org>
7755
7756         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7757         * m4/arcfour.m4: Remove file.
7758         * modules/crypto/arcfour (Files): Remove it.
7759         (configure.ac): Remove gl_ARCFOUR call.
7760         (Makefile.am): Augment lib_SOURCES.
7761
7762 2011-05-22  Bruno Haible  <bruno@clisp.org>
7763
7764         write: Move AC_LIBOBJ invocations to module description.
7765         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7766         * modules/write (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         wmemset: Move AC_LIBOBJ invocations to module description.
7771         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7772         here...
7773         * modules/wmemset (configure.ac): ... to here.
7774
7775 2011-05-22  Bruno Haible  <bruno@clisp.org>
7776
7777         wmemmove: Move AC_LIBOBJ invocations to module description.
7778         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7779         here...
7780         * modules/wmemmove (configure.ac): ... to here.
7781
7782 2011-05-22  Bruno Haible  <bruno@clisp.org>
7783
7784         wmemcpy: Move AC_LIBOBJ invocations to module description.
7785         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7786         here...
7787         * modules/wmemcpy (configure.ac): ... to here.
7788
7789 2011-05-22  Bruno Haible  <bruno@clisp.org>
7790
7791         wmemcmp: Move AC_LIBOBJ invocations to module description.
7792         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7793         here...
7794         * modules/wmemcmp (configure.ac): ... to here.
7795
7796 2011-05-22  Bruno Haible  <bruno@clisp.org>
7797
7798         wmemchr: Move AC_LIBOBJ invocations to module description.
7799         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7800         here...
7801         * modules/wmemchr (configure.ac): ... to here.
7802
7803 2011-05-22  Bruno Haible  <bruno@clisp.org>
7804
7805         wcswidth: Move AC_LIBOBJ invocations to module description.
7806         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7807         here...
7808         * modules/wcswidth (configure.ac): ... to here.
7809
7810 2011-05-22  Bruno Haible  <bruno@clisp.org>
7811
7812         wcwidth: Respect rules for use of AC_LIBOBJ.
7813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7814         invocation from here...
7815         * modules/wcwidth (configure.ac): ... to here.
7816         (Depends-on): Update conditions.
7817
7818 2011-05-22  Bruno Haible  <bruno@clisp.org>
7819
7820         wctype: Move AC_LIBOBJ invocations to module description.
7821         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7822         invocation from here...
7823         * modules/wctype (configure.ac): ... to here.
7824         (Depends-on): Update conditions.
7825
7826 2011-05-22  Bruno Haible  <bruno@clisp.org>
7827
7828         wctrans: Move AC_LIBOBJ invocations to module description.
7829         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7830         invocation from here...
7831         * modules/wctrans (configure.ac): ... to here.
7832
7833 2011-05-22  Bruno Haible  <bruno@clisp.org>
7834
7835         wctomb: Move AC_LIBOBJ invocations to module description.
7836         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7837         invocations from here...
7838         * modules/wctomb (configure.ac): ... to here.
7839
7840 2011-05-22  Bruno Haible  <bruno@clisp.org>
7841
7842         wctob: Move AC_LIBOBJ invocations to module description.
7843         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7844         gl_PREREQ_WCTOB invocations from here...
7845         * modules/wctob (configure.ac): ... to here.
7846         (Depends-on): Update conditions.
7847
7848 2011-05-22  Bruno Haible  <bruno@clisp.org>
7849
7850         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7851         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7852         here...
7853         * modules/wcsxfrm (configure.ac): ... to here.
7854
7855 2011-05-22  Bruno Haible  <bruno@clisp.org>
7856
7857         wcstok: Move AC_LIBOBJ invocations to module description.
7858         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7859         * modules/wcstok (configure.ac): ... to here.
7860
7861 2011-05-22  Bruno Haible  <bruno@clisp.org>
7862
7863         wcsstr: Move AC_LIBOBJ invocations to module description.
7864         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7865         * modules/wcsstr (configure.ac): ... to here.
7866
7867 2011-05-22  Bruno Haible  <bruno@clisp.org>
7868
7869         wcsspn: Move AC_LIBOBJ invocations to module description.
7870         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7871         * modules/wcsspn (configure.ac): ... to here.
7872
7873 2011-05-22  Bruno Haible  <bruno@clisp.org>
7874
7875         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7876         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7877         gl_PREREQ_WCSRTOMBS invocations from here...
7878         * modules/wcsrtombs (configure.ac): ... to here.
7879
7880 2011-05-22  Bruno Haible  <bruno@clisp.org>
7881
7882         wcsrchr: Move AC_LIBOBJ invocations to module description.
7883         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7884         here...
7885         * modules/wcsrchr (configure.ac): ... to here.
7886
7887 2011-05-22  Bruno Haible  <bruno@clisp.org>
7888
7889         wcspbrk: Move AC_LIBOBJ invocations to module description.
7890         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7891         here...
7892         * modules/wcspbrk (configure.ac): ... to here.
7893
7894 2011-05-22  Bruno Haible  <bruno@clisp.org>
7895
7896         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7897         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7898         gl_PREREQ_WCSNRTOMBS invocations from here...
7899         * modules/wcsnrtombs (configure.ac): ... to here.
7900
7901 2011-05-22  Bruno Haible  <bruno@clisp.org>
7902
7903         wcsnlen: Move AC_LIBOBJ invocations to module description.
7904         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7905         here...
7906         * modules/wcsnlen (configure.ac): ... to here.
7907
7908 2011-05-22  Bruno Haible  <bruno@clisp.org>
7909
7910         wcsncpy: Move AC_LIBOBJ invocations to module description.
7911         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7912         here...
7913         * modules/wcsncpy (configure.ac): ... to here.
7914
7915 2011-05-22  Bruno Haible  <bruno@clisp.org>
7916
7917         wcsncmp: Move AC_LIBOBJ invocations to module description.
7918         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7919         here...
7920         * modules/wcsncmp (configure.ac): ... to here.
7921
7922 2011-05-22  Bruno Haible  <bruno@clisp.org>
7923
7924         wcsncat: Move AC_LIBOBJ invocations to module description.
7925         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7926         here...
7927         * modules/wcsncat (configure.ac): ... to here.
7928
7929 2011-05-22  Bruno Haible  <bruno@clisp.org>
7930
7931         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7932         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7933         from here...
7934         * modules/wcsncasecmp (configure.ac): ... to here.
7935
7936 2011-05-22  Bruno Haible  <bruno@clisp.org>
7937
7938         wcslen: Move AC_LIBOBJ invocations to module description.
7939         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7940         * modules/wcslen (configure.ac): ... to here.
7941
7942 2011-05-22  Bruno Haible  <bruno@clisp.org>
7943
7944         wcsdup: Move AC_LIBOBJ invocations to module description.
7945         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7946         * modules/wcsdup (configure.ac): ... to here.
7947
7948 2011-05-22  Bruno Haible  <bruno@clisp.org>
7949
7950         wcscspn: Move AC_LIBOBJ invocations to module description.
7951         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7952         here...
7953         * modules/wcscspn (configure.ac): ... to here.
7954
7955 2011-05-22  Bruno Haible  <bruno@clisp.org>
7956
7957         wcscpy: Move AC_LIBOBJ invocations to module description.
7958         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7959         * modules/wcscpy (configure.ac): ... to here.
7960
7961 2011-05-22  Bruno Haible  <bruno@clisp.org>
7962
7963         wcscoll: Move AC_LIBOBJ invocations to module description.
7964         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7965         here...
7966         * modules/wcscoll (configure.ac): ... to here.
7967
7968 2011-05-22  Bruno Haible  <bruno@clisp.org>
7969
7970         wcscmp: Move AC_LIBOBJ invocations to module description.
7971         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7972         * modules/wcscmp (configure.ac): ... to here.
7973
7974 2011-05-22  Bruno Haible  <bruno@clisp.org>
7975
7976         wcschr: Move AC_LIBOBJ invocations to module description.
7977         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7978         * modules/wcschr (configure.ac): ... to here.
7979
7980 2011-05-22  Bruno Haible  <bruno@clisp.org>
7981
7982         wcscat: Move AC_LIBOBJ invocations to module description.
7983         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7984         * modules/wcscat (configure.ac): ... to here.
7985
7986 2011-05-22  Bruno Haible  <bruno@clisp.org>
7987
7988         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7989         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7990         here...
7991         * modules/wcscasecmp (configure.ac): ... to here.
7992
7993 2011-05-22  Bruno Haible  <bruno@clisp.org>
7994
7995         wcrtomb: Move AC_LIBOBJ invocations to module description.
7996         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7997         invocations from here...
7998         * modules/wcrtomb (configure.ac): ... to here.
7999
8000 2011-05-22  Bruno Haible  <bruno@clisp.org>
8001
8002         wcpncpy: Move AC_LIBOBJ invocations to module description.
8003         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8004         here...
8005         * modules/wcpncpy (configure.ac): ... to here.
8006
8007 2011-05-22  Bruno Haible  <bruno@clisp.org>
8008
8009         wcpcpy: Move AC_LIBOBJ invocations to module description.
8010         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8011         * modules/wcpcpy (configure.ac): ... to here.
8012
8013 2011-05-22  Bruno Haible  <bruno@clisp.org>
8014
8015         waitpid: Move AC_LIBOBJ invocations to module description.
8016         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8017         invocation from here...
8018         * modules/waitpid (configure.ac): ... to here.
8019
8020 2011-05-22  Bruno Haible  <bruno@clisp.org>
8021
8022         utimensat: Move AC_LIBOBJ invocations to module description.
8023         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8024         here...
8025         * modules/utimensat (configure.ac): ... to here.
8026
8027 2011-05-22  Bruno Haible  <bruno@clisp.org>
8028
8029         usleep: Move AC_LIBOBJ invocations to module description.
8030         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8031         here...
8032         * modules/usleep (configure.ac): ... to here.
8033
8034 2011-05-22  Bruno Haible  <bruno@clisp.org>
8035
8036         unlockpt: Move AC_LIBOBJ invocations to module description.
8037         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8038         gl_PREREQ_UNLOCKPT invocations from here...
8039         * modules/unlockpt (configure.ac): ... to here.
8040
8041 2011-05-22  Bruno Haible  <bruno@clisp.org>
8042
8043         unlink: Respect rules for use of AC_LIBOBJ.
8044         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8045         * modules/unlink (configure.ac): ... to here.
8046
8047 2011-05-22  Bruno Haible  <bruno@clisp.org>
8048
8049         uname: Move AC_LIBOBJ invocations to module description.
8050         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8052         here...
8053         * modules/uname (configure.ac): ... to here.
8054
8055 2011-05-22  Bruno Haible  <bruno@clisp.org>
8056
8057         ttyname_r: Move AC_LIBOBJ invocations to module description.
8058         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8059         gl_PREREQ_TTYNAME_R invocations from here...
8060         * modules/ttyname_r (configure.ac): ... to here.
8061
8062 2011-05-22  Bruno Haible  <bruno@clisp.org>
8063
8064         tsearch: Move AC_LIBOBJ invocations to module description.
8065         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8066         invocations from here...
8067         * modules/tsearch (configure.ac): ... to here.
8068
8069 2011-05-22  Bruno Haible  <bruno@clisp.org>
8070
8071         towctrans: Move AC_LIBOBJ invocations to module description.
8072         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8073         AC_LIBOBJ invocation from here...
8074         * modules/towctrans (configure.ac): ... to here.
8075
8076 2011-05-22  Bruno Haible  <bruno@clisp.org>
8077
8078         tmpfile: Move AC_LIBOBJ invocations to module description.
8079         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8080         invocations from here...
8081         * modules/tmpfile (configure.ac): ... to here.
8082
8083 2011-05-22  Bruno Haible  <bruno@clisp.org>
8084
8085         times: Move AC_LIBOBJ invocations to module description.
8086         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8087         * modules/times (configure.ac): ... to here.
8088
8089 2011-05-22  Bruno Haible  <bruno@clisp.org>
8090
8091         time_r: Move AC_LIBOBJ invocations to module description.
8092         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8093         invocations from here...
8094         * modules/time_r (configure.ac): ... to here.
8095
8096 2011-05-22  Bruno Haible  <bruno@clisp.org>
8097
8098         timegm: Move AC_LIBOBJ invocations to module description.
8099         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8100         invocations from here...
8101         * modules/timegm (configure.ac): ... to here.
8102
8103 2011-05-22  Bruno Haible  <bruno@clisp.org>
8104
8105         tcgetsid: Move AC_LIBOBJ invocations to module description.
8106         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8107         and gl_PREREQ_TCGETSID invocations from here...
8108         * modules/tcgetsid (configure.ac): ... to here.
8109         (Depends-on): Update conditions.
8110
8111 2011-05-22  Bruno Haible  <bruno@clisp.org>
8112
8113         symlinkat: Move AC_LIBOBJ invocations to module description.
8114         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8115         here...
8116         * modules/symlinkat (configure.ac): ... to here.
8117
8118 2011-05-22  Bruno Haible  <bruno@clisp.org>
8119
8120         symlink: Move AC_LIBOBJ invocations to module description.
8121         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8122         here...
8123         * modules/symlink (configure.ac): ... to here.
8124
8125 2011-05-22  Bruno Haible  <bruno@clisp.org>
8126
8127         strverscmp: Move AC_LIBOBJ invocations to module description.
8128         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8129         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8130         from here...
8131         * modules/strverscmp (configure.ac): ... to here.
8132
8133 2011-05-22  Bruno Haible  <bruno@clisp.org>
8134
8135         strtok_r: Move AC_LIBOBJ invocations to module description.
8136         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8137         and gl_PREREQ_STRTOK_R invocations from here...
8138         * modules/strtok_r (configure.ac): ... to here.
8139         (Depends-on): Update conditions.
8140
8141 2011-05-22  Bruno Haible  <bruno@clisp.org>
8142
8143         strtoumax: Move AC_LIBOBJ invocations to module description.
8144         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8145         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8146         from here...
8147         * modules/strtoumax (configure.ac): ... to here.
8148
8149 2011-05-22  Bruno Haible  <bruno@clisp.org>
8150
8151         strtoimax: Move AC_LIBOBJ invocations to module description.
8152         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8153         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8154         from here...
8155         * modules/strtoimax (configure.ac): ... to here.
8156
8157 2011-05-22  Bruno Haible  <bruno@clisp.org>
8158
8159         strtoull: Move AC_LIBOBJ invocations to module description.
8160         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8162         from here...
8163         * modules/strtoull (configure.ac): ... to here.
8164
8165 2011-05-22  Bruno Haible  <bruno@clisp.org>
8166
8167         strtoll: Move AC_LIBOBJ invocations to module description.
8168         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8170         here...
8171         * modules/strtoll (configure.ac): ... to here.
8172
8173 2011-05-22  Bruno Haible  <bruno@clisp.org>
8174
8175         strtoul: Move AC_LIBOBJ invocations to module description.
8176         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8177         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8178         * modules/strtoul (configure.ac): ... to here.
8179
8180 2011-05-22  Bruno Haible  <bruno@clisp.org>
8181
8182         strtol: Move AC_LIBOBJ invocations to module description.
8183         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8184         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8185         * modules/strtol (configure.ac): ... to here.
8186
8187 2011-05-22  Bruno Haible  <bruno@clisp.org>
8188
8189         strtod: Move AC_LIBOBJ invocations to module description.
8190         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8191         invocations from here...
8192         * modules/strtod (configure.ac): ... to here.
8193
8194 2011-05-22  Bruno Haible  <bruno@clisp.org>
8195
8196         strstr*: Move AC_LIBOBJ invocations to module description.
8197         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8198         invocations from here...
8199         * modules/strstr-simple (configure.ac): ... to here.
8200         * modules/strstr (configure.ac): ... and here.
8201
8202 2011-05-22  Bruno Haible  <bruno@clisp.org>
8203
8204         strsignal: Move AC_LIBOBJ invocations to module description.
8205         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8206         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8207         * modules/strsignal (configure.ac): ... to here.
8208         (Depends-on): Update conditions.
8209
8210 2011-05-22  Bruno Haible  <bruno@clisp.org>
8211
8212         strsep: Move AC_LIBOBJ invocations to module description.
8213         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8214         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8215         here...
8216         * modules/strsep (configure.ac): ... to here.
8217
8218 2011-05-22  Bruno Haible  <bruno@clisp.org>
8219
8220         strptime: Move AC_LIBOBJ invocations to module description.
8221         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8222         gl_PREREQ_STRPTIME invocations from here...
8223         * modules/strptime (configure.ac): ... to here.
8224
8225 2011-05-22  Bruno Haible  <bruno@clisp.org>
8226
8227         strpbrk: Move AC_LIBOBJ invocations to module description.
8228         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8230         here...
8231         * modules/strpbrk (configure.ac): ... to here.
8232
8233 2011-05-22  Bruno Haible  <bruno@clisp.org>
8234
8235         strnlen: Move AC_LIBOBJ invocations to module description.
8236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8237         invocations from here...
8238         * modules/strnlen (configure.ac): ... to here.
8239
8240 2011-05-22  Bruno Haible  <bruno@clisp.org>
8241
8242         strndup: Move AC_LIBOBJ invocations to module description.
8243         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8244         invocations from here...
8245         * modules/strndup (configure.ac): ... to here.
8246         (Depends-on): Update conditions.
8247
8248 2011-05-22  Bruno Haible  <bruno@clisp.org>
8249
8250         strncat: Move AC_LIBOBJ invocations to module description.
8251         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8252         invocations from here...
8253         * modules/strncat (configure.ac): ... to here.
8254
8255 2011-05-22  Bruno Haible  <bruno@clisp.org>
8256
8257         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8258         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8259         invocations from here...
8260         * modules/strdup (configure.ac): ... to here.
8261         * modules/strdup-posix (configure.ac): ... and here.
8262
8263 2011-05-22  Bruno Haible  <bruno@clisp.org>
8264
8265         strcspn: Move AC_LIBOBJ invocations to module description.
8266         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8268         here...
8269         * modules/strcspn (configure.ac): ... to here.
8270
8271 2011-05-22  Bruno Haible  <bruno@clisp.org>
8272
8273         strchrnul: Move AC_LIBOBJ invocations to module description.
8274         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8275         gl_PREREQ_STRCHRNUL invocations from here...
8276         * modules/strchrnul (configure.ac): ... to here.
8277
8278 2011-05-22  Bruno Haible  <bruno@clisp.org>
8279
8280         strcasestr*: Move AC_LIBOBJ invocations to module description.
8281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8282         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8283         * modules/strcasestr-simple (configure.ac): ... to here.
8284         * modules/strcasestr (configure.ac): ... and here.
8285
8286 2011-05-22  Bruno Haible  <bruno@clisp.org>
8287
8288         strcase: Move AC_LIBOBJ invocations to module description.
8289         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8290         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8291         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8292         gl_PREREQ_STRNCASECMP invocations from here...
8293         * modules/strcase (configure.ac): ... to here.
8294
8295 2011-05-22  Bruno Haible  <bruno@clisp.org>
8296
8297         stpncpy: Move AC_LIBOBJ invocations to module description.
8298         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8299         here...
8300         * modules/stpncpy (configure.ac): ... to here.
8301
8302 2011-05-22  Bruno Haible  <bruno@clisp.org>
8303
8304         stpcpy: Move AC_LIBOBJ invocations to module description.
8305         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8306         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8307         here...
8308         * modules/stpcpy (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         stat: Move AC_LIBOBJ invocations to module description.
8313         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8314         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8315         here...
8316         * modules/stat (configure.ac): ... to here.
8317
8318 2011-05-21  Bruno Haible  <bruno@clisp.org>
8319
8320         sleep: Move AC_LIBOBJ invocations to module description.
8321         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8322         * modules/sleep (configure.ac): ... to here.
8323
8324 2011-05-21  Bruno Haible  <bruno@clisp.org>
8325
8326         signbit: Move AC_LIBOBJ invocations to module description.
8327         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8328         * modules/signbit (configure.ac): ... to here.
8329
8330 2011-05-21  Bruno Haible  <bruno@clisp.org>
8331
8332         sigprocmask: Move AC_LIBOBJ invocations to module description.
8333         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8334         gl_PREREQ_SIGPROMASK invocations from here...
8335         * modules/sigprocmask (configure.ac): ... to here.
8336
8337 2011-05-21  Bruno Haible  <bruno@clisp.org>
8338
8339         sigaction: Move AC_LIBOBJ invocations to module description.
8340         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8341         gl_PREREQ_SIGACTION invocations from here...
8342         * modules/sigaction (configure.ac): ... to here.
8343
8344 2011-05-21  Bruno Haible  <bruno@clisp.org>
8345
8346         sig2str: Move AC_LIBOBJ invocations to module description.
8347         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8349         here...
8350         * modules/sig2str (configure.ac): ... to here.
8351
8352 2011-05-21  Bruno Haible  <bruno@clisp.org>
8353
8354         setlocale: Move AC_LIBOBJ invocations to module description.
8355         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8356         gl_PREREQ_SETLOCALE invocations from here...
8357         * modules/setlocale (configure.ac): ... to here.
8358
8359 2011-05-21  Bruno Haible  <bruno@clisp.org>
8360
8361         unsetenv: Move AC_LIBOBJ invocations to module description.
8362         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8363         and gl_PREREQ_UNSETENV invocations from here...
8364         * modules/unsetenv (configure.ac): ... to here.
8365         (Depends-on): Update.
8366
8367 2011-05-21  Bruno Haible  <bruno@clisp.org>
8368
8369         setenv: Move AC_LIBOBJ invocations to module description.
8370         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8371         here...
8372         * modules/setenv (configure.ac): ... to here.
8373
8374 2011-05-21  Bruno Haible  <bruno@clisp.org>
8375
8376         selinux-h: Move AC_LIBOBJ invocations to module description.
8377         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8378         AC_LIBOBJ invocation from here...
8379         * modules/selinux-h (configure.ac): ... to here.
8380
8381 2011-05-21  Bruno Haible  <bruno@clisp.org>
8382
8383         select: Respect rules for use of AC_LIBOBJ.
8384         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8385         here...
8386         * modules/select (configure.ac): ... to here.
8387
8388 2011-05-21  Bruno Haible  <bruno@clisp.org>
8389
8390         scandir: Move AC_LIBOBJ invocations to module description.
8391         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8392         invocations from here...
8393         * modules/scandir (configure.ac): ... to here.
8394
8395 2011-05-21  Bruno Haible  <bruno@clisp.org>
8396
8397         rpmatch: Move AC_LIBOBJ invocations to module description.
8398         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8399         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8400         here...
8401         * modules/rpmatch (configure.ac): ... to here.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         rmdir: Respect rules for use of AC_LIBOBJ.
8406         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8407         * modules/rmdir (configure.ac): ... to here.
8408
8409 2011-05-21  Bruno Haible  <bruno@clisp.org>
8410
8411         renameat: Move AC_LIBOBJ invocations to module description.
8412         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8413         here...
8414         * modules/renameat (configure.ac): ... to here.
8415
8416 2011-05-21  Bruno Haible  <bruno@clisp.org>
8417
8418         rename: Respect rules for use of AC_LIBOBJ.
8419         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8420         here...
8421         * modules/rename (configure.ac): ... to here.
8422
8423 2011-05-21  Bruno Haible  <bruno@clisp.org>
8424
8425         remove: Move AC_LIBOBJ invocations to module description.
8426         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8427         here...
8428         * modules/remove (configure.ac): ... to here.
8429
8430 2011-05-21  Bruno Haible  <bruno@clisp.org>
8431
8432         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8433         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8434         macro.
8435         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8436         * modules/relocatable-lib (configure.ac): ... to here.
8437         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8438         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8439
8440 2011-05-21  Bruno Haible  <bruno@clisp.org>
8441
8442         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8443         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8444         here...
8445         * modules/relocatable-prog (configure.ac): ... to here.
8446
8447 2011-05-21  Bruno Haible  <bruno@clisp.org>
8448
8449         regex: Move AC_LIBOBJ invocations to module description.
8450         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8451         invocations from here...
8452         * modules/regex (configure.ac): ... to here.
8453
8454 2011-05-21  Bruno Haible  <bruno@clisp.org>
8455
8456         realloc-*: Move AC_LIBOBJ invocations to module description.
8457         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8458         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8459         AC_LIBOBJ invocations from here...
8460         * modules/realloc-gnu (configure.ac): ... to here.
8461         * modules/realloc-posix (configure.ac): ... and here.
8462
8463 2011-05-21  Bruno Haible  <bruno@clisp.org>
8464
8465         readutmp: Move AC_LIBOBJ invocations to module description.
8466         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8467         * modules/readutmp (configure.ac): ... to here.
8468
8469 2011-05-21  Bruno Haible  <bruno@clisp.org>
8470
8471         readlinkat: Move AC_LIBOBJ invocations to module description.
8472         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8473         here...
8474         * modules/readlinkat (configure.ac): ... to here.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         readlink: Move AC_LIBOBJ invocations to module description.
8479         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8480         gl_PREREQ_READLINK invocations from here...
8481         * modules/readlink (configure.ac): ... to here.
8482
8483 2011-05-21  Bruno Haible  <bruno@clisp.org>
8484
8485         readline: Move AC_LIBOBJ invocations to module description.
8486         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8487         gl_PREREQ_READLINE invocations from here...
8488         * modules/readline (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         read: Move AC_LIBOBJ invocations to module description.
8493         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8494         * modules/read (configure.ac): ... to here.
8495
8496 2011-05-21  Bruno Haible  <bruno@clisp.org>
8497
8498         rawmemchr: Move AC_LIBOBJ invocations to module description.
8499         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8500         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8501         from here...
8502         * modules/rawmemchr (configure.ac): ... to here.
8503
8504 2011-05-21  Bruno Haible  <bruno@clisp.org>
8505
8506         random_r: Move AC_LIBOBJ invocations to module description.
8507         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8508         gl_PREREQ_RANDOM_R invocations from here...
8509         * modules/random_r (configure.ac): ... to here.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         pwrite: Move AC_LIBOBJ invocations to module description.
8514         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8515         * modules/pwrite (configure.ac): ... to here.
8516
8517 2011-05-21  Bruno Haible  <bruno@clisp.org>
8518
8519         putenv: Move AC_LIBOBJ invocations to module description.
8520         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8521         * modules/putenv (configure.ac): ... to here.
8522
8523 2011-05-21  Bruno Haible  <bruno@clisp.org>
8524
8525         login_tty: Move AC_LIBOBJ invocations to module description.
8526         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8527         * modules/login_tty (configure.ac): ... to here.
8528
8529 2011-05-21  Bruno Haible  <bruno@clisp.org>
8530
8531         openpty: Move AC_LIBOBJ invocations to module description.
8532         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8533         * modules/openpty (configure.ac): ... to here.
8534
8535 2011-05-21  Bruno Haible  <bruno@clisp.org>
8536
8537         forkpty: Move AC_LIBOBJ invocations to module description.
8538         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8539         * modules/forkpty (configure.ac): ... to here.
8540
8541 2011-05-21  Bruno Haible  <bruno@clisp.org>
8542
8543         ptsname: Move AC_LIBOBJ invocations to module description.
8544         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8545         invocations from here...
8546         * modules/ptsname (configure.ac): ... to here.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         pread: Move AC_LIBOBJ invocations to module description.
8551         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8552         * modules/pread (configure.ac): ... to here.
8553
8554 2011-05-21  Bruno Haible  <bruno@clisp.org>
8555
8556         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8557         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8558         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8559         * modules/posix_spawn (configure.ac): ... to here.
8560         * modules/posix_spawnp (configure.ac): ... and here.
8561
8562 2011-05-21  Bruno Haible  <bruno@clisp.org>
8563
8564         popen: Move AC_LIBOBJ invocations to module description.
8565         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8566         invocations from here...
8567         * modules/popen (configure.ac): ... to here.
8568
8569 2011-05-21  Bruno Haible  <bruno@clisp.org>
8570
8571         poll: Move AC_LIBOBJ invocations to module description.
8572         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8573         invocations from here...
8574         * modules/poll (configure.ac): ... to here.
8575
8576 2011-05-21  Bruno Haible  <bruno@clisp.org>
8577
8578         pipe-posix: Move AC_LIBOBJ invocations to module description.
8579         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8580         * modules/pipe-posix (configure.ac): ... to here.
8581
8582 2011-05-21  Bruno Haible  <bruno@clisp.org>
8583
8584         openat: Respect rules for use of AC_LIBOBJ.
8585         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8586         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8587         * modules/openat (configure.ac): ... to here.
8588
8589 2011-05-21  Bruno Haible  <bruno@clisp.org>
8590
8591         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8592         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8593         invocation from here...
8594         * modules/obstack-printf (configure.ac): ... to here.
8595         * modules/obstack-printf-posix (configure.ac): ... and here.
8596
8597 2011-05-21  Bruno Haible  <bruno@clisp.org>
8598
8599         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8600         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8601         from here...
8602         * modules/nl_langinfo (configure.ac): ... to here.
8603
8604 2011-05-21  Bruno Haible  <bruno@clisp.org>
8605
8606         nanosleep: Move AC_LIBOBJ invocations to module description.
8607         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8608         gl_PREREQ_NANOSLEEP invocations from here...
8609         * modules/nanosleep (configure.ac): ... to here.
8610
8611 2011-05-21  Bruno Haible  <bruno@clisp.org>
8612
8613         mountlist: Move AC_LIBOBJ invocations to module description.
8614         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8615         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8616         * modules/mountlist (configure.ac): ... to here.
8617
8618 2011-05-21  Bruno Haible  <bruno@clisp.org>
8619
8620         mktime: Respect rules for use of AC_LIBOBJ.
8621         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8622         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8623         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8624         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8625         * modules/mktime (configure.ac): ... to here.
8626         * modules/mktime-internal (configure.ac): ... and here.
8627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8628
8629 2011-05-21  Bruno Haible  <bruno@clisp.org>
8630
8631         mkstemps: Move AC_LIBOBJ invocations to module description.
8632         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8633         here...
8634         * modules/mkstemps (configure.ac): ... to here.
8635
8636 2011-05-21  Bruno Haible  <bruno@clisp.org>
8637
8638         mkstemp: Move AC_LIBOBJ invocations to module description.
8639         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8640         gl_PREREQ_MKSTEMP invocations from here...
8641         * modules/mkstemp (configure.ac): ... to here.
8642
8643 2011-05-21  Bruno Haible  <bruno@clisp.org>
8644
8645         mkostemps: Move AC_LIBOBJ invocations to module description.
8646         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8647         here...
8648         * modules/mkostemps (configure.ac): ... to here.
8649
8650 2011-05-21  Bruno Haible  <bruno@clisp.org>
8651
8652         mkostemp: Move AC_LIBOBJ invocations to module description.
8653         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8654         gl_PREREQ_MKOSTEMP invocations from here...
8655         * modules/mkostemp (configure.ac): ... to here.
8656
8657 2011-05-21  Bruno Haible  <bruno@clisp.org>
8658
8659         mknod: Move AC_LIBOBJ invocations to module description.
8660         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8661         * modules/mknod (configure.ac): ... to here.
8662
8663 2011-05-21  Bruno Haible  <bruno@clisp.org>
8664
8665         mkfifoat: Move AC_LIBOBJ invocations to module description.
8666         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8667         here...
8668         * modules/mkfifoat (configure.ac): ... to here.
8669
8670 2011-05-21  Bruno Haible  <bruno@clisp.org>
8671
8672         mkfifo: Respect rules for use of AC_LIBOBJ.
8673         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8674         here...
8675         * modules/mkfifo (configure.ac): ... to here.
8676
8677 2011-05-21  Bruno Haible  <bruno@clisp.org>
8678
8679         mkdtemp: Move AC_LIBOBJ invocations to module description.
8680         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8681         invocations from here...
8682         * modules/mkdtemp (configure.ac): ... to here.
8683
8684 2011-05-21  Bruno Haible  <bruno@clisp.org>
8685
8686         mkdir: Move AC_LIBOBJ invocations to module description.
8687         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8688         * modules/mkdir (configure.ac): ... to here.
8689
8690 2011-05-21  Bruno Haible  <bruno@clisp.org>
8691
8692         memset: Move AC_LIBOBJ invocations to module description.
8693         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8694         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8695         here...
8696         * modules/memset (configure.ac): ... to here.
8697
8698 2011-05-21  Bruno Haible  <bruno@clisp.org>
8699
8700         memrchr: Move AC_LIBOBJ invocations to module description.
8701         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8702         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8703         here...
8704         * modules/memrchr (configure.ac): ... to here.
8705
8706 2011-05-21  Bruno Haible  <bruno@clisp.org>
8707
8708         mempcpy: Move AC_LIBOBJ invocations to module description.
8709         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8710         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8711         here...
8712         * modules/mempcpy (configure.ac): ... to here.
8713
8714 2011-05-21  Bruno Haible  <bruno@clisp.org>
8715
8716         memmove: Move AC_LIBOBJ invocations to module description.
8717         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8718         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8719         here...
8720         * modules/memmove (configure.ac): ... to here.
8721
8722 2011-05-21  Bruno Haible  <bruno@clisp.org>
8723
8724         memmem*: Move AC_LIBOBJ invocations to module description.
8725         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8726         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8727         here...
8728         (gl_FUNC_MEMMEM): ... and here...
8729         * modules/memmem-simple (configure.ac): ... to here.
8730         * modules/memmem (configure.ac): ... and here.
8731
8732 2011-05-21  Bruno Haible  <bruno@clisp.org>
8733
8734         memcpy: Move AC_LIBOBJ invocations to module description.
8735         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8737         here...
8738         * modules/memcpy (configure.ac): ... to here.
8739
8740 2011-05-21  Bruno Haible  <bruno@clisp.org>
8741
8742         memcmp: Simplify autoconf macro.
8743         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8744         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8745         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8746
8747 2011-05-21  Bruno Haible  <bruno@clisp.org>
8748
8749         memcmp: Move AC_LIBOBJ invocations to module description.
8750         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8751         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8752         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8753         * modules/memcmp (configure.ac): ... to here.
8754         (Depends-on): Update conditions.
8755
8756 2011-05-21  Bruno Haible  <bruno@clisp.org>
8757
8758         memchr: Respect rules for use of AC_LIBOBJ.
8759         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8760         invocations from here...
8761         * modules/memchr (configure.ac): ... to here.
8762
8763 2011-05-21  Bruno Haible  <bruno@clisp.org>
8764
8765         mbtowc: Move AC_LIBOBJ invocations to module description.
8766         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8767         invocations from here...
8768         * modules/mbtowc (configure.ac): ... to here.
8769
8770 2011-05-21  Bruno Haible  <bruno@clisp.org>
8771
8772         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8773         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8774         gl_PREREQ_MBSRTOWCS invocations from here...
8775         * modules/mbsrtowcs (configure.ac): ... to here.
8776
8777 2011-05-21  Bruno Haible  <bruno@clisp.org>
8778
8779         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8780         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8781         gl_PREREQ_MBSNRTOWCS invocations from here...
8782         * modules/mbsnrtowcs (configure.ac): ... to here.
8783
8784 2011-05-21  Bruno Haible  <bruno@clisp.org>
8785
8786         mbsinit: Move AC_LIBOBJ invocations to module description.
8787         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8788         invocations from here...
8789         * modules/mbsinit (configure.ac): ... to here.
8790
8791 2011-05-21  Bruno Haible  <bruno@clisp.org>
8792
8793         mbrlen: Move AC_LIBOBJ invocations to module description.
8794         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8795         invocations from here...
8796         * modules/mbrlen (configure.ac): ... to here.
8797
8798 2011-05-21  Bruno Haible  <bruno@clisp.org>
8799
8800         mbrtowc: Respect rules for use of AC_LIBOBJ.
8801         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8802         invocations from here...
8803         * modules/mbrtowc (configure.ac): ... to here.
8804
8805 2011-05-21  Bruno Haible  <bruno@clisp.org>
8806
8807         malloc-*: Move AC_LIBOBJ invocations to module description.
8808         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8809         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8810         AC_LIBOBJ invocations from here...
8811         * modules/malloc-gnu (configure.ac): ... to here.
8812         * modules/malloc-posix (configure.ac): ... and here.
8813
8814 2011-05-21  Bruno Haible  <bruno@clisp.org>
8815
8816         lstat, openat: Respect rules for use of AC_LIBOBJ.
8817         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8818         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8819         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8820         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8821         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8822         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8823         here.
8824         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8825
8826 2011-05-21  Bruno Haible  <bruno@clisp.org>
8827
8828         lseek: Move AC_LIBOBJ invocations to module description.
8829         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8830         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8831         * modules/lseek (configure.ac): ... to here.
8832
8833 2011-05-21  Bruno Haible  <bruno@clisp.org>
8834
8835         linkat: Move AC_LIBOBJ invocations to module description.
8836         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8837         here...
8838         * modules/linkat (configure.ac): ... to here.
8839
8840 2011-05-21  Bruno Haible  <bruno@clisp.org>
8841
8842         link: Respect rules for use of AC_LIBOBJ.
8843         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8844         * modules/link (configure.ac): ... to here.
8845
8846 2011-05-21  Bruno Haible  <bruno@clisp.org>
8847
8848         lchown: Move AC_LIBOBJ invocations to module description.
8849         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8850         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8851         * modules/lchown (configure.ac): ... to here.
8852
8853 2011-05-21  Bruno Haible  <bruno@clisp.org>
8854
8855         iswctype: Move AC_LIBOBJ invocations to module description.
8856         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8857         here...
8858         * modules/iswctype (configure.ac): ... to here.
8859
8860 2011-05-21  Bruno Haible  <bruno@clisp.org>
8861
8862         iswblank: Move AC_LIBOBJ invocations to module description.
8863         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8864         here...
8865         * modules/iswblank (configure.ac): ... to here.
8866
8867 2011-05-21  Bruno Haible  <bruno@clisp.org>
8868
8869         atanl: Move AC_LIBOBJ invocations to module description.
8870         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8871         * modules/atanl (configure.ac): ... to here.
8872
8873 2011-05-21  Bruno Haible  <bruno@clisp.org>
8874
8875         acosl: Move AC_LIBOBJ invocations to module description.
8876         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8877         * modules/acosl (configure.ac): ... to here.
8878
8879 2011-05-21  Bruno Haible  <bruno@clisp.org>
8880
8881         asinl: Respect rules for use of AC_LIBOBJ.
8882         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8883         * modules/asinl (configure.ac): ... to here.
8884
8885 2011-05-21  Bruno Haible  <bruno@clisp.org>
8886
8887         tanl: Move AC_LIBOBJ invocations to module description.
8888         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8889         * modules/tanl (configure.ac): ... to here.
8890
8891 2011-05-21  Bruno Haible  <bruno@clisp.org>
8892
8893         cosl: Move AC_LIBOBJ invocations to module description.
8894         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8895         * modules/cosl (configure.ac): ... to here.
8896
8897 2011-05-21  Bruno Haible  <bruno@clisp.org>
8898
8899         sinl: Move AC_LIBOBJ invocations to module description.
8900         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8901         * modules/sinl (configure.ac): ... to here.
8902
8903 2011-05-21  Bruno Haible  <bruno@clisp.org>
8904
8905         logl: Move AC_LIBOBJ invocations to module description.
8906         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8907         * modules/logl (configure.ac): ... to here.
8908
8909 2011-05-21  Bruno Haible  <bruno@clisp.org>
8910
8911         expl: Move AC_LIBOBJ invocations to module description.
8912         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8913         * modules/expl (configure.ac): ... to here.
8914
8915 2011-05-21  Bruno Haible  <bruno@clisp.org>
8916
8917         roundl: Move AC_LIBOBJ invocations to module description.
8918         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8919         * modules/roundl (configure.ac): ... to here.
8920
8921 2011-05-21  Bruno Haible  <bruno@clisp.org>
8922
8923         round: Move AC_LIBOBJ invocations to module description.
8924         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8925         * modules/round (configure.ac): ... to here.
8926
8927 2011-05-21  Bruno Haible  <bruno@clisp.org>
8928
8929         roundf: Move AC_LIBOBJ invocations to module description.
8930         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8931         * modules/roundf (configure.ac): ... to here.
8932
8933 2011-05-21  Bruno Haible  <bruno@clisp.org>
8934
8935         truncl: Move AC_LIBOBJ invocations to module description.
8936         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8937         * modules/truncl (configure.ac): ... to here.
8938
8939 2011-05-21  Bruno Haible  <bruno@clisp.org>
8940
8941         trunc: Move AC_LIBOBJ invocations to module description.
8942         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8943         * modules/trunc (configure.ac): ... to here.
8944
8945 2011-05-21  Bruno Haible  <bruno@clisp.org>
8946
8947         truncf: Move AC_LIBOBJ invocations to module description.
8948         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8949         * modules/truncf (configure.ac): ... to here.
8950
8951 2011-05-21  Bruno Haible  <bruno@clisp.org>
8952
8953         ceill: Move AC_LIBOBJ invocations to module description.
8954         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8955         * modules/ceill (configure.ac): ... to here.
8956
8957 2011-05-21  Bruno Haible  <bruno@clisp.org>
8958
8959         ceil: Move AC_LIBOBJ invocations to module description.
8960         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8961         * modules/ceil (configure.ac): ... to here.
8962
8963 2011-05-21  Bruno Haible  <bruno@clisp.org>
8964
8965         ceilf: Move AC_LIBOBJ invocations to module description.
8966         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8967         * modules/ceilf (configure.ac): ... to here.
8968
8969 2011-05-21  Bruno Haible  <bruno@clisp.org>
8970
8971         floorl: Respect rules for use of AC_LIBOBJ.
8972         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8973         * modules/floorl (configure.ac): ... to here.
8974
8975 2011-05-21  Bruno Haible  <bruno@clisp.org>
8976
8977         floor: Respect rules for use of AC_LIBOBJ.
8978         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8979         * modules/floor (configure.ac): ... to here.
8980
8981 2011-05-21  Bruno Haible  <bruno@clisp.org>
8982
8983         floorf: Move AC_LIBOBJ invocations to module description.
8984         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8985         * modules/floorf (configure.ac): ... to here.
8986
8987 2011-05-20  Bruno Haible  <bruno@clisp.org>
8988
8989         sqrtl: Respect rules for use of AC_LIBOBJ.
8990         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8991         * modules/sqrtl (configure.ac): ... to here.
8992
8993 2011-05-20  Bruno Haible  <bruno@clisp.org>
8994
8995         ldexpl: Respect rules for use of AC_LIBOBJ.
8996         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8997         * modules/ldexpl (configure.ac): ... to here.
8998
8999 2011-05-20  Bruno Haible  <bruno@clisp.org>
9000
9001         frexpl*: Respect rules for use of AC_LIBOBJ.
9002         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9003         invocation from here...
9004         * modules/frexpl (configure.ac): ... to here.
9005         * modules/frexpl-nolibm (configure.ac): ... and here.
9006
9007 2011-05-20  Bruno Haible  <bruno@clisp.org>
9008
9009         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9010         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9011         invocation from here...
9012         * modules/frexp (configure.ac): ... to here.
9013         * modules/frexp-nolibm (configure.ac): ... and here.
9014
9015 2011-05-20  Bruno Haible  <bruno@clisp.org>
9016
9017         isnan: Respect rules for use of AC_LIBOBJ.
9018         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9019         invocations here.
9020         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9021         REPLACE_ISNAN.
9022         * modules/isnand (configure.ac): Likewise.
9023         * modules/isnanl (configure.ac): Likewise.
9024
9025 2011-05-20  Bruno Haible  <bruno@clisp.org>
9026
9027         isnanl*: Respect rules for use of AC_LIBOBJ.
9028         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9029         invocation from here...
9030         * modules/isnanl (configure.ac): ... to here.
9031         * modules/isnanl-nolibm (configure.ac): ... and here.
9032
9033 2011-05-20  Bruno Haible  <bruno@clisp.org>
9034
9035         isnand*: Move AC_LIBOBJ invocations to module description.
9036         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9037         invocation from here...
9038         * modules/isnand (configure.ac): ... to here.
9039         * modules/isnand-nolibm (configure.ac): ... and here.
9040
9041 2011-05-20  Bruno Haible  <bruno@clisp.org>
9042
9043         isnanf*: Move AC_LIBOBJ invocations to module description.
9044         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9045         invocation from here...
9046         * modules/isnanf (configure.ac): ... to here.
9047         * modules/isnanf-nolibm (configure.ac): ... and here.
9048
9049 2011-05-20  Bruno Haible  <bruno@clisp.org>
9050
9051         isnan*: Separate the AC_LIBOBJ invocations.
9052         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9053         AC_LIBOBJ invocation.
9054         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9055         here.
9056         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9057         AC_LIBOBJ invocation.
9058         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9059         here.
9060         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9061         AC_LIBOBJ invocation.
9062         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9063         here.
9064         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9065
9066 2011-05-08  Bruno Haible  <bruno@clisp.org>
9067
9068         isinf: Move AC_LIBOBJ invocations to module description.
9069         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9070         * modules/isinf (configure.ac): ... to here.
9071
9072 2011-05-08  Bruno Haible  <bruno@clisp.org>
9073
9074         isfinite: Move AC_LIBOBJ invocations to module description.
9075         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9076         * modules/isfinite (configure.ac): ... to here.
9077
9078 2011-05-08  Bruno Haible  <bruno@clisp.org>
9079
9080         isblank: Move AC_LIBOBJ invocations to module description.
9081         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9082         here...
9083         * modules/isblank (configure.ac): ... to here.
9084
9085 2011-05-08  Bruno Haible  <bruno@clisp.org>
9086
9087         isapipe: Move AC_LIBOBJ invocations to module description.
9088         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9089         gl_PREREQ_ISAPIPE invocations from here...
9090         * modules/isapipe (configure.ac): ... to here.
9091         (Depends-on): Update condition.
9092
9093 2011-05-08  Bruno Haible  <bruno@clisp.org>
9094
9095         ioctl: Move AC_LIBOBJ invocations to module description.
9096         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9097         invocations from here...
9098         * modules/ioctl (configure.ac): ... to here.
9099         (Depends-on): Update condition.
9100
9101 2011-05-08  Bruno Haible  <bruno@clisp.org>
9102
9103         imaxdiv: Move AC_LIBOBJ invocations to module description.
9104         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9105         invocations from here...
9106         * modules/imaxdiv (configure.ac): ... to here.
9107
9108 2011-05-08  Bruno Haible  <bruno@clisp.org>
9109
9110         imaxabs: Move AC_LIBOBJ invocations to module description.
9111         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9112         invocations from here...
9113         * modules/imaxabs (configure.ac): ... to here.
9114
9115 2011-05-08  Bruno Haible  <bruno@clisp.org>
9116
9117         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9118         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9119         AC_LIBOBJ invocations from here...
9120         * modules/getaddrinfo (configure.ac): ... to here.
9121         (Depends-on): Add conditions.
9122
9123 2011-05-08  Bruno Haible  <bruno@clisp.org>
9124
9125         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9126         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9127         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9128         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9129         (gl_PREREQ_INET_PTON): ... from here.
9130         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9131         gl_PREREQ_INET_PTON here.
9132         (Depends-on): Update condition.
9133
9134 2011-05-08  Bruno Haible  <bruno@clisp.org>
9135
9136         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9137         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9138         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9139         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9140         (gl_PREREQ_INET_NTOP): ... from here.
9141         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9142         gl_PREREQ_INET_NTOP here.
9143         (Depends-on): Update condition.
9144
9145 2011-05-08  Bruno Haible  <bruno@clisp.org>
9146
9147         iconv_open: Move AC_LIBOBJ invocations to module description.
9148         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9149         AC_LIBOBJ invocations from here...
9150         * modules/iconv_open (configure.ac): ... to here.
9151
9152 2011-05-08  Bruno Haible  <bruno@clisp.org>
9153
9154         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9155         If module 'iconv_open' is among the main modules and module
9156         'iconv_open-utf' is among the tests dependencies, then
9157         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9158         return the special iconv_t values. Therefore iconv() and iconv_close()
9159         must support these special iconv_t values, already in lib, not only in
9160         tests.
9161         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9162         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9163         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9164         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9165         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9166         (Depends-on): Add the dependencies of iconv_open-utf.
9167         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9168         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9169         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9170
9171 2011-05-08  Bruno Haible  <bruno@clisp.org>
9172
9173         group-member: Move AC_LIBOBJ invocations to module description.
9174         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9175         gl_PREREQ_GROUP_MEMBER invocations from here...
9176         * modules/group-member (configure.ac): ... to here.
9177
9178 2011-05-08  Bruno Haible  <bruno@clisp.org>
9179
9180         grantpt: Move AC_LIBOBJ invocations to module description.
9181         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9182         invocations from here...
9183         * modules/grantpt (configure.ac): ... to here.
9184
9185 2011-05-08  Bruno Haible  <bruno@clisp.org>
9186
9187         glob: Move AC_LIBOBJ invocations to module description.
9188         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9189         from here...
9190         * modules/glob (configure.ac): ... to here.
9191
9192 2011-05-08  Bruno Haible  <bruno@clisp.org>
9193
9194         getusershell: Move AC_LIBOBJ invocations to module description.
9195         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9196         Move AC_LIBOBJ invocation from here...
9197         * modules/getusershell (configure.ac): ... to here.
9198         (Depends-on): Update condition.
9199
9200 2011-05-08  Bruno Haible  <bruno@clisp.org>
9201
9202         gettimeofday: Move AC_LIBOBJ invocations to module description.
9203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9204         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9205         gl_PREREQ_GETTIMEOFDAY invocations from here...
9206         * modules/gettimeofday (configure.ac): ... to here.
9207
9208 2011-05-08  Bruno Haible  <bruno@clisp.org>
9209
9210         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9211         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9212         just gl_FUNC_TZSET.
9213         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9214         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9215         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9216         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9217
9218 2011-05-08  Bruno Haible  <bruno@clisp.org>
9219
9220         getsubopt: Move AC_LIBOBJ invocations to module description.
9221         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9222         gl_PREREQ_GETSUBOPT invocations from here...
9223         * modules/getsubopt (configure.ac): ... to here.
9224
9225 2011-05-08  Bruno Haible  <bruno@clisp.org>
9226
9227         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9228         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9229         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9230         * modules/getpass-gnu (configure.ac): ... to here.
9231
9232 2011-05-08  Bruno Haible  <bruno@clisp.org>
9233
9234         getpass: Move AC_LIBOBJ invocations to module description.
9235         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9236         gl_PREREQ_GETPASS invocations from here...
9237         * modules/getpass (configure.ac): ... to here.
9238
9239 2011-05-08  Bruno Haible  <bruno@clisp.org>
9240
9241         getpagesize: Move AC_LIBOBJ invocations to module description.
9242         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9243         from here...
9244         * modules/getpagesize (configure.ac): ... to here.
9245
9246 2011-05-08  Bruno Haible  <bruno@clisp.org>
9247
9248         getopt: Move AC_LIBOBJ invocations to module description.
9249         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9250         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9251         invocations from here...
9252         * modules/getopt-gnu (configure.ac): ... to here.
9253         * modules/getopt-posix (configure.ac): ... and here.
9254         (Depends-on): Update condition.
9255
9256 2011-05-08  Bruno Haible  <bruno@clisp.org>
9257
9258         getopt, argp: Respect rules for use of AC_LIBOBJ.
9259         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9260         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9261         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9262         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9263
9264 2011-05-08  Bruno Haible  <bruno@clisp.org>
9265
9266         getlogin_r: Move AC_LIBOBJ invocations to module description.
9267         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9268         gl_PREREQ_GETLOGIN_R invocations from here...
9269         * modules/getlogin_r (configure.ac): ... to here.
9270
9271 2011-05-08  Bruno Haible  <bruno@clisp.org>
9272
9273         getlogin: Move AC_LIBOBJ invocations to module description.
9274         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9275         here...
9276         * modules/getlogin (configure.ac): ... to here.
9277
9278 2011-05-08  Bruno Haible  <bruno@clisp.org>
9279
9280         getloadavg: Move AC_LIBOBJ invocations to module description.
9281         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9282         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9283         * modules/getloadavg (configure.ac): ... to here.
9284
9285 2011-05-08  Bruno Haible  <bruno@clisp.org>
9286
9287         gethrxtime: Move AC_LIBOBJ invocations to module description.
9288         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9289         LIB_GETHRXTIME from here...
9290         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9291         invocations from here...
9292         * modules/gethrxtime (configure.ac): ... to here.
9293
9294 2011-05-08  Bruno Haible  <bruno@clisp.org>
9295
9296         gethostname: Move AC_LIBOBJ invocations to module description.
9297         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9298         gl_PREREQ_GETHOSTNAME invocations from here...
9299         * modules/gethostname (configure.ac): ... to here.
9300
9301 2011-05-08  Bruno Haible  <bruno@clisp.org>
9302
9303         getgroups: Move AC_LIBOBJ invocations to module description.
9304         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9305         here...
9306         * modules/getgroups (configure.ac): ... to here.
9307
9308 2011-05-08  Bruno Haible  <bruno@clisp.org>
9309
9310         getdtablesize: Move AC_LIBOBJ invocations to module description.
9311         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9312         invocation from here...
9313         * modules/getdtablesize (configure.ac): ... to here.
9314
9315 2011-05-08  Bruno Haible  <bruno@clisp.org>
9316
9317         getdomainname: Move AC_LIBOBJ invocations to module description.
9318         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9319         gl_PREREQ_GETDOMAINNAME invocations from here...
9320         * modules/getdomainname (configure.ac): ... to here.
9321
9322 2011-05-08  Bruno Haible  <bruno@clisp.org>
9323
9324         getline: Move AC_LIBOBJ invocations to module description.
9325         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9326         invocations from here...
9327         * modules/getline (configure.ac): ... to here.
9328
9329 2011-05-08  Bruno Haible  <bruno@clisp.org>
9330
9331         getline: Simplify.
9332         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9333         It's already handled through the module dependency.
9334
9335 2011-05-08  Bruno Haible  <bruno@clisp.org>
9336
9337         getdelim: Move AC_LIBOBJ invocations to module description.
9338         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9339         and gl_PREREQ_GETDELIM invocations from here...
9340         * modules/getdelim (configure.ac): ... to here.
9341         (Depends-on): Fix condition.
9342
9343 2011-05-08  Bruno Haible  <bruno@clisp.org>
9344
9345         getcwd: Move AC_LIBOBJ invocations to module description.
9346         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9347         invocations from here...
9348         * modules/getcwd (configure.ac): ... to here.
9349
9350 2011-05-08  Bruno Haible  <bruno@clisp.org>
9351
9352         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9353         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9354         here...
9355         * modules/getcwd-lgpl (configure.ac): ... to here.
9356
9357 2011-05-07  Bruno Haible  <bruno@clisp.org>
9358
9359         crypto/gc: Move AC_LIBOBJ invocations to module description.
9360         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9361         * modules/crypto/gc (configure.ac): ... to here.
9362
9363 2011-05-07  Bruno Haible  <bruno@clisp.org>
9364
9365         fwriting: Move AC_LIBOBJ invocations to module description.
9366         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9367         here...
9368         * modules/fwriting (configure.ac): ... to here.
9369
9370 2011-05-07  Bruno Haible  <bruno@clisp.org>
9371
9372         fwritable: Move AC_LIBOBJ invocations to module description.
9373         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9374         here...
9375         * modules/fwritable (configure.ac): ... to here.
9376
9377 2011-05-07  Bruno Haible  <bruno@clisp.org>
9378
9379         futimens: Move AC_LIBOBJ invocations to module description.
9380         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9381         here...
9382         * modules/futimens (configure.ac): ... to here.
9383
9384 2011-05-07  Bruno Haible  <bruno@clisp.org>
9385
9386         ftruncate: Move AC_LIBOBJ invocations to module description.
9387         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9388         gl_PREREQ_FTRUNCATE invocations from here...
9389         * modules/ftruncate (configure.ac): ... to here.
9390
9391 2011-05-07  Bruno Haible  <bruno@clisp.org>
9392
9393         fsync: Move AC_LIBOBJ invocations to module description.
9394         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9395         invocations from here...
9396         * modules/fsync (configure.ac): ... to here.
9397
9398 2011-05-07  Bruno Haible  <bruno@clisp.org>
9399
9400         fsusage: Move AC_LIBOBJ invocations to module description.
9401         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9402         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9403         * modules/fsusage (configure.ac): ... to here.
9404
9405 2011-05-07  Bruno Haible  <bruno@clisp.org>
9406
9407         freopen: Move AC_LIBOBJ invocations to module description.
9408         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9409         invocations from here...
9410         * modules/freopen (configure.ac): ... to here.
9411
9412 2011-05-07  Bruno Haible  <bruno@clisp.org>
9413
9414         free: Move AC_LIBOBJ invocations to module description.
9415         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9416         invocations from here...
9417         * modules/free (configure.ac): ... to here.
9418
9419 2011-05-07  Bruno Haible  <bruno@clisp.org>
9420
9421         freadable: Move AC_LIBOBJ invocations to module description.
9422         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9423         here...
9424         * modules/freadable (configure.ac): ... to here.
9425
9426 2011-05-07  Bruno Haible  <bruno@clisp.org>
9427
9428         fpurge: Move AC_LIBOBJ invocations to module description.
9429         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9430         invocations from here...
9431         * modules/fpurge (configure.ac): ... to here.
9432
9433 2011-05-07  Bruno Haible  <bruno@clisp.org>
9434
9435         fpending: Move AC_LIBOBJ invocations to module description.
9436         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9437         gl_FUNC_FPENDING.
9438         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9439         invocations from here...
9440         * modules/fpending (configure.ac): ... to here.
9441
9442 2011-05-07  Bruno Haible  <bruno@clisp.org>
9443
9444         fopen: Move AC_LIBOBJ invocations to module description.
9445         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9446         invocations from here...
9447         * modules/fopen (configure.ac): ... to here.
9448
9449 2011-05-07  Bruno Haible  <bruno@clisp.org>
9450
9451         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9452         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9453         gl_FUNC_FNMATCH_POSIX.
9454         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9455         invocations from here...
9456         * modules/fnmatch (configure.ac): ... to here.
9457         * modules/fnmatch-gnu (configure.ac): ... and here.
9458
9459 2011-05-07  Bruno Haible  <bruno@clisp.org>
9460
9461         flock: Move AC_LIBOBJ invocations to module description.
9462         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9463         invocations from here...
9464         * modules/flock (configure.ac): ... to here.
9465
9466 2011-05-07  Bruno Haible  <bruno@clisp.org>
9467
9468         fileblocks: Move AC_LIBOBJ invocations to module description.
9469         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9470         gl_PREREQ_FILEBLOCKS invocations from here...
9471         * modules/fileblocks (configure.ac): ... to here.
9472
9473 2011-05-06  Bruno Haible  <bruno@clisp.org>
9474
9475         fflush: Move AC_LIBOBJ invocations to module description.
9476         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9477         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9478         invocations from here...
9479         * modules/fflush (configure.ac): ... to here.
9480
9481 2011-05-06  Bruno Haible  <bruno@clisp.org>
9482
9483         fdopendir: Move AC_LIBOBJ invocations to module description.
9484         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9485         here...
9486         * modules/fdopendir (configure.ac): ... to here.
9487         (Depends-on): Improve conditions.
9488
9489 2011-05-06  Bruno Haible  <bruno@clisp.org>
9490
9491         _Exit: Move AC_LIBOBJ invocations to module description.
9492         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9493         invocations from here...
9494         * modules/_Exit (configure.ac): ... to here.
9495
9496 2011-05-21  Bruno Haible  <bruno@clisp.org>
9497
9498         euidaccess: Respect rules for use of AC_LIBOBJ.
9499         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9500         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9501         from here...
9502         * modules/euidaccess (configure.ac): ... to here.
9503
9504 2011-05-06  Bruno Haible  <bruno@clisp.org>
9505
9506         error: Move AC_LIBOBJ invocations to module description.
9507         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9508         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9509         invocations from here...
9510         * modules/error (configure.ac): ... to here.
9511
9512 2011-05-06  Bruno Haible  <bruno@clisp.org>
9513
9514         duplocale: Move AC_LIBOBJ invocations to module description.
9515         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9516         gl_PREREQ_DUPLOCALE invocations from here...
9517         * modules/duplocale (configure.ac): ... to here.
9518
9519 2011-05-05  Bruno Haible  <bruno@clisp.org>
9520
9521         dirfd: Move AC_LIBOBJ invocations to module description.
9522         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9523         gl_FUNC_DIRFD.
9524         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9525         here...
9526         * modules/dirfd (configure.ac): ... to here.
9527         (Depends-on): Fix condition.
9528
9529 2011-05-05  Bruno Haible  <bruno@clisp.org>
9530
9531         chown: Respect rules for use of AC_LIBOBJ.
9532         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9533         * modules/chown (configure.ac): ... to here.
9534
9535 2011-05-05  Bruno Haible  <bruno@clisp.org>
9536
9537         chdir-long: Move AC_LIBOBJ invocations to module description.
9538         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9539         gl_PREREQ_CHDIR_LONG invocations from here...
9540         * modules/chdir-long (configure.ac): ... to here.
9541
9542 2011-05-05  Bruno Haible  <bruno@clisp.org>
9543
9544         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9545         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9546         from here...
9547         * modules/canonicalize-lgpl (configure.ac): ... to here.
9548
9549 2011-05-05  Bruno Haible  <bruno@clisp.org>
9550
9551         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9552         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9553         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9554         REPLACE_CALLOC.
9555         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9556         * modules/calloc-gnu (configure.ac): Likewise.
9557
9558 2011-05-05  Bruno Haible  <bruno@clisp.org>
9559
9560         btowc: Move AC_LIBOBJ invocations to module description.
9561         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9562         invocations from here...
9563         * modules/btowc (configure.ac): ... to here.
9564
9565 2011-05-21  Bruno Haible  <bruno@clisp.org>
9566
9567         atexit: Move AC_LIBOBJ invocations to module description.
9568         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9569         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9570         here...
9571         * modules/atexit (configure.ac): ... to here.
9572
9573 2011-05-05  Bruno Haible  <bruno@clisp.org>
9574
9575         atoll: Move AC_LIBOBJ invocations to module description.
9576         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9577         invocations from here...
9578         * modules/atoll (configure.ac): ... to here.
9579
9580 2011-05-05  Bruno Haible  <bruno@clisp.org>
9581
9582         argz: Move AC_LIBOBJ invocations to module description.
9583         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9584         * modules/argz (configure.ac): ... to here.
9585
9586 2011-05-05  Bruno Haible  <bruno@clisp.org>
9587
9588         alphasort: Move AC_LIBOBJ invocations to module description.
9589         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9590         gl_PREREQ_ALPHASORT invocations from here...
9591         * modules/alphasort (configure.ac): ... to here.
9592
9593 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9594
9595         verify: new macro verify_expr; verify_true deprecated
9596         * NEWS: Mention this.
9597         * doc/verify.texi (Compile-time Assertions): Document this.
9598         * lib/verify.h (verify_true): Deprecate.
9599         (verify_expr): New macro.
9600         * tests/test-verify.c (function): Test verify_expr.
9601
9602 2011-06-14  Jim Meyering  <meyering@redhat.com>
9603
9604         init.sh: give more portable redirection-related advice in a comment
9605         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9606         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9607         for lots of discussion.  Stefano Lattarini suggested the solution
9608         of putting "9>&2" after the command.  Reported by Bruno Haible.
9609
9610 2011-06-13  Bruno Haible  <bruno@clisp.org>
9611
9612         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9613         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9614         'none'.
9615
9616 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9617
9618         ftoastr: use strtof only if HAVE_STRTOF
9619         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9621         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9622         * modules/ftoastr (configure.ac): Check for strtof.
9623
9624 2011-06-13  Bruno Haible  <bruno@clisp.org>
9625
9626         gnulib-tool: Addendum to 2011-06-08 commit.
9627         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9628         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9629
9630 2011-06-13  Bruno Haible  <bruno@clisp.org>
9631
9632         fseeko: Provide a non-inline replacement of fseek().
9633         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9634         * modules/fseeko (Depends-on): Add fseek.
9635         * modules/fseek (License): Change to LGPLv2+.
9636
9637 2011-06-13  Bruno Haible  <bruno@clisp.org>
9638
9639         ftello: Provide a non-inline replacement of ftell().
9640         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9641         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9642         not have ftello() (such as on mingw).
9643         * modules/ftello (Depends-on): Add ftell.
9644         * modules/ftell (License): Change to LGPLv2+.
9645
9646 2011-05-07  Bruno Haible  <bruno@clisp.org>
9647
9648         ftell: Move AC_LIBOBJ invocations to module description.
9649         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9650         * modules/ftell (configure.ac): ... to here.
9651
9652 2011-05-07  Bruno Haible  <bruno@clisp.org>
9653
9654         ftello: Respect rules for use of AC_LIBOBJ.
9655         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9656         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9657         here...
9658         * modules/ftello (configure.ac): ... to here.
9659
9660 2011-05-07  Bruno Haible  <bruno@clisp.org>
9661
9662         fseeko: Simplify.
9663         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9664         (gl_FUNC_FSEEKO): Inline it here.
9665
9666 2011-05-07  Bruno Haible  <bruno@clisp.org>
9667
9668         fseek: Move AC_LIBOBJ invocations to module description.
9669         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9670         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9671         * modules/fseek (configure.ac): ... to here.
9672
9673 2011-05-07  Bruno Haible  <bruno@clisp.org>
9674
9675         fseek: Respect rules for use of AC_LIBOBJ.
9676         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9677         here...
9678         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9679
9680 2011-05-07  Bruno Haible  <bruno@clisp.org>
9681
9682         fseeko: Respect rules for use of AC_LIBOBJ.
9683         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9684         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9685         here...
9686         * modules/fseeko (configure.ac): ... to here.
9687
9688 2011-06-13  Bruno Haible  <bruno@clisp.org>
9689
9690         gnulib-tool: Allow comments in the 'Depends-on' section.
9691         * doc/gnulib.texi (Module description): Mention comment syntax in the
9692         Depends-on section.
9693         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9694
9695 2011-06-13  Bruno Haible  <bruno@clisp.org>
9696
9697         file-set.h: guard __attibute__ use, now that it's not always defined
9698         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9699         versions that support it.  This fixes a coreutils build failure with
9700         the vendor cc on HP-UX 11.31.
9701
9702 2011-06-12  Bruno Haible  <bruno@clisp.org>
9703
9704         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9705         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9706         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9707         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9708         (acl, aclsort): New declarations.
9709         (aclv_nontrivial): New declaration.
9710         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9711         (file_has_acl): Read also the second kind of HP-UX ACLs.
9712         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9713         kind of HP-UX ACLs if the first kind fails.
9714         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9715         second kind of HP-UX ACLs.
9716         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9717         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9718         agree.
9719         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9720         hpuxjfs.
9721         Handle hpuxjfs.
9722         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9723         hpuxjfs.
9724         Handle hpuxjfs.
9725         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9726         (func_test_same_acls): Use both lsacl and getacl.
9727         Handle hpuxjfs.
9728         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9729         (func_test_same_acls): Use both lsacl and getacl.
9730         Handle hpuxjfs.
9731
9732 2011-06-12  Bruno Haible  <bruno@clisp.org>
9733
9734         acl: Complete the 2010-08-10 fix.
9735         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9736         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9737         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9738         explicitly.
9739         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9740         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9741
9742 2011-06-12  Bruno Haible  <bruno@clisp.org>
9743
9744         spawn-pipe tests: Comments.
9745         * tests/test-spawn-pipe-child.c (main): Update comment.
9746         Reported by James Youngman <jay@gnu.org>.
9747
9748 2011-06-11  James Youngman  <jay@gnu.org>
9749
9750         New module 'stat-size'.
9751         * modules/stat-size: New module.  Provides macros for accessing
9752         file size information in instances of struct stat.  Depends on the
9753         fileblocks module because it calls st_blocks.
9754         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9755         * doc/gnulib.texi: Include stat-size.texi.
9756         * doc/stat-size.texi: Documentation for this module.
9757         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9758         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9759         AC_STRUCT_ST_BLOCKS.
9760
9761 2011-06-09  Bruno Haible  <bruno@clisp.org>
9762
9763         thread: Support pthreads-win32.
9764         * lib/glthread/thread.h (gl_thread_self): Define differently on
9765         pthreads-win32.
9766         (gl_null_thread): New declaration.
9767         (gl_thread_self_pointer): New macro.
9768         * lib/glthread/thread.c (gl_null_thread): New constant.
9769         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9770         gl_thread_self.
9771         * tests/test-tls.c: Likewise.
9772         Suggested by Paul Eggert. Reported by Eric Blake.
9773
9774 2011-06-09  Bruno Haible  <bruno@clisp.org>
9775
9776         thread: Fix confusion between NULL and 0.
9777         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9778         Reported by Paul Eggert.
9779
9780 2011-06-09  Bruno Haible  <bruno@clisp.org>
9781
9782         spawn-pipe tests: Avoid test failure on HP-UX 11.
9783         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9784         is closed.
9785
9786 2011-06-09  Bruno Haible  <bruno@clisp.org>
9787
9788         acl tests: Fix compilation error on HP-UX 11.
9789         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9790
9791 2011-06-09  Bruno Haible  <bruno@clisp.org>
9792
9793         rmdir: Avoid test failure on HP-UX 10.20.
9794         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9795         EEXIST.
9796
9797 2011-06-08  Eric Blake  <eblake@redhat.com>
9798
9799         perror: fix test on mingw
9800         * modules/perror-tests (Depends-on): Add dup2.
9801
9802         strerror_r-posix: fix on MacOS
9803         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9804         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9805         logic bug.
9806         * lib/strerror_r.c (strerror_r): Fix the bug.
9807         * lib/strerror.c (strerror): Likewise.
9808         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9809         problem.
9810         * doc/posix-functions/strerror.texi (strerror): Likewise.
9811         * doc/posix-functions/perror.texi (perror): Likewise.
9812         * tests/test-strerror.c (main): Enhance test.
9813         * tests/test-strerror_r.c (main): Likewise.
9814
9815 2011-06-08  Bruno Haible  <bruno@clisp.org>
9816
9817         gnulib-tool: Better isolation between different gnulib-tool invocations.
9818         * gnulib-tool: New option --witness-c-macro.
9819         (witness_c_macro): New variable.
9820         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9821         AM_CPPFLAGS define it as a C macro.
9822         (func_emit_tests_Makefile_am): Likewise.
9823         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9824         read it from there.
9825         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9826         m4_define, not AC_DEFUN.
9827         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9828         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9829         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9830         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9831         s|...|...|, to substitute the values of the GNULIB_* module indicator
9832         variables.
9833         * modules/dirent (Makefile.am): Likewise.
9834         * modules/fcntl-h (Makefile.am): Likewise.
9835         * modules/iconv-h (Makefile.am): Likewise.
9836         * modules/langinfo (Makefile.am): Likewise.
9837         * modules/locale (Makefile.am): Likewise.
9838         * modules/math (Makefile.am): Likewise.
9839         * modules/netdb (Makefile.am): Likewise.
9840         * modules/poll-h (Makefile.am): Likewise.
9841         * modules/pty (Makefile.am): Likewise.
9842         * modules/search (Makefile.am): Likewise.
9843         * modules/signal (Makefile.am): Likewise.
9844         * modules/spawn (Makefile.am): Likewise.
9845         * modules/stdio (Makefile.am): Likewise.
9846         * modules/stdlib (Makefile.am): Likewise.
9847         * modules/string (Makefile.am): Likewise.
9848         * modules/sys_ioctl (Makefile.am): Likewise.
9849         * modules/sys_select (Makefile.am): Likewise.
9850         * modules/sys_socket (Makefile.am): Likewise.
9851         * modules/sys_stat (Makefile.am): Likewise.
9852         * modules/sys_times (Makefile.am): Likewise.
9853         * modules/sys_utsname (Makefile.am): Likewise.
9854         * modules/sys_wait (Makefile.am): Likewise.
9855         * modules/termios (Makefile.am): Likewise.
9856         * modules/time (Makefile.am): Likewise.
9857         * modules/unistd (Makefile.am): Likewise.
9858         * modules/wchar (Makefile.am): Likewise.
9859
9860 2011-06-08  Eric Blake  <eblake@redhat.com>
9861
9862         strerror: simplify replacement
9863         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9864         * modules/strerror (configure.ac): No prereqs needed here...
9865         * modules/strerror-override (configure.ac): ...but this needs it.
9866         (Files): Add file for needed prereq macro.
9867
9868 2011-06-08  Bruno Haible  <bruno@clisp.org>
9869
9870         strerror_r-posix: Tweaks.
9871         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9872         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9873         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9874         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9875         (gl_FUNC_STRERROR_R): ... to here.
9876         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9877
9878 2011-06-07  Eric Blake  <eblake@redhat.com>
9879
9880         perror: document fixed bugs
9881         * doc/posix-functions/perror.texi (perror): Document recent
9882         patches.
9883
9884 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9885
9886         stat-time: get_stat_birthtime failure is better-defined
9887         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9888         return a timestamp whose tv_sec and tv_nsec values are both -1.
9889         Previously, the spec said only that the tv_nsec value was negative.
9890         This upward-compatible change simplifies GNU tar a bit.
9891
9892 2011-06-07  Eric Blake  <eblake@redhat.com>
9893
9894         strerror_r-posix: work around cygwin 1.7.9
9895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9896         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9897         bug without replacing strerror_r.
9898         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9899         strerror_r is buggy, but without requiring strerror_r compilation.
9900         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9901
9902         test-perror: relax test to ignore cygwin bug
9903         * tests/test-perror2.c (main): Relax test on requiring detection
9904         of stream errors, and use unbuffered stream.
9905         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9906         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9907         * doc/posix-functions/fputc.texi (fputc): Likewise.
9908         * doc/posix-functions/fputs.texi (fputs): Likewise.
9909         * doc/posix-functions/fputws.texi (fputws): Likewise.
9910         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9911         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9912         * doc/posix-functions/getopt.texi (getopt): Likewise.
9913         * doc/posix-functions/perror.texi (perror): Likewise.
9914         * doc/posix-functions/printf.texi (printf): Likewise.
9915         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9916         * doc/posix-functions/psignal.texi (psignal): Likewise.
9917         * doc/posix-functions/putc.texi (putc): Likewise.
9918         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9919         Likewise.
9920         * doc/posix-functions/putchar.texi (putchar): Likewise.
9921         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9922         Likewise.
9923         * doc/posix-functions/puts.texi (puts): Likewise.
9924         * doc/posix-functions/putwc.texi (putwc): Likewise.
9925         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9926         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9927         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9928         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9929         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9930         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9931         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9932         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9933
9934 2011-05-22  Bruno Haible  <bruno@clisp.org>
9935
9936         strerror: Move AC_LIBOBJ invocations to module description.
9937         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9938         gl_PREREQ_STRERROR invocations from here...
9939         * modules/strerror (configure.ac): ... to here.
9940
9941 2011-05-21  Bruno Haible  <bruno@clisp.org>
9942
9943         perror: Use common idiom.
9944         * modules/perror (configure.ac): Reorder statements.
9945
9946 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9947
9948         tests: fix usage message in 'mktempd_'
9949         * tests/init.sh (mktempd_): In the usage message, use literal
9950         'mktempd_', not '$ME' (which is even undefined), as the name of
9951         the subroutine.
9952
9953 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9954
9955         tests init: new function 'fatal_', for hard errors
9956         Before this patch, the only way offered by tests/init.sh to
9957         properly signal a hard error was the `framework_failure_'
9958         function.  But the error message issued by that function,
9959         as its name would suggest, refers to a set-up failure in the
9960         testsuite, while hard errors can obviously also be due to
9961         other reasons.  The best way to fix this inconsistency is to
9962         introduce a new function with a more general error message.
9963         * tests/init.sh (fatal_): New function.
9964
9965 2011-06-06  Eric Blake  <eblake@redhat.com>
9966
9967         canonicalize-lgpl: use common idiom
9968         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9969         over newer POSIX -Rf.
9970         Reported by Bruno Haible.
9971
9972         canonicalize-lgpl: work around AIX realpath bug
9973         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9974         * doc/posix-functions/realpath.texi (realpath): Document it.
9975         Reported by Bruno Haible.
9976
9977         strerror: work around FreeBSD bug
9978         * lib/strerror.c (strerror): Special case 0.
9979         Reported by Bruno Haible.
9980
9981         strerror-override: avoid bloating errno module
9982         * modules/errno (Files, configure.ac): Move replacement strings...
9983         * modules/strerror-override: ...to new module.
9984         * modules/strerror (Depends-on): Add strerror-override.
9985         * modules/strerror_r-posix (Depends-on): Likewise.
9986         * MODULES.html.sh: Document new module.
9987         Reported by Bruno Haible.
9988
9989 2011-06-06  Bruno Haible  <bruno@clisp.org>
9990
9991         spawn-pipe tests: Rename program.
9992         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9993         * tests/test-spawn-pipe-child.c: Update comment.
9994         * tests/test-spawn-pipe.sh: Update.
9995         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9996
9997         spawn-pipe tests: Link the child program only against libc.
9998         * tests/test-spawn-pipe-child.c: New file, extracted from
9999         tests/test-spawn-pipe.c.
10000         (main): Expect only one argument.
10001         (is_open): New function, copied from tests/test-pipe.c.
10002         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10003         (child_main): Remove function.
10004         (test_pipe): Pass only one argument to the child program.
10005         (main): Remove child process code. Expect the child program's name as
10006         first argument.
10007         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10008         argument.
10009         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10010         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10011         test-spawn-pipe-child against no libraries.
10012
10013 2011-06-06  Bruno Haible  <bruno@clisp.org>
10014
10015         careadlinkat: Avoid mismatch between ssize_t and int.
10016         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10017         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10018
10019 2011-06-06  Jim Meyering  <meyering@redhat.com>
10020
10021         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10022         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10023         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10024
10025 2011-06-05  Bruno Haible  <bruno@clisp.org>
10026
10027         ansi-c++-opt: Interoperability with libtool.
10028         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10029         set the variable to "no", not to ":".
10030         * NEWS: Mention the change.
10031
10032 2011-06-05  Bruno Haible  <bruno@clisp.org>
10033
10034         acl: Fix test failure on AIX 7.
10035         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10036         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10037
10038 2011-06-05  Bruno Haible  <bruno@clisp.org>
10039
10040         pipe-filter-ii: Fix test failure on AIX and IRIX.
10041         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10042         with EAGAIN, retry with a smaller buffer size.
10043
10044 2011-06-05  Bruno Haible  <bruno@clisp.org>
10045
10046         localename: Fix link dependencies.
10047         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10048         * modules/localename-tests (Makefile.am): Link test-localename with
10049         $(LIBTHREAD).
10050
10051 2011-06-05  Bruno Haible  <bruno@clisp.org>
10052
10053         error: Avoid gcc warning.
10054         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10055
10056 2011-06-05  Bruno Haible  <bruno@clisp.org>
10057
10058         unsetenv: Avoid gcc warning.
10059         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10060
10061 2011-06-05  Bruno Haible  <bruno@clisp.org>
10062
10063         setenv: Avoid gcc warning.
10064         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10065
10066 2011-06-05  Bruno Haible  <bruno@clisp.org>
10067
10068         sys_select: Ensure memset is declared also on AIX 7.
10069         * lib/sys_select.in.h: Include <string.h> also on AIX.
10070         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10071         self-contained also on AIX 7.1.
10072
10073 2011-06-04  Jim Meyering  <meyering@redhat.com>
10074
10075         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10076         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10077         function name, "error".
10078         (_gl_translatable_diag_func_re): New configurable variable.
10079
10080 2011-06-04  Bruno Haible  <bruno@clisp.org>
10081
10082         getopt: Avoid gcc warning.
10083         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10084
10085 2011-06-04  Bruno Haible  <bruno@clisp.org>
10086
10087         strerror_r: Fix comments.
10088         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10089         commit.
10090
10091 2011-06-04  Bruno Haible  <bruno@clisp.org>
10092
10093         perror: Fix compilation error.
10094         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10095         Undefine fprintf, not sprintf.
10096         * modules/perror (Depends-on): Remove intprops, verify.
10097
10098 2011-06-04  Bruno Haible  <bruno@clisp.org>
10099
10100         setlocale: Enable replacement on Cygwin 1.5.
10101         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10102         Cygwin 1.5.x.
10103         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10104         LC_CTYPE category also exists on Cygwin 1.5.x.
10105
10106 2011-06-04  Bruno Haible  <bruno@clisp.org>
10107
10108         strerror-override: Don't disable symbol renamings.
10109         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10110         * lib/strerror-override.c: Include config.h.
10111         (strerror_override): Don't undefine.
10112
10113 2011-06-03  Bruno Haible  <bruno@clisp.org>
10114
10115         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10116         * lib/localename.h: Update copyright header.
10117         * lib/localename.c: Likewise.
10118         * lib/relocatable.h: Likewise.
10119         * lib/relocatable.c: Likewise.
10120
10121 2011-06-02  Bruno Haible  <bruno@clisp.org>
10122
10123         doc: Fix a module name.
10124         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10125
10126 2011-06-02  Bruno Haible  <bruno@clisp.org>
10127
10128         pipe2: Remove dependency on 'nonblocking' module.
10129         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10130         O_NONBLOCK is defined by gnulib.
10131         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10132         is zero.
10133         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10134         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10135         defined by gnulib.
10136         (get_nonblocking_flag): New function.
10137         (main): Test O_NONBLOCK flag only if it is nonzero.
10138         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10139
10140 2011-06-03  Jim Meyering  <meyering@redhat.com>
10141
10142         maint: three new prohibit-header-without-use rules
10143         Prohibit use of cloexec.h, posixver.h, same.h without use.
10144         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10145         (sc_prohibit_posixver_without_use): Likewise.
10146         (sc_prohibit_same_without_use): Likewise.
10147
10148 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10149
10150         allocator: 'die' routine is now given requested size
10151         * lib/allocator.h (struct allocator.die): New size arg.
10152         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10153         If the actual problem is an ssize_t limitation, not a size_t or
10154         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10155
10156 2011-06-01  Eric Blake  <eblake@redhat.com>
10157
10158         strerror: drop strerror_r dependency
10159         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10160         * lib/strerror-override.c (strerror_override): ...to new file.
10161         * lib/strerror-override.h: Add prototype.
10162         * lib/strerror-impl.h: Delete.
10163         * lib/strerror.c (strerror): New implementation.
10164         * modules/errno (Files): Add new files.
10165         (configure.ac): Compile new file as appropriate.
10166         * modules/strerror (Files): Drop unused file.
10167         (Depends-on): Drop strerror_r-posix.
10168         * MODULES.html.sh: Document strerror_r-posix.
10169         Requested by Sam Steingold.
10170
10171         perror: call strerror_r directly
10172         * modules/perror (Files): Drop strerror-impl.h.
10173         * lib/perror.c (perror): Use our own stack buffer, rather than
10174         calling a wrapper that uses static storage.
10175         * doc/posix-functions/perror.texi (perror): Document a limitation
10176         of our replacement.
10177
10178         strerror_r: fix includes for FreeBSD
10179         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10180         since we use abort on some platforms.
10181         Reported by Matthias Bolte.
10182
10183 2011-05-31  Bruno Haible  <bruno@clisp.org>
10184
10185         Fix link errors in tests: openat-die uses gettext-h.
10186         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10187         against $(LIBINTL).
10188         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10189         against $(LIBINTL).
10190         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10191         $(LIBINTL).
10192         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10193         against $(LIBINTL).
10194         * modules/linkat-tests (Makefile.am): Link test-linkat against
10195         $(LIBINTL).
10196         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10197         $(LIBINTL).
10198         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10199         against $(LIBINTL).
10200         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10201         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10202         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10203         $(LIBINTL).
10204         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10205         $(LIBINTL).
10206         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10207         $(LIBINTL).
10208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10209
10210 2011-05-31  Bruno Haible  <bruno@clisp.org>
10211
10212         Fix link errors in tests: wait-process uses gettext-h.
10213         * modules/nonblocking-pipe-tests (Makefile.am): Set
10214         test_nonblocking_pipe_main_LDADD.
10215         * modules/nonblocking-socket-tests (Makefile.am): Link
10216         test-nonblocking-socket-main against $(LIBINTL).
10217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10218
10219 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10220
10221         assert-h: work around 'verify' incompatibility
10222         * lib/verify.h: Use @...@ directives, not ifdef.
10223         * modules/assert-h (assert.h): Implement the directives.
10224         (assert.h): Substitute the symbol-prefix more consistently.
10225
10226 2011-05-29  Jim Meyering  <meyering@redhat.com>
10227
10228         trim: remove three superfluous assignments
10229         * lib/trim.c (trim2): Remove three superfluous assignments
10230         and correct brace positioning.
10231
10232 2011-05-29  Bruno Haible  <bruno@clisp.org>
10233
10234         wctype-h: Avoid namespace pollution on Solaris 2.6.
10235         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10236         identifiers.
10237         * doc/posix-headers/wctype.texi: Mention the problem.
10238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10239
10240 2011-05-28  Jim Meyering  <meyering@redhat.com>
10241
10242         parse-datetime.y: accommodate -Wstrict-overflow
10243         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10244         placate -Wstrict-overflow.
10245
10246         trim: avoid a warning from -O2 -Wstrict-overflow
10247         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10248
10249 2011-05-29  Bruno Haible  <bruno@clisp.org>
10250
10251         gnulib-tool: Fix bug in yesterday's commit.
10252         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10253         twice.
10254
10255 2011-05-29  Bruno Haible  <bruno@clisp.org>
10256
10257         Allow multiple gnulib generated include files to be combined.
10258         * gnulib-tool (func_compute_include_guard_prefix): New function.
10259         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10260         ${gl_include_guard_prefix} references.
10261         (func_import, func_create_testdir): Invoke
10262         func_compute_include_guard_prefix.
10263         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10264         * lib/ctype.in.h: Likewise.
10265         * lib/dirent.in.h: Likewise.
10266         * lib/errno.in.h: Likewise.
10267         * lib/fcntl.in.h: Likewise.
10268         * lib/float.in.h: Likewise.
10269         * lib/getopt.in.h: Likewise.
10270         * lib/iconv.in.h: Likewise.
10271         * lib/langinfo.in.h: Likewise.
10272         * lib/locale.in.h: Likewise.
10273         * lib/math.in.h: Likewise.
10274         * lib/netdb.in.h: Likewise.
10275         * lib/netinet_in.in.h: Likewise.
10276         * lib/poll.in.h: Likewise.
10277         * lib/pthread.in.h: Likewise.
10278         * lib/pty.in.h: Likewise.
10279         * lib/sched.in.h: Likewise.
10280         * lib/se-selinux.in.h: Likewise.
10281         * lib/search.in.h: Likewise.
10282         * lib/signal.in.h: Likewise.
10283         * lib/spawn.in.h: Likewise.
10284         * lib/stdarg.in.h: Likewise.
10285         * lib/stddef.in.h: Likewise.
10286         * lib/stdint.in.h: Likewise.
10287         * lib/stdio.in.h: Likewise.
10288         * lib/stdlib.in.h: Likewise.
10289         * lib/string.in.h: Likewise.
10290         * lib/strings.in.h: Likewise.
10291         * lib/sys_file.in.h: Likewise.
10292         * lib/sys_ioctl.in.h: Likewise.
10293         * lib/sys_select.in.h: Likewise.
10294         * lib/sys_socket.in.h: Likewise.
10295         * lib/sys_stat.in.h: Likewise.
10296         * lib/sys_time.in.h: Likewise.
10297         * lib/sys_times.in.h: Likewise.
10298         * lib/sys_uio.in.h: Likewise.
10299         * lib/sys_utsname.in.h: Likewise.
10300         * lib/sys_wait.in.h: Likewise.
10301         * lib/sysexits.in.h: Likewise.
10302         * lib/termios.in.h: Likewise.
10303         * lib/time.in.h: Likewise.
10304         * lib/unistd.in.h: Likewise.
10305         * lib/wchar.in.h: Likewise.
10306         * lib/wctype.in.h: Likewise.
10307         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10308         * modules/ctype (Makefile.am): Likewise.
10309         * modules/dirent (Makefile.am): Likewise.
10310         * modules/errno (Makefile.am): Likewise.
10311         * modules/fcntl-h (Makefile.am): Likewise.
10312         * modules/float (Makefile.am): Likewise.
10313         * modules/getopt-posix (Makefile.am): Likewise.
10314         * modules/iconv-h (Makefile.am): Likewise.
10315         * modules/langinfo (Makefile.am): Likewise.
10316         * modules/locale (Makefile.am): Likewise.
10317         * modules/math (Makefile.am): Likewise.
10318         * modules/netdb (Makefile.am): Likewise.
10319         * modules/netinet_in (Makefile.am): Likewise.
10320         * modules/poll-h (Makefile.am): Likewise.
10321         * modules/pthread (Makefile.am): Likewise.
10322         * modules/pty (Makefile.am): Likewise.
10323         * modules/sched (Makefile.am): Likewise.
10324         * modules/search (Makefile.am): Likewise.
10325         * modules/selinux-h (Makefile.am): Likewise.
10326         * modules/signal (Makefile.am): Likewise.
10327         * modules/spawn (Makefile.am): Likewise.
10328         * modules/stdarg (Makefile.am): Likewise.
10329         * modules/stddef (Makefile.am): Likewise.
10330         * modules/stdint (Makefile.am): Likewise.
10331         * modules/stdio (Makefile.am): Likewise.
10332         * modules/stdlib (Makefile.am): Likewise.
10333         * modules/string (Makefile.am): Likewise.
10334         * modules/strings (Makefile.am): Likewise.
10335         * modules/sys_file (Makefile.am): Likewise.
10336         * modules/sys_ioctl (Makefile.am): Likewise.
10337         * modules/sys_select (Makefile.am): Likewise.
10338         * modules/sys_socket (Makefile.am): Likewise.
10339         * modules/sys_stat (Makefile.am): Likewise.
10340         * modules/sys_time (Makefile.am): Likewise.
10341         * modules/sys_times (Makefile.am): Likewise.
10342         * modules/sys_uio (Makefile.am): Likewise.
10343         * modules/sys_utsname (Makefile.am): Likewise.
10344         * modules/sys_wait (Makefile.am): Likewise.
10345         * modules/sysexits (Makefile.am): Likewise.
10346         * modules/termios (Makefile.am): Likewise.
10347         * modules/time (Makefile.am): Likewise.
10348         * modules/unistd (Makefile.am): Likewise.
10349         * modules/wchar (Makefile.am): Likewise.
10350         * modules/wctype-h (Makefile.am): Likewise.
10351         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10352
10353 2011-05-29  Bruno Haible  <bruno@clisp.org>
10354
10355         assert-h: Allow multiple gnulib generated replacements to coexist.
10356         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10357
10358 2011-05-29  Bruno Haible  <bruno@clisp.org>
10359
10360         argp: Allow coexistence with strerror_r-posix module.
10361         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10362         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10363         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10364         not the glibc signature.
10365
10366 2011-05-28  Bruno Haible  <bruno@clisp.org>
10367
10368         gnulib-tool: Alternative structure of testdirs, similar to --import.
10369         * gnulib-tool: New option --single-configure.
10370         (func_usage): Document it.
10371         (single_configure): New variable.
10372         (func_modules_transitive_closure_separately,
10373         func_modules_transitive_closure_separately,
10374         func_determine_use_libtests, func_modules_add_dummy_separately,
10375         func_modules_to_filelist_separately): New functions, extracted from
10376         func_import.
10377         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10378         (func_import): Use the new functions.
10379         (func_create_testdir): Set final_modules. Handle $single_configure =
10380         true case.
10381
10382 2011-05-28  Bruno Haible  <bruno@clisp.org>
10383
10384         getloadavg: Remove an unreliable safety check.
10385         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10386         getloadavg.c is in place.
10387         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10388         Reported by Sam Steingold <sds@gnu.org>.
10389
10390 2011-05-28  Bruno Haible  <bruno@clisp.org>
10391
10392         doc: Cleanup yet another file produced by texinfo.tex.
10393         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10394
10395 2011-05-28  Bruno Haible  <bruno@clisp.org>
10396
10397         Finish the conditional dependencies mechanism.
10398         * gnulib-tool: New option --no-conditional-dependencies.
10399         (func_usage): Document it. Don't mark --conditional-dependencies as
10400         experimental.
10401         (cond_dependencies): The possible values can now be true, false, empty.
10402         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10403         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10404         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10405
10406 2011-05-28  Bruno Haible  <bruno@clisp.org>
10407
10408         doc: Use a recent texinfo.tex.
10409         * doc/Makefile (tex_opts): New variable.
10410         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10411
10412 2011-05-28  Jim Meyering  <meyering@redhat.com>
10413
10414         intprops.h: adjust comment to match code change
10415         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10416         only once, it *may* have side effects.  Also fix an unrelated typo.
10417         (_GL_INT_SIGNED): Likewise.
10418
10419 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10420
10421         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10422
10423 2011-05-26  Bruno Haible  <bruno@clisp.org>
10424
10425         mbsrchr: Avoid collision with system function on Interix.
10426         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10427         Reported by Markus Duft <mduft@gentoo.org>.
10428
10429 2011-05-15  James Youngman  <jay@gnu.org>
10430
10431         getopt: for ambiguous options, enumerate the possibilities.
10432         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10433         the ambiguous options when an ambiguous prefix is given. This was
10434         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10435         glibc change was
10436         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10437
10438 2011-05-25  Eric Blake  <eblake@redhat.com>
10439
10440         getcwd: work around mingw bug
10441         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10442         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10443         Reported by Matthias Bolte.
10444
10445 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10446
10447         test-intprops: disable -Wtype-limits diagnostics
10448         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10449         diagnostics.  Otherwise, the integer overflow macros generate many
10450         diagnostics.  Reported by Jim Meyering in
10451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10452
10453         intprops: shorten, to pacify gcc -Woverlength-strings
10454         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10455         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10456         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10457         likely to run afoul of C compiler limits for string constant lengths.
10458         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10459
10460 2011-05-24  Eric Blake  <eblake@redhat.com>
10461
10462         docs: document recently fixed glibc printf bug
10463         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10464         * doc/posix-functions/printf.texi (printf): Likewise.
10465         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10466         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10467
10468         closein-tests: convert to init.sh
10469         * modules/closein-tests (Files): Add init.sh
10470         * tests/test-closein.sh Use it.
10471
10472         yesno-tests: convert to init.sh
10473         * modules/yesno-tests (Files): Add init.sh.
10474         * tests/test-yesno.sh: Use it.
10475
10476         atexit-tests: ensure reliable exit status
10477         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10478         Reported by Bruno Haible.
10479
10480 2011-05-24  Bruno Haible  <bruno@clisp.org>
10481
10482         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10483         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10484         gl_PREREQ_STRERROR_R invocations from here...
10485         * modules/strerror_r-posix (configure.ac): ... to here.
10486
10487 2011-05-24  Eric Blake  <eblake@redhat.com>
10488
10489         strerror_r: fix missing header
10490         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10491
10492         strerror_r: fix AIX test failures
10493         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10494         ERANGE failure.
10495
10496         strerror_r: fix Solaris test failures
10497         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10498         failures.
10499         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10500
10501         strerror_r: enforce POSIX recommendations
10502         * lib/strerror_r.c (safe_copy): New helper method.
10503         (strerror_r): Guarantee a non-empty string.
10504         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10505         recent POSIX rulings and to match our strerror guarantees.
10506         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10507
10508 2011-05-24  Jim Meyering  <meyering@redhat.com>
10509
10510         test-perror2.c: avoid warning about unused variable
10511         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10512
10513 2011-05-24  Eric Blake  <eblake@redhat.com>
10514
10515         perror: avoid spurious test failure on HP-UX
10516         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10517
10518         tests: fix logic bug in init.sh
10519         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10520         shell.
10521
10522 2011-05-24  Jim Meyering  <meyering@redhat.com>
10523
10524         utimensat: do not reference an out-of-scope buffer
10525         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10526         declared in an inner scope, yet "times" would be dereferenced outside
10527         the scope in which "ts" was valid.
10528         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10529         of ts[2] "out/up", so that the use of aliased "times" (via
10530         "times = ts;") does not end up referencing an out-of-scope "ts"
10531
10532         opendir-safer.c: don't clobber errno; don't close negative FD
10533         * lib/opendir-safer.c (opendir_safer):
10534         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10535         file descriptor, and more importantly, don't clobber the
10536         offending errno value with EINVAL.  Before, upon failure
10537         of dup_safer, we would pass the negative file descriptor to
10538         fdopendir, which would clobber errno.
10539
10540 2011-05-23  Bruno Haible  <bruno@clisp.org>
10541
10542         idcache: Fix module description.
10543         * modules/idcache (Include): Set to "idcache.h".
10544
10545 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10546
10547         gnulib-tool: fix portability problem with MacOS sed
10548         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10549         before the "}".  Problem reported by Leo in
10550         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10551         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10552         sed_extract_condition1, sed_extract_condition2.
10553
10554 2011-05-23  Bruno Haible  <bruno@clisp.org>
10555
10556         hash: Simplify autoconf macro.
10557         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10558
10559 2011-05-23  Bruno Haible  <bruno@clisp.org>
10560
10561         getugroups: Fix module description.
10562         * modules/getugroups (Include): Set to "getugroups.h".
10563
10564 2011-05-23  Bruno Haible  <bruno@clisp.org>
10565
10566         linkat: Simplify autoconf macro.
10567         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10568
10569 2011-05-23  Bruno Haible  <bruno@clisp.org>
10570             Eric Blake  <eblake@redhat.com>
10571
10572         linkat, renameat: Update dependencies.
10573         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10574         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10575         symlinkat.
10576
10577 2011-05-23  Jim Meyering  <meyering@redhat.com>
10578
10579         maint.mk: more tight_scope improvements
10580         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10581         (_gl_TS_headers): Define only in if-0'd block.
10582         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10583         sometimes we must *not* use it.  Adjust uses accordingly.
10584         (sc_tight_scope): Use much simpler grep-based test to determine
10585         whether we skip this rule.
10586
10587         maint.mk: generalize/improve the tight-scope rule
10588         * top/maint.mk: Emit a warning when the test is skipped.
10589         (_gl_TS_dir): Add $(srcdir)/ prefix.
10590         (_gl_TS_function_match): Simplify, rather than trying
10591         to enumerate common types.  Otherwise, it would fail to match an
10592         "extern unsigned char const *" declaration in idutils.
10593         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10594         a way to support use of that type of macro.
10595         (_gl_TS_var_match): Simplify regexp.
10596         (_gl_TS_obj_files): New configurable variable.
10597         (_gl_TS_headers): Likewise.
10598
10599 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10600
10601         verify: fix bug when gnulib <assert.h> is also included
10602         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10603         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10604         Perhaps there's a better way, but this fixes the immediate problem.
10605         Problem reported by Bruno Haible in
10606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10607
10608 2011-05-22  Bruno Haible  <bruno@clisp.org>
10609
10610         xgetcwd: Simplify autoconf macro.
10611         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10612
10613 2011-05-22  Bruno Haible  <bruno@clisp.org>
10614
10615         New module 'mktime-internal'.
10616         * modules/mktime-internal: New file.
10617         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10618         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10619         mktime_internal as a C macro if libc has __mktime_internal.
10620         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10621         conditions.
10622         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10623
10624 2011-05-22  Bruno Haible  <bruno@clisp.org>
10625
10626         timegm: Correct mktime replacement statements.
10627         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10628         defining mktime as a C macro. This completes a 2009-07-28 commit.
10629
10630 2011-05-22  Bruno Haible  <bruno@clisp.org>
10631
10632         timegm: Simplify autoconf macro.
10633         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10634
10635 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10636
10637         clock-time: change to LGPLv2+.
10638         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10639         BSD-like but we have no mark for that; this is good enough for now.
10640
10641 2011-05-21  Bruno Haible  <bruno@clisp.org>
10642
10643         strerror_r: Fix comments.
10644         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10645
10646 2011-05-21  Bruno Haible  <bruno@clisp.org>
10647
10648         relocatable-prog-wrapper: Fix possible link error.
10649         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10650         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10651         (gl_FUNC_SETENV): ... to here.
10652         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10653         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10654
10655 2011-05-21  Bruno Haible  <bruno@clisp.org>
10656
10657         relocatable-prog-wrapper: Assume strerror() exists.
10658         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10659         m4/strerror.m4.
10660         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10661         * lib/relocwrapper.c: Remove mention of strerror module.
10662         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10663         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10664         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10665         C macro.
10666
10667 2011-05-21  Bruno Haible  <bruno@clisp.org>
10668
10669         select: Simplify replacement idiom.
10670         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10671         Win32 platforms.
10672         * lib/sys_select.in.h (select): Simplify accordingly.
10673         * modules/select (Depends-on): Likewise.
10674
10675 2011-05-21  Bruno Haible  <bruno@clisp.org>
10676
10677         mkdir-p: Simplify autoconf macro.
10678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10679         gl_FUNC_LCHOWN.
10680
10681 2011-05-21  Eric Blake  <eblake@redhat.com>
10682
10683         strerror_r: avoid clobbering strerror on cygwin
10684         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10685         fall back instead to sys_errlist.
10686         * modules/strerror (configure.ac): Add witness.
10687         * tests/test-strerror_r.c (main): Enhance test.
10688         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10689         * tests/test-perror2.c (main): Free memory before exit.
10690
10691 2011-05-21  Bruno Haible  <bruno@clisp.org>
10692
10693         mkdtemp: Use gnulib naming conventions.
10694         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10695         * modules/mkdtemp (configure.ac): Update.
10696
10697 2011-05-20  Eric Blake  <eblake@redhat.com>
10698
10699         strerror_r: avoid corrupting errno on Solaris
10700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10701         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10702
10703         strerror_r: avoid compiler warning
10704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10705
10706         strerror_r: simplify AIX code
10707         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10708
10709         test-perror: avoid spurious failure on FreeBSD
10710         * modules/perror-tests (Depends-on): Add strerror, now that
10711         strerror_r no longer pulls it in.
10712
10713 2011-05-20  Bruno Haible  <bruno@clisp.org>
10714
10715         strerror_r-posix: Remove unused dependencies.
10716         * modules/strerror_r-posix (Depends-on): Remove strerror.
10717         Reported by Eric Blake.
10718
10719 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10720
10721         intprops: remove assumption about A|B representation
10722         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10723         is a valid integer if both A and B are.  Although this is true for
10724         all known practical hosts, the C standard doesn't guarantee it,
10725         and the code need not assume it.  Also, this change may work around
10726         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10728
10729 2011-05-20  Eric Blake  <eblake@redhat.com>
10730
10731         perror: work around FreeBSD bug
10732         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10733         is broken.  Move AC_LIBOBJ...
10734         * modules/perror (configure.ac): Here.
10735         * doc/posix-functions/perror.texi (perror): Document this.
10736         * tests/test-perror2.c (main): Enhance test.
10737
10738         test-perror: check for strerror interactions
10739         * tests/macros.h (STREQ): Add macro.
10740         * modules/perror-tests (Files): Add second test.
10741         * tests/test-perror2.c (main): New file.
10742         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10743
10744         test-perror: rewrite to use init script
10745         * modules/perror-tests (Files): Add init.sh.
10746         * tests/test-perror.sh: Use temporary directory.
10747
10748 2011-05-20  Jim Meyering  <meyering@redhat.com>
10749
10750         maint: replace misused "a" with "an"
10751         * doc/intprops.texi: "a integer"
10752         * doc/regex.texi: "a explanation"
10753         * lib/alignof.h: "a object"
10754         * lib/argmatch.h: "a explanation"
10755         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10756         * lib/stdint.in.h: "a integer"
10757         * lib/userspec.c: "a owner"
10758         * doc/gnulib.texi: Fix "a idea", and reword.
10759
10760 2011-05-19  Jim Meyering  <meyering@redhat.com>
10761
10762         maint: correct misuse of "a" and "an"
10763         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10764         * lib/argp-help.c: "an docum...": s/an/a/
10765         * lib/argp-parse.c: "An vector": s/An/A/
10766         * lib/execute.c: "an native": s/an/a/
10767         * lib/spawn-pipe.c: Likewise.
10768         * lib/gc.h: "an Gc_rc": s/an/a/
10769         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10770         * lib/fts.c: "an stat.st_dev": s/an/a/
10771
10772 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10773
10774         intprops-tests: work around HP-UX 11.23 cc bug with constants
10775         * tests/test-intprops.c (VERIFY): New macro.
10776         (main): Use it, instead of verify, to work around the compiler bug; see
10777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10778
10779         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10780         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10781         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10782         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10783         (_GL_REMAINDER_OVERFLOW): Use it.
10784
10785         intprops-tests: revert unsigned part of previous change
10786         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10787         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10788         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10790
10791 2011-05-19  Bruno Haible  <bruno@clisp.org>
10792
10793         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10794         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10795         strerror_r() returned without filling the buffer.
10796         Reported by Eric Blake.
10797
10798 2011-05-19  Eric Blake  <eblake@redhat.com>
10799
10800         strerror_r: guarantee unchanged errno
10801         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10802         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10803         failure.
10804         * tests/test-strerror_r.c (main): Enhance test.
10805
10806 2011-05-19  Bruno Haible  <bruno@clisp.org>
10807
10808         strerror_r: Reorder #if blocks.
10809         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10810         for consistency with the previous commit.
10811
10812 2011-05-19  Bruno Haible  <bruno@clisp.org>
10813
10814         perror: Avoid clobbering the strerror buffer when possible.
10815         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10816         * lib/strerror.c: Include it.
10817         * modules/strerror (Files): Add lib/strerror-impl.h.
10818         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10819         (my_strerror): New function, defined through lib/strerror-impl.h.
10820         (perror): Use it instead of strerror.
10821         * modules/perror (Files): Add lib/strerror-impl.h.
10822         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10823
10824 2011-05-19  Eric Blake  <eblake@redhat.com>
10825
10826         strerror_r: fix on newer cygwin
10827         * lib/strerror_r.c (strerror_r): Cygwin now has
10828         __xpg_strerror_r, use it.
10829
10830 2011-05-19  Bruno Haible  <bruno@clisp.org>
10831
10832         strerror_r: Avoid clobbering the strerror buffer when possible.
10833         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10834         (sys_nerr, sys_errlist): New declarations.
10835         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10836         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10837         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10838
10839 2011-05-19  Bruno Haible  <bruno@clisp.org>
10840
10841         strerror_r: Fix test failure on mingw.
10842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10843         EXTEND_STRERROR_R.
10844         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10845         macros from errno.in.h instead.
10846
10847 2011-05-19  Eric Blake  <eblake@redhat.com>
10848
10849         strerror: relax test for Solaris
10850         * tests/test-strerror.c (main): Permit Solaris behavior.
10851         * tests/test-strerror_r.c (main): Likewise.
10852
10853         strerror: enforce POSIX ruling on strerror(0)
10854         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10855         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10856         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10857         * doc/posix-functions/strerror.texi (strerror): Document it.
10858         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10859         * tests/test-strerror.c (main): Strengthen test.
10860         * tests/test-strerror_r.c (main): Likewise.
10861
10862 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10863
10864         intprop-tests: port to older and more-pedantic compilers
10865         * modules/intprops-tests (Files): Add tests/macros.h.
10866         * tests/test-intprops.c: Include macros.h.
10867         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10868         it's no longer documented to expand to an integer constant expression.
10869         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10870         argument is floating point, as it's no longer documented to expand
10871         to an integer constant expression in that case.
10872         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10873         compiler bugs reported by Bruno Haible.  See
10874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10875         (U0, U1): New constants, to work around the same bugs.  Also,
10876         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10877
10878         intprops: work around C compiler bugs
10879         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10880         bug in Sun C 5.11 2010/08/13 and other compilers; see
10881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10882
10883         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10884         * doc/intprops.texi (Integer Type Determination): Fix
10885         documentation for TYPE_IS_INTEGER: it returns an constant
10886         expression, not an integer constant expression.  Fix doc for
10887         TYPE_SIGNED: it returns an integer constant expression only if its
10888         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10889         hardly worth documented that way....)
10890
10891 2011-05-18  Bruno Haible  <bruno@clisp.org>
10892
10893         strerror_r: Avoid clobbering the strerror buffer when possible.
10894         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10895         Handle gnulib defined errno values here. When strerror() returns NULL
10896         or an empty string, return EINVAL.
10897         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10898         gnulib defined errno values here.
10899         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10900
10901 2011-05-18  Eric Blake  <eblake@redhat.com>
10902
10903         fnmatch: avoid compiler warning
10904         * lib/fnmatch_loop.c (FCT): Use correct type.
10905         Reported by Matthias Bolte.
10906
10907 2011-05-13  Jim Meyering  <meyering@redhat.com>
10908
10909         maint.mk: three new prohibit_<HDR>_without_use rules
10910         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10911         (sc_prohibit_stdio-safer_without_use): Likewise.
10912         (sc_prohibit_xfreopen_without_use): Likewise.
10913
10914 2011-05-17  Jim Meyering  <meyering@redhat.com>
10915
10916         announce-gen: fail if the NEWS delta is empty
10917         If there's nothing noteworthy in NEWS, then either you forgot
10918         or you shouldn't be releasing.
10919         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10920
10921 2011-05-17  Pádraig Brady <P@draigBrady.com>
10922
10923         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10924         reserved symbols starting with double underscore from the check.
10925
10926 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10927
10928         intprops: add doc
10929         * doc/intprops.texi: New file, documenting intprops.
10930         * doc/gnulib.texi (Particular Modules): Include it.
10931
10932         verify: add doc to gnulib manual and fix example
10933         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10934         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10935         (Compile-time Assertions): Fix example so it can't overflow.
10936
10937 2011-05-17  Jim Meyering  <meyering@redhat.com>
10938
10939         warnings.m4: don't usurp save_CPPFLAGS variable name
10940         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10941
10942         doc: fix typo
10943         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10944
10945 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10946             Bruno Haible  <bruno@clisp.org>
10947
10948         doc: Tweak recent change.
10949         * README (Portability guidelines): Tweak new text.
10950         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10951         Interix 6.1.
10952
10953 2011-05-16  Eric Blake  <eblake@redhat.com>
10954
10955         inttypes: avoid autoconf warning
10956         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10957         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10958
10959 2011-05-16  Sam Steingold <sds@gnu.org>
10960         and Eric Blake  <eblake@redhat.com>
10961
10962         vc-list-files: accept multiple directory operands
10963         * build-aux/vc-list-files: Iterate over all remaining operands.
10964
10965 2011-05-16  Bruno Haible  <bruno@clisp.org>
10966
10967         Fix confusion regarding deprecated modules.
10968         * modules/calloc (Status, Notice): Mark module as deprecated, not
10969         obsolete.
10970         * modules/fnmatch-posix (Status, Notice): Likewise.
10971         * modules/getdate (Status, Notice): Likewise.
10972         * modules/getopt (Status, Notice): Likewise.
10973         * modules/malloc (Status, Notice): Likewise.
10974         * modules/pipe (Status, Notice): Likewise.
10975         * modules/realloc (Status, Notice): Likewise.
10976         * modules/rename-dest-slash (Status, Notice): Likewise.
10977         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10978         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10979         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10980         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10981         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10982
10983 2011-05-16  Bruno Haible  <bruno@clisp.org>
10984
10985         doc: List the target platforms.
10986         * doc/gnulib-intro.texi (Target Platforms): New section.
10987         * doc/gnulib.texi (Introduction): Update menu.
10988         * README (Portability guidelines): Refer to the new section. Update
10989         statement about oldest supported environment. Remove rationale why
10990         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10991         unportable C89 function.
10992         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10993         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10994
10995 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10996
10997         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10998
10999 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11000
11001         intprops-tests: new module
11002         * modules/intprops-tests, tests/test-intprops.c: New files.
11003
11004         intprops: add safe, portable integer overflow checking
11005         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11006         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11007         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11008         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11009         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11010         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11011         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11012         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11013         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11014         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11015         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11016
11017 2011-05-12  James Youngman  <jay@gnu.org>
11018
11019         Add a test for glibc's Bugzilla bug #12378.
11020         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11021         doesn't allow the literal matching of a lone "[" (which is
11022         required by POSIX).
11023         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11024
11025 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11026
11027         Sync glibc change fixing Bugzilla bug #12378.
11028         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11029         beginning and fall back to matching as normal character if the
11030         string ends before the matching ']' is found.  This is what POSIX
11031         requires.
11032
11033 2011-05-13  Eric Blake  <eblake@redhat.com>
11034
11035         getcwd-lgpl: relax test for FreeBSD
11036         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11037         issue.
11038         * tests/test-getcwd-lgpl.c (main): Relax test.
11039         Reported by Matthias Bolte.
11040
11041 2011-05-11  Eric Blake  <eblake@redhat.com>
11042
11043         test-fflush: silence compiler warning
11044         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11045
11046 2011-05-11  Bruno Haible  <bruno@clisp.org>
11047
11048         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11049         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11050         * modules/canonicalize (Depends-on): Add 'nocrash'.
11051         * modules/canonicalize-lgpl (Depends-on): Likewise.
11052         * doc/posix-functions/realpath.texi: Update platforms list.
11053         Reported by Ryan Schmidt <ryandesign@macports.org>.
11054
11055 2011-05-11  Bruno Haible  <bruno@clisp.org>
11056
11057         group-member: Declare function in <unistd.h>.
11058         * lib/unistd.in.h (group_member): New declaration.
11059         * lib/group-member.h: Remove file.
11060         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11061         * tests/test-unistd-c++.cc: Check signature of group_member.
11062         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11063         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11064         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11066         HAVE_GROUP_MEMBER.
11067         * modules/group-member (Files): Remove lib/group-member.h.
11068         (Depends-on): Add unistd. Specify conditions.
11069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11070         (Include): Change to <unistd.h>.
11071         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11072         HAVE_GROUP_MEMBER.
11073         * NEWS: Mention the change.
11074         * lib/euidaccess.c: Don't include group-member.h.
11075
11076 2011-05-11  Bruno Haible  <bruno@clisp.org>
11077
11078         group-member: Document module.
11079         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11080         module.
11081
11082 2011-05-11  Bruno Haible  <bruno@clisp.org>
11083
11084         fclose: Fix mistake earlier today.
11085         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11086
11087 2011-05-11  Eric Blake  <eblake@redhat.com>
11088
11089         fclose: preserve fflush errors
11090         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11091         Reported by Jim Meyering.
11092
11093         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11094         * build-aux/bootstrap (check_versions): When no specific version
11095         is required, merely check that the app produces an exit status
11096         that indicates its existence.
11097
11098         maint.mk: drop redundant check
11099         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11100         the same but better.
11101
11102 2011-05-11  Bruno Haible  <bruno@clisp.org>
11103
11104         fclose: Fix possible link error.
11105         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11106         unregister_shadow_fd. Improve comments.
11107         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11108         Eric Blake.
11109
11110 2011-05-11  Jim Meyering  <meyering@redhat.com>
11111
11112         maint.mk: improve "can not" detection and generalize rule name
11113         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11114         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11115         Use the same technique as in sc_prohibit_doubled_word, so that
11116         we recognize "can not" also when the words are separated by a newline.
11117         Suggested by Eric Blake.
11118         (perl_filename_lineno_text_): Define.  Factored out of...
11119         (prohibit_doubled_word_): ...here.  Use the new definition.
11120         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11121         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11122         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11123
11124 2011-05-10  Eric Blake  <eblake@redhat.com>
11125
11126         fclose: avoid double close race when possible
11127         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11128         all but WINDOWS_SOCKETS.
11129
11130 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11131
11132         openat: correct new comment
11133         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11134
11135 2011-05-10  Jim Meyering  <meyering@redhat.com>
11136
11137         openat: add comments
11138         * lib/openat-proc.c (openat_proc_name): Add comments,
11139         mostly from Eric Blake.
11140
11141 2011-05-09  Eric Blake  <eblake@redhat.com>
11142
11143         openat: reduce syscalls in first probe of /proc
11144         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11145         be a directory.  Simplify the probe for .. bugs.
11146         * modules/openat (Depends-on): Drop same-inode.
11147         Reported by Bastien ROUCARIES.
11148
11149 2011-05-09  Jim Meyering  <meyering@redhat.com>
11150
11151         maint.mk: change semantics/name of tight_scope variables
11152         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11153         Rename variables to align with semantics that make them more useful.
11154
11155         maint.mk: tweak new rule's name not to impinge
11156         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11157         (sc_tight_scope): Use new rule name rather than $@-0.
11158
11159         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11160         * top/maint.mk (sc_tight_scope): New rule.
11161         (sc_tight_scope-0): New rule, ifdef'd out.
11162         (_gl_TS_dir): Default.
11163         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11164         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11165
11166 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11167
11168         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11169         Haible <bruno@clisp.org>.
11170
11171 2011-05-08  Bruno Haible  <bruno@clisp.org>
11172
11173         Comments.
11174         * m4/isnanf.m4: Add comment.
11175         * m4/isnanl.m4: Likewise.
11176
11177 2011-05-08  Bruno Haible  <bruno@clisp.org>
11178
11179         glob: Remove obsolete macro.
11180         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11181
11182 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11183
11184         intprops: Sun C 5.11 supports __typeof__
11185         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11186         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11187         which is new.
11188         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11189
11190         intprops: switch to usual gnulib indenting and naming
11191         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11192         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11193
11194         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11195
11196 2011-05-08  Jim Meyering  <meyering@redhat.com>
11197
11198         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11199         * top/maint.mk (release-prep): Use make's --no-print-directory
11200         option when generating the announcement.  This eliminates the
11201         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11202         generated announcement template.
11203
11204 2011-05-08  Bruno Haible  <bruno@clisp.org>
11205
11206         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11207         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11208         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11209
11210 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11211
11212         ignore-value, verify: Omit include files from lib_SOURCES.
11213         * modules/ignore-value, modules/verify (Makefile.am):
11214         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11215         that leads Automake to duplicate use of am__objects_... variables
11216         in Makefile.in.  See
11217         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11218
11219 2011-05-07  Bruno Haible  <bruno@clisp.org>
11220
11221         fclose: Simplify autoconf macro.
11222         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11223         defined.
11224
11225 2011-05-07  Bruno Haible  <bruno@clisp.org>
11226
11227         canonicalize-lgpl: Fix autoconf macro ordering bug.
11228         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11229         gl_STDLIB_H_DEFAULTS.
11230
11231 2011-05-06  Eric Blake  <eblake@redhat.com>
11232
11233         maintainer-makefile: make sc_po_check easier to tune
11234         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11235         to probe for strings, such as an alternate location for gnulib.
11236
11237         fclose: guarantee behavior on seekable stdin
11238         * modules/fclose (Depends-on): Add fflush.
11239         * doc/posix-functions/fclose.texi (fclose): Document this.
11240         * tests/test-fclose.c (main): Make test for this unconditional.
11241
11242 2011-05-06  Bruno Haible  <bruno@clisp.org>
11243
11244         fflush, fpurge: Relicense under LGPLv2+.
11245         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11246         * modules/fpurge (License): Likewise.
11247         With permission from Eric Blake and Jim Meyering.
11248         Suggested by Eric Blake.
11249
11250 2011-05-06  Karl Berry  <karl@gnu.org>
11251
11252         * MODULES.html.sh (func_all_modules): remove exit.
11253
11254 2011-05-06  Jim Meyering  <meyering@redhat.com>
11255
11256         maint.mk: use info-gnu@ as the default only for a stable release
11257         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11258         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11259         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11261
11262 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         assert-h: new module, which supports C1X-style static_assert
11265         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11266         * lib/verify.h: Revamp so that this can be copied into assert.h,
11267         while retaining the ability to use it standalone as before.
11268         Rename private identifiers so as not to encroach on the
11269         standard C namespace, since this is now used by assert.h.
11270         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11271         the old verify_true.
11272         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11273         the old verify_true.  Use _GL_VERIFY_TYPE.
11274         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11275         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11276         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11277         defined when this file is copied into the replacement assert.h.
11278         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11279         and _Static_assert is not built in.
11280         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11281         defined, and use the new macros mentioned above.
11282         * doc/posix-headers/assert.texi: Document this.
11283
11284 2011-05-05  Bruno Haible  <bruno@clisp.org>
11285
11286         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11287         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11288         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11289         gl_REPLACE_FCLOSE here.
11290         * modules/fflush (Depends-on): Remove fclose.
11291         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11292         combination with module 'fclose'.
11293
11294 2011-05-05  Bruno Haible  <bruno@clisp.org>
11295
11296         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11297         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11298         gl_FUNC_FFLUSH.
11299         (gl_FUNC_FFLUSH): Use it.
11300         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11302         gl_REPLACE_FSEEKO here.
11303
11304 2011-05-05  Bruno Haible  <bruno@clisp.org>
11305
11306         tzset: Relicense under LGPL.
11307         * modules/tzset (License): Change to LGPL.
11308         No agreement needed; it's a no-op.
11309
11310         strtoimax, strtoumax: Relicense under LGPL.
11311         * modules/strtoimax (License): Change to LGPL.
11312         * modules/strtoumax (License): Likewise.
11313         With permission from Jim Meyering, Paul Eggert:
11314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11316
11317         getgroups: Relicense under LGPL.
11318         * modules/getgroups (License): Change to LGPL.
11319         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11323
11324         nanosleep: Relicense under LGPL.
11325         * modules/nanosleep (License): Change to LGPL.
11326         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11327         Haible:
11328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11332
11333         futimens: Relicense under LGPL.
11334         * modules/futimens (License): Change to LGPL.
11335         With permission from Eric Blake:
11336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11337
11338         fflush: Relicense under LGPL.
11339         * modules/fflush (License): Change to LGPL.
11340         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11344
11345         tmpfile: Relicense under LGPL.
11346         * modules/tmpfile (License): Change to LGPL.
11347         With permission from Ben Pfaff:
11348         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11349
11350         isfinite: Relicense under LGPL.
11351         * modules/isfinite (License): Change to LGPL.
11352         With permission from Ben Pfaff, Bruno Haible:
11353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11355
11356         acosl..tanl: Relicense under LGPL.
11357         * modules/acosl (License): Change to LGPL.
11358         * modules/asinl (License): Likewise.
11359         * modules/atanl (License): Likewise.
11360         * modules/cosl (License): Likewise.
11361         * modules/expl (License): Likewise.
11362         * modules/logl (License): Likewise.
11363         * modules/sinl (License): Likewise.
11364         * modules/sqrtl (License): Likewise.
11365         * modules/tanl (License): Likewise.
11366         Source code originally from glibc and Paolo Bonzini. Agreements:
11367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11369
11370 2011-05-05  Bruno Haible  <bruno@clisp.org>
11371
11372         signal: Define sighandler_t.
11373         * lib/signal.in.h (sighandler_t): New type.
11374         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11375         whether sighandler_t is defined.
11376         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11377         * modules/signal (Depends-on): Add extensions.
11378         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11379         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11380         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11381
11382 2011-05-05  Eric Blake  <eblake@redhat.com>
11383
11384         maint: remove useless REPLACE_*_H macros
11385         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11386         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11387         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11388         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11389         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11390         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11391         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11392         * m4/btowc.m4: Update callers.
11393         * m4/dirfd.m4: Likewise.
11394         * m4/duplocale.m4: Likewise.
11395         * m4/fchdir.m4: Likewise.
11396         * m4/fdopendir.m4: Likewise.
11397         * m4/inet_ntop.m4: Likewise.
11398         * m4/inet_pton.m4: Likewise.
11399         * m4/ioctl.m4: Likewise.
11400         * m4/mbrlen.m4: Likewise.
11401         * m4/mbrtowc.m4: Likewise.
11402         * m4/mbsinit.m4: Likewise.
11403         * m4/mbsnrtowcs.m4: Likewise.
11404         * m4/mbsrtowcs.m4: Likewise.
11405         * m4/poll.m4: Likewise.
11406         * m4/setlocale.m4: Likewise.
11407         * m4/wcrtomb.m4: Likewise.
11408         * m4/wcsnrtombs.m4: Likewise.
11409         * m4/wcsrtombs.m4: Likewise.
11410         * m4/wctob.m4: Likewise.
11411         * m4/wcwidth.m4: Likewise.
11412         * modules/posix_spawn: Likewise.
11413         * modules/posix_spawn_file_actions_addclose: Likewise.
11414         * modules/posix_spawn_file_actions_adddup2: Likewise.
11415         * modules/posix_spawn_file_actions_addopen: Likewise.
11416         * modules/posix_spawn_file_actions_destroy: Likewise.
11417         * modules/posix_spawn_file_actions_init: Likewise.
11418         * modules/posix_spawnattr_destroy: Likewise.
11419         * modules/posix_spawnattr_getflags: Likewise.
11420         * modules/posix_spawnattr_getpgroup: Likewise.
11421         * modules/posix_spawnattr_getschedparam: Likewise.
11422         * modules/posix_spawnattr_getschedpolicy: Likewise.
11423         * modules/posix_spawnattr_getsigdefault: Likewise.
11424         * modules/posix_spawnattr_getsigmask: Likewise.
11425         * modules/posix_spawnattr_init: Likewise.
11426         * modules/posix_spawnattr_setflags: Likewise.
11427         * modules/posix_spawnattr_setpgroup: Likewise.
11428         * modules/posix_spawnattr_setschedparam: Likewise.
11429         * modules/posix_spawnattr_setschedpolicy: Likewise.
11430         * modules/posix_spawnattr_setsigdefault: Likewise.
11431         * modules/posix_spawnattr_setsigmask: Likewise.
11432         * modules/posix_spawnp: Likewise.
11433
11434 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11435
11436         Add option to do-release-commit-and-tag to specify branch.
11437         * build-aux/do-release-commit-and-tag: Add --branch.
11438
11439 2011-05-03  Bruno Haible  <bruno@clisp.org>
11440
11441         Avoid unnecessary compilation units, through conditional dependencies.
11442         * modules/accept (Depends-on): Add conditions to the dependencies.
11443         * modules/acosl (Depends-on): Likewise.
11444         * modules/argz (Depends-on): Likewise.
11445         * modules/asinl (Depends-on): Likewise.
11446         * modules/atanl (Depends-on): Likewise.
11447         * modules/atoll (Depends-on): Likewise.
11448         * modules/bind (Depends-on): Likewise.
11449         * modules/btowc (Depends-on): Likewise.
11450         * modules/canonicalize-lgpl (Depends-on): Likewise.
11451         * modules/ceil (Depends-on): Likewise.
11452         * modules/ceilf (Depends-on): Likewise.
11453         * modules/ceill (Depends-on): Likewise.
11454         * modules/chdir-long (Depends-on): Likewise.
11455         * modules/chown (Depends-on): Likewise.
11456         * modules/close (Depends-on): Likewise.
11457         * modules/connect (Depends-on): Likewise.
11458         * modules/cosl (Depends-on): Likewise.
11459         * modules/dirfd (Depends-on): Likewise.
11460         * modules/dprintf (Depends-on): Likewise.
11461         * modules/dprintf-posix (Depends-on): Likewise.
11462         * modules/error (Depends-on): Likewise.
11463         * modules/euidaccess (Depends-on): Likewise.
11464         * modules/expl (Depends-on): Likewise.
11465         * modules/faccessat (Depends-on): Likewise.
11466         * modules/fchdir (Depends-on): Likewise.
11467         * modules/fclose (Depends-on): Likewise.
11468         * modules/fcntl (Depends-on): Likewise.
11469         * modules/fdopendir (Depends-on): Likewise.
11470         * modules/fflush (Depends-on): Likewise.
11471         * modules/floor (Depends-on): Likewise.
11472         * modules/floorf (Depends-on): Likewise.
11473         * modules/floorl (Depends-on): Likewise.
11474         * modules/fnmatch (Depends-on): Likewise.
11475         * modules/fopen (Depends-on): Likewise.
11476         * modules/fprintf-posix (Depends-on): Likewise.
11477         * modules/frexp (Depends-on): Likewise.
11478         * modules/frexp-nolibm (Depends-on): Likewise.
11479         * modules/frexpl (Depends-on): Likewise.
11480         * modules/frexpl-nolibm (Depends-on): Likewise.
11481         * modules/fseek (Depends-on): Likewise.
11482         * modules/fsusage (Depends-on): Likewise.
11483         * modules/ftell (Depends-on): Likewise.
11484         * modules/ftello (Depends-on): Likewise.
11485         * modules/futimens (Depends-on): Likewise.
11486         * modules/getcwd (Depends-on): Likewise.
11487         * modules/getcwd-lgpl (Depends-on): Likewise.
11488         * modules/getdelim (Depends-on): Likewise.
11489         * modules/getdomainname (Depends-on): Likewise.
11490         * modules/getgroups (Depends-on): Likewise.
11491         * modules/gethostname (Depends-on): Likewise.
11492         * modules/getline (Depends-on): Likewise.
11493         * modules/getlogin_r (Depends-on): Likewise.
11494         * modules/getopt-posix (Depends-on): Likewise.
11495         * modules/getpeername (Depends-on): Likewise.
11496         * modules/getsockname (Depends-on): Likewise.
11497         * modules/getsockopt (Depends-on): Likewise.
11498         * modules/getsubopt (Depends-on): Likewise.
11499         * modules/getusershell (Depends-on): Likewise.
11500         * modules/glob (Depends-on): Likewise.
11501         * modules/grantpt (Depends-on): Likewise.
11502         * modules/iconv_open (Depends-on): Likewise.
11503         * modules/iconv_open-utf (Depends-on): Likewise.
11504         * modules/inet_ntop (Depends-on): Likewise.
11505         * modules/inet_pton (Depends-on): Likewise.
11506         * modules/ioctl (Depends-on): Likewise.
11507         * modules/isapipe (Depends-on): Likewise.
11508         * modules/isfinite (Depends-on): Likewise.
11509         * modules/isinf (Depends-on): Likewise.
11510         * modules/lchown (Depends-on): Likewise.
11511         * modules/ldexpl (Depends-on): Likewise.
11512         * modules/link (Depends-on): Likewise.
11513         * modules/linkat (Depends-on): Likewise.
11514         * modules/listen (Depends-on): Likewise.
11515         * modules/logl (Depends-on): Likewise.
11516         * modules/lstat (Depends-on): Likewise.
11517         * modules/mbrlen (Depends-on): Likewise.
11518         * modules/mbrtowc (Depends-on): Likewise.
11519         * modules/mbsinit (Depends-on): Likewise.
11520         * modules/mbsnrtowcs (Depends-on): Likewise.
11521         * modules/mbsrtowcs (Depends-on): Likewise.
11522         * modules/mbtowc (Depends-on): Likewise.
11523         * modules/memcmp (Depends-on): Likewise.
11524         * modules/mkdir (Depends-on): Likewise.
11525         * modules/mkdtemp (Depends-on): Likewise.
11526         * modules/mkfifo (Depends-on): Likewise.
11527         * modules/mkfifoat (Depends-on): Likewise.
11528         * modules/mknod (Depends-on): Likewise.
11529         * modules/mkostemp (Depends-on): Likewise.
11530         * modules/mkostemps (Depends-on): Likewise.
11531         * modules/mkstemp (Depends-on): Likewise.
11532         * modules/mkstemps (Depends-on): Likewise.
11533         * modules/mktime (Depends-on): Likewise.
11534         * modules/nanosleep (Depends-on): Likewise.
11535         * modules/open (Depends-on): Likewise.
11536         * modules/openat (Depends-on): Likewise.
11537         * modules/perror (Depends-on): Likewise.
11538         * modules/poll (Depends-on): Likewise.
11539         * modules/popen (Depends-on): Likewise.
11540         * modules/posix_spawn (Depends-on): Likewise.
11541         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11542         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11543         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11544         * modules/posix_spawnp (Depends-on): Likewise.
11545         * modules/pread (Depends-on): Likewise.
11546         * modules/printf-posix (Depends-on): Likewise.
11547         * modules/ptsname (Depends-on): Likewise.
11548         * modules/putenv (Depends-on): Likewise.
11549         * modules/pwrite (Depends-on): Likewise.
11550         * modules/readline (Depends-on): Likewise.
11551         * modules/readlink (Depends-on): Likewise.
11552         * modules/readlinkat (Depends-on): Likewise.
11553         * modules/recv (Depends-on): Likewise.
11554         * modules/recvfrom (Depends-on): Likewise.
11555         * modules/regex (Depends-on): Likewise.
11556         * modules/remove (Depends-on): Likewise.
11557         * modules/rename (Depends-on): Likewise.
11558         * modules/renameat (Depends-on): Likewise.
11559         * modules/rmdir (Depends-on): Likewise.
11560         * modules/round (Depends-on): Likewise.
11561         * modules/roundf (Depends-on): Likewise.
11562         * modules/roundl (Depends-on): Likewise.
11563         * modules/rpmatch (Depends-on): Likewise.
11564         * modules/select (Depends-on): Likewise.
11565         * modules/send (Depends-on): Likewise.
11566         * modules/sendto (Depends-on): Likewise.
11567         * modules/setenv (Depends-on): Likewise.
11568         * modules/setlocale (Depends-on): Likewise.
11569         * modules/setsockopt (Depends-on): Likewise.
11570         * modules/shutdown (Depends-on): Likewise.
11571         * modules/sigaction (Depends-on): Likewise.
11572         * modules/signbit (Depends-on): Likewise.
11573         * modules/sigprocmask (Depends-on): Likewise.
11574         * modules/sinl (Depends-on): Likewise.
11575         * modules/sleep (Depends-on): Likewise.
11576         * modules/snprintf (Depends-on): Likewise.
11577         * modules/snprintf-posix (Depends-on): Likewise.
11578         * modules/socket (Depends-on): Likewise.
11579         * modules/sprintf-posix (Depends-on): Likewise.
11580         * modules/sqrtl (Depends-on): Likewise.
11581         * modules/stat (Depends-on): Likewise.
11582         * modules/strchrnul (Depends-on): Likewise.
11583         * modules/strdup-posix (Depends-on): Likewise.
11584         * modules/strerror (Depends-on): Likewise.
11585         * modules/strerror_r-posix (Depends-on): Likewise.
11586         * modules/strndup (Depends-on): Likewise.
11587         * modules/strnlen (Depends-on): Likewise.
11588         * modules/strptime (Depends-on): Likewise.
11589         * modules/strsep (Depends-on): Likewise.
11590         * modules/strsignal (Depends-on): Likewise.
11591         * modules/strstr-simple (Depends-on): Likewise.
11592         * modules/strtod (Depends-on): Likewise.
11593         * modules/strtoimax (Depends-on): Likewise.
11594         * modules/strtok_r (Depends-on): Likewise.
11595         * modules/strtoumax (Depends-on): Likewise.
11596         * modules/symlink (Depends-on): Likewise.
11597         * modules/symlinkat (Depends-on): Likewise.
11598         * modules/tanl (Depends-on): Likewise.
11599         * modules/tcgetsid (Depends-on): Likewise.
11600         * modules/tmpfile (Depends-on): Likewise.
11601         * modules/trunc (Depends-on): Likewise.
11602         * modules/truncf (Depends-on): Likewise.
11603         * modules/truncl (Depends-on): Likewise.
11604         * modules/uname (Depends-on): Likewise.
11605         * modules/unlink (Depends-on): Likewise.
11606         * modules/unlockpt (Depends-on): Likewise.
11607         * modules/unsetenv (Depends-on): Likewise.
11608         * modules/usleep (Depends-on): Likewise.
11609         * modules/utimensat (Depends-on): Likewise.
11610         * modules/vasprintf (Depends-on): Likewise.
11611         * modules/vdprintf (Depends-on): Likewise.
11612         * modules/vdprintf-posix (Depends-on): Likewise.
11613         * modules/vfprintf-posix (Depends-on): Likewise.
11614         * modules/vprintf-posix (Depends-on): Likewise.
11615         * modules/vsnprintf (Depends-on): Likewise.
11616         * modules/vsnprintf-posix (Depends-on): Likewise.
11617         * modules/vsprintf-posix (Depends-on): Likewise.
11618         * modules/wcrtomb (Depends-on): Likewise.
11619         * modules/wcscasecmp (Depends-on): Likewise.
11620         * modules/wcscspn (Depends-on): Likewise.
11621         * modules/wcsdup (Depends-on): Likewise.
11622         * modules/wcsncasecmp (Depends-on): Likewise.
11623         * modules/wcsnrtombs (Depends-on): Likewise.
11624         * modules/wcspbrk (Depends-on): Likewise.
11625         * modules/wcsrtombs (Depends-on): Likewise.
11626         * modules/wcsspn (Depends-on): Likewise.
11627         * modules/wcsstr (Depends-on): Likewise.
11628         * modules/wcstok (Depends-on): Likewise.
11629         * modules/wcswidth (Depends-on): Likewise.
11630         * modules/wctob (Depends-on): Likewise.
11631         * modules/wctomb (Depends-on): Likewise.
11632         * modules/wctype (Depends-on): Likewise.
11633         * modules/wcwidth (Depends-on): Likewise.
11634         * modules/write (Depends-on): Likewise.
11635
11636 2011-05-03  Bruno Haible  <bruno@clisp.org>
11637
11638         Support for conditional dependencies.
11639         * doc/gnulib.texi (Module description): Document the syntax of
11640         conditional dependencies.
11641         * gnulib-tool: New option --conditional-dependencies.
11642         (func_usage): Document it.
11643         (cond_dependencies): New variable.
11644         (func_get_automake_snippet_conditional,
11645         func_get_automake_snippet_unconditional): New functions, extracted from
11646         func_get_automake_snippet.
11647         (func_get_automake_snippet): Use them.
11648         (sed_first_32_chars): New variable.
11649         (func_module_shellfunc_name): New function.
11650         (func_module_shellvar_name): New function.
11651         (func_module_conditional_name): New function.
11652         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11653         func_cond_module_condition): New functions.
11654         (func_modules_transitive_closure): Add support for conditional
11655         dependencies.
11656         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11657         conditional automake snippet in an automake conditional.
11658         (func_emit_autoconf_snippets): Emit shell functions that contain the
11659         code for conditional modules.
11660         (func_import, func_create_testdir): Update specification.
11661
11662 2011-05-03  Eric Blake  <eblake@redhat.com>
11663
11664         test-getaddrinfo: report error information
11665         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11666
11667 2011-05-03  Jim Meyering  <meyering@redhat.com>
11668
11669         bootstrap: avoid build failure when $GZIP is set
11670         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11671         program name.  If defined at all, it is supposed to list gzip options.
11672         Reported by Alan Curry in http://debbugs.gnu.org/8609
11673
11674 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11675
11676         readme-release: new module with release instructions
11677         * modules/readme-release: New module.
11678         * top/README-release: New file, from coreutils, grep, diffutils.
11679         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11680
11681 2011-05-02  Eric Blake  <eblake@redhat.com>
11682
11683         fflush: also replace fclose when fixing fflush
11684         * modules/fflush (Depends-on): Add fclose.
11685         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11686         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11687         memstreams with no backing fd.
11688         * doc/posix-functions/fclose.texi (fclose): Document the use of
11689         fflush module to fix the bug.
11690         * tests/test-fclose.c (main): Relax test when fclose is used in
11691         isolation.
11692
11693         fclose: add some tests
11694         * modules/fclose-tests: New test module.
11695         * tests/test-fclose.c: New file.
11696         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11697
11698         fclose: reduced dependencies
11699         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11700         simpler lseek.
11701         * lib/fclose.c (rpl_fclose): Likewise.
11702         Reported by Simon Josefsson.
11703
11704         exit: drop remaining clients
11705         * modules/argmatch (Depends-on): Replace exit with stdlib.
11706         * modules/copy-file (Depends-on): Likewise.
11707         * modules/execute (Depends-on): Likewise.
11708         * modules/exitfail (Depends-on): Likewise.
11709         * modules/obstack (Depends-on): Likewise.
11710         * modules/pagealign_alloc (Depends-on): Likewise.
11711         * modules/pipe-filter-gi (Depends-on): Likewise.
11712         * modules/pipe-filter-ii (Depends-on): Likewise.
11713         * modules/savewd (Depends-on): Likewise.
11714         * modules/spawn-pipe (Depends-on): Likewise.
11715         * modules/wait-process (Depends-on): Likewise.
11716         * modules/xsetenv (Depends-on): Likewise.
11717         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11718         * modules/git-merge-changelog (Depends-on): Likewise.
11719         * modules/long-options (Depends-on): Likewise.
11720         * modules/pt_chown (Depends-on): Likewise.
11721         * modules/sysexits (Depends-on): Likewise.
11722
11723         freading: relax license from LGPLv3+ to LGPLv2+
11724         * modules/freading (License): Relax LGPL version.
11725
11726 2011-05-02  Bruno Haible  <bruno@clisp.org>
11727
11728         fchdir: Remove unused dependencies.
11729         * modules/fchdir (Depends-on): Remove include_next.
11730
11731 2011-05-02  Bruno Haible  <bruno@clisp.org>
11732
11733         gnulib-tool: Refactor.
11734         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11735         from func_emit_autoconf_snippets.
11736         (func_emit_autoconf_snippets): Use it.
11737
11738 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11739
11740         * NEWS: Document removal of 'exit'.
11741         * modules/exit: Remove file.
11742
11743 2011-05-01  Bruno Haible  <bruno@clisp.org>
11744
11745         Update DEPENDENCIES.
11746         * DEPENDENCIES (gettext): Recommend the newest release.
11747         Reported by Simon Josefsson.
11748
11749 2011-05-01  Bruno Haible  <bruno@clisp.org>
11750
11751         gnulib-tool: Reduce code duplication.
11752         * gnulib-tool (func_emit_autoconf_snippets): New function.
11753         (func_import, func_create_testdir): Use it.
11754
11755 2011-04-30  Eric Blake  <eblake@redhat.com>
11756
11757         fclose: don't fail on non-seekable input stream
11758         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11759         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11760         since fflush is allowed to fail in that case.
11761
11762 2011-04-30  Bruno Haible  <bruno@clisp.org>
11763
11764         dup3: cleanup
11765         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11766
11767 2011-04-30  Bruno Haible  <bruno@clisp.org>
11768
11769         netdb: Make it work in C++ mode.
11770         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11771         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11772         module.
11773         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11774         gl_MODULE_INDICATOR_FOR_TESTS.
11775         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11776         * modules/netdb-c++-tests: New file.
11777         * tests/test-netdb-c++.cc: New file.
11778
11779 2011-04-30  Bruno Haible  <bruno@clisp.org>
11780
11781         New modules 'vfscanf', 'vscanf'.
11782         * modules/vfscanf: New file.
11783         * modules/vscanf: New file.
11784         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11785         here.
11786         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11787         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11788
11789 2011-04-30  Bruno Haible  <bruno@clisp.org>
11790
11791         passfd: Add comments.
11792         * lib/passfd.c: Add comments about platforms.
11793
11794 2011-04-30  Bruno Haible  <bruno@clisp.org>
11795
11796         sys_uio: Make <sys/uio.h> self-contained.
11797         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11798         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11799
11800 2011-04-30  Bruno Haible  <bruno@clisp.org>
11801
11802         sys_socket: Ensure 'struct iovec' definition.
11803         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11804         <sys/socket.h>.
11805         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11806
11807 2011-04-30  Bruno Haible  <bruno@clisp.org>
11808
11809         sys_uio: Protect definition of 'struct iovec'.
11810         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11811         it as a C struct.
11812
11813 2011-04-30  Bruno Haible  <bruno@clisp.org>
11814
11815         manywarnings: fix indentation
11816         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11817
11818 2011-04-30  Pádraig Brady <P@draigBrady.com>
11819
11820         manywarnings: add -Wno-missing-field-initializers if needed.
11821         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11822         option if it's needed to allow initialization with { 0, }
11823
11824 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11825
11826         announce-gen: cosmetic improvement
11827         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11828
11829 2011-04-29  Jim Meyering  <meyering@redhat.com>
11830
11831         vc-list-files: indent with spaces, not TABs
11832         * build-aux/vc-list-files: Convert leading TABs to spaces,
11833         to match the style of most other files in gnulib.
11834
11835         announce-gen: indent with spaces, not TABs
11836         * build-aux/announce-gen: Convert all TABs to spaces, to match
11837         the style of most other files in gnulib.
11838
11839 2011-04-29  Eric Blake  <eblake@redhat.com>
11840
11841         quotearg: avoid uninitialized variable use
11842         * lib/quotearg.c (quoting_options_from_style): Initialize
11843         remaining fields, and ensure that custom styles are only used via
11844         quoting_options rather than quoting_style.
11845
11846 2011-04-29  Jim Meyering  <meyering@redhat.com>
11847
11848         maint.mk: remove unused VC-tag variable
11849         * top/maint.mk (VC-tag): Remove unused variable.
11850
11851 2011-04-29  Bruno Haible  <bruno@clisp.org>
11852
11853         netdb: fix gai_strerror replacements
11854         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11855         * modules/netdb: Substitute it.
11856
11857 2011-04-29  Jim Meyering  <meyering@redhat.com>
11858
11859         test-getcwd.c: avoid new set-but-not-used warning
11860         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11861         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11862         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11863         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11864
11865         test-hash.c: avoid a new shadowing warning
11866         * tests/test-hash.c (main): Don't shadow "dup".
11867
11868 2011-04-28  Eric Blake  <eblake@redhat.com>
11869
11870         getaddrinfo: fix gai_strerror signature
11871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11872         and work around mingw with UNICODE defined.
11873         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11874         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11875         * modules/netdb (Makefile.am): Substitute it.
11876         * lib/netdb.in.h (gai_strerror): Declare replacement.
11877         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11878         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11879         the fix.
11880
11881         getsockopt: avoid compiler warning
11882         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11883         Reported by Matthias Bolte.
11884
11885         tests: drop unused link dependency
11886         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11887         * modules/dirent-safer-tests (Makefile.am): Likewise.
11888         * modules/fdopendir-tests (Makefile.am): Likewise.
11889         * modules/mkfifoat-tests (Makefile.am): Likewise.
11890         * modules/openat-safer-tests (Makefile.am): Likewise.
11891         * modules/openat-tests (Makefile.am): Likewise.
11892         * modules/readlinkat-tests (Makefile.am): Likewise.
11893         * modules/symlinkat-tests (Makefile.am): Likewise.
11894         * modules/linkat-tests (Makefile.am): Likewise.
11895         (Depends-on): Switch to filenamecat-lgpl.
11896         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11897         LIBINTL.
11898         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11899         * tests/test-linkat.c (main): Don't require xalloc.
11900
11901         hash, mgetgroups: drop xalloc dependency
11902         * lib/hash.c (includes): Adjust includes.
11903         * lib/mgetgroups.c (includes): Likewise.
11904         (xgetgroups): Move...
11905         * lib/xgetgroups.c: ...to new file.
11906         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11907         * modules/xgetgroups: New file, split from...
11908         * modules/mgetgroups: ...here.
11909         (Depends-on): Add xalloc-oversized.
11910         * modules/hash (Depends-on): Likewise.
11911         * modules/hash-tests (Depends-on): Drop xalloc.
11912         (test_hash_LDADD): Drop unused library.
11913         * tests/test-hash.c (main): Break xalloc dependency.
11914         (includes): Drop unused include.
11915
11916         xalloc-oversized: new module
11917         * modules/xalloc-oversized: New module.
11918         * modules/xalloc (Depends-on): Add it.
11919         * lib/xalloc.h (xalloc_oversized): Move...
11920         * lib/xalloc-oversized.h: ...into new file.
11921
11922         utimecmp: drop dependency on xmalloc
11923         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11924         due to memory pressure.
11925         * modules/utimecmp (Depends-on): Drop xalloc.
11926
11927 2011-04-27  Eric Blake  <eblake@redhat.com>
11928
11929         getcwd: fix mingw bugs
11930         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11931         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11932         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11933
11934 2011-04-27  Bruno Haible  <bruno@clisp.org>
11935
11936         mkstemps: Ensure declaration on MacOS X 10.5.
11937         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11938         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11939         MacOS X.
11940
11941 2011-04-27  Bruno Haible  <bruno@clisp.org>
11942
11943         mkstemp: More documentation.
11944         * doc/posix-functions/mkstemp.texi: Document header file problem on
11945         MacOS X.
11946
11947 2011-04-27  Bruno Haible  <bruno@clisp.org>
11948
11949         mkstemp: Tweak configure message when cross-compiling.
11950         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11951         result as a guess.
11952
11953 2011-04-27  Bruno Haible  <bruno@clisp.org>
11954
11955         clean-temp: Clarify what it does.
11956         * lib/clean-temp.h: Add more comments.
11957         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11958         module.
11959         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11960         * doc/glibc-functions/mkstemps.texi: Likewise.
11961         * doc/glibc-functions/mkostemps.texi: Likewise.
11962
11963 2011-04-27  Eric Blake  <eblake@redhat.com>
11964
11965         fchdir: avoid extra chdir and fix test
11966         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11967         getcwd-lgpl.
11968         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11969         have to be canonical.
11970         (canonicalize_file_name): Drop unused macro.
11971         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11972
11973         filenamecat-lgpl: fix licence
11974         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11975         when it was first created.
11976
11977         linkat, renameat: add missing dependency
11978         * modules/linkat (Depends-on): Require getcwd-lgpl.
11979         * modules/renameat (Depends-on): Likewise.
11980
11981         tests: reduce dependencies
11982         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11983         * tests/test-renameat.c (main): Likewise.
11984         * modules/linkat-tests (Depends-on): Relax dependency.
11985         * modules/renameat-tests (Depends-on): Likewise.
11986         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11987         dependency explicit.
11988
11989         save-cwd: reduce default dependency
11990         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11991         * lib/save-cwd.c: Update comments.
11992         * NEWS: Document the semantic change.
11993
11994         getcwd: enhance tests
11995         * tests/test-getcwd-lgpl.c: New file, taken from...
11996         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11997         repeat long path stress tests from m4 probe.
11998         * modules/getcwd-lgpl-tests: New module.
11999         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12000         * m4/getcwd-abort-bug.m4: Update comment.
12001         * m4/getcwd-path-max.m4: Likewise.
12002
12003         getcwd-lgpl: new module
12004         * modules/getcwd-lgpl: New module.
12005         * lib/getcwd-lgpl.c: New file.
12006         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12007         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12008         * modules/getcwd (configure.ac): Set C witness.
12009         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12010
12011         getcwd: tweak comments
12012         * m4/getcwd-abort-bug.m4: Fix comments.
12013         * m4/getcwd-path-max.m4: Likewise.
12014         * m4/getcwd.m4: Likewise.
12015
12016 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12017         and Eric Blake  <eblake@redhat.com>
12018
12019         mkstemp: replace if system version uses wrong permissions
12020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12021         read/write mode bits set in file created by mkstemp.
12022         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12023
12024 2011-04-27  Eric Blake  <eblake@redhat.com>
12025
12026         passfd: avoid compiler warning
12027         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12028         Reported by Laine Stump.
12029
12030 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12031
12032         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12033         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12034
12035 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12036         and Eric Blake  <eblake@redhat.com>
12037
12038         mkstemp: mention clean-temp module
12039         * lib/mkstemp.c: Add comment.
12040         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12041
12042 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12043
12044         inttypes: also provide default values for 32-bit tests
12045         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12046         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12047
12048 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12049
12050         strtoumax: remove dependency on strtoimax
12051         This is like the strtoull change of yesterday.
12052         * modules/strtoumax (Files): Add lib/strtoimax.c.
12053         (Depends-on): Remove strtoimax and add verify.
12054
12055         inttypes-incomplete: new module
12056         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12057         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12058         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12059         of gl_INTTYPES_H.
12060         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12061         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12062         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12063         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12064         * modules/strtoumax, modules/xstrtol (Depends-on):
12065         Depend on inttypes-incomplete, not inttypes.
12066         * modules/inttypes-incomplete: New module, containing the contents
12067         of the old modules/inttypes module, except that the Files: section
12068         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12069         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12070         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12071         (Depends-on): Depend only on inttypes-incomplete.
12072         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12073
12074         inttypes: omit now-redundant strtoimax and strtoumax work
12075         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12076         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12077
12078         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12079         This supports apps that need pointers to strtoimax and strtoumax,
12080         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12081         nonexistent functions.  See
12082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12083         et seq.
12084         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12085         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12086         a macro.
12087         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12088
12089 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12090
12091         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12092
12093 2011-04-25  Bruno Haible  <bruno@clisp.org>
12094
12095         strtol, strtoul: Mark modules as obsolete.
12096         * modules/strtol (Status, Notice): New sections.
12097         * modules/strtoul (Status, Notice): New sections.
12098
12099 2011-04-25  Bruno Haible  <bruno@clisp.org>
12100
12101         strtod: Remove check for strtod, unless supporting old platforms.
12102         * modules/strtod-obsolete: New file.
12103         * m4/strtod-obsolete.m4: New file.
12104         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12105         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12106         * modules/strtod (Depends-on): Add strtod-obsolete.
12107         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12108
12109 2011-04-25  Bruno Haible  <bruno@clisp.org>
12110
12111         strcase: Make module obsolete.
12112         * modules/strcase (Status, Notice): New sections.
12113
12114 2011-04-25  Bruno Haible  <bruno@clisp.org>
12115
12116         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12117         * modules/dup2-obsolete: New file.
12118         * m4/dup2-obsolete.m4: New file.
12119         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12120         gl_FUNC_DUP2_OBSOLETE is not also defined.
12121         * modules/dup2 (Depends-on): Add dup2-obsolete.
12122         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12123
12124 2011-04-25  Bruno Haible  <bruno@clisp.org>
12125
12126         strnlen: Avoid memchr related link error on old obsolete platforms.
12127         * modules/memchr-obsolete: New file.
12128         * m4/memchr-obsolete.m4: New file.
12129         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12130         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12131         * modules/memchr (Depends-on): Add memchr-obsolete.
12132         * modules/strnlen (Depends-on): Likewise.
12133         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12134
12135 2011-04-25  Jim Meyering  <meyering@redhat.com>
12136
12137         maint.mk: makefile_at_at_check extend and clean up
12138         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12139         in addition to */Makefile.am.
12140         Exempt legitimate uses of @VAR@ notation, e.g.,
12141         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12142         Remove obsolete coreutils-specific comment.
12143         Prompted by discussion here:
12144         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12145
12146 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12147
12148         strtoul: remove dependency on strtol
12149         This is so that 'configure' need not check for strtol merely because
12150         the application needs strtoul.
12151         * modules/strtoul (Files): Add lib/strtol.c.
12152         (Depends-on): Remove strtol.
12153
12154         strtoull: remove dependency on strtoul
12155         This is like the strtoll change.
12156         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12157         (Depends-on): Remove strtoul.
12158
12159         strtoll: remove dependency on strtol
12160         This is so that 'configure' need not check for strtol merely because
12161         the application needs strtoll.
12162         * modules/strtoll (Files): Add lib/strtol.c.
12163         (Depends-on): Remove strtol.
12164
12165 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12166
12167         inttypes: Move some configure check to module 'imaxdiv'.
12168         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12169         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12170         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12171
12172 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12173
12174         inttypes: Move some configure check to module 'imaxabs'.
12175         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12176         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12177         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12178
12179 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12180
12181         inttypes: Remove configure tests that are not needed since 2009-12-31.
12182         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12183         gl_cv_header_working_inttypes_h.
12184
12185 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12186
12187         * modules/strnlen (Depends-on): Remove memchr.
12188         The strnlen implementation doesn't need the memchr module's fixes; see
12189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12190
12191         strtol: remove dependency on wchar
12192         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12193         * modules/strtol (Depends-on): Remove wchar.
12194
12195 2011-04-21  Eric Blake  <eblake@redhat.com>
12196
12197         passfd: fix test regression on Linux
12198         * modules/passfd-tests (configure.ac): Correct socketpair check.
12199
12200         passfd: speed up configure and drop unused code
12201         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12202         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12203         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12204         Instead of probing at configure for unix_scm_rights_bsd44_way,
12205         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12206         check to a struct member probe.
12207         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12208         (sendfd, recvfd): Update preprocessor checks.
12209         * modules/passfd (Files): Reflect rename, and drop unused file.
12210         (Depends-on): Drop unused dependency.
12211
12212         passfd: allow compilation on mingw
12213         * modules/sys_socket (Depends-on): Add sys_uio.
12214         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12215         iovec and a minimal struct msghdr.
12216         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12217         * tests/test-sys_socket.c (main): Enhance test.
12218         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12219         guaranteed to provide what we need.
12220         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12221         * modules/passfd-tests (Depends-on): Add sys_wait.
12222         * tests/test-passfd.c (main): Skip test on mingw, for now.
12223         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12224         partial 'struct msghdr' implementation.
12225
12226         sys_uio: new module
12227         * modules/sys_uio: New module.
12228         * modules/sys_uio-tests: Likewise.
12229         * lib/sys_uio.in.h: New file.
12230         * m4/sys_uio_h.m4: Likewise.
12231         * tests/test-sys_uio.c: Likewise.
12232         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12233         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12234
12235 2011-04-20  Jim Meyering  <meyering@redhat.com>
12236
12237         useless-if-before-free: avoid false-positive
12238         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12239         disjunct so that it too requires a terminating ";".  Without that,
12240         this script would identify as useless one statement from gcc that
12241         was not:
12242           if (aligned_ptr)
12243             free (((void **) aligned_ptr) [-1]);
12244
12245 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12246
12247         doc: update users.txt.
12248         * users.txt: Add barcode.
12249
12250 2011-04-19  Bruno Haible  <bruno@clisp.org>
12251
12252         ioctl: Remove link dependency on native Windows.
12253         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12254         (gl_close_fn, gl_ioctl_fn): New types.
12255         (struct fd_hook): Renamed from struct close_hook. Change type of
12256         private_close_fn field. Add private_ioctl_fn field.
12257         (close_hook_fn): Add parameter for primary close method.
12258         (execute_close_hooks, execute_all_close_hooks): Likewise.
12259         (ioctl_hook_fn): New type.
12260         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12261         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12262         argument.
12263         (unregister_fd_hook): Renamed from unregister_close_hook.
12264         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12265         Don't include <unistd.h>.
12266         (close): Remove undef.
12267         (anchor): Update.
12268         (execute_close_hooks): Add argument for primary close method.
12269         (execute_all_close_hooks): Likewise.
12270         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12271         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12272         argument. Allow each argument to be NULL.
12273         (unregister_fd_hook): Renamed from unregister_close_hook.
12274         * lib/close.c (rpl_close): Pass 'close' function pointer to
12275         execute_all_close_hooks.
12276         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12277         (primary_ioctl): New function.
12278         (ioctl): Don't call ioctlsocket here. Instead, call
12279         execute_all_ioctl_hooks.
12280         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12281         close method.
12282         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12283         (fd_sockets_hook): Renamed from close_sockets_hook.
12284         (gl_sockets_startup, gl_sockets_cleanup): Update.
12285         * modules/fd-hook: Renamed from modules/close-hook. Update.
12286         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12287         * modules/sockets (Depends-on): Likewise.
12288         * modules/ioctl (Depends-on): Add fd-hook.
12289         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12290         GNULIB_SOCKET.
12291
12292 2011-04-19  Bruno Haible  <bruno@clisp.org>
12293
12294         Move the support of O_NONBLOCK in open() to the 'open' module.
12295         * modules/nonblocking (Depends-on): Remove 'open'.
12296         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12297         gl_cv_have_open_O_NONBLOCK.
12298         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12299         O_NONBLOCK support.
12300         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12301
12302 2011-04-17  Bruno Haible  <bruno@clisp.org>
12303
12304         pipe2: Simplify code.
12305         * lib/pipe2.c (pipe2): Reduce code duplication.
12306
12307 2011-04-17  Bruno Haible  <bruno@clisp.org>
12308
12309         nonblocking: Add comment.
12310         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12311
12312 2011-04-17  Bruno Haible  <bruno@clisp.org>
12313
12314         nonblocking: Add tests for sockets.
12315         * tests/test-nonblocking-socket.sh: New file.
12316         * tests/test-nonblocking-socket-main.c: New file.
12317         * tests/test-nonblocking-socket-child.c: New file.
12318         * tests/test-nonblocking-socket.h: New file.
12319         * tests/socket-server.h: New file.
12320         * tests/socket-client.h: New file.
12321         * modules/nonblocking-socket-tests: New file.
12322         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12323
12324 2011-04-17  Bruno Haible  <bruno@clisp.org>
12325
12326         nonblocking: Add tests for pipes.
12327         * tests/test-nonblocking-pipe.sh: New file.
12328         * tests/test-nonblocking-pipe-main.c: New file.
12329         * tests/test-nonblocking-pipe-child.c: New file.
12330         * tests/test-nonblocking-pipe.h: New file.
12331         * tests/test-nonblocking-writer.h: New file.
12332         * tests/test-nonblocking-reader.h: New file.
12333         * tests/test-nonblocking-misc.h: New file.
12334         * modules/nonblocking-pipe-tests: New file.
12335         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12336
12337 2011-04-16  Bruno Haible  <bruno@clisp.org>
12338
12339         gettext: Clarify the needed programmer actions.
12340         * modules/gettext (Notice): New field.
12341         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12342
12343 2011-04-16  Bruno Haible  <bruno@clisp.org>
12344
12345         strchrnul: Tweak last commit.
12346         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12347         bug.
12348         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12349         as in _GL_FUNCDECL_SYS.
12350         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12351         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12352
12353 2011-04-15  Eric Blake  <eblake@redhat.com>
12354
12355         strchrnul: work around cygwin bug
12356         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12357         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12359         * modules/string (Makefile.am): Substitute it.
12360         * lib/string.in.h (strchrnul): Use it.
12361
12362 2011-04-15  Bruno Haible  <bruno@clisp.org>
12363
12364         Don't require lib/stdio-write.c when only module 'stdio' is used.
12365         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12366         invocation.
12367         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12368
12369 2011-04-14  Bruno Haible  <bruno@clisp.org>
12370
12371         Support non-blocking pipe I/O in read() on native Windows.
12372         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12373         (read): New declaration.
12374         * lib/read.c: New file.
12375         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12376         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12377         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12378         vscanf): New declarations.
12379         * lib/stdio-read.c: New file.
12380         * m4/read.m4: New file.
12381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12382         REPLACE_READ.
12383         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12384         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12385         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12386         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12387         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12388         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12389         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12390         * modules/read: New file.
12391         * modules/nonblocking (Files): Add lib/stdio-read.c.
12392         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12393         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12394         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12395         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12396         * modules/pread (Depends-on): Add read.
12397         * modules/safe-read (Depends-on): Likewise.
12398         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12399         gets, scanf, vfscanf, vscanf): Verify signatures.
12400         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12401         problem with non-blocking pipes.
12402         * doc/posix-functions/fgetc.texi: Likewise.
12403         * doc/posix-functions/fgets.texi: Likewise.
12404         * doc/posix-functions/fread.texi: Likewise.
12405         * doc/posix-functions/fscanf.texi: Likewise.
12406         * doc/posix-functions/getc.texi: Likewise.
12407         * doc/posix-functions/getchar.texi: Likewise.
12408         * doc/posix-functions/gets.texi: Likewise.
12409         * doc/posix-functions/scanf.texi: Likewise.
12410         * doc/posix-functions/vfscanf.texi: Likewise.
12411         * doc/posix-functions/vscanf.texi: Likewise.
12412
12413 2011-04-14  Bruno Haible  <bruno@clisp.org>
12414
12415         Support non-blocking pipe I/O in write() on native Windows.
12416         * lib/write.c (rpl_write): Split a write request that failed merely
12417         because the byte count was larger than the pipe buffer's size.
12418         * doc/posix-functions/write.texi: Mention the problem with large byte
12419         counts.
12420
12421 2011-04-14  Bruno Haible  <bruno@clisp.org>
12422
12423         wchar: Ensure that wchar_t gets defined on uClibc.
12424         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12425         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12426
12427 2011-04-13  Bruno Haible  <bruno@clisp.org>
12428
12429         safe-write, full-read: Avoid unnecessary compilation units.
12430         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12431         (Depends-on): Remove safe-read. Add ssize_t.
12432         * modules/full-read (Files): Add lib/full-write.c.
12433         (Depends-on): Add full-write.
12434
12435 2011-04-13  Bruno Haible  <bruno@clisp.org>
12436
12437         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12438         * modules/pwrite (Depends-on): Add 'write'.
12439
12440 2011-04-13  Bruno Haible  <bruno@clisp.org>
12441
12442         Support non-blocking pipe I/O in write() on native Windows.
12443         * lib/unistd.in.h (write): Enable replacement also if
12444         GNULIB_UNISTD_H_NONBLOCKING is 1.
12445         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12446         (rpl_write): When failing to write on a non-blocking pipe, change
12447         errno from ENOSPC to EAGAIN.
12448         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12449         putchar, puts, vfprintf, vprintf): Enable replacement also if
12450         GNULIB_STDIO_H_NONBLOCKING is 1.
12451         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12452         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12453         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12454         CALL_WITH_SIGPIPE_EMULATION.
12455         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12456         * m4/nonblocking.m4: New file.
12457         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12458         for non-blocking I/O support.
12459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12460         GNULIB_UNISTD_H_NONBLOCKING.
12461         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12462         required for non-blocking I/O support.
12463         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12464         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12465         lib/stdio-write.c, m4/asm-underscore.m4.
12466         (Depends-on): Add stdio, unistd.
12467         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12468         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12469         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12470         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12471         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12472         problem with non-blocking pipes.
12473         * doc/posix-functions/fputc.texi: Likewise.
12474         * doc/posix-functions/fputs.texi: Likewise.
12475         * doc/posix-functions/fwrite.texi: Likewise.
12476         * doc/posix-functions/printf.texi: Likewise.
12477         * doc/posix-functions/putc.texi: Likewise.
12478         * doc/posix-functions/putchar.texi: Likewise.
12479         * doc/posix-functions/puts.texi: Likewise.
12480         * doc/posix-functions/vfprintf.texi: Likewise.
12481         * doc/posix-functions/vprintf.texi: Likewise.
12482         * doc/posix-functions/write.texi: Likewise.
12483
12484 2011-04-10  Jim Meyering  <meyering@redhat.com>
12485
12486         maint.mk: prohibit doubled words
12487         Detect them also when they're separated by a newline.
12488         There are 3 ways to customize it:
12489           - disable the test on a per file basis, as usual with rules using
12490             $(VC_LIST_EXCEPT)
12491           - replace the default doubled-word-selecting regexp (affects all files)
12492           - ignore a particular file-vs-doubled-word match
12493         I nearly used that last one to ignore the "is is" match in
12494         coreutils' NEWS file, since the text was "ls -is is ..."
12495         To do that, I would have added this line to cfg.mk:
12496           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12497         but it would have ignored any "is is" match in NEWS.
12498         Low probability, but still...
12499         Instead, I changed the text, slightly:
12500           -  ls -is is now consistent with ls -lis in ignoring values returned
12501           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12502         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12503         (prohibit_doubled_word_): Define.
12504         (sc_prohibit_doubled_word): New rule.
12505         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12506
12507 2011-04-10  Jim Meyering  <meyering@redhat.com>
12508
12509         maint: fix doubled-word typo in comment
12510         * m4/gethostname.m4: s/is is/it is/
12511         * m4/getdomainname.m4: Likewise.
12512
12513 2011-04-10  Jim Meyering  <meyering@redhat.com>
12514
12515         maint: remove doubled word: s/it it/it/
12516         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12517
12518 2011-04-10  Jim Meyering  <meyering@redhat.com>
12519
12520         maint.mk: remove useless semicolon and backslash
12521         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12522         semicolon and backslash.
12523
12524 2011-04-10  Bruno Haible  <bruno@clisp.org>
12525
12526         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12527         * modules/stdint-tests (Depends-on): Add wchar.
12528
12529 2011-04-10  Jim Meyering  <meyering@redhat.com>
12530
12531         maint: remove doubled words in comments, e.g., s/a a/a/
12532         * lib/strptime.c (day_of_the_week): s/the the/the/
12533         * tests/test-chown.h (test_chown): s/a a/a/
12534
12535         test-chown.h: correct a cast
12536         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12537         when the destination is a stat.st_gid.
12538
12539 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12540
12541         getaddrinfo: Fix test for sa_len member.
12542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12543         include <sys/types.h> before <sys/socket.h>.
12544
12545 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12546
12547         maint: change "can not" to "cannot"
12548         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12549         boundaries.
12550
12551 2011-04-09  Jim Meyering  <meyering@redhat.com>
12552
12553         maint: change "a a" to "a"
12554         * tests/test-lchown.h (test_lchown): s/a a/a/
12555
12556         maint.mk: prohibit \<the the\>
12557         * top/maint.mk (sc_prohibit_the_the): New rule.
12558
12559         maint: fix "the the" in comment
12560         * lib/count-one-bits.h: s/the the/the/
12561
12562         maint: change "can not" to "cannot"
12563         But do not change the occurrences in maintain.texi or in
12564         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12565         * doc/gnulib-tool.texi: s/can not/cannot/
12566         * doc/posix-functions/accept.texi (accept): Likewise.
12567         * doc/posix-functions/socket.texi (socket): Likewise.
12568         * lib/mbrtowc.c: Likewise.
12569
12570         maint.mk: prohibit use of "can not"
12571         * top/maint.mk (sc_prohibit_can_not): New rule.
12572         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12573
12574 2011-04-09  Bruno Haible  <bruno@clisp.org>
12575
12576         careadlinkat: Guard against misuse of careadlinkatcwd.
12577         * lib/careadlinkat.c: Include <stdlib.h>.
12578         (careadlinkatcwd): Check that the fd argument is as expected.
12579
12580 2011-04-09  Bruno Haible  <bruno@clisp.org>
12581
12582         careadlinkat: Use common coding style.
12583         * lib/careadlinkat.c: Move gnulib includes after system includes.
12584
12585 2011-04-09  Bruno Haible  <bruno@clisp.org>
12586
12587         careadlinkat: Clarify specification.
12588         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12589         (careadlinkatcwd): Add comment.
12590         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12591
12592 2011-04-09  Bruno Haible  <bruno@clisp.org>
12593
12594         areadlinkat: Avoid link error on many platforms.
12595         * modules/areadlinkat (Depends-on): Add areadlink.
12596
12597 2011-04-09  Bruno Haible  <bruno@clisp.org>
12598
12599         allocator, careadlinkat: Fix double-inclusion guard.
12600         * lib/allocator.h: Fix double-inclusion guard.
12601         * lib/careadlinkat.h: Likewise.
12602
12603 2011-04-09  Bruno Haible  <bruno@clisp.org>
12604
12605         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12606         * lib/relocwrapper.c: Update dependencies hierarchy.
12607         * build-aux/install-reloc: Update list of files to be compiled.
12608         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12609         lib/allocator.[hc].
12610
12611 2011-04-08  Eric Blake  <eblake@redhat.com>
12612
12613         strftime: silence gnulib-tool warning
12614         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12615
12616 2011-04-08  Bruno Haible  <bruno@clisp.org>
12617
12618         verify: Fix syntax error with GCC 4.6 in C++ mode.
12619         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12620         (HAVE_STATIC_ASSERT): New macro.
12621         (verify_true, verify): Use 'static_assert' if it is supported and
12622         '_Static_assert' is not supported.
12623
12624 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12625
12626         allocator: New module.
12627         * modules/allocator, lib/allocator.c: New files.
12628         * lib/allocator.h (stdlib_allocator): New decl.
12629         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12630         Remove.  Do not include <stdlib.h>.
12631         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12632         * modules/careadlinkat (Files): Remove lib/allocator.h.
12633         (Depends-on): Add allocator.
12634
12635         stdlib: let modules use system malloc, realloc
12636         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12637         if !_GL_USE_STDLIB_ALLOC.
12638         (malloc, realloc): Limit this change to a smaller scope.
12639
12640         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12641         (malloc, realloc): Don't #undef; no longer needed.
12642         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12643         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12644         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12645         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12646         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12647         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12648         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12649         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12650
12651         careadlinkat: rename members to avoid problem
12652         * lib/allocator.h (struct allocator): Rename members from
12653         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12654         and realloc are #define'd.  Reported by Eric Blake in
12655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12656         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12657
12658 2011-04-08  Eric Blake  <eblake@redhat.com>
12659
12660         nonblocking: reduce dependency
12661         * tests/test-nonblocking.c: Only test sockets when in use.
12662         * modules/nonblocking-tests (Depends-on): Drop socket.
12663         (Makefile.am): Link even if sockets are not present.
12664         * modules/pipe2-tests (Makefile.am): Likewise.
12665         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12666
12667         pipe2: fix O_NONBLOCK support on mingw
12668         * modules/pipe2 (Depends-on): Add nonblocking.
12669         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12670         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12671         * tests/test-nonblocking.c (main): Likewise.
12672         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12673
12674         fcntl-h: fix O_ACCMODE on cygwin
12675         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12676         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12677
12678         pipe-filter: drop O_NONBLOCK workarounds
12679         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12680         * modules/pipe-filter-ii (Depends-on): Likewise.
12681         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12682
12683         nonblocking: provide O_NONBLOCK for mingw
12684         * modules/nonblocking (Depends-on): Add open.
12685         (configure.ac): Set new witness macro.
12686         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12687         * modules/fcntl-h (Makefile.am): Substitute it.
12688         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12689         nonblocking module is in use.
12690         * lib/nonblocking.c: Adjust portability test.
12691         * lib/open.c (open): Don't let native open see gnulib flag.
12692         * tests/test-fcntl-h.c (main): Enhance test.
12693         * tests/test-open.h (test_open): Likewise.
12694         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12695
12696         careadlinkat: fix compilation error on mingw
12697         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12698         within struct allocator.
12699
12700 2011-04-06  Eric Blake  <eblake@redhat.com>
12701
12702         binary-io: relicense under LGPLv2+
12703         * modules/binary-io (License): Relax to LGPLv2+.
12704         Requested for libvirt, and required by pipe2.
12705
12706 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12707
12708         verify: use _Static_assert if available
12709         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12710         (verify_true, verify): Use it if available.  This generates better
12711         diagnostics with GCC 4.6.0 and later.
12712
12713 2011-04-05  Bruno Haible  <bruno@clisp.org>
12714
12715         Remove leftover generated .h files after config.status changed.
12716
12717         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12718         GL_GENERATE_ALLOCA_H.
12719         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12720         GL_GENERATE_ALLOCA_H evaluates to false.
12721
12722         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12723         GL_GENERATE_ARGZ_H.
12724         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12725         evaluates to false.
12726
12727         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12728         GL_GENERATE_BYTESWAP_H.
12729         * modules/byteswap (Makefile.am): Remove byteswap.h if
12730         GL_GENERATE_BYTESWAP_H evaluates to false.
12731
12732         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12733         GL_GENERATE_ERRNO_H.
12734         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12735         evaluates to false.
12736
12737         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12738         GL_GENERATE_FLOAT_H.
12739         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12740         evaluates to false.
12741
12742         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12743         GL_GENERATE_FNMATCH_H.
12744         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12745         GL_GENERATE_FNMATCH_H evaluates to false.
12746
12747         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12748         GL_GENERATE_GLOB_H.
12749         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12750         evaluates to false.
12751
12752         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12753         automake conditional GL_GENERATE_ICONV_H.
12754         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12755         evaluates to false.
12756
12757         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12758         GL_GENERATE_NETINET_IN_H.
12759         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12760         GL_GENERATE_NETINET_IN_H evaluates to false.
12761
12762         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12763         conditional GL_GENERATE_PTHREAD_H.
12764         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12765         * modules/pthread (Makefile.am): Remove pthread.h if
12766         GL_GENERATE_PTHREAD_H evaluates to false.
12767
12768         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12769         GL_GENERATE_SCHED_H.
12770         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12771         evaluates to false.
12772
12773         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12774         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12775         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12776         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12777
12778         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12779         GL_GENERATE_STDARG_H.
12780         * modules/stdarg (Makefile.am): Remove stdarg.h if
12781         GL_GENERATE_STDARG_H evaluates to false.
12782
12783         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12784         GL_GENERATE_STDBOOL_H.
12785         * modules/stdbool (Makefile.am): Remove stdbool.h if
12786         GL_GENERATE_STDBOOL_H evaluates to false.
12787
12788         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12789         conditional GL_GENERATE_STDDEF_H.
12790         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12791         * modules/stddef (Makefile.am): Remove stddef.h if
12792         GL_GENERATE_STDDEF_H evaluates to false.
12793
12794         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12795         GL_GENERATE_STDINT_H.
12796         * modules/stdint (Makefile.am): Remove stdint.h if
12797         GL_GENERATE_STDINT_H evaluates to false.
12798
12799         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12800         GL_GENERATE_SYSEXITS_H.
12801         * modules/sysexits (Makefile.am): Remove sysexits.h if
12802         GL_GENERATE_SYSEXITS_H evaluates to false.
12803
12804         Reported by Karl Berry and Ralf Wildenhues.
12805
12806 2011-04-05  Bruno Haible  <bruno@clisp.org>
12807
12808         Ensure to rebuild generated .h files when config.status has changed.
12809         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12810         config.status.
12811         * modules/ctype (Makefile.am): Likewise.
12812         * modules/dirent (Makefile.am): Likewise.
12813         * modules/errno (Makefile.am): Likewise.
12814         * modules/fcntl-h (Makefile.am): Likewise.
12815         * modules/float (Makefile.am): Likewise.
12816         * modules/getopt-posix (Makefile.am): Likewise.
12817         * modules/glob (Makefile.am): Likewise.
12818         * modules/iconv-h (Makefile.am): Likewise.
12819         * modules/inttypes (Makefile.am): Likewise.
12820         * modules/langinfo (Makefile.am): Likewise.
12821         * modules/locale (Makefile.am): Likewise.
12822         * modules/math (Makefile.am): Likewise.
12823         * modules/netdb (Makefile.am): Likewise.
12824         * modules/netinet_in (Makefile.am): Likewise.
12825         * modules/poll-h (Makefile.am): Likewise.
12826         * modules/pthread (Makefile.am): Likewise.
12827         * modules/pty (Makefile.am): Likewise.
12828         * modules/sched (Makefile.am): Likewise.
12829         * modules/search (Makefile.am): Likewise.
12830         * modules/selinux-h (Makefile.am): Likewise.
12831         * modules/signal (Makefile.am): Likewise.
12832         * modules/spawn (Makefile.am): Likewise.
12833         * modules/stdarg (Makefile.am): Likewise.
12834         * modules/stdbool (Makefile.am): Likewise.
12835         * modules/stddef (Makefile.am): Likewise.
12836         * modules/stdint (Makefile.am): Likewise.
12837         * modules/stdio (Makefile.am): Likewise.
12838         * modules/stdlib (Makefile.am): Likewise.
12839         * modules/string (Makefile.am): Likewise.
12840         * modules/strings (Makefile.am): Likewise.
12841         * modules/sys_file (Makefile.am): Likewise.
12842         * modules/sys_ioctl (Makefile.am): Likewise.
12843         * modules/sys_select (Makefile.am): Likewise.
12844         * modules/sys_socket (Makefile.am): Likewise.
12845         * modules/sys_stat (Makefile.am): Likewise.
12846         * modules/sys_time (Makefile.am): Likewise.
12847         * modules/sys_times (Makefile.am): Likewise.
12848         * modules/sys_utsname (Makefile.am): Likewise.
12849         * modules/sys_wait (Makefile.am): Likewise.
12850         * modules/sysexits (Makefile.am): Likewise.
12851         * modules/termios (Makefile.am): Likewise.
12852         * modules/time (Makefile.am): Likewise.
12853         * modules/unistd (Makefile.am): Likewise.
12854         * modules/wchar (Makefile.am): Likewise.
12855         * modules/wctype-h (Makefile.am): Likewise.
12856         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12857
12858 2011-04-05  Bruno Haible  <bruno@clisp.org>
12859
12860         pipe2: Relicense under LGPLv2+.
12861         * modules/pipe2 (License): Change to LGPLv2+.
12862         Requested by Eric Blake, for libvirt.
12863
12864 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12865
12866         bootstrap: compute gnulib_extra_files after updating build_aux
12867         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12868         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12869
12870 2011-04-05  Eric Blake  <eblake@redhat.com>
12871
12872         bootstrap: preserve git whitelist item sorting
12873         * build-aux/bootstrap (sort_patterns): New function.
12874         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12875
12876 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12877
12878         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12879         sc_space_tab check.
12880
12881 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12882
12883         areadlink, areadlinkat: rewrite in terms of careadlinkat
12884         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12885         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12886         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12887         (malloc, realloc): Remove #undefs.
12888         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12889         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12890         readlink, ssize_t, stdint, unistd.
12891         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12892         areadlink, stdint.
12893
12894         careadlinkat: new module
12895         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12896         * modules/careadlinkat: New files, written by me with
12897         a review and feedback from Ben Pfaff in
12898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12899
12900 2011-04-01  Bruno Haible  <bruno@clisp.org>
12901
12902         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12903         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12904         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12905         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12906         Reported by Bruce Korb <bruce.korb@gmail.com>.
12907
12908 2011-04-01  Bruno Haible  <bruno@clisp.org>
12909
12910         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12911         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12912         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12913         * modules/wcpcpy (Depends-on): Add extensions.
12914         * modules/wcpncpy (Depends-on): Likewise.
12915         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12916         systems.
12917         * doc/posix-functions/wcpncpy.texi: Likewise.
12918         * doc/posix-functions/wcwidth.texi: Likewise.
12919
12920 2011-03-31  Eric Blake  <eblake@redhat.com>
12921
12922         nonblocking: fix mingw test failures
12923         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12924         non-blocking flag on regular file.
12925         (get_nonblocking_flag): Set errno on invalid fd.
12926         * tests/test-nonblocking.c (main): Avoid test failure on
12927         directories if fchdir is not active.
12928         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12929
12930 2011-03-31  Bruno Haible  <bruno@clisp.org>
12931
12932         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12933         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12934         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12935         Reported by Simon Josefsson <simon@josefsson.org>.
12936
12937 2011-03-31  Bruno Haible  <bruno@clisp.org>
12938         and Eric Blake  <eblake@redhat.com>
12939
12940         nonblocking: new module
12941         * modules/nonblocking: New module.
12942         * modules/nonblocking-tests: Likewise.
12943         * lib/nonblocking.h: New file.
12944         * lib/nonblocking.c: Likewise.
12945         * tests/test-nonblocking.c: New test.
12946         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12947
12948 2011-03-30  Bruno Haible  <bruno@clisp.org>
12949
12950         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12951         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12952         instead of 'printf' format for GCC >= 4.4.
12953         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12954         (fprintf, printf, vfprintf, vprintf): Declare with
12955         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12956         the system's vfprintf() function.
12957         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12958
12959 2011-03-30  Eric Blake  <eblake@redhat.com>
12960
12961         passfd: fix scoping bug
12962         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12963         before sendmsg/recvmsg.
12964
12965         passfd: standardize coding conventions
12966         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12967         can be learned at compile time.
12968         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12969         ifdefs.
12970         (sendfd, recvfd): Follow gnulib code conventions.
12971
12972         passfd: fix incorrect sendmsg arguments
12973         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12974         incorrect msg_controllen value.
12975         * modules/passfd-tests (Depends-on): Check for alarm.
12976         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12977         Reported by Bastien ROUCARIES.
12978
12979 2011-03-30  Bruno Haible  <bruno@clisp.org>
12980
12981         c-strcasestr: Relicense under LGPLv2+.
12982         * modules/c-strcasestr (License): Change to LGPLv2+.
12983         Requested by Eric Blake, for libvirt.
12984
12985 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12986
12987         * users.txt: Add libidn2.  Fix libtasn1 link.
12988
12989 2011-03-30  Jim Meyering  <meyering@redhat.com>
12990
12991         tests: readlink* ("",... fails with EINVAL on newer kernels
12992         readlink and readlinkat have typically failed with ENOENT for
12993         the invalid, empty file name,  "".  However, with the advent
12994         of linux-2.6.39, they fail with EINVAL.
12995         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12996         when operating on the empty file name.
12997         * tests/test-readlink.h (test_readlink): Likewise.
12998
12999 2011-03-29  Bruno Haible  <bruno@clisp.org>
13000
13001         Relicense some modules under LGPLv2+, for libidn2.
13002         * modules/array-mergesort (License): Change to LGPLv2+.
13003         * modules/c-strcaseeq (License): Likewise.
13004         * modules/striconveh (License): Likewise.
13005         * modules/striconveha (License): Likewise.
13006         * modules/uniconv/base (License): Likewise.
13007         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13008         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13009         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13010         * modules/unictype/base (License): Likewise.
13011         * modules/unictype/bidiclass-of (License): Likewise.
13012         * modules/unictype/category-M (License): Likewise.
13013         * modules/unictype/category-none (License): Likewise.
13014         * modules/unictype/category-of (License): Likewise.
13015         * modules/unictype/category-test (License): Likewise.
13016         * modules/unictype/category-test-withtable (License): Likewise.
13017         * modules/unictype/combining-class (License): Likewise.
13018         * modules/unictype/joiningtype-of (License): Likewise.
13019         * modules/unictype/scripts (License): Likewise.
13020         * modules/uninorm/base (License): Likewise.
13021         * modules/uninorm/canonical-decomposition (License): Likewise.
13022         * modules/uninorm/composition (License): Likewise.
13023         * modules/uninorm/decompose-internal (License): Likewise.
13024         * modules/uninorm/decomposition-table (License): Likewise.
13025         * modules/uninorm/nfc (License): Likewise.
13026         * modules/uninorm/nfd (License): Likewise.
13027         * modules/uninorm/u32-normalize (License): Likewise.
13028         * modules/unistr/base (License): Likewise.
13029         * modules/unistr/u32-cpy (License): Likewise.
13030         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13031         * modules/unistr/u32-to-u8 (License): Likewise.
13032         * modules/unistr/u32-uctomb (License): Likewise.
13033         * modules/unistr/u8-check (License): Likewise.
13034         * modules/unistr/u8-mblen (License): Likewise.
13035         * modules/unistr/u8-mbtouc (License): Likewise.
13036         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13037         * modules/unistr/u8-mbtoucr (License): Likewise.
13038         * modules/unistr/u8-prev (License): Likewise.
13039         * modules/unistr/u8-strlen (License): Likewise.
13040         * modules/unistr/u8-to-u32 (License): Likewise.
13041         * modules/unistr/u8-uctomb (License): Likewise.
13042         * modules/unitypes (License): Likewise.
13043         Requested by Simon Josefsson.
13044
13045 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13046
13047         lib-symbol-visibility: Add a notice.
13048         * modules/lib-symbol-visibility (Notice): New field.
13049
13050 2011-03-29  Bruno Haible  <bruno@clisp.org>
13051
13052         getaddrinfo: Doc fix.
13053         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13054         section "fixed in Gnulib".
13055
13056 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13057
13058         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13059         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13060
13061 2011-03-26  Bruno Haible  <bruno@clisp.org>
13062
13063         unictype/property-byname: Reduce the number of load-time relocations.
13064         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13065         (UC_PROPERTY_INDEX_*): New enumeration values.
13066         (uc_property_byname): Convert an index from the lookup table to an
13067         uc_property_t.
13068         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13069         values.
13070
13071 2011-03-26  Bruno Haible  <bruno@clisp.org>
13072
13073         unictype/property-byname: Allow omitted word separators and aliases.
13074         * lib/unictype/pr_byname.gperf: Add property names without word
13075         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13076         for 'space'.
13077
13078 2011-03-26  Bruno Haible  <bruno@clisp.org>
13079
13080         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13081         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13082         also hyphens to space.
13083         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13084         without spaces.
13085         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13086
13087 2011-03-26  Bruno Haible  <bruno@clisp.org>
13088
13089         unictype/joiningtype-byname: Recognize long names as well.
13090         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13091         a long name.
13092         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13093         unictype/joiningtype_byname.h.
13094         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13095         * lib/unictype/joiningtype_byname.gperf: New file.
13096         * modules/unictype/joiningtype-byname (Files): Add
13097         lib/unictype/joiningtype_byname.gperf.
13098         (Depends-on): Add gperf.
13099         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13100         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13101         long names.
13102
13103         Tests for module 'unictype/joiningtype-longname'.
13104         * modules/unictype/joiningtype-longname-tests: New file.
13105         * tests/unictype/test-joiningtype_longname.c: New file.
13106
13107         New module 'unictype/joiningtype-longname'.
13108         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13109         * lib/unictype/joiningtype_longname.c: New file.
13110         * modules/unictype/joiningtype-longname: New file.
13111         * modules/unictype/joiningtype-all (Depends-on): Add
13112         unictype/joiningtype-longname.
13113
13114 2011-03-26  Bruno Haible  <bruno@clisp.org>
13115
13116         unictype/bidiclass-byname: Recognize long names as well.
13117         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13118         name.
13119         * lib/unictype/bidi_byname.c: Include <string.h>,
13120         unictype/bidi_byname.h.
13121         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13122         * lib/unictype/bidi_byname.gperf: New file.
13123         * modules/unictype/bidiclass-byname (Files): Add
13124         lib/unictype/bidi_byname.gperf.
13125         (Depends-on): Add gperf.
13126         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13127         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13128         long names.
13129
13130         Tests for module 'unictype/bidiclass-longname'.
13131         * modules/unictype/bidiclass-longname-tests: New file.
13132         * tests/unictype/test-bidi_longname.c: New file.
13133
13134         New module 'unictype/bidiclass-longname'.
13135         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13136         * lib/unictype/bidi_longname.c: New file.
13137         * modules/unictype/bidiclass-longname: New file.
13138         * modules/unictype/bidiclass-all (Depends-on): Add
13139         unictype/bidiclass-longname.
13140
13141 2011-03-26  Bruno Haible  <bruno@clisp.org>
13142
13143         unictype/bidi*: Rename modules.
13144         * modules/unictype/bidiclass-all: Renamed from
13145         modules/unictype/bidicategory-all.
13146         * modules/unictype/bidiclass-name: Renamed from
13147         modules/unictype/bidiclass-name.
13148         (Description): Update.
13149         * modules/unictype/bidiclass-name-tests: Renamed from
13150         modules/unictype/bidicategory-name-tests.
13151         * modules/unictype/bidiclass-byname: Renamed from
13152         modules/unictype/bidicategory-byname.
13153         (Description): Update.
13154         * modules/unictype/bidiclass-byname-tests: Renamed from
13155         modules/unictype/bidicategory-byname-tests.
13156         * modules/unictype/bidiclass-of: Renamed from
13157         modules/unictype/bidicategory-of.
13158         (Description): Update.
13159         * modules/unictype/bidiclass-of-tests: Renamed from
13160         modules/unictype/bidicategory-of-tests.
13161         * modules/unictype/bidiclass-test: Renamed from
13162         modules/unictype/bidicategory-test.
13163         (Description): Update.
13164         * modules/unictype/bidiclass-test-tests: Renamed from
13165         modules/unictype/bidicategory-test-tests.
13166         * modules/unictype/bidicategory-all: New file, a simple redirection.
13167         * modules/unictype/bidicategory-name: Likewise.
13168         * modules/unictype/bidicategory-byname: Likewise.
13169         * modules/unictype/bidicategory-of: Likewise.
13170         * modules/unictype/bidicategory-test: Likewise.
13171         * modules/unictype/property-bidi-* (Dependencies): Update.
13172         * lib/unictype/bidi_*.c: Update comment.
13173
13174 2011-03-26  Bruno Haible  <bruno@clisp.org>
13175
13176         unictype/bidi*: Rename functions, part 2.
13177         * modules/unictype/bidicategory-name (configure.ac): Update required
13178         libunistring version.
13179         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13180
13181 2011-03-25  Bruno Haible  <bruno@clisp.org>
13182
13183         New module 'unictype/combining-class-all'.
13184         * modules/unictype/combining-class-all: New file.
13185
13186         Tests for module 'unictype/combining-class-byname'.
13187         * modules/unictype/combining-class-byname-tests: New file.
13188         * tests/unictype/test-combiningclass_byname.c: New file.
13189
13190         New module 'unictype/combining-class-byname'.
13191         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13192         * lib/unictype/combiningclass_byname.c: New file.
13193         * lib/unictype/combiningclass_byname.gperf: New file.
13194         * modules/unictype/combining-class-byname: New file.
13195
13196         Tests for module 'unictype/combining-class-longname'.
13197         * modules/unictype/combining-class-longname-tests: New file.
13198         * tests/unictype/test-combiningclass_longname.c: New file.
13199
13200         New module 'unictype/combining-class-longname'.
13201         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13202         * lib/unictype/combiningclass_longname.c: New file.
13203         * modules/unictype/combining-class-longname: New file.
13204
13205         Tests for module 'unictype/combining-class-name'.
13206         * modules/unictype/combining-class-name-tests: New file.
13207         * tests/unictype/test-combiningclass_name.c: New file.
13208
13209         New module 'unictype/combining-class-name'.
13210         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13211         * lib/unictype/combiningclass_name.c: New file.
13212         * modules/unictype/combining-class-name: New file.
13213
13214 2011-03-25  Bruno Haible  <bruno@clisp.org>
13215
13216         unictype/combining-class: Rename source files.
13217         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13218         of unictype/combining.h.
13219         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13220         Update.
13221         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13222         * modules/unictype/combining-class (Description): Fix.
13223         (Files, Makefile.am): Update.
13224         * tests/unictype/test-combiningclass.c: Renamed from
13225         tests/unictype/test-combining.c.
13226         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13227
13228 2011-03-25  Bruno Haible  <bruno@clisp.org>
13229
13230         unictype: Update list of canonical combining classes.
13231         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13232
13233 2011-03-25  Bruno Haible  <bruno@clisp.org>
13234
13235         unictype/category-byname: Recognize long names as well.
13236         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13237         a long name.
13238         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13239         unictype/categ_byname.h.
13240         (UC_CATEGORY_INDEX_*): New enumeration values.
13241         (uc_general_category_byname): Use uc_general_category_lookup and
13242         convert from index to value.
13243         * lib/unictype/categ_byname.gperf: New file.
13244         * modules/unictype/category-byname (Files): Add
13245         lib/unictype/categ_byname.gperf.
13246         (Depends-on): Add gperf.
13247         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13248         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13249         long names.
13250
13251         Tests for module 'unictype/category-longname'.
13252         * modules/unictype/category-longname-tests: New file.
13253         * tests/unictype/test-categ_longname.c: New file.
13254
13255         New module 'unictype/category-longname'.
13256         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13257         * lib/unictype/categ_longname.c: New file.
13258         * modules/unictype/category-longname: New file.
13259         * modules/unictype/category-all (Depends-on): Add it.
13260
13261 2011-03-25  Bruno Haible  <bruno@clisp.org>
13262
13263         Tests for module 'unictype/category-LC'.
13264         * modules/unictype/category-LC-tests: New file.
13265         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13266
13267         New module 'unictype/category-LC'.
13268         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13269         (UC_CATEGORY_LC): New declaration.
13270         (UC_CASED_LETTER): New macro.
13271         * lib/gen-uni-tables.c (is_category_LC): New function.
13272         (output_categories): Also handle category LC.
13273         (UC_CATEGORY_MASK_LC): New enumeration value.
13274         (general_category_byname): Also handle category LC.
13275         * lib/unictype/categ_LC.c: New file.
13276         * lib/unictype/categ_LC.h: New file, automatically generated.
13277         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13278         category LC.
13279         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13280         * modules/unictype/category-LC: New file.
13281         * modules/unictype/category-byname (Depends-on): Add
13282         unictype/category-LC.
13283         * modules/unictype/category-all (Depends-on): Likewise.
13284
13285 2011-03-25  Eric Blake  <eblake@redhat.com>
13286
13287         xmalloc: revert yesterday's regression
13288         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13289         realloc's underlying behavior (allowing allocation of zero-size
13290         objects, especially if malloc-gnu is also in use).
13291
13292 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13293
13294         maint.mk: add missing version to VC-tag
13295         * top/maint.mk: git tag was missing actual tag name; add it.
13296
13297         valgrind: do leak checking, and exit with code 1 on error (not 0)
13298         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13299         to VALGRIND.
13300
13301 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13302
13303         posix-modules: say what it does.
13304         * posix-modules: Add a line to the --help output saying what it does.
13305
13306 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13307
13308         xmalloc: Do not leak if underlying realloc is C99 compatible.
13309         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13310         This avoids a leak on C99-based systems.  See
13311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13312
13313 2011-03-24  Eric Blake  <eblake@redhat.com>
13314
13315         realloc: document portability problem
13316         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13317         passing 0 size to realloc.
13318
13319 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13320
13321         doc: update users.txt
13322         * users.txt: Add cvsps, tmpwatch
13323
13324 2011-03-23  Matt Rice  <ratmice@gmail.com>
13325
13326         doc: update users.txt
13327         * users.txt: Add gdb.
13328
13329 2011-03-23  Jim Meyering  <meyering@redhat.com>
13330
13331         doc: update users.txt
13332         Looking through matches up to the following URL (there are still
13333         several more pages), I found several projects that use gnulib:
13334         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13335         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13336         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13337
13338 2011-03-22  Bruno Haible  <bruno@clisp.org>
13339
13340         unictype/bidi*: Rename functions.
13341         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13342         uc_bidi_class, uc_is_bidi_class): New declarations.
13343         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13344         uc_bidi_category_byname.
13345         (uc_bidi_category_byname): New function.
13346         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13347         u_bidi_category_name.
13348         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13349         (uc_bidi_category_name): New function.
13350         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13351         uc_bidi_category.
13352         (uc_bidi_category): New function.
13353         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13354         uc_is_bidi_category. Invoke uc_bidi_class.
13355         (uc_is_bidi_category): New function.
13356         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13357         instead of uc_bidi_category_byname.
13358         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13359         instead of uc_bidi_category_name.
13360         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13361         uc_bidi_category.
13362         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13363         instead of uc_is_bidi_category.
13364
13365 2011-03-21  Bruno Haible  <bruno@clisp.org>
13366
13367         New module 'unictype/joininggroup-all'.
13368         * modules/unictype/joininggroup-all: New file.
13369
13370         Tests for module 'unictype/joininggroup-of'.
13371         * modules/unictype/joininggroup-of-tests: New file.
13372         * tests/unictype/test-joininggroup_of.c: New file.
13373         * tests/unictype/test-joininggroup_of.h: New file, automatically
13374         generated by gen-uni-tables.
13375
13376         New module 'unictype/joininggroup-of'.
13377         * modules/unictype/joininggroup-of: New file.
13378         * lib/unictype/joininggroup_of.c: New file.
13379         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13380         gen-uni-tables.
13381
13382         Tests for module 'unictype/joininggroup-byname'.
13383         * modules/unictype/joininggroup-byname-tests: New file.
13384         * tests/unictype/test-joininggroup_byname.c: New file.
13385
13386         New module 'unictype/joininggroup-byname'.
13387         * modules/unictype/joininggroup-byname: New file.
13388         * lib/unictype/joininggroup_byname.c: New file.
13389         * lib/unictype/joininggroup_byname.gperf: New file.
13390
13391         Tests for module 'unictype/joininggroup-name'.
13392         * modules/unictype/joininggroup-name-tests: New file.
13393         * tests/unictype/test-joininggroup_name.c: New file.
13394
13395         New module 'unictype/joininggroup-name'.
13396         * modules/unictype/joininggroup-name: New file.
13397         * lib/unictype/joininggroup_name.c: New file.
13398         * lib/unictype/joininggroup_name.h: New file.
13399
13400         New module 'unictype/joiningtype-all'.
13401         * modules/unictype/joiningtype-all: New file.
13402
13403         Tests for module 'unictype/joiningtype-of'.
13404         * modules/unictype/joiningtype-of-tests: New file.
13405         * tests/unictype/test-joiningtype_of.c: New file.
13406         * tests/unictype/test-joiningtype_of.h: New file, automatically
13407         generated by gen-uni-tables.
13408
13409         New module 'unictype/joiningtype-of'.
13410         * modules/unictype/joiningtype-of: New file.
13411         * lib/unictype/joiningtype_of.c: New file.
13412         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13413         gen-uni-tables.
13414
13415         Tests for module 'unictype/joiningtype-byname'.
13416         * modules/unictype/joiningtype-byname-tests: New file.
13417         * tests/unictype/test-joiningtype_byname.c: New file.
13418
13419         New module 'unictype/joiningtype-byname'.
13420         * modules/unictype/joiningtype-byname: New file.
13421         * lib/unictype/joiningtype_byname.c: New file.
13422
13423         Tests for module 'unictype/joiningtype-name'.
13424         * modules/unictype/joiningtype-name-tests: New file.
13425         * tests/unictype/test-joiningtype_name.c: New file.
13426
13427         New module 'unictype/joiningtype-name'.
13428         * modules/unictype/joiningtype-name: New file.
13429         * lib/unictype/joiningtype_name.c: New file.
13430
13431         unictype: Add support for Arabic shaping properties.
13432         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13433         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13434         declarations.
13435         (UC_JOINING_GROUP_*): New enumeration values.
13436         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13437         declarations.
13438         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13439         (unicode_joining_type): New variable.
13440         (UC_JOINING_GROUP_*): New enumeration values.
13441         (unicode_joining_group): New variable.
13442         (fill_arabicshaping, joining_type_as_c_identifier,
13443         output_joining_type_test, output_joining_type,
13444         joining_group_as_c_identifier, output_joining_group_test,
13445         output_joining_group): New functions.
13446         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13447         fill_arabicshaping and output_joining_type_test, output_joining_type,
13448         output_joining_group_test, output_joining_group.
13449         Reported by Simon Josefsson.
13450
13451 2011-03-21  Jim Meyering  <meyering@redhat.com>
13452
13453         strftime: fix a bug in yesterday's change
13454         * lib/strftime.c (add): Accommodate width's initial value of -1.
13455         Otherwise, nstrftime would copy uninitialized data into
13456         the result buffer.
13457
13458 2011-03-21  Jim Meyering  <meyering@redhat.com>
13459
13460         tests: add strftime-tests module
13461         * tests/test-strftime.c: New file.
13462         * modules/strftime-tests: New module.
13463
13464 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         strftime: don't assume a byte count fits in 'int'
13467         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13468         found this problem by static analysis, using gcc -Wstrict-overflow
13469         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13470         on an integer overflow having undefined behavior, but it turns out
13471         that the argument is a size, which might not fit in 'int' anyway,
13472
13473 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         stdio: don't require ignore_value around fwrite
13476
13477         This patch works around libc bug 11959
13478         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13479         Without this patch, applications must often write
13480         ignore_value (fwrite (...)) even though the ignore_value is
13481         not helpful here.  It's common to write many objects, using
13482         fwrite/printf/etc., and then use ferror to detect output error.
13483
13484         I considered making this patch optional, but decided against it,
13485         because libc is obviously being inconsistent here: there is no
13486         reason libc should insist that user code must inspect fwrite
13487         return's value without also insisting that it inspect printf's,
13488         putchar's, etc.  If user code wants to have a strict style where
13489         all these functions' values are checked (so that ferror need not
13490         be checked), we could add support for that style in a new gnulib
13491         module, but in the meantime it's better to be consistent and to
13492         support common usage.
13493
13494         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13495         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13496         that we are compiling in checking mode, and if not C++, and
13497         if not already wrapping fwrite for some other reason.
13498         (fwrite): #define to rpl_fwrite if the latter is defined.
13499
13500 2011-03-20  Bruno Haible  <bruno@clisp.org>
13501
13502         verror: Fix compilation error introduced on 2011-02-13.
13503         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13504         instead of __attribute__.
13505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13506
13507 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13508             Bruno Haible  <bruno@clisp.org>
13509
13510         socklen: do not depend on sys_socket
13511         While trying to modify Emacs to use gnulib's socklen module,
13512         I discovered a circular dependency: socklen depends on sys_socket
13513         and vice versa.  Emacs can use socklen, but it does not need
13514         sys_socket because it has its own substitute for sys/socket.h.
13515         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13516         gl_TYPE_SOCKLEN_T.
13517         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13518         gl_PREREQ_SYS_H_SOCKET.
13519         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13520         gl_PREREQ_SYS_H_SOCKET.
13521         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13522         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13523         * modules/socklen (Depends-on): Do not depend on sys_socket.
13524         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13525
13526 2011-03-20  Jim Meyering  <meyering@redhat.com>
13527
13528         maint.mk: sort file names *after* new transformation
13529         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13530         prefix would have led to an unwarranted failure in GNU parted.
13531         Sort after that transformation.
13532
13533 2011-03-19  Jim Meyering  <meyering@redhat.com>
13534
13535         maint.mk: fix po-file syntax-check rule
13536         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13537         Patch by Bruno Haible.
13538
13539 2011-03-19  Bruno Haible  <bruno@clisp.org>
13540
13541         socklen: Update comment.
13542         * m4/socklen.m4: Update comment about platforms.
13543
13544 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13545             Bruno Haible  <bruno@clisp.org>
13546
13547         inet_ntop, inet_pton: Simplify.
13548         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13549         documented to provide socklen_t and we already depend on sys_socket.
13550         * modules/inet_pton (Depends-on): Likewise.
13551         * lib/arpa_inet.in.h: Adjust comment.
13552
13553 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13554             Bruno Haible  <bruno@clisp.org>
13555
13556         netdb: Simplify.
13557         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13558         documented to provide socklen_t and we already depend on sys_socket.
13559         * lib/netdb.in.h: Adjust comment.
13560
13561 2011-03-19  Bruno Haible  <bruno@clisp.org>
13562
13563         sys_socket, netdb: Document problem with socklen_t.
13564         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13565         platforms.
13566         * doc/posix-headers/netdb.texi: Likewise.
13567
13568 2011-03-18  Eric Blake  <eblake@redhat.com>
13569
13570         maint.mk: let po check work in VPATH build
13571         * top/maint.mk (po_file): Allow cfg.mk override.
13572         (sc_po_check): Allow VPATH use.
13573         Reported by Jiri Denemark.
13574
13575 2011-03-16  Jim Meyering  <meyering@redhat.com>
13576
13577         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13578         Before, you would have had to create one .x-sc_ file per rule in order
13579         to exempt offending files.  Now, you may instead use a Make variable --
13580         usually defined in cfg.mk -- whose name identifies the affected rule.
13581         * top/maint.mk (_sc_excl): Define.
13582         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13583         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13584
13585 2011-03-13  Bruno Haible  <bruno@clisp.org>
13586
13587         ignore-value tests: Avoid warnings.
13588         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13589         empty for gcc < 3.4.
13590
13591 2011-03-13  Bruno Haible  <bruno@clisp.org>
13592
13593         passfd: Fix link error on Solaris.
13594         * modules/passfd (Description): Correct.
13595         (Depends-on): Add socketlib.
13596         (Link): New section.
13597         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13598
13599 2011-03-13  Bruno Haible  <bruno@clisp.org>
13600
13601         passfd: Fix link error on AIX 5.2.
13602         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13603
13604 2011-03-13  Bruno Haible  <bruno@clisp.org>
13605
13606         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13607         * lib/sys_socket.in.h: Include <stddef.h>.
13608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13609         CMSG_FIRSTHDR. Remove unused variable.
13610
13611 2011-03-13  Bruno Haible  <bruno@clisp.org>
13612
13613         passfd: Fix compilation error on OpenBSD.
13614         * lib/passfd.c: Include <sys/uio.h>.
13615
13616 2011-03-13  Bruno Haible  <bruno@clisp.org>
13617
13618         passfd test: Fix warnings.
13619         * tests/test-passfd.c: Include <sys/wait.h>.
13620         (main): Fix typo.
13621
13622 2011-03-13  Bruno Haible  <bruno@clisp.org>
13623
13624         passfd module, part 4, tweaks.
13625         * tests/test-passfd.c: Reorder includes.
13626         (main): Fix perror and printf calls.
13627
13628 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13629
13630         passfd module, part 4.
13631         * modules/passfd-tests: New file.
13632         * tests/test-passfd.c: New file.
13633
13634 2011-03-13  Jim Meyering  <meyering@redhat.com>
13635
13636         Makefile: rely on GNU make; derive syntax-check rule names
13637         Rather than requiring that each sc_ rule be listed as a dependent
13638         of "check", use features of GNU make to derive the list.
13639         * Makefile (syntax-check-rules): Define.
13640         (check): Depend on the new variable, not the hard-coded list.
13641
13642 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13643             Bruno Haible  <bruno@clisp.org>
13644
13645         passfd module, part 3.
13646         * lib/passfd.h (recvfd): Add a flags argument.
13647         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13648         (recvfd): Add a flags argument.
13649         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13650         exists.
13651         * modules/passfd (Depends-on): Add cloexec.
13652         Suggested by Eric Blake.
13653
13654 2011-03-13  Bruno Haible  <bruno@clisp.org>
13655
13656         passfd module, part 2, tweaks.
13657         * modules/passfd (Files): Reorder.
13658         (Depends-on): Remove errno.
13659         (Include): Remove <sys/socket.h>, <sys/un.h>.
13660         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13661         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13662         specification header. Include <sys/socket.h> always. Don't include
13663         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13664         (sendfd): Clarify that it sets errno when it fails.
13665         (recvfd): Fix specification.
13666
13667 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13668
13669         passfd module, part 2.
13670         * modules/passfd: New file.
13671         * lib/passfd.h: New file.
13672         * lib/passfd.c: New file.
13673
13674 2011-03-12  Bruno Haible  <bruno@clisp.org>
13675
13676         wcswidth, mbswidth: Avoid integer overflow.
13677         * lib/wcswidth.c: Include <limits.h>.
13678         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13679         * lib/mbswidth.c: Include <limits.h>.
13680         (mbsnwidth): Avoid 'int' overflow.
13681         Reported by Jim Meyering.
13682
13683 2011-03-12  Bruno Haible  <bruno@clisp.org>
13684
13685         futimens, utimensat: Avoid endless recursion on Solaris 10.
13686         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13687         Solaris.
13688         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13689         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13690
13691 2011-03-11  Jim Meyering  <meyering@redhat.com>
13692
13693         maint.mk: relax a regexp to accommodate other formatting styles
13694         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13695         between "ngettext" and the following "(".
13696
13697 2011-03-11  Pádraig Brady <P@draigBrady.com>
13698
13699         maint.mk: suppress a false positive warning
13700         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13701         diagnostics are marked with ngettext.
13702
13703 2011-03-10  Eric Blake  <eblake@redhat.com>
13704
13705         wchar: add explicit dependencies, for Tru64
13706         * modules/mbmemcasecoll (Depends-on): Add wchar.
13707         * modules/mbtowc (Depends-on): Likewise.
13708         * modules/vasnprintf (Depends-on): Likewise.
13709         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13710         * modules/wctomb (Depends-on): Likewise.
13711         Reported by Peter O'Gorman.
13712
13713 2011-03-08  Bruno Haible  <bruno@clisp.org>
13714
13715         passfd module, part 1, tweaks.
13716         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13717         Improve indentation. Improve AC_MSG_CHECKING messages.
13718         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13719         gl_SOCKET_FAMILIES.
13720
13721 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13722
13723         passfd module, part 1.
13724         * m4/afunix.m4: New file.
13725         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13726         sockets.
13727
13728 2011-03-08  Bruno Haible  <bruno@clisp.org>
13729
13730         regex-quote: New API.
13731         * lib/regex-quote.h: Include <stdbool.h>.
13732         (struct regex_quote_spec): New type.
13733         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13734         New declarations.
13735         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13736         'const struct regex_quote_spec *' argument.
13737         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13738         (pcre_special): New constant.
13739         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13740         New functions.
13741         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13742         'const struct regex_quote_spec *' argument.
13743         * modules/regex-quote (Depends-on): Add stdbool.
13744         * tests/test-regex-quote.c (check): Update for new API. Add test for
13745         anchored results.
13746         * NEWS: Mention the API change.
13747         Reported by Reuben Thomas and Eric Blake.
13748
13749 2011-03-06  Bruno Haible  <bruno@clisp.org>
13750
13751         regex-quote: Fix creation of POSIX extended regular expressions.
13752         * lib/regex-quote.c (ere_special): Add grouping and alternation
13753         operators.
13754
13755 2011-03-05  Bruno Haible  <bruno@clisp.org>
13756
13757         doc: Improve doc regarding autopoint vs. gnulib.
13758         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13759         disable autopoint while running autoreconf.
13760         Suggested by Ralf Wildenhues.
13761
13762 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13763
13764         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13765         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13766
13767 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13768
13769         parse-duration: remove xalloc.h dependency
13770         * lib/parse-duration.c (parse_period): handle NULL return from
13771         strdup instead of calling xstrdup().
13772         * modules/parse-duration: remove "xalloc" dependency
13773
13774 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13775
13776         bootstrap: honor m4_base when running aclocal
13777         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13778
13779 2011-03-02  Jim Meyering  <meyering@redhat.com>
13780
13781         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13782         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13783         on request from Matt Booth.
13784
13785 2011-03-01  Eric Blake  <eblake@redhat.com>
13786
13787         test-link: work on Hurd
13788         * tests/test-link.h (test_link): Hurd rejects linking directories
13789         with EISDIR instead of the POSIX-mandated EPERM.
13790
13791 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13792
13793         stdio: simplify by moving files to printf-posix, sigpipe
13794         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13795         since this symbol is needed only if printf is replaced.
13796         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13797         Require gl_ASM_SYMBOL_PREFIX.
13798         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13799         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13800         (Depends-on): Add 'raise'.
13801         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13802         * modules/stdio (Files): Remove lib/stdio-write.c,
13803         m4/asm-underscore.m4.
13804         (Depends-on): Remove 'raise'.
13805
13806         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13807         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13808         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13809         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13810
13811 2011-02-28  Bruno Haible  <bruno@clisp.org>
13812
13813         localcharset: Assume ANSI C behaviour of free().
13814         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13815         calling free().
13816         Suggested by Simon Josefsson <simon@josefsson.org>.
13817
13818 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13819             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13820             Bruno Haible  <bruno@clisp.org>  (tiny change)
13821
13822         On Cygwin, use /proc file system instead of win32 API.
13823         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13824         Win32 file names.
13825         (DllMain): Simplify by removing Cygwin specific code.
13826         (find_shared_library_fullname): Use Linux specific implementation also
13827         for Cygwin.
13828         (get_shared_library_fullname): Update accordingly.
13829         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13830         Win32 file names.
13831         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13832         Cygwin specific code.
13833
13834 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13835             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13836
13837         Fix OpenMP flag detection for various Fortran compilers.
13838         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13839         OpenMP-conditional compilation construct, to force compile
13840         failure with missing OpenMP flag.
13841         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13842
13843 2011-02-25  Eric Blake  <eblake@redhat.com>
13844
13845         strstr: expand test coverage
13846         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13847         compilation.
13848         * tests/test-memmem.c (main): Duplicate tests.
13849         * tests/test-strcasestr.c (main): Likewise.
13850         * tests/test-c-strcasestr.c (main): Likewise.
13851
13852 2011-02-25  Jim Meyering  <meyering@redhat.com>
13853
13854         maint.mk: detect missing-NL-at-EOF, too
13855         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13856         it also detects when a file lacks a newline at EOF.
13857         (require_exactly_one_NL_at_EOF_): Renamed from
13858         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13859         since people may well have .x-sc_... file names tied to the
13860         existing name.  Suggested by Eric Blake.
13861
13862 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13863
13864         dirname: move m4/dos.m4 functionality into lib/dosname.h
13865
13866         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13867         extracts symbols from it, puts them into config.h; but it's much
13868         easier to use the symbols directly.  filename.h already does this,
13869         but it disagrees with dos.m4 in some respects.  This patch
13870         introduces a different include file dosname.h that packages up
13871         dos.m4, and then later we can work on merging filename.h and
13872         dosname.h.  Applications that need only the easy-to-configure
13873         symbols should consider including dosname.h rather than dirname.h.
13874         * NEWS: Mention incompatible changes.
13875         * m4/dos.m4: Remove.
13876         * lib/dosname.h, modules/dosname: New files.
13877         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13878         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13879         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13880         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13881         Include dosname.h, not dirname.h.
13882         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13883         Include dosname.h, for definitions of symbols like ISSLASH
13884         that used to be in config.h.
13885         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13886         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13887         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13888         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13889         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13890         * modules/rmdir (Files): Likewise.
13891         * modules/stat (Files): Likewise.
13892         * modules/unlink (Files): Likewise.
13893         * modules/dirname-lgpl (Depends-on): Add dosname.
13894         * modules/lstat (Depends-on): Likewise.
13895         * modules/openat (Depends-on): Likewise.
13896         * modules/rmdir (Depends-on): Likewise.
13897         * modules/savewd (Depends-on): Likewise.
13898         * modules/stat (Depends-on): Likewise.
13899         * modules/unlink (Depends-on): Likewise.
13900         * modules/openat (Depends-on): Remove dirname-lgpl.
13901         * modules/savewd (Depends-on): Likewise.
13902         * tests/test-dirname.c: Do not use removed symbols like
13903         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13904         the remaining symbols, e.g., ISSLASH ('\\').
13905
13906 2011-02-25  Eric Blake  <eblake@redhat.com>
13907
13908         strstr: revert patches that introduced bug and pessimization
13909         * lib/str-two-way.h: Add another reference.
13910         (two_way_short_needle, two_way_long_needle): Revert changes from
13911         2011-02-24; they pessimize search speed.
13912         (critical_factorization): Partially revert changes from
13913         2010-06-22; they violate the requirement that the left half of the
13914         needle be smaller than the period of the needle.
13915
13916 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         filenamecat: remove unnecessary dependency on dirname-lgpl
13919         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13920         is no direct dependency, just an indirect one via filenamecat-lgpl.
13921
13922         remove: remove unnecessary use of m4/dos.m4
13923         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13924         * modules/remove (FILES): Remove m4/dos.m4.
13925
13926         * lib/openat-proc.c: Don't include dirname.h; not needed.
13927
13928         backupfile: remove unnecessary use of m4/dos.m4
13929         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13930         of its symbols are used by the backupfile code.  backupfile.c does
13931         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13932         for the rare case of programs that want all their backup file
13933         names to live within 8+3 limits, and dos.m4 doesn't address that.
13934         * modules/backupfile (Files): Remove m4/dos.m4.
13935
13936 2011-02-24  Jim Meyering  <meyering@redhat.com>
13937
13938         strstr: fix a bug whereby strstr would mistakenly return NULL
13939         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13940         in period calculation.
13941         (two_way_long_needle): Likewise.
13942         The original problem was reported by Mike Stump in
13943         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13944         Ralf Wildenhues provided the short needle and haystack.
13945         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13946         Add a more involved test to trigger the bug in two_way_long_needle.
13947
13948 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13949
13950         gnulib-tool: remove use of bold display in help screen
13951         * gnulib-tool (func_usage): Do not use bold display anymore in the
13952         help screen.  That was just meant to be a temporary emphasis for a
13953         backward-incompatible change.
13954
13955 2011-02-23  Bruno Haible  <bruno@clisp.org>
13956
13957         Fix misindentation of preprocessor directives.
13958         * lib/argp-namefrob.h: Reindent preprocessor directives.
13959         * lib/getopt_int.h (struct _getopt_data): Likewise.
13960         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13961         * lib/vasnprintf.c (decode_long_double): Likewise.
13962         * tests/test-argmatch.c: Insert blank lines, for clarity.
13963         * tests/test-exclude.c: Likewise.
13964
13965 2011-02-22  Bruno Haible  <bruno@clisp.org>
13966
13967         ioctl: Fix for MacOS X in 64-bit mode.
13968         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13969         value.
13970         Suggested by Eric Blake.
13971         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13972
13973 2011-02-22  Jim Meyering  <meyering@redhat.com>
13974
13975         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13976         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13977         in lib/.
13978
13979 2011-02-22  Eric Blake  <eblake@redhat.com>
13980
13981         maint: avoid any CDPATH issue
13982         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13983
13984         maint: adjust cpp indentation for my modules, as well
13985         * Makefile (sc_cpp_indent_check): Add my name.
13986         * lib/fbufmode.c: Filter through cppi.
13987         * lib/fpurge.c: Likewise.
13988         * lib/freadable.c: Likewise.
13989         * lib/freading.c: Likewise.
13990         * lib/fwritable.c: Likewise.
13991         * lib/fwriting.c: Likewise.
13992         * lib/sigaction.c: Likewise.
13993
13994 2011-02-22  Jim Meyering  <meyering@redhat.com>
13995
13996         maint: adjust cpp indentation to reflect nesting depth
13997         I.e., in a block of code that begins with an unnested "#if",
13998         put one space between the "#" in column 1 and following token.
13999         For example,
14000         -#include <sys/vfs.h>
14001         +# include <sys/vfs.h>
14002         Do this only in .c files that are part of a module I maintain.
14003         * lib/linkat.c: Filter through cppi.
14004         * lib/nanosleep.c: Likewise.
14005         * lib/openat.c: Likewise.
14006         * lib/openat-die.c: Likewise.
14007         * lib/dup3.c: Likewise.
14008         * lib/fchownat.c: Likewise.
14009         * lib/flock.c: Likewise.
14010         * lib/fsync.c: Likewise.
14011         * lib/fts.c: Likewise.
14012         * lib/getpass.c: Likewise.
14013         * lib/gettimeofday.c: Likewise.
14014         * lib/userspec.c: Likewise.
14015         * Makefile (sc_cpp_indent_check): New rule, to check this.
14016
14017 2011-02-22  Bruno Haible  <bruno@clisp.org>
14018
14019         New module 'wctomb'.
14020         * lib/stdlib.in.h (wctomb): New declaration.
14021         * lib/wctomb.c: New file.
14022         * lib/wctomb-impl.h: New file.
14023         * m4/wctomb.m4: New file.
14024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14025         REPLACE_WCTOMB.
14026         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14027         REPLACE_WCTOMB.
14028         * modules/wctomb: New file.
14029         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14030         * doc/posix-functions/wctomb.texi: Mention the new module.
14031         * modules/wctob (Depends-on): Add wctomb.
14032
14033 2011-02-22  Bruno Haible  <bruno@clisp.org>
14034
14035         New module 'mbtowc'.
14036         * lib/stdlib.in.h (mbtowc): New declaration.
14037         * lib/mbtowc.c: New file.
14038         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14039         * m4/mbtowc.m4: New file.
14040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14041         REPLACE_MBTOWC.
14042         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14043         REPLACE_MBTOWC.
14044         * modules/mbtowc: New file.
14045         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14046         * doc/posix-functions/mbtowc.texi: Mention the new module.
14047         * modules/btowc (Depends-on): Add mbtowc.
14048
14049 2011-02-22  Bruno Haible  <bruno@clisp.org>
14050
14051         wcrtomb: Add more tests for native Windows platforms.
14052         * tests/test-wcrtomb-w32-1.sh: New file.
14053         * tests/test-wcrtomb-w32-2.sh: New file.
14054         * tests/test-wcrtomb-w32-3.sh: New file.
14055         * tests/test-wcrtomb-w32-4.sh: New file.
14056         * tests/test-wcrtomb-w32-5.sh: New file.
14057         * tests/test-wcrtomb-w32.c: New file.
14058         * modules/wcrtomb-tests (Files): Add them.
14059         (Makefile.am): Arrange to run these tests.
14060         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14061         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14062
14063 2011-02-20  Bruno Haible  <bruno@clisp.org>
14064
14065         wcrtomb: Enhance test.
14066         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14067
14068 2011-02-20  Bruno Haible  <bruno@clisp.org>
14069
14070         mbrtowc: Tiny optimization.
14071         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14072
14073 2011-02-20  Jim Meyering  <meyering@redhat.com>
14074
14075         test-exclude.c: remove unmatched #endif
14076         * tests/test-exclude.c: Remove stray #endif, left over from
14077         the change of a week ago.
14078
14079 2011-02-19  Jim Meyering  <meyering@redhat.com>
14080
14081         git-version-gen: skip "-dirty" check when appropriate
14082         * build-aux/git-version-gen: Don't run any git commands when the
14083         version string comes from .tarball-version.  Prior to this, we
14084         would run git update-index --refresh even from a just-unpacked
14085         tarball directory, and that could affect a .git/ directory in a
14086         parent of the build directory.  Reported by Mike Frysinger.
14087
14088 2011-02-19  Bruno Haible  <bruno@clisp.org>
14089
14090         unictype/property-byname: Reduce the size of the 'data' segment.
14091         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14092
14093 2011-02-19  Bruno Haible  <bruno@clisp.org>
14094
14095         unictype/scripts: Reduce the size of the 'data' segment.
14096         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14097         '%pic'.
14098         * lib/unictype/scripts_byname.gperf: Regenerated.
14099
14100 2011-02-19  Bruno Haible  <bruno@clisp.org>
14101
14102         stdint: Update documentation.
14103         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14104
14105 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14106
14107         stdint: omit redundant check for wchar.h
14108         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14109         always tests whether wchar.h exists, so remove the now-redundant test.
14110
14111 2011-02-18  Bruno Haible  <bruno@clisp.org>
14112
14113         stdint: Cut dependency to module 'wchar'.
14114         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14115         include the necessary prerequisites.
14116         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14117         * modules/stdint (Depends-on): Remove wchar.
14118         (Makefile.am): Substitute HAVE_WCHAR_H.
14119         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14120
14121 2011-02-18  Eric Blake  <eblake@redhat.com>
14122
14123         longlong: skip, rather than fail, on cross-compilation
14124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14125         when cross-compiling; regression from 2011-02-16.
14126
14127 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14128
14129         * NEWS: Mention 2011-02-08 change to stdlib.
14130
14131 2011-02-17  Bruno Haible  <bruno@clisp.org>
14132
14133         getloadavg: Add comments about platforms.
14134         * m4/getloadavg.m4: Add comment.
14135         * lib/getloadavg.c: Likewise.
14136
14137 2011-02-17  Bruno Haible  <bruno@clisp.org>
14138
14139         getloadavg: Fix link error on Solaris 2.6.
14140         * modules/getloadavg (Link): New section.
14141         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14142         linking test-getloadavg.
14143         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14144         getloadavg.
14145
14146 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14147
14148         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14149         It was 'int', but this doesn't match the IRIX 6.5 manual.
14150         Suggested by Bruno Haible in
14151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14152
14153 2011-02-17  Bruno Haible  <bruno@clisp.org>
14154
14155         havelib: Fix comments.
14156         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14157         change.
14158
14159 2011-02-17  Bruno Haible  <bruno@clisp.org>
14160
14161         havelib: Update config.rpath.
14162         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14163
14164 2011-02-17  Bruno Haible  <bruno@clisp.org>
14165
14166         getloadavg test: Add some plausibility checks.
14167         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14168         is improbable.
14169
14170 2011-02-16  Eric Blake  <eblake@redhat.com>
14171
14172         maintainer-makefile: make syntax-check a no-op from tarballs
14173         * top/maint.mk (no-vc-detected): New rule.
14174         (local-checks-available): Use it to avoid hanging if someone tries
14175         'make syntax-check' from a tarball.  Also append to any non-syntax
14176         checks already defined in cfg.mk.
14177
14178 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14179
14180         longlong: tune, particularly for common case of c99
14181
14182         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14183         or running anything if c99, or if unsigned long long int does not
14184         work.  In either case, we know the answer without further tests.
14185         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14186         it at most once, and use its results for both long long int and
14187         unsigned long long int.  This is more likely to be efficient in
14188         the common case where the program wants to check for both long
14189         long int and unsigned long long int.
14190         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14191         since the answer is already known.
14192
14193 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14194
14195         getloadavg: set errno
14196         * lib/getloadavg.c: Set errno when returning -1.  If no other
14197         error number looks appropriate, set it to ENOSYS if the getloadavg
14198         looks like it can't possibly ever work, ENOTSUP otherwise.
14199         Suggested by Bruno Haible in
14200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14201
14202         getloadavg: trim unused parts and speed up 'configure'
14203         * NEWS: Document this.
14204         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14205         always compiled if getloadavg is absent.
14206         Move test code to ...
14207         * tests/test-getloadavg.c: New file, containing previous
14208         contents of test from lib/getloadavg.c.  It also contains
14209         suggestions by Bruno Haible in
14210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14211         * modules/getloadavg-tests: New file.
14212         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14213         Do tests in the same order as they're needed for getloadavg.c.
14214         Omit setgid-related tests that generate symbols KMEM_GROUP,
14215         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14216         Do only the tests that are needed to see whether the system has
14217         getloadavg, moving the other tests into ...
14218         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14219         NLIST_NAME_UNION; nobody should be using it.  Do not define
14220         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14221         relevant, as the user of this module shouldn't care how getloadavg
14222         is implemented.
14223
14224         getloadavg: omit unused var
14225         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14226
14227 2011-02-15  Jim Meyering  <meyering@redhat.com>
14228
14229         doc: update users.txt
14230         * users.txt: Update iwhd's URL.
14231
14232 2011-02-13  Bruno Haible  <bruno@clisp.org>
14233
14234         Consistent macro naming for macros that use GCC __attribute__.
14235         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14236         _ATTRIBUTE_NONNULL_.
14237         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14238         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14239         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14240         ATTRIBUTE_DEPRECATED.
14241         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14242         ATTRIBUTE_NORETURN.
14243         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14244         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14245         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14246         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14247         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14248         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14249         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14250         ATTRIBUTE_SENTINEL.
14251         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14252         ATTRIBUTE_RETURN_CHECK.
14253         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14254         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14255         ATTRIBUTE_NORETURN.
14256         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14257         Reported by Paul Eggert.
14258
14259 2011-02-13  Bruno Haible  <bruno@clisp.org>
14260
14261         Don't interfere with a program's definition of __attribute__.
14262         * lib/argp.h (__attribute__): Remove definition.
14263         (_GL_ATTRIBUTE_FORMAT): New macro.
14264         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14265         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14266         (_GL_ATTRIBUTE_FORMAT): New macro.
14267         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14268         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14269         GCC 3 or newer.
14270         * lib/error.h (__attribute__): Remove definition.
14271         (_GL_ATTRIBUTE_FORMAT): New macro.
14272         (error, error_at_line): Use it.
14273         * lib/hash.h (__attribute__): Remove definition.
14274         (ATTRIBUTE_WUR): Update definition. Define always.
14275         * lib/openat.h (__attribute__): Remove definition.
14276         (ATTRIBUTE_NORETURN): Update definition. Define always.
14277         * lib/sigpipe-die.h (__attribute__): Remove definition.
14278         (ATTRIBUTE_NORETURN): Update definition. Define always.
14279         * lib/vasnprintf.h (__attribute__): Remove definition.
14280         (_GL_ATTRIBUTE_FORMAT): New macro.
14281         (asnprintf, vasnprintf): Use it.
14282         * lib/xalloc.h (__attribute__): Remove definition.
14283         (ATTRIBUTE_NORETURN): Update definition. Define always.
14284         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14285         * lib/xmemdup0.h (__attribute__): Remove definition.
14286         (ATTRIBUTE_NORETURN): Update definition. Define always.
14287         * lib/xprintf.h (__attribute__): Remove definition.
14288         (_GL_ATTRIBUTE_FORMAT): New macro.
14289         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14290         * lib/xstrtol.h (__attribute__): Remove definition.
14291         (ATTRIBUTE_NORETURN): Update definition. Define always.
14292         * lib/xvasprintf.h (__attribute__): Remove definition.
14293         (_GL_ATTRIBUTE_FORMAT): New macro.
14294         (xasprintf, xvasprintf): Use it.
14295         * tests/test-argmatch.c (__attribute__): Remove definition.
14296         (ATTRIBUTE_NORETURN): Update definition. Define always.
14297         * tests/test-exclude.c (__attribute__): Remove definition.
14298         (ATTRIBUTE_NORETURN): Update definition. Define always.
14299         Reported by Paul Eggert.
14300
14301 2011-02-13  Bruno Haible  <bruno@clisp.org>
14302
14303         mbrtowc: Add more tests for native Windows platforms.
14304         * tests/test-mbrtowc-w32-1.sh: New file.
14305         * tests/test-mbrtowc-w32-2.sh: New file.
14306         * tests/test-mbrtowc-w32-3.sh: New file.
14307         * tests/test-mbrtowc-w32-4.sh: New file.
14308         * tests/test-mbrtowc-w32-5.sh: New file.
14309         * tests/test-mbrtowc-w32.c: New file.
14310         * modules/mbrtowc-tests (Files): Add them.
14311         (Makefile.am): Arrange to run these tests.
14312         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14313         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14314
14315 2011-02-13  Bruno Haible  <bruno@clisp.org>
14316
14317         mbrtowc: Work around native Windows bug.
14318         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14319         guess when no suitable locale for testing was found.
14320         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14321
14322 2011-02-13  Bruno Haible  <bruno@clisp.org>
14323
14324         mbsinit: Work around mingw bug.
14325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14326         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14327         Windows.
14328         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14329
14330 2011-02-13  Bruno Haible  <bruno@clisp.org>
14331
14332         mbsinit: Don't crash for a NULL argument.
14333         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14334         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14335
14336 2011-02-13  Bruno Haible  <bruno@clisp.org>
14337
14338         Don't interfere with a program's definition of __attribute__.
14339         * lib/stdio.in.h (__attribute__): Remove definition.
14340         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14341         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14342         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14343         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14344         * lib/string.in.h (__attribute__): Remove definition.
14345         Reported by Paul Eggert.
14346
14347 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14348
14349         stdlib: don't get in the way of non-GCC __attribute__
14350         See thread starting at
14351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14352         Revert previous stdlib change, installing the following instead:
14353         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14354         to get in the way of a non-GCC compiler that supports __attribute__.
14355         (_GL_ATTRIBUTE_RETURN): New macro.
14356         (_Exit): Use it instead of __attribute__.
14357
14358 2011-02-12  Bruno Haible  <bruno@clisp.org>
14359
14360         quotearg test: Avoid test failure on mingw.
14361         * tests/test-quotearg.sh: Convert the locale identifier from native
14362         Windows syntax to Unix syntax.
14363
14364 2011-02-12  Bruno Haible  <bruno@clisp.org>
14365
14366         setlocale: Prefer gnulib's override over libintl's override.
14367         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14368         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14369         GNULIB_defined_setlocale is set.
14370
14371 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14372
14373         stdlib: support non-GCC __attribute__
14374
14375         Fix a serious and tricky problem encountered when attempting to
14376         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14377         5.5, but it crashed due to memory corruption on Solaris 10 with
14378         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14379         bits that are otherwise zero.  This tagging is optional inside
14380         Emacs but is preferred and is used when __attribute__ ((__aligned
14381         (8))) works, as it does with both recent-enough GCC and with Sun C
14382         5.11.  However, Sun C 5.11 is not GCC and does not #define
14383         __GNUC__ and __GNUC_MINOR__.
14384
14385         When I added the getloadavg module to Emacs, it brought in
14386         stdlib.in.h, which contained this fragment:
14387
14388            #ifndef __attribute__
14389            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14390            #  define __attribute__(Spec)   /* empty */
14391            # endif
14392            #endif
14393
14394         When files that include <stdlib.h> were compiled with Sun C 5.11,
14395         the above code disabled __attribute__ ((__aligned (8))), which
14396         caused variables to not be properly aligned, which eventually led
14397         to the pointer corruption mentioned above.  (This was a bit hard
14398         to diagnose, unfortunately.)
14399
14400         Several "#define __attribute__(X) /* empty */" code snippets need
14401         to be eradicated from Gnulib to work with non-GCC compilers that
14402         support __attribute__.  The Autoconf way to do this is to test for
14403         each kind of attribute that we want support for, and selectively
14404         enable that in source code.
14405
14406         Fix this problem just for stdlib.h, by adding a test for the
14407         __noreturn__ attribute, and change stdlib.in.h to use that test
14408         when needed.  This technique can be easily generalized to the
14409         other *.in.h files and attributes, and a similar technique can be
14410         used for *.h and *.c files.  This patch is enough to solve the
14411         problem for Emacs + getloadavg, and I thought I'd publish it for
14412         feedback before undertaking further, similar fixes in other
14413         modules.
14414
14415         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14416         because it's not needed for stdlib.h.  It merely substitutes the
14417         value directly into stdlib.h.  We may well need to #define it, or
14418         similar symbols, for other modules, but it's nice to also have an
14419         option to not #define it for applications like Emacs that do not
14420         need it.
14421
14422         * lib/stdlib.in.h (__attribute__): Do not #define.
14423         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14424         be defined only if the _Exit module is also used.
14425         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14427         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14428         platforms.
14429         * modules/_Exit (Files): Add m4/attribute.m4.
14430         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14431         * m4/attribute.m4: New file.
14432
14433 2011-02-12  Bruno Haible  <bruno@clisp.org>
14434
14435         wcsrtombs: Work around bug on native Windows.
14436         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14437         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14438         instead of len.
14439         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14440
14441 2011-02-12  Bruno Haible  <bruno@clisp.org>
14442
14443         mbsrtowcs: Work around bug on native Windows.
14444         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14445         against mingw bug.
14446         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14447
14448 2011-02-12  Bruno Haible  <bruno@clisp.org>
14449
14450         Avoid setlocale bugs in tests.
14451         * modules/btowc (Dependencies): Add setlocale.
14452         * modules/c-strcase (Dependencies): Likewise.
14453         * modules/mbmemcasecmp (Dependencies): Likewise.
14454         * modules/mbmemcasecoll (Dependencies): Likewise.
14455         * modules/mbrtowc (Dependencies): Likewise.
14456         * modules/mbscasecmp (Dependencies): Likewise.
14457         * modules/mbscasestr (Dependencies): Likewise.
14458         * modules/mbschr (Dependencies): Likewise.
14459         * modules/mbscspn (Dependencies): Likewise.
14460         * modules/mbsinit (Dependencies): Likewise.
14461         * modules/mbsncasecmp (Dependencies): Likewise.
14462         * modules/mbsnrtowcs (Dependencies): Likewise.
14463         * modules/mbspbrk (Dependencies): Likewise.
14464         * modules/mbspcasecmp (Dependencies): Likewise.
14465         * modules/mbsrchr (Dependencies): Likewise.
14466         * modules/mbsrtowcs (Dependencies): Likewise.
14467         * modules/mbsspn (Dependencies): Likewise.
14468         * modules/mbsstr (Dependencies): Likewise.
14469         * modules/nl_langinfo (Dependencies): Likewise.
14470         * modules/quotearg (Dependencies): Likewise.
14471         * modules/unicase/locale-language (Dependencies): Likewise.
14472         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14473         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14474         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14475         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14476         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14477         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14478         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14479         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14480         * modules/vasnprintf-posix (Dependencies): Likewise.
14481         * modules/wcrtomb (Dependencies): Likewise.
14482         * modules/wcsnrtombs (Dependencies): Likewise.
14483         * modules/wcsrtombs (Dependencies): Likewise.
14484
14485 2011-02-12  Bruno Haible  <bruno@clisp.org>
14486
14487         setlocale: Workaround native Windows bug.
14488         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14489         succeeds but sets LC_CTYPE to "C", report a failure.
14490         * tests/test-setlocale2.sh: New file.
14491         * tests/test-setlocale2.c: New file.
14492         * modules/setlocale-tests (Files): Add the new files.
14493         (Makefile.am): Enable test-setlocale2.sh test.
14494         * doc/posix-functions/setlocale.texi: Mention workaround.
14495
14496 2011-02-11  Bruno Haible  <bruno@clisp.org>
14497
14498         Tests for module 'setlocale'.
14499         * modules/setlocale-tests: New file.
14500         * tests/test-setlocale1.sh: New file.
14501         * tests/test-setlocale1.c: New file.
14502
14503         New module 'setlocale'.
14504         * lib/locale.in.h (setlocale): New declaration.
14505         * lib/setlocale.c: New file, based on
14506         gettext/gettext-runtime/intl/setlocale.c.
14507         * m4/setlocale.m4: New file.
14508         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14509         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14510         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14511         REPLACE_SETLOCALE.
14512         * modules/setlocale: New file.
14513         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14514         * doc/posix-functions/setlocale.texi: Mention the new module.
14515
14516 2011-02-11  Bruno Haible  <bruno@clisp.org>
14517
14518         Prepare for locale dependent tests on mingw.
14519         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14520         because it has the wrong locale encoding.
14521         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14522         French_France.1252 instead of "fr".
14523         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14524         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14525         because it has the wrong locale encoding.
14526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14527         native Windows, try Turkish_Turkey.65001.
14528         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14529         Chinese_China.54936.
14530
14531         Prepare for locale dependent tests on mingw.
14532         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14533         differently.
14534         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14535         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14536         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14537         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14538
14539 2011-02-11  Eric Blake  <eblake@redhat.com>
14540
14541         strptime: avoid compiler warnings
14542         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14543         compiler warnings about dead code.
14544         Reported by Daniel P. Berrange.
14545
14546 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14547
14548         doc: update users.txt
14549         * users.txt: Add rcs.
14550
14551 2011-02-10  John W. Eaton  <jwe@gnu.org>
14552
14553         doc: update users.txt
14554         * users.txt: Add octave.
14555
14556 2011-02-10  Jim Meyering  <meyering@redhat.com>
14557
14558         doc: update users.txt
14559         * users.txt: Add iwhd.
14560
14561 2011-02-09  Bruno Haible  <bruno@clisp.org>
14562
14563         gnulib-tool: Make copyright notice adjustment more robust.
14564         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14565         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14566         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14567         License".
14568         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14569
14570 2011-02-06  Bruno Haible  <bruno@clisp.org>
14571
14572         New module 'towctrans'.
14573         * modules/towctrans: New file.
14574         * lib/wctype.in.h (towctrans): New declaration.
14575         * lib/towctrans.c: New file.
14576         * lib/towctrans-impl.h: New file.
14577         * m4/towctrans.m4: New file.
14578         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14579         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14580         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14581         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14582         * doc/posix-functions/towctrans.texi: Mention the new module.
14583
14584 2011-02-06  Bruno Haible  <bruno@clisp.org>
14585
14586         New module 'wctrans'.
14587         * modules/wctrans: New file.
14588         * lib/wctype.in.h (wctrans): New declaration.
14589         * lib/wctrans.c: New file.
14590         * lib/wctrans-impl.h: New file.
14591         * m4/wctrans.m4: New file.
14592         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14593         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14594         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14595         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14596         * doc/posix-functions/wctrans.texi: Mention the new module.
14597
14598 2011-02-06  Bruno Haible  <bruno@clisp.org>
14599
14600         New module 'iswctype'.
14601         * modules/iswctype: New file.
14602         * lib/wctype.in.h (iswctype): New declaration.
14603         * lib/iswctype.c: New file.
14604         * lib/iswctype-impl.h: New file.
14605         * m4/iswctype.m4: New file.
14606         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14607         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14608         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14609         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14610         * doc/posix-functions/iswctype.texi: Mention the new module and the
14611         HP-UX 11.00 problem.
14612
14613 2011-02-06  Bruno Haible  <bruno@clisp.org>
14614
14615         New module 'wctype'.
14616         * modules/wctype: Change to represent the wctype() substitute.
14617         * lib/wctype.in.h (wctype): New declaration.
14618         * lib/wctype.c: New file.
14619         * lib/wctype-impl.h: New file.
14620         * m4/wctype.m4: New file.
14621         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14622         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14623         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14624         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14625         * doc/posix-functions/wctype.texi: Mention the new module and the
14626         HP-UX 11.00 problem.
14627
14628 2011-02-06  Bruno Haible  <bruno@clisp.org>
14629
14630         wctype-h: Ensure wctype_t and wctrans_t are defined.
14631         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14632         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14633         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14634         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14635         HAVE_WCTRANS_T.
14636         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14637
14638 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14639
14640         flock: fix license typo
14641
14642         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14643         omitted.
14644
14645 2011-02-08  Bruno Haible  <bruno@clisp.org>
14646
14647         Split large sed scripts, for HP-UX sed.
14648         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14649         to avoid HP-UX limit of 99 commands, in the near future.
14650         * modules/stdlib (Makefile.am): Likewise.
14651         * modules/unistd (Makefile.am): Likewise.
14652         * modules/wchar (Makefile.am): Likewise.
14653         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14654         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14655         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14656
14657 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14658             Bruno Haible  <bruno@clisp.org>
14659
14660         stdlib: improve random_r modularization
14661         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14662         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14663         you also need the random_r module to get this material right.
14664         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14665         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14666         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14667
14668 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14669
14670         stdlib: don't depend on stdint
14671         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14672         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14673         be independent of whether stdint.h is needed.
14674         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14675         here, instead of ...
14676         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14677         struct random_data should be using the random_r module, not just
14678         the stdlib module (which wouldn't make sense: what package needs
14679         just struct random_data without also needing random_r?).
14680         * modules/stdlib (Depends-on): Remove stdint.
14681
14682         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14683         See the thread rooted at
14684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14685         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14686         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14687         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14688         __VMS)); previously it was always included (via fcntl--.h).
14689         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14690         hand; this is good enough for load averages.  Also, do not use
14691         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14692         flags directly if available and don't bother otherwise.  (Packages
14693         that need the extra reliability should use the modules that define
14694         these flags on older platforms that lack them.)
14695         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14696         fcntl-safer.
14697
14698 2011-02-08  Jim Meyering  <meyering@redhat.com>
14699
14700         di-set.h, ino-map.h: add multiple-inclusion guard
14701         Technically, the guard is required only for ino-map.h, due to its
14702         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14703         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14704         * lib/ino-map.h: Likewise.
14705
14706 2011-02-06  Bruno Haible  <bruno@clisp.org>
14707
14708         iswblank: Ensure declaration on glibc systems.
14709         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14710         * modules/iswblank (Dependencies): Add 'extensions'.
14711         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14712
14713 2011-02-06  Bruno Haible  <bruno@clisp.org>
14714
14715         New module 'iswblank'.
14716         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14717         * modules/iswblank: New file.
14718         * modules/wctype-h (Files): Remove lib/iswblank.c.
14719         (Makefile.am): Substitute GNULIB_ISWBLANK.
14720         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14721         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14722         (gl_WCTYPE_H_DEFAULTS): New macro.
14723         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14724         * modules/iswblank-tests: New file.
14725         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14726         * tests/test-wctype-h.c (main): Remove iswblank tests.
14727         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14728         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14729         of 'wctype-h'.
14730         * NEWS: Mention the change.
14731         * modules/mbchar (Depends-on): Add iswblank.
14732
14733 2011-02-08  Bruno Haible  <bruno@clisp.org>
14734
14735         di-set tests: Refactor.
14736         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14737         unnecessary includes.
14738         (ASSERT): Remove macro.
14739         (main): Make C90 compliant by avoiding variable declaration after
14740         statement.
14741         * modules/di-set-tests (Files): Add tests/macros.h.
14742
14743 2011-02-08  Bruno Haible  <bruno@clisp.org>
14744
14745         ino-map tests: Refactor.
14746         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14747         unnecessary includes.
14748         (ASSERT): Remove macro.
14749         (main): Make C90 compliant by avoiding variable declaration after
14750         statement.
14751         * modules/ino-map-tests (Files): Add tests/macros.h.
14752
14753 2011-02-08  Jim Meyering  <meyering@redhat.com>
14754
14755         di-set: add "const" to a cast
14756         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14757         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14758
14759 2011-02-06  Bruno Haible  <bruno@clisp.org>
14760
14761         Rename module 'wctype' to 'wctype-h'.
14762         * modules/wctype-h: Renamed from modules/wctype.
14763         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14764         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14765         (Files, Depends-on, Makefile.am): Update.
14766         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14767         (Files, Makefile.am): Update.
14768         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14769         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14770         * doc/posix-headers/wctype.texi: Update.
14771         * doc/posix-functions/iswalnum.texi: Update.
14772         * doc/posix-functions/iswalpha.texi: Update.
14773         * doc/posix-functions/iswblank.texi: Update.
14774         * doc/posix-functions/iswcntrl.texi: Update.
14775         * doc/posix-functions/iswdigit.texi: Update.
14776         * doc/posix-functions/iswgraph.texi: Update.
14777         * doc/posix-functions/iswlower.texi: Update.
14778         * doc/posix-functions/iswprint.texi: Update.
14779         * doc/posix-functions/iswpunct.texi: Update.
14780         * doc/posix-functions/iswspace.texi: Update.
14781         * doc/posix-functions/iswupper.texi: Update.
14782         * doc/posix-functions/iswxdigit.texi: Update.
14783         * doc/posix-functions/towlower.texi: Update.
14784         * doc/posix-functions/towupper.texi: Update.
14785         * NEWS: Mention the change.
14786         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14787         * modules/mbchar (Dependencies): Likewise.
14788         * modules/mbswidth (Dependencies): Likewise.
14789         * modules/quotearg (Dependencies): Likewise.
14790         * modules/regex (Dependencies): Likewise.
14791         * modules/wcscasecmp (Dependencies): Likewise.
14792         * modules/wcsncasecmp (Dependencies): Likewise.
14793         * modules/wcwidth (Dependencies): Likewise.
14794
14795 2011-02-06  Bruno Haible  <bruno@clisp.org>
14796
14797         New module 'wcswidth'.
14798         * modules/wcswidth: New file.
14799         * lib/wchar.in.h (wcswidth): New declaration.
14800         * lib/wcswidth.c: New file.
14801         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14802         * m4/wcswidth.m4: New file.
14803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14805         REPLACE_WCSWIDTH.
14806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14807         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14808         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14809         * doc/posix-functions/wcswidth.texi: Mention the new module.
14810
14811 2011-02-06  Bruno Haible  <bruno@clisp.org>
14812
14813         New module 'wcstok'.
14814         * modules/wcstok: New file.
14815         * lib/wchar.in.h (wcstok): New declaration.
14816         * lib/wcstok.c: New file.
14817         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14818         * m4/wcstok.m4: New file.
14819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14822         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14823         * doc/posix-functions/wcstok.texi: Mention the new module.
14824
14825 2011-02-06  Bruno Haible  <bruno@clisp.org>
14826
14827         New module 'wcsstr'.
14828         * modules/wcsstr: New file.
14829         * lib/wchar.in.h (wcsstr): New declaration.
14830         * lib/wcsstr.c: New file.
14831         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14832         * m4/wcsstr.m4: New file.
14833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14836         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14837         * doc/posix-functions/wcsstr.texi: Mention the new module.
14838
14839 2011-02-06  Bruno Haible  <bruno@clisp.org>
14840
14841         New module 'wcspbrk'.
14842         * modules/wcspbrk: New file.
14843         * lib/wchar.in.h (wcspbrk): New declaration.
14844         * lib/wcspbrk.c: New file.
14845         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14846         * m4/wcspbrk.m4: New file.
14847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14850         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14851         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14852
14853 2011-02-06  Bruno Haible  <bruno@clisp.org>
14854
14855         New module 'wcsspn'.
14856         * modules/wcsspn: New file.
14857         * lib/wchar.in.h (wcsspn): New declaration.
14858         * lib/wcsspn.c: New file.
14859         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14860         * m4/wcsspn.m4: New file.
14861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14864         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14865         * doc/posix-functions/wcsspn.texi: Mention the new module.
14866
14867 2011-02-06  Bruno Haible  <bruno@clisp.org>
14868
14869         New module 'wcscspn'.
14870         * modules/wcscspn: New file.
14871         * lib/wchar.in.h (wcscspn): New declaration.
14872         * lib/wcscspn.c: New file.
14873         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14874         * m4/wcscspn.m4: New file.
14875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14878         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14879         * doc/posix-functions/wcscspn.texi: Mention the new module.
14880
14881 2011-02-06  Bruno Haible  <bruno@clisp.org>
14882
14883         New module 'wcsrchr'.
14884         * modules/wcsrchr: New file.
14885         * lib/wchar.in.h (wcsrchr): New declaration.
14886         * lib/wcsrchr.c: New file.
14887         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14888         * m4/wcsrchr.m4: New file.
14889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14892         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14893         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14894
14895 2011-02-06  Bruno Haible  <bruno@clisp.org>
14896
14897         New module 'wcschr'.
14898         * modules/wcschr: New file.
14899         * lib/wchar.in.h (wcschr): New declaration.
14900         * lib/wcschr.c: New file.
14901         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14902         * m4/wcschr.m4: New file.
14903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14906         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14907         * doc/posix-functions/wcschr.texi: Mention the new module.
14908
14909 2011-02-06  Bruno Haible  <bruno@clisp.org>
14910
14911         New module 'wcsdup'.
14912         * modules/wcsdup: New file.
14913         * lib/wchar.in.h (wcsdup): New declaration.
14914         * lib/wcsdup.c: New file.
14915         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14916         * m4/wcsdup.m4: New file.
14917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14920         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14921         * doc/posix-functions/wcsdup.texi: Mention the new module.
14922
14923 2011-02-06  Bruno Haible  <bruno@clisp.org>
14924
14925         New module 'wcsxfrm'.
14926         * modules/wcsxfrm: New file.
14927         * lib/wchar.in.h (wcsxfrm): New declaration.
14928         * lib/wcsxfrm.c: New file.
14929         * lib/wcsxfrm-impl.h: New file.
14930         * m4/wcsxfrm.m4: New file.
14931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14934         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14935         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14936
14937 2011-02-06  Bruno Haible  <bruno@clisp.org>
14938
14939         New module 'wcscoll'.
14940         * modules/wcscoll: New file.
14941         * lib/wchar.in.h (wcscoll): New declaration.
14942         * lib/wcscoll.c: New file.
14943         * lib/wcscoll-impl.h: New file.
14944         * m4/wcscoll.m4: New file.
14945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14948         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14949         * doc/posix-functions/wcscoll.texi: Mention the new module.
14950
14951 2011-02-06  Bruno Haible  <bruno@clisp.org>
14952
14953         New module 'wcsncasecmp'.
14954         * modules/wcsncasecmp: New file.
14955         * lib/wchar.in.h (wcsncasecmp): New declaration.
14956         * lib/wcsncasecmp.c: New file.
14957         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14958         * m4/wcsncasecmp.m4: New file.
14959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14962         HAVE_WCSNCASECMP.
14963         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14964         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14965
14966 2011-02-06  Bruno Haible  <bruno@clisp.org>
14967
14968         New module 'wcscasecmp'.
14969         * modules/wcscasecmp: New file.
14970         * lib/wchar.in.h (wcscasecmp): New declaration.
14971         * lib/wcscasecmp.c: New file.
14972         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14973         * m4/wcscasecmp.m4: New file.
14974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14976         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14977         HAVE_WCSCASECMP.
14978         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14979         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14980
14981 2011-02-05  Bruno Haible  <bruno@clisp.org>
14982
14983         New module 'wcsncmp'.
14984         * modules/wcsncmp: New file.
14985         * lib/wchar.in.h (wcsncmp): New declaration.
14986         * lib/wcsncmp.c: New file.
14987         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14988         * m4/wcsncmp.m4: New file.
14989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14992         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14993         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14994
14995 2011-02-05  Bruno Haible  <bruno@clisp.org>
14996
14997         New module 'wcscmp'.
14998         * modules/wcscmp: New file.
14999         * lib/wchar.in.h (wcscmp): New declaration.
15000         * lib/wcscmp.c: New file.
15001         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15002         * m4/wcscmp.m4: New file.
15003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15006         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15007         * doc/posix-functions/wcscmp.texi: Mention the new module.
15008
15009 2011-02-05  Bruno Haible  <bruno@clisp.org>
15010
15011         New module 'wcsncat'.
15012         * modules/wcsncat: New file.
15013         * lib/wchar.in.h (wcsncat): New declaration.
15014         * lib/wcsncat.c: New file.
15015         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15016         * m4/wcsncat.m4: New file.
15017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15020         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15021         * doc/posix-functions/wcsncat.texi: Mention the new module.
15022
15023 2011-02-05  Bruno Haible  <bruno@clisp.org>
15024
15025         New module 'wcscat'.
15026         * modules/wcscat: New file.
15027         * lib/wchar.in.h (wcscat): New declaration.
15028         * lib/wcscat.c: New file.
15029         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15030         * m4/wcscat.m4: New file.
15031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15034         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15035         * doc/posix-functions/wcscat.texi: Mention the new module.
15036
15037 2011-02-05  Bruno Haible  <bruno@clisp.org>
15038
15039         New module 'wcpncpy'.
15040         * modules/wcpncpy: New file.
15041         * lib/wchar.in.h (wcpncpy): New declaration.
15042         * lib/wcpncpy.c: New file.
15043         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15044         * m4/wcpncpy.m4: New file.
15045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15047         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15048         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15049         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15050
15051 2011-02-05  Bruno Haible  <bruno@clisp.org>
15052
15053         New module 'wcsncpy'.
15054         * modules/wcsncpy: New file.
15055         * lib/wchar.in.h (wcsncpy): New declaration.
15056         * lib/wcsncpy.c: New file.
15057         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15058         * m4/wcsncpy.m4: New file.
15059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15062         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15063         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15064
15065 2011-02-05  Bruno Haible  <bruno@clisp.org>
15066
15067         New module 'wcpcpy'.
15068         * modules/wcpcpy: New file.
15069         * lib/wchar.in.h (wcpcpy): New declaration.
15070         * lib/wcpcpy.c: New file.
15071         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15072         * m4/wcpcpy.m4: New file.
15073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15075         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15076         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15077         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15078
15079 2011-02-05  Bruno Haible  <bruno@clisp.org>
15080
15081         New module 'wcscpy'.
15082         * modules/wcscpy: New file.
15083         * lib/wchar.in.h (wcscpy): New declaration.
15084         * lib/wcscpy.c: New file.
15085         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15086         * m4/wcscpy.m4: New file.
15087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15090         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15091         * doc/posix-functions/wcscpy.texi: Mention the new module.
15092
15093 2011-02-05  Bruno Haible  <bruno@clisp.org>
15094
15095         New module 'wcsnlen'.
15096         * modules/wcsnlen: New file.
15097         * lib/wchar.in.h (wcsnlen): New declaration.
15098         * lib/wcsnlen.c: New file.
15099         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15100         * m4/wcsnlen.m4: New file.
15101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15104         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15105         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15106
15107 2011-02-05  Bruno Haible  <bruno@clisp.org>
15108
15109         New module 'wcslen'.
15110         * modules/wcslen: New file.
15111         * lib/wchar.in.h (wcslen): New declaration.
15112         * lib/wcslen.c: New file.
15113         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15114         * m4/wcslen.m4: New file.
15115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15118         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15119         * doc/posix-functions/wcslen.texi: Mention the new module.
15120
15121 2011-02-05  Bruno Haible  <bruno@clisp.org>
15122
15123         New module 'wmemset'.
15124         * modules/wmemset: New file.
15125         * lib/wchar.in.h (wmemset): New declaration.
15126         * lib/wmemset.c: New file.
15127         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15128         * m4/wmemset.m4: New file.
15129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15131         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15132         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15133         * doc/posix-functions/wmemset.texi: Mention the new module.
15134
15135 2011-02-05  Bruno Haible  <bruno@clisp.org>
15136
15137         New module 'wmemmove'.
15138         * modules/wmemmove: New file.
15139         * lib/wchar.in.h (wmemmove): New declaration.
15140         * lib/wmemmove.c: New file.
15141         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15142         * m4/wmemmove.m4: New file.
15143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15145         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15146         HAVE_WMEMMOVE.
15147         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15148         * doc/posix-functions/wmemmove.texi: Mention the new module.
15149
15150 2011-02-05  Bruno Haible  <bruno@clisp.org>
15151
15152         New module 'wmemcpy'.
15153         * modules/wmemcpy: New file.
15154         * lib/wchar.in.h (wmemcpy): New declaration.
15155         * lib/wmemcpy.c: New file.
15156         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15157         * m4/wmemcpy.m4: New file.
15158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15160         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15161         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15162         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15163
15164 2011-02-05  Bruno Haible  <bruno@clisp.org>
15165
15166         New module 'wmemcmp'.
15167         * modules/wmemcmp: New file.
15168         * lib/wchar.in.h (wmemcmp): New declaration.
15169         * lib/wmemcmp.c: New file.
15170         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15171         * m4/wmemcmp.m4: New file.
15172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15174         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15175         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15176         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15177
15178 2011-02-07  Jim Meyering  <meyering@redhat.com>
15179
15180         di-set, ino-map: new modules, from coreutils
15181         * lib/di-set.c: New file.
15182         * lib/di-set.h: Likewise.
15183         * lib/ino-map.c: Likewise.
15184         * lib/ino-map.h: Likewise.
15185         * modules/di-set: Likewise.
15186         * modules/di-set-tests: Likewise.
15187         * modules/ino-map: Likewise.
15188         * modules/ino-map-tests: Likewise.
15189         * tests/test-di-set.c: Likewise.
15190         * tests/test-ino-map.c: Likewise.
15191
15192 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15193
15194         getloadavg: merge minor changes from Emacs
15195
15196         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15197         (getloadavg): Use memset, not bzero.
15198
15199         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15200         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15201         clash (bug#86).
15202
15203 2010-11-14  Bruno Haible  <bruno@clisp.org>
15204
15205         Allow multiple gnulib generated replacements to coexist.
15206         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15207         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15208         * lib/langinfo.in.h (nl_item): Likewise.
15209         * lib/math.in.h (_NaN, NAN): Likewise.
15210         * lib/netdb.in.h (struct addrinfo): Likewise.
15211         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15212         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15213         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15214         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15215         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15216         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15217         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15218         pthread_mutexattr_init, pthread_mutexattr_settype,
15219         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15220         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15221         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15222         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15223         * lib/sched.in.h (struct sched_param): Likewise.
15224         * lib/se-selinux.in.h (security_class_t, security_context_t,
15225         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15226         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15227         lsetfilecon, fsetfilecon, security_check_context,
15228         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15229         Likewise.
15230         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15231         Likewise.
15232         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15233         _gl_function_taking_int_returning_void_t, union sigval,
15234         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15235         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15236         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15237         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15238         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15239         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15240         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15241         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15242         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15243         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15244         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15245         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15246         socklen_t, rpl_fd_isset): Likewise.
15247         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15248         * lib/sys_time.in.h (struct timeval): Likewise.
15249         * lib/sys_times.in.h (struct tms): Likewise.
15250         * lib/sys_utsname.in.h (struct utsname):
15251         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15252         * lib/unistd.in.h (getpagesize): Likewise.
15253         * lib/wchar.in.h (mbstate_t): Likewise.
15254         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15255         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15256         towlower, towupper): Likewise.
15257         Reported by Sam Steingold <sds@gnu.org>.
15258
15259 2011-02-05  Eric Blake  <eblake@redhat.com>
15260
15261         unsetenv: work around Haiku issues
15262         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15263         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15264
15265 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15266
15267         libposix: avoid calling error() within libposix
15268         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15269         is defined.
15270
15271 2011-02-05  Eric Blake  <eblake@redhat.com>
15272
15273         strerror_r-posix: port to cygwin
15274         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15275         implementation.
15276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15277         * tests/test-strerror_r.c (main): Fix test.
15278         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15279         issue.
15280
15281 2011-02-05  Bruno Haible  <bruno@clisp.org>
15282
15283         New module 'wmemchr'.
15284         * modules/wmemchr: New file.
15285         * lib/wchar.in.h (wmemchr): New declaration.
15286         * lib/wmemchr.c: New file.
15287         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15288         * m4/wmemchr.m4: New file.
15289         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15290         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15291         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15292         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15293         * doc/posix-functions/wmemchr.texi: Mention the new module.
15294
15295 2011-02-04  Eric Blake  <eblake@redhat.com>
15296
15297         fdopendir: detect FreeBSD bug
15298         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15299         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15300
15301 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15302
15303         stdbool: do not define HAVE_STDBOOL_H
15304         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15305         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15306         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15307         imported from the latest Autoconf git.  It was motivated by Emacs,
15308         which uses gnulib but does not need HAVE_STDBOOL_H.
15309
15310 2011-02-04  Bruno Haible  <bruno@clisp.org>
15311
15312         wcsnrtombs: Prepare for new module wwcsnrtombs.
15313         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15314         * lib/wcsnrtombs.c: Include it.
15315         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15316
15317         wcsrtombs: Prepare for new module wwcsrtombs.
15318         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15319         * lib/wcsrtombs.c: Include it.
15320         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15321
15322         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15323         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15324         * lib/mbsnrtowcs.c: Include it.
15325         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15326
15327         mbsrtowcs: Prepare for new module mbsrtowwcs.
15328         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15329         * lib/mbsrtowcs.c: Include it.
15330         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15331
15332 2011-02-04  Bruno Haible  <bruno@clisp.org>
15333
15334         vasnprintf: Reduce use of malloc for small format strings.
15335         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15336         (arguments): Add room for the first 7 arguments.
15337         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15338         (char_directives, u8_directives, u16_directives, u32_directives): Add
15339         room for the first 7 directives.
15340         * lib/printf-parse.c: Include <string.h>.
15341         (PRINTF_PARSE): Change memory handling code so that it uses the first
15342         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15343         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15344         Reported by Pádraig Brady <P@draigbrady.com>.
15345
15346 2011-01-31  Eric Blake  <eblake@redhat.com>
15347
15348         dup2: work around Haiku bug
15349         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15350         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15351         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15352         * tests/test-dup2.c (main): Enhance test.
15353
15354 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15355
15356         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15357         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15358         declared by eglibc 2.11.2.
15359         * lib/stdio.in.h: Likewise.
15360
15361 2011-01-31  Eric Blake  <eblake@redhat.com>
15362
15363         ignore-value: add missing test dependency
15364         * tests/test-ignore-value.c: Revert previous change; stdio.h
15365         provides off_t.
15366         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15367
15368 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15369
15370         mktime: clarify long_int width checking
15371         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15372         the top level, to make it clearer that the assumption about
15373         long_int width is being checked.  See
15374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15375
15376 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15377
15378         ignore-value: Fix self-test.
15379         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15380
15381 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15382
15383         TYPE_MAXIMUM: avoid theoretically undefined behavior
15384         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15385         negative number, which the C Standard says has undefined behavior.
15386         In practice this is not a problem, but might as well do it by the book.
15387         Reported by Rich Felker and Eric Blake; see
15388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15389         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15390         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15392         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15393         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15394         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15395
15396         mktime: #undef mktime before #defining it
15397         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15398
15399         mktime: systematically normalize tm_isdst comparisons
15400         * lib/mktime.c (isdst_differ): New function.
15401         (__mktime_internal): Use it systematically for all isdst comparisons.
15402         This completes the fix for libc BZ #6723, and removes the need for
15403         normalizing tm_isdst.  See
15404         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15405         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15406
15407         mktime: fix some integer overflow issues and sidestep the rest
15408
15409         This was prompted by a bug report by Benjamin Lindner for MinGW
15410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15411         His bug is due to signed integer overflow (0 - INT_MIN), and I
15412         I scanned through mktime.c looking for other integer overflow
15413         problems, fixing all the bugs I found.
15414
15415         Although the C Standard says the resulting code is still not safe
15416         in the presence of integer overflow, in practice it should be good
15417         enough for all real-world two's-complement implementations, except
15418         for debugging environments that deliberately trap on integer
15419         overflow (e.g., gcc -ftrapv).
15420
15421         * lib/mktime.c (WRAPV): New macro.
15422         (SHR): Also check that long_int and time_t shift right in the
15423         usual way, before using the fast-but-unportable method.
15424         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15425         used.  The code already assumed two's complement, so there's
15426         no need to test for alternatives.  All uses removed.
15427         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15428         the C standard.  Problem reported by Rich Felker in
15429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15430         (twos_complement_arithmetic): Also check long_int and time_t.
15431         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15432         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15433         (__mktime_internal): Avoid integer overflow with unary subtraction
15434         in two instances where -1 - X is an adequate replacement for -X,
15435         since the calculations are approximate.
15436
15437 2011-01-29  Eric Blake  <eblake@redhat.com>
15438
15439         mktime: avoid infinite loop
15440         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15441         type; behavior is still undefined but portable to all known targets.
15442         Reported by Rich Felker.
15443
15444 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15445
15446         rename, unlink, same-inode: Relicense.
15447         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15448         * modules/unlink (License): Likewise.
15449         * modules/same-inode (License): Likewise.
15450
15451 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15452
15453         mktime: avoid problems on NetBSD 5 / i386
15454         * lib/mktime.c (long_int): New type.  This works around a problem
15455         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15456         but time_t is 64 bits, and where I expect the existing code is
15457         wrong in some cases.
15458         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15459         (ydhms_diff): Bring back the compile-time check for wide-enough
15460         year and yday.
15461
15462         mktime: fix misspelling in comment
15463         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15464         This merges all recent glibc changes of importance.
15465
15466 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15467
15468         move-if-change: cope with concurrent mv of identical file.
15469         * build-aux/move-if-change (CMPPROG): Accept environment
15470         variable as an override for `cmp'.
15471         (usage): Document CMPPROG.
15472         Adjust comparison to drop stdout.  Cope with failure of mv if
15473         the target file exists and is identical to the source, for
15474         parallel builds.
15475         Report from H.J. Lu against binutils in PR binutils/12283.
15476
15477 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15478
15479         * users.txt: Mention sharutils.
15480
15481 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15482
15483         * users.txt: Mention OATH Toolkit.
15484
15485 2011-01-27  Bruno Haible  <bruno@clisp.org>
15486
15487         Prepare for supporting FreeBSD 10.
15488         * build-aux/config.libpath: Remove handling of freebsd1*.
15489
15490 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15491
15492         Prepare for supporting FreeBSD 10.
15493         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15494         match FreeBSD 10.0.
15495
15496 2011-01-27  Bruno Haible  <bruno@clisp.org>
15497
15498         vma-iter, get-rusage-as: Add OpenBSD support.
15499         * modules/vma-iter (configure.ac): Test for mquery.
15500         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15501         * lib/vma-iter.c: Include <sys/mman.h>.
15502         (vma_iterate): Add an implementation based on mquery().
15503         * lib/resource-ext.h (get_rusage_as): Update comments.
15504         * lib/get-rusage-as.c: Likewise.
15505         * lib/get-rusage-data.c: Likewise.
15506
15507 2011-01-26  Karl Berry  <karl@gnu.org>
15508
15509         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15510         variables to make it easier to override the makeinfo program used.
15511
15512 2011-01-26  Eric Blake  <eblake@redhat.com>
15513
15514         fcntl: work around Haiku F_DUPFD bugs
15515         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15516         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15517         cloexec bit on duplication.
15518         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15519
15520 2011-01-26  Bruno Haible  <bruno@clisp.org>
15521
15522         Enable memory leak tests on AIX.
15523         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15524         * tests/test-fprintf-posix3.c (main): Likewise.
15525
15526 2011-01-26  Bruno Haible  <bruno@clisp.org>
15527
15528         Tests for module 'get-rusage-data'.
15529         * modules/get-rusage-data-tests: New file.
15530         * tests/test-get-rusage-data.c: New file.
15531
15532         New module 'get-rusage-data'.
15533         * lib/resource-ext.h (get_rusage_data): New declaration.
15534         * lib/get-rusage-data.c: New file.
15535         * modules/get-rusage-data: New file.
15536
15537 2011-01-25  Bruno Haible  <bruno@clisp.org>
15538
15539         get-rusage-as: Allow for easier testing.
15540         * lib/resource-ext.h (get_rusage_as): Add comment.
15541         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15542         (main): New function for interactive testing.
15543
15544 2011-01-25  Bruno Haible  <bruno@clisp.org>
15545
15546         vma-iter: Treat Haiku like BeOS.
15547         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15548         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15549
15550 2011-01-25  Eric Blake  <eblake@redhat.com>
15551
15552         c-stack: fix regression on cygwin when libsigsegv is present
15553         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15554
15555 2011-01-24  Bruno Haible  <bruno@clisp.org>
15556
15557         vma-iter: Avoid empty intervals.
15558         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15559         on an empty interval.
15560
15561 2011-01-24  Jim Meyering  <meyering@redhat.com>
15562
15563         u64: remove unnecessary #include
15564         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15565
15566 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15567
15568         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15569         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15570
15571 2011-01-23  Bruno Haible  <bruno@clisp.org>
15572
15573         New module 'vma-iter'.
15574         * lib/vma-iter.h: New file.
15575         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15576         * modules/vma-iter: New file.
15577         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15578         for get_rusage_as_via_iterator.
15579         (vma_iterate_callback): New function.
15580         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15581         * modules/get-rusage-as (Depends-on): Add vma-iter.
15582
15583 2011-01-23  Bruno Haible  <bruno@clisp.org>
15584
15585         uninorm: Tweak includes.
15586         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15587         Reported by Jim Meyering.
15588
15589 2011-01-23  Bruno Haible  <bruno@clisp.org>
15590
15591         get-rusage-as: Improve on NetBSD.
15592         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15593         /proc, like on FreeBSD.
15594
15595 2011-01-23  Jim Meyering  <meyering@redhat.com>
15596
15597         xreadlink.h: remove unnecessary #include
15598         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15599
15600         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15601         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15602
15603 2011-01-23  Bruno Haible  <bruno@clisp.org>
15604
15605         get-rusage-as: Fix bug.
15606         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15607         original limit when aborting the first loop.
15608
15609 2011-01-23  Bruno Haible  <bruno@clisp.org>
15610
15611         wctype: Ensure valid C syntax.
15612         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15613         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15614
15615 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15619         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15620         as they are needed only for configure's test case.
15621         This removes two unnecessary symbols from config.h.
15622
15623         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15624         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15626         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15627         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15628         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15629         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15630         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15631         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15632         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15633         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15635         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15636         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15637         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15638         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15639         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15640         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15641
15642 2011-01-21  Eric Blake  <eblake@redhat.com>
15643
15644         maintainer-makefile: work with older git for submodule check
15645         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15646         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15647         Reported by Matthias Bolte.
15648
15649         bootstrap: minor portability fixes
15650         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15651         (usage): Omit leading capital and trailing . on help phrases, per
15652         GNU Coding Standards.
15653         (check_versions, top level): Prefix messages with script name.
15654
15655 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15656
15657         bootstrap: support --no-git option
15658         * build-aux/bootstrap: Add --no-git option, to be used when
15659         --gnulib-srcdir points to the exact desired checkout.
15660
15661 2011-01-21  Eric Blake  <eblake@redhat.com>
15662
15663         strerror_r-posix: work with glibc 2.13
15664         * lib/strerror_r.c (strerror_r): Fix return type.
15665
15666 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15667             Bruno Haible  <bruno@clisp.org>
15668
15669         uN_strstr: New unit tests.
15670         * modules/unistr/u8-strstr-tests: New file.
15671         * modules/unistr/u16-strstr-tests: New file.
15672         * modules/unistr/u32-strstr-tests: New file.
15673         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15674         * tests/unistr/test-u8-strstr.c: New file.
15675         * tests/unistr/test-u16-strstr.c: New file.
15676         * tests/unistr/test-u32-strstr.c: New file.
15677
15678 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15679             Bruno Haible  <bruno@clisp.org>
15680
15681         Make uN_strstr functions O(n) worst-case.
15682         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15683         16-bit and 32-bit unit cases, use the unibyte algorithm from
15684         lib/mbsstr.c.
15685         * lib/unistr/u8-strstr.c: Include <string.h>.
15686         (UNIT_IS_UINT8_T): New macro.
15687         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15688         (U_STRLEN, U_STRNLEN): New macros.
15689         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15690         (U_STRLEN, U_STRNLEN): New macros.
15691         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15692         (configure.ac): Update required libunistring version.
15693         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15694         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15695         malloca.
15696         (configure.ac): Update required libunistring version.
15697         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15698         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15699         malloca.
15700         (configure.ac): Update required libunistring version.
15701
15702 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15703             Bruno Haible  <bruno@clisp.org>
15704
15705         Prepare for faster uN_strstr functions.
15706         * lib/str-kmp.h: Support definable UNITs.
15707         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15708         needle_len argument.
15709         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15710         * lib/mbscasestr.c (mbscasestr): Likewise.
15711
15712 2011-01-21  Pádraig Brady <P@draigBrady.com>
15713
15714         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15715         * tests/test-malloca.c (main): Unset the environment variable
15716         to greatly speed up the test.
15717         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15718         * modules/malloca-tests: Depend on unsetenv.
15719
15720 2011-01-21  Pádraig Brady <P@draigBrady.com>
15721
15722         ignore-value: remove stdint dependency
15723         * lib/ignore-value.h: Remove <stdint.h>
15724         * modules/ignore-value: Remove stdint dependency.
15725
15726 2011-01-21  Jim Meyering  <meyering@redhat.com>
15727
15728         maint.mk: adjust variable name to be consistent with other gl_ vars
15729         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15730         to be lower case.
15731
15732 2011-01-20  Jim Meyering  <meyering@redhat.com>
15733
15734         maint.mk: make "check" depend on public-submodule-commit by default
15735         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15736
15737 2011-01-20  Bruno Haible  <bruno@clisp.org>
15738
15739         mbfile, mbiter: Complete change from 2008-12-21.
15740         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15741         * m4/mbiter.m4 (gl_MBITER): Likewise.
15742
15743 2011-01-20  Jim Meyering  <meyering@redhat.com>
15744
15745         init.sh: insert space between each function name and "()"
15746         * tests/init.sh: Make it a little easier to see that a function's
15747         name is "warn_", and not "warn" when looking at the first part of
15748         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15749
15750 2011-01-20  Jim Meyering  <meyering@redhat.com>
15751
15752         mountlist: clean up code formatting
15753         * lib/mountlist.c (read_file_system_list): Split a long line,
15754         correct bracing style, use NULL in place of "(struct statfs *)0",
15755         don't parenthesize return value, add spaces around "=" and after
15756         ";-in-for-stmt".
15757
15758 2011-01-14  Markus Duft <mduft@gentoo.org>
15759
15760         mountlist: add support for Interix
15761         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15762         Apply statvfs to all entries of /dev/fs.
15763         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15764         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15765
15766 2011-01-20  Jim Meyering  <meyering@redhat.com>
15767
15768         maint.mk: improve the public-submodule-commit rule
15769         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15770         to suppress printing of its commands... unless V=1.
15771         Add git submodule's --quiet option to suppress printing of e.g.,
15772         "Entering gnulib" output.
15773         "cd" into $(srcdir) before running git submodule.
15774
15775 2011-01-20  Bruno Haible  <bruno@clisp.org>
15776
15777         include_next: Fix bug introduced on 2011-01-18.
15778         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15779         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15780         ac_cv_header_... variable if the second argument is not 'check'.
15781         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15782         gl_NEXT_HEADERS_INTERNAL.
15783
15784 2011-01-20  Bruno Haible  <bruno@clisp.org>
15785
15786         Allow the user to avoid the GNULIB_TEST_* macros.
15787         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15788         Suggested by Paul Eggert.
15789
15790 2011-01-14  Jim Meyering  <meyering@redhat.com>
15791
15792         bootstrap: avoid failure when there is no .gitmodules file
15793         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15794         has been assigned to, even when its value is the empty string.
15795         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15796         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15797         Reported by John W. Eaton <jwe@gnu.org>.
15798
15799 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15800
15801         assume <ctype.h>, ..., <time.h> exist
15802         For years gnulib has been assuming the existence of the headers
15803         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15804         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15805         them, since they don't appear to be needed.
15806         * README (Portability guidelines): Document this.
15807         * lib/flock.c: Assume <fcntl.h> exists.
15808         * lib/regex_internal.h: Assume <locale.h> exists.
15809         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15810         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15811         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15812         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15813         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15814         * m4/regex.m4 (gl_REGEX): Likewise.
15815         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15816         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15817         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15818         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15819         * tests/test-argp.c: Likewise.
15820         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15821
15822         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15823         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15824         AA_APPLE_UNIVERSAL_BUILD.  See
15825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15826         * NEWS: Document this.
15827
15828 2011-01-19  Eric Blake  <eblake@redhat.com>
15829
15830         c-stack: assume stack overflow if SA_SIGINFO unsupported
15831         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15832         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15833         sigaction will work.
15834         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15835         behavior match Linux.
15836         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15837
15838         stdbool-tests: accomodate Haiku
15839         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15840
15841         binary-io: fix O_TEXT on Haiku
15842         * modules/binary-io (Depends-on): Add fcntl-h.
15843         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15844         than blindly undefining O_TEXT.
15845         Reported by Scott McCreary.
15846
15847 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15848
15849         include_next: do not check for standard headers like stddef.h
15850
15851         I found this problem when modifying Emacs to use gnulib.
15852         I noticed that it added HAVE_STDDEF_H to config.h, even though
15853         gnulib always assumes <stddef.h> exists as per README and this
15854         symbol is unnecessary.
15855         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15856         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15857         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15858         faster for headers like stddef.h that are known to exist.
15859         (gl_CHECK_NEXT_HEADERS): Use it.
15860         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15861         rather than gl_CHECK_NEXT_HEADERS.
15862         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15863         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15864
15865 2011-01-18  Eric Blake  <eblake@redhat.com>
15866
15867         ansi-c++-opt: skip C++ dependency style if C++ is unused
15868         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15869         tests when we know C++ compilation is not desired.
15870         Reported by Scott McCreary.
15871
15872 2011-01-18  Bruno Haible  <bruno@clisp.org>
15873
15874         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15875         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15876         (main): Perform test also when getrlimit and setrlimit don't exist or
15877         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15878         limiting the address space size using setrlimit, compare the address
15879         space size before and after the the test.
15880         * tests/test-dprintf-posix2.c: Likewise.
15881         * tests/test-fprintf-posix3.sh: Update skip messages.
15882         * tests/test-dprintf-posix2.sh: Likewise.
15883         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15884         * modules/dprintf-posix-tests (Depends-on): Likewise.
15885         Reported by Bruce Korb <bkorb@gnu.org> and
15886         Gary V. Vaughan <gary@gnu.org>.
15887
15888 2011-01-18  Bruno Haible  <bruno@clisp.org>
15889
15890         get-rusage-as: Improvement for Cygwin.
15891         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15892         areas that are merely reserved.
15893
15894 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15895
15896         strftime: remove dependencies on multibyte modules
15897
15898         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15899         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15900         only if __osf__ is defined, and I suspect OSF doesn't need these
15901         other modules.  If my guess is wrong, we'll need to come up with a
15902         variant of strftime that doesn't need the multibyte modules.
15903
15904         I discovered this problem when attempting modify Emacs to use the
15905         strftime module.  With the previous gnulib, this caused Emacs to
15906         need 31 new files, ranging from lib/config.charset to
15907         m4/wint_t.m4.  This was overkill and I expect would be offputting
15908         to the Emacs maintainers.  After this change, only 6 new files are
15909         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15910         stdbool.m4, and tm_gmtoff.m4.
15911
15912         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15913         Suggested by Bruno Haible in
15914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15915         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15916         and do not check for wchar.h.
15917         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15918         (Depends-on): Remove mbrlen, mbsinit, wchar.
15919
15920 2011-01-18  Bruno Haible  <bruno@clisp.org>
15921
15922         Tests for module 'get-rusage-as'.
15923         * modules/get-rusage-as-tests: New file.
15924         * tests/test-get-rusage-as.c: New file.
15925
15926         New module 'get-rusage-as'.
15927         * modules/get-rusage-as: New file.
15928         * lib/resource-ext.h: New file.
15929         * lib/get-rusage-as.c: New file.
15930
15931 2011-01-17  Eric Blake  <eblake@redhat.com>
15932
15933         sigaction: relax license from LGPLv3+ to LGPLv2+
15934         * modules/sigaction (License): Relax to LGPLv2+.
15935
15936 2011-01-14  Bruno Haible  <bruno@clisp.org>
15937
15938         filemode: Make function declarations usable in C++ mode.
15939         * lib/filemode.h: Enclose function declarations in extern "C" block.
15940         Reported by John W. Eaton <jwe@gnu.org>.
15941
15942 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15943
15944         save-cwd: no longer include "xgetcwd.h"
15945         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15946         This avoids a compilation failure in projects that use save-cwd
15947         without also using the xgetcwd module.
15948
15949 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15950
15951         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15952         This is so that a program like Emacs, which needs only dtoastr,
15953         does not have to bother with distributing and compiling ftoastr
15954         and ldtoastr.
15955         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15956         * modules/dtoastr, modules/ldtoastr: New files.
15957         * modules/ftoastr: Now works just for 'float'.
15958         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15959         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15960         dtoastr.c, ldtoastr.c.
15961
15962 2011-01-11  Jim Meyering  <meyering@redhat.com>
15963
15964         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15965         There is no need to work around the lack of the fchdir function,
15966         since gnulib can now provide a replacement when required.
15967         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15968         * modules/save-cwd (Depends-on): Add fchdir.
15969
15970 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15971
15972         openat, save-cwd: avoid xmalloc
15973
15974         This removes a direct (but undocumented) dependency of openat on
15975         xalloc, along with an indirect dependency via save-cwd.  It also
15976         removes a dependency of save-cwd on xgetcwd, and thereby
15977         indirectly on xalloc.  This change causes the openat substitute
15978         to fall back on save_cwd when memory is tight, and for save_cwd to
15979         fail instead of dying when memory is tight, but that's good enough.
15980         Problem and initial idea for fix reported by Bastien Roucaries in
15981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15982
15983         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15984         xalloc.h (for xmalloc).
15985         (openat_proc_name): Use malloc, not xmalloc.
15986         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15987         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15988
15989         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15990         This avoids heap allocation for file names whose lengths are in
15991         the range 512..1023, with the upper bound increasing to at most
15992         4031 depending on the platform's PATH_MAX.  (We do not want
15993         pathmax.h here as it might supply a non-constant PATH_MAX.)
15994         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15995         Perhaps they should be moved to malloca.h?
15996         (OPENAT_BUFFER_SIZE): Use them.
15997
15998 2011-01-10  Bruno Haible  <bruno@clisp.org>
15999
16000         doc: Update users.txt.
16001         * users.txt: Add recutils.
16002
16003 2011-01-09  Karl Berry  <karl@gnu.org>
16004
16005         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16006
16007         * doc/configmake.texi: New file.
16008         * doc/gnulib.texi: Include it.
16009         * modules/configmake: Move documentation from here.
16010
16011 2011-01-09  Bruno Haible  <bruno@clisp.org>
16012
16013         Update to Unicode 6.0.0.
16014         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16015         (get_lbp): Update for Unicode 6.0.0.
16016         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16017         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16018         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16019         U+11001, U+11038..U+11046. Remove U+06DE.
16020         (uc_width): Fix bounds of planes.
16021         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16022         lib/uniwidth/width.c.
16023         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16024         trailing whitespace removed.
16025         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16026         without comments, but with the original copyright notice.
16027         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16028         * lib/unicase/ignorable.h: Likewise.
16029         * lib/unicase/tocasefold.h: Likewise.
16030         * lib/unicase/tolower.h: Likewise.
16031         * lib/unicase/totitle.h: Likewise.
16032         * lib/unicase/toupper.h: Likewise.
16033         * lib/unictype/bidi_of.h: Likewise.
16034         * lib/unictype/blocks.h: Likewise.
16035         * lib/unictype/categ_C.h: Likewise.
16036         * lib/unictype/categ_Cn.h: Likewise.
16037         * lib/unictype/categ_L.h: Likewise.
16038         * lib/unictype/categ_Ll.h: Likewise.
16039         * lib/unictype/categ_Lm.h: Likewise.
16040         * lib/unictype/categ_Lo.h: Likewise.
16041         * lib/unictype/categ_Lu.h: Likewise.
16042         * lib/unictype/categ_M.h: Likewise.
16043         * lib/unictype/categ_Mc.h: Likewise.
16044         * lib/unictype/categ_Me.h: Likewise.
16045         * lib/unictype/categ_Mn.h: Likewise.
16046         * lib/unictype/categ_N.h: Likewise.
16047         * lib/unictype/categ_Nd.h: Likewise.
16048         * lib/unictype/categ_No.h: Likewise.
16049         * lib/unictype/categ_P.h: Likewise.
16050         * lib/unictype/categ_Po.h: Likewise.
16051         * lib/unictype/categ_S.h: Likewise.
16052         * lib/unictype/categ_Sc.h: Likewise.
16053         * lib/unictype/categ_Sk.h: Likewise.
16054         * lib/unictype/categ_Sm.h: Likewise.
16055         * lib/unictype/categ_So.h: Likewise.
16056         * lib/unictype/categ_of.h: Likewise.
16057         * lib/unictype/combining.h: Likewise.
16058         * lib/unictype/ctype_alnum.h: Likewise.
16059         * lib/unictype/ctype_alpha.h: Likewise.
16060         * lib/unictype/ctype_graph.h: Likewise.
16061         * lib/unictype/ctype_lower.h: Likewise.
16062         * lib/unictype/ctype_print.h: Likewise.
16063         * lib/unictype/ctype_punct.h: Likewise.
16064         * lib/unictype/ctype_upper.h: Likewise.
16065         * lib/unictype/decdigit.h: Likewise.
16066         * lib/unictype/digit.h: Likewise.
16067         * lib/unictype/numeric.h: Likewise.
16068         * lib/unictype/pr_alphabetic.h: Likewise.
16069         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16070         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16071         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16072         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16073         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16074         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16075         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16076         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16077         * lib/unictype/pr_case_ignorable.h: Likewise.
16078         * lib/unictype/pr_cased.h: Likewise.
16079         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16080         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16081         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16082         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16083         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16084         * lib/unictype/pr_combining.h: Likewise.
16085         * lib/unictype/pr_composite.h: Likewise.
16086         * lib/unictype/pr_currency_symbol.h: Likewise.
16087         * lib/unictype/pr_decimal_digit.h: Likewise.
16088         * lib/unictype/pr_deprecated.h: Likewise.
16089         * lib/unictype/pr_format_control.h: Likewise.
16090         * lib/unictype/pr_grapheme_base.h: Likewise.
16091         * lib/unictype/pr_grapheme_extend.h: Likewise.
16092         * lib/unictype/pr_grapheme_link.h: Likewise.
16093         * lib/unictype/pr_id_continue.h: Likewise.
16094         * lib/unictype/pr_id_start.h: Likewise.
16095         * lib/unictype/pr_ideographic.h: Likewise.
16096         * lib/unictype/pr_lowercase.h: Likewise.
16097         * lib/unictype/pr_math.h: Likewise.
16098         * lib/unictype/pr_numeric.h: Likewise.
16099         * lib/unictype/pr_other_alphabetic.h: Likewise.
16100         * lib/unictype/pr_other_id_continue.h: Likewise.
16101         * lib/unictype/pr_other_math.h: Likewise.
16102         * lib/unictype/pr_punctuation.h: Likewise.
16103         * lib/unictype/pr_sentence_terminal.h: Likewise.
16104         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16105         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16106         * lib/unictype/pr_unified_ideograph.h: Likewise.
16107         * lib/unictype/pr_uppercase.h: Likewise.
16108         * lib/unictype/pr_xid_continue.h: Likewise.
16109         * lib/unictype/pr_xid_start.h: Likewise.
16110         * lib/unictype/scripts.h: Likewise.
16111         * lib/unictype/scripts_byname.gperf: Likewise.
16112         * lib/unictype/sy_java_ident.h: Likewise.
16113         * lib/unigbrk/gbrkprop.h: Likewise.
16114         * lib/unilbrk/lbrkprop1.h: Likewise.
16115         * lib/unilbrk/lbrkprop2.h: Likewise.
16116         * lib/uninorm/decomposition-table2.h: Likewise.
16117         * lib/uniwbrk/wbrkprop.h: Likewise.
16118         * tests/unicase/test-cased.c: Likewise.
16119         * tests/unicase/test-ignorable.c: Likewise.
16120         * tests/unicase/test-uc_tolower.c: Likewise.
16121         * tests/unicase/test-uc_totitle.c: Likewise.
16122         * tests/unicase/test-uc_toupper.c: Likewise.
16123         * tests/unictype/test-categ_C.c: Likewise.
16124         * tests/unictype/test-categ_Cn.c: Likewise.
16125         * tests/unictype/test-categ_L.c: Likewise.
16126         * tests/unictype/test-categ_Ll.c: Likewise.
16127         * tests/unictype/test-categ_Lm.c: Likewise.
16128         * tests/unictype/test-categ_Lo.c: Likewise.
16129         * tests/unictype/test-categ_Lu.c: Likewise.
16130         * tests/unictype/test-categ_M.c: Likewise.
16131         * tests/unictype/test-categ_Mc.c: Likewise.
16132         * tests/unictype/test-categ_Me.c: Likewise.
16133         * tests/unictype/test-categ_Mn.c: Likewise.
16134         * tests/unictype/test-categ_N.c: Likewise.
16135         * tests/unictype/test-categ_Nd.c: Likewise.
16136         * tests/unictype/test-categ_No.c: Likewise.
16137         * tests/unictype/test-categ_P.c: Likewise.
16138         * tests/unictype/test-categ_Po.c: Likewise.
16139         * tests/unictype/test-categ_S.c: Likewise.
16140         * tests/unictype/test-categ_Sc.c: Likewise.
16141         * tests/unictype/test-categ_Sk.c: Likewise.
16142         * tests/unictype/test-categ_Sm.c: Likewise.
16143         * tests/unictype/test-categ_So.c: Likewise.
16144         * tests/unictype/test-ctype_alnum.c: Likewise.
16145         * tests/unictype/test-ctype_alpha.c: Likewise.
16146         * tests/unictype/test-ctype_graph.c: Likewise.
16147         * tests/unictype/test-ctype_lower.c: Likewise.
16148         * tests/unictype/test-ctype_print.c: Likewise.
16149         * tests/unictype/test-ctype_punct.c: Likewise.
16150         * tests/unictype/test-ctype_upper.c: Likewise.
16151         * tests/unictype/test-decdigit.h: Likewise.
16152         * tests/unictype/test-digit.h: Likewise.
16153         * tests/unictype/test-numeric.h: Likewise.
16154         * tests/unictype/test-pr_alphabetic.c: Likewise.
16155         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16156         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16157         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16158         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16159         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16160         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16161         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16162         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16163         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16164         * tests/unictype/test-pr_cased.c: Likewise.
16165         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16166         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16167         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16168         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16169         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16170         * tests/unictype/test-pr_combining.c: Likewise.
16171         * tests/unictype/test-pr_composite.c: Likewise.
16172         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16173         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16174         * tests/unictype/test-pr_deprecated.c: Likewise.
16175         * tests/unictype/test-pr_format_control.c: Likewise.
16176         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16177         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16178         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16179         * tests/unictype/test-pr_id_continue.c: Likewise.
16180         * tests/unictype/test-pr_id_start.c: Likewise.
16181         * tests/unictype/test-pr_ideographic.c: Likewise.
16182         * tests/unictype/test-pr_lowercase.c: Likewise.
16183         * tests/unictype/test-pr_math.c: Likewise.
16184         * tests/unictype/test-pr_numeric.c: Likewise.
16185         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16186         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16187         * tests/unictype/test-pr_other_math.c: Likewise.
16188         * tests/unictype/test-pr_punctuation.c: Likewise.
16189         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16190         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16191         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16192         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16193         * tests/unictype/test-pr_uppercase.c: Likewise.
16194         * tests/unictype/test-pr_xid_continue.c: Likewise.
16195         * tests/unictype/test-pr_xid_start.c: Likewise.
16196         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16197         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16198         changes.
16199         * lib/unictype/categ_Cc.h: Likewise.
16200         * lib/unictype/categ_Cf.h: Likewise.
16201         * lib/unictype/categ_Co.h: Likewise.
16202         * lib/unictype/categ_Cs.h: Likewise.
16203         * lib/unictype/categ_Lt.h: Likewise.
16204         * lib/unictype/categ_Nl.h: Likewise.
16205         * lib/unictype/categ_Pc.h: Likewise.
16206         * lib/unictype/categ_Pd.h: Likewise.
16207         * lib/unictype/categ_Pe.h: Likewise.
16208         * lib/unictype/categ_Pf.h: Likewise.
16209         * lib/unictype/categ_Pi.h: Likewise.
16210         * lib/unictype/categ_Ps.h: Likewise.
16211         * lib/unictype/categ_Z.h: Likewise.
16212         * lib/unictype/categ_Zl.h: Likewise.
16213         * lib/unictype/categ_Zp.h: Likewise.
16214         * lib/unictype/categ_Zs.h: Likewise.
16215         * lib/unictype/ctype_blank.h: Likewise.
16216         * lib/unictype/ctype_cntrl.h: Likewise.
16217         * lib/unictype/ctype_digit.h: Likewise.
16218         * lib/unictype/ctype_space.h: Likewise.
16219         * lib/unictype/ctype_xdigit.h: Likewise.
16220         * lib/unictype/mirror.h: Likewise.
16221         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16222         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16223         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16224         * lib/unictype/pr_bidi_control.h: Likewise.
16225         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16226         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16227         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16228         * lib/unictype/pr_bidi_pdf.h: Likewise.
16229         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16230         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16231         * lib/unictype/pr_dash.h: Likewise.
16232         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16233         * lib/unictype/pr_diacritic.h: Likewise.
16234         * lib/unictype/pr_extender.h: Likewise.
16235         * lib/unictype/pr_hex_digit.h: Likewise.
16236         * lib/unictype/pr_hyphen.h: Likewise.
16237         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16238         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16239         * lib/unictype/pr_ignorable_control.h: Likewise.
16240         * lib/unictype/pr_iso_control.h: Likewise.
16241         * lib/unictype/pr_join_control.h: Likewise.
16242         * lib/unictype/pr_left_of_pair.h: Likewise.
16243         * lib/unictype/pr_line_separator.h: Likewise.
16244         * lib/unictype/pr_logical_order_exception.h: Likewise.
16245         * lib/unictype/pr_non_break.h: Likewise.
16246         * lib/unictype/pr_not_a_character.h: Likewise.
16247         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16248         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16249         * lib/unictype/pr_other_id_start.h: Likewise.
16250         * lib/unictype/pr_other_lowercase.h: Likewise.
16251         * lib/unictype/pr_other_uppercase.h: Likewise.
16252         * lib/unictype/pr_paired_punctuation.h: Likewise.
16253         * lib/unictype/pr_paragraph_separator.h: Likewise.
16254         * lib/unictype/pr_pattern_syntax.h: Likewise.
16255         * lib/unictype/pr_pattern_white_space.h: Likewise.
16256         * lib/unictype/pr_private_use.h: Likewise.
16257         * lib/unictype/pr_quotation_mark.h: Likewise.
16258         * lib/unictype/pr_radical.h: Likewise.
16259         * lib/unictype/pr_soft_dotted.h: Likewise.
16260         * lib/unictype/pr_space.h: Likewise.
16261         * lib/unictype/pr_titlecase.h: Likewise.
16262         * lib/unictype/pr_variation_selector.h: Likewise.
16263         * lib/unictype/pr_white_space.h: Likewise.
16264         * lib/unictype/pr_zero_width.h: Likewise.
16265         * lib/unictype/sy_c_ident.h: Likewise.
16266         * lib/unictype/sy_c_whitespace.h: Likewise.
16267         * lib/unictype/sy_java_whitespace.h: Likewise.
16268         * lib/uninorm/composition-table.gperf: Likewise.
16269         * lib/uninorm/decomposition-table1.h: Likewise.
16270         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16271         LB8.
16272         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16273         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16274         * modules/unictype/*: Bump version number of expected libunistring
16275         version.
16276
16277 2011-01-09  Bruno Haible  <bruno@clisp.org>
16278
16279         Update to Unicode 5.2.0.
16280         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16281         trailing whitespace removed.
16282
16283 2011-01-09  Bruno Haible  <bruno@clisp.org>
16284
16285         New Unicode character properties, from Unicode 5.2.0.
16286         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16287         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16288         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16289         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16290         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16291         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16292         uc_is_property_cased, uc_is_property_case_ignorable,
16293         uc_is_property_changes_when_lowercased,
16294         uc_is_property_changes_when_uppercased,
16295         uc_is_property_changes_when_titlecased,
16296         uc_is_property_changes_when_casefolded,
16297         uc_is_property_changes_when_casemapped): New declarations.
16298         * lib/unictype/pr_byname.gperf: Add the new properties.
16299         * modules/unictype/property-byname (Depends-on): Depend on the new
16300         properties modules.
16301         * modules/unictype/property-all (Depends-on): Likewise.
16302         * MODULES.html.sh (Unicode string functions): Add
16303         unictype/property-case-ignorable, unictype/property-cased,
16304         unictype/property-changes-when-casefolded,
16305         unictype/property-changes-when-casemapped,
16306         unictype/property-changes-when-lowercased,
16307         unictype/property-changes-when-titlecased,
16308         unictype/property-changes-when-uppercased.
16309
16310         New module 'unictype/property-changes-when-casemapped'.
16311         * modules/unictype/property-changes-when-casemapped: New file.
16312         * lib/unictype/pr_changes_when_casemapped.c: New file.
16313         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16314         generated by gen-uni-tables.
16315         * modules/unictype/property-changes-when-casemapped-tests: New file.
16316         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16317         automatically generated by gen-uni-tables.
16318
16319         New module 'unictype/property-changes-when-casefolded'.
16320         * modules/unictype/property-changes-when-casefolded: New file.
16321         * lib/unictype/pr_changes_when_casefolded.c: New file.
16322         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16323         generated by gen-uni-tables.
16324         * modules/unictype/property-changes-when-casefolded-tests: New file.
16325         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16326         automatically generated by gen-uni-tables.
16327
16328         New module 'unictype/property-changes-when-titlecased'.
16329         * modules/unictype/property-changes-when-titlecased: New file.
16330         * lib/unictype/pr_changes_when_titlecased.c: New file.
16331         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16332         generated by gen-uni-tables.
16333         * modules/unictype/property-changes-when-titlecased-tests: New file.
16334         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16335         automatically generated by gen-uni-tables.
16336
16337         New module 'unictype/property-changes-when-uppercased'.
16338         * modules/unictype/property-changes-when-uppercased: New file.
16339         * lib/unictype/pr_changes_when_uppercased.c: New file.
16340         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16341         generated by gen-uni-tables.
16342         * modules/unictype/property-changes-when-uppercased-tests: New file.
16343         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16344         automatically generated by gen-uni-tables.
16345
16346         New module 'unictype/property-changes-when-lowercased'.
16347         * modules/unictype/property-changes-when-lowercased: New file.
16348         * lib/unictype/pr_changes_when_lowercased.c: New file.
16349         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16350         generated by gen-uni-tables.
16351         * modules/unictype/property-changes-when-lowercased-tests: New file.
16352         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16353         automatically generated by gen-uni-tables.
16354
16355         New module 'unictype/property-case-ignorable'.
16356         * modules/unictype/property-case-ignorable: New file.
16357         * lib/unictype/pr_case_ignorable.c: New file.
16358         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16359         by gen-uni-tables.
16360         * modules/unictype/property-case-ignorable-tests: New file.
16361         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16362         generated by gen-uni-tables.
16363
16364         New module 'unictype/property-cased'.
16365         * modules/unictype/property-cased: New file.
16366         * lib/unictype/pr_cased.c: New file.
16367         * lib/unictype/pr_cased.h: New file, automatically generated by
16368         gen-uni-tables.
16369         * modules/unictype/property-cased-tests: New file.
16370         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16371         gen-uni-tables.
16372
16373 2011-01-09  Bruno Haible  <bruno@clisp.org>
16374
16375         Update to Unicode 5.2.0.
16376         * lib/gen-uni-tables.c (output_predicate, output_category,
16377         output_combclass, output_bidi_category, output_decimal_digit_test,
16378         output_decimal_digit, output_digit_test, output_digit,
16379         output_numeric_test, output_numeric, output_mirror, output_scripts,
16380         output_scripts_byname, output_blocks, output_ident_category): Fix
16381         comment header.
16382         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16383         get_wbp.
16384         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16385         items.
16386         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16387         Changes_When_Lowercased, Changes_When_Uppercased,
16388         Changes_When_Titlecased, Changes_When_Casefolded,
16389         Changes_When_Casemapped.
16390         (is_property_alphabetic, is_property_default_ignorable_code_point):
16391         Update for Unicode 5.2.0.
16392         (is_property_cased, is_property_case_ignorable,
16393         is_property_changes_when_lowercased,
16394         is_property_changes_when_uppercased,
16395         is_property_changes_when_titlecased,
16396         is_property_changes_when_casefolded,
16397         is_property_changes_when_casemapped): New functions.
16398         (output_properties): Output also the properties cased, case_ignorable,
16399         changes_when_lowercased, changes_when_uppercased,
16400         changes_when_titlecased, changes_when_casefolded,
16401         changes_when_casemapped.
16402         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16403         Unicode TR#11 revision 17 -> 19.
16404         (LBP_CP): New enumeration value.
16405         (LBP_*): Adjust values accordingly.
16406         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16407         TR#14 revision 22 -> 24.
16408         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16409         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16410         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16411         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16412         is_WBP_MIDLETTER.
16413         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16414         the code1 and code2 of each composition rule.
16415         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16416         * lib/unicase/ignorable.h: Likewise.
16417         * lib/unicase/tocasefold.h: Likewise.
16418         * lib/unicase/tolower.h: Likewise.
16419         * lib/unicase/totitle.h: Likewise.
16420         * lib/unicase/toupper.h: Likewise.
16421         * lib/unictype/bidi_of.h: Likewise.
16422         * lib/unictype/blocks.h: Likewise.
16423         * lib/unictype/categ_C.h: Likewise.
16424         * lib/unictype/categ_Cf.h: Likewise.
16425         * lib/unictype/categ_Cn.h: Likewise.
16426         * lib/unictype/categ_L.h: Likewise.
16427         * lib/unictype/categ_Ll.h: Likewise.
16428         * lib/unictype/categ_Lm.h: Likewise.
16429         * lib/unictype/categ_Lo.h: Likewise.
16430         * lib/unictype/categ_Lu.h: Likewise.
16431         * lib/unictype/categ_M.h: Likewise.
16432         * lib/unictype/categ_Mc.h: Likewise.
16433         * lib/unictype/categ_Mn.h: Likewise.
16434         * lib/unictype/categ_N.h: Likewise.
16435         * lib/unictype/categ_Nd.h: Likewise.
16436         * lib/unictype/categ_Nl.h: Likewise.
16437         * lib/unictype/categ_No.h: Likewise.
16438         * lib/unictype/categ_P.h: Likewise.
16439         * lib/unictype/categ_Pd.h: Likewise.
16440         * lib/unictype/categ_Po.h: Likewise.
16441         * lib/unictype/categ_S.h: Likewise.
16442         * lib/unictype/categ_Sc.h: Likewise.
16443         * lib/unictype/categ_So.h: Likewise.
16444         * lib/unictype/categ_of.h: Likewise.
16445         * lib/unictype/combining.h: Likewise.
16446         * lib/unictype/ctype_alnum.h: Likewise.
16447         * lib/unictype/ctype_alpha.h: Likewise.
16448         * lib/unictype/ctype_graph.h: Likewise.
16449         * lib/unictype/ctype_lower.h: Likewise.
16450         * lib/unictype/ctype_print.h: Likewise.
16451         * lib/unictype/ctype_punct.h: Likewise.
16452         * lib/unictype/ctype_upper.h: Likewise.
16453         * lib/unictype/decdigit.h: Likewise.
16454         * lib/unictype/digit.h: Likewise.
16455         * lib/unictype/numeric.h: Likewise.
16456         * lib/unictype/pr_alphabetic.h: Likewise.
16457         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16458         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16459         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16460         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16461         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16462         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16463         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16464         * lib/unictype/pr_combining.h: Likewise.
16465         * lib/unictype/pr_composite.h: Likewise.
16466         * lib/unictype/pr_currency_symbol.h: Likewise.
16467         * lib/unictype/pr_dash.h: Likewise.
16468         * lib/unictype/pr_decimal_digit.h: Likewise.
16469         * lib/unictype/pr_deprecated.h: Likewise.
16470         * lib/unictype/pr_diacritic.h: Likewise.
16471         * lib/unictype/pr_extender.h: Likewise.
16472         * lib/unictype/pr_grapheme_base.h: Likewise.
16473         * lib/unictype/pr_grapheme_extend.h: Likewise.
16474         * lib/unictype/pr_grapheme_link.h: Likewise.
16475         * lib/unictype/pr_id_continue.h: Likewise.
16476         * lib/unictype/pr_id_start.h: Likewise.
16477         * lib/unictype/pr_ideographic.h: Likewise.
16478         * lib/unictype/pr_ignorable_control.h: Likewise.
16479         * lib/unictype/pr_logical_order_exception.h: Likewise.
16480         * lib/unictype/pr_lowercase.h: Likewise.
16481         * lib/unictype/pr_numeric.h: Likewise.
16482         * lib/unictype/pr_other_alphabetic.h: Likewise.
16483         * lib/unictype/pr_punctuation.h: Likewise.
16484         * lib/unictype/pr_sentence_terminal.h: Likewise.
16485         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16486         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16487         * lib/unictype/pr_unified_ideograph.h: Likewise.
16488         * lib/unictype/pr_uppercase.h: Likewise.
16489         * lib/unictype/pr_xid_continue.h: Likewise.
16490         * lib/unictype/pr_xid_start.h: Likewise.
16491         * lib/unictype/pr_zero_width.h: Likewise.
16492         * lib/unictype/scripts.h: Likewise.
16493         * lib/unictype/scripts_byname.gperf: Likewise.
16494         * lib/unictype/sy_java_ident.h: Likewise.
16495         * lib/unigbrk/gbrkprop.h: Likewise.
16496         * lib/unilbrk/lbrkprop1.h: Likewise.
16497         * lib/unilbrk/lbrkprop2.h: Likewise.
16498         * lib/unilbrk/lbrktables.h: Likewise.
16499         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16500         LBP_CP. Implement rule LB30.
16501         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16502         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16503         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16504         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16505         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16506         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16507         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16508         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16509         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16510         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16511         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16512         bits instead of 16 bits in the code1 and code2 of each composition
16513         rule.
16514         (uc_composition): Update for Unicode 5.2.0.
16515         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16516         * lib/uninorm/decomposition-table2.h: Likewise.
16517         * lib/uniwbrk/wbrkprop.h: Likewise.
16518         * tests/unicase/test-cased.c: Likewise.
16519         * tests/unicase/test-ignorable.c: Likewise.
16520         * tests/unicase/test-uc_tolower.c: Likewise.
16521         * tests/unicase/test-uc_totitle.c: Likewise.
16522         * tests/unicase/test-uc_toupper.c: Likewise.
16523         * tests/unictype/test-categ_C.c: Likewise.
16524         * tests/unictype/test-categ_Cf.c: Likewise.
16525         * tests/unictype/test-categ_Cn.c: Likewise.
16526         * tests/unictype/test-categ_L.c: Likewise.
16527         * tests/unictype/test-categ_Ll.c: Likewise.
16528         * tests/unictype/test-categ_Lm.c: Likewise.
16529         * tests/unictype/test-categ_Lo.c: Likewise.
16530         * tests/unictype/test-categ_Lu.c: Likewise.
16531         * tests/unictype/test-categ_M.c: Likewise.
16532         * tests/unictype/test-categ_Mc.c: Likewise.
16533         * tests/unictype/test-categ_Mn.c: Likewise.
16534         * tests/unictype/test-categ_N.c: Likewise.
16535         * tests/unictype/test-categ_Nd.c: Likewise.
16536         * tests/unictype/test-categ_Nl.c: Likewise.
16537         * tests/unictype/test-categ_No.c: Likewise.
16538         * tests/unictype/test-categ_P.c: Likewise.
16539         * tests/unictype/test-categ_Pd.c: Likewise.
16540         * tests/unictype/test-categ_Po.c: Likewise.
16541         * tests/unictype/test-categ_S.c: Likewise.
16542         * tests/unictype/test-categ_Sc.c: Likewise.
16543         * tests/unictype/test-categ_So.c: Likewise.
16544         * tests/unictype/test-ctype_alnum.c: Likewise.
16545         * tests/unictype/test-ctype_alpha.c: Likewise.
16546         * tests/unictype/test-ctype_graph.c: Likewise.
16547         * tests/unictype/test-ctype_lower.c: Likewise.
16548         * tests/unictype/test-ctype_print.c: Likewise.
16549         * tests/unictype/test-ctype_punct.c: Likewise.
16550         * tests/unictype/test-ctype_upper.c: Likewise.
16551         * tests/unictype/test-decdigit.h: Likewise.
16552         * tests/unictype/test-digit.h: Likewise.
16553         * tests/unictype/test-numeric.h: Likewise.
16554         * tests/unictype/test-pr_alphabetic.c: Likewise.
16555         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16556         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16557         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16558         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16559         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16560         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16561         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16562         * tests/unictype/test-pr_combining.c: Likewise.
16563         * tests/unictype/test-pr_composite.c: Likewise.
16564         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16565         * tests/unictype/test-pr_dash.c: Likewise.
16566         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16567         * tests/unictype/test-pr_deprecated.c: Likewise.
16568         * tests/unictype/test-pr_diacritic.c: Likewise.
16569         * tests/unictype/test-pr_extender.c: Likewise.
16570         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16571         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16572         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16573         * tests/unictype/test-pr_id_continue.c: Likewise.
16574         * tests/unictype/test-pr_id_start.c: Likewise.
16575         * tests/unictype/test-pr_ideographic.c: Likewise.
16576         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16577         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16578         * tests/unictype/test-pr_lowercase.c: Likewise.
16579         * tests/unictype/test-pr_numeric.c: Likewise.
16580         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16581         * tests/unictype/test-pr_punctuation.c: Likewise.
16582         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16583         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16584         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16585         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16586         * tests/unictype/test-pr_uppercase.c: Likewise.
16587         * tests/unictype/test-pr_xid_continue.c: Likewise.
16588         * tests/unictype/test-pr_xid_start.c: Likewise.
16589         * tests/unictype/test-pr_zero_width.c: Likewise.
16590         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16591         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16592         changed behaviour: line breaking is now disallowed between a letter
16593         or '=' and '('.
16594         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16595         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16596         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16597         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16598         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16599         lib/uniwidth/width.c.
16600         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16601         without comments, but with the original copyright notice.
16602         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16603         changes.
16604         * lib/unictype/categ_Cc.h: Likewise.
16605         * lib/unictype/categ_Co.h: Likewise.
16606         * lib/unictype/categ_Cs.h: Likewise.
16607         * lib/unictype/categ_Lt.h: Likewise.
16608         * lib/unictype/categ_Me.h: Likewise.
16609         * lib/unictype/categ_Pc.h: Likewise.
16610         * lib/unictype/categ_Pe.h: Likewise.
16611         * lib/unictype/categ_Pf.h: Likewise.
16612         * lib/unictype/categ_Pi.h: Likewise.
16613         * lib/unictype/categ_Ps.h: Likewise.
16614         * lib/unictype/categ_Sk.h: Likewise.
16615         * lib/unictype/categ_Sm.h: Likewise.
16616         * lib/unictype/categ_Z.h: Likewise.
16617         * lib/unictype/categ_Zl.h: Likewise.
16618         * lib/unictype/categ_Zp.h: Likewise.
16619         * lib/unictype/categ_Zs.h: Likewise.
16620         * lib/unictype/ctype_blank.h: Likewise.
16621         * lib/unictype/ctype_cntrl.h: Likewise.
16622         * lib/unictype/ctype_digit.h: Likewise.
16623         * lib/unictype/ctype_space.h: Likewise.
16624         * lib/unictype/ctype_xdigit.h: Likewise.
16625         * lib/unictype/mirror.h: Likewise.
16626         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16627         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16628         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16629         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16630         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16631         * lib/unictype/pr_bidi_control.h: Likewise.
16632         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16633         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16634         * lib/unictype/pr_bidi_pdf.h: Likewise.
16635         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16636         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16637         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16638         * lib/unictype/pr_format_control.h: Likewise.
16639         * lib/unictype/pr_hex_digit.h: Likewise.
16640         * lib/unictype/pr_hyphen.h: Likewise.
16641         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16642         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16643         * lib/unictype/pr_iso_control.h: Likewise.
16644         * lib/unictype/pr_join_control.h: Likewise.
16645         * lib/unictype/pr_left_of_pair.h: Likewise.
16646         * lib/unictype/pr_line_separator.h: Likewise.
16647         * lib/unictype/pr_math.h: Likewise.
16648         * lib/unictype/pr_non_break.h: Likewise.
16649         * lib/unictype/pr_not_a_character.h: Likewise.
16650         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16651         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16652         * lib/unictype/pr_other_id_continue.h: Likewise.
16653         * lib/unictype/pr_other_id_start.h: Likewise.
16654         * lib/unictype/pr_other_lowercase.h: Likewise.
16655         * lib/unictype/pr_other_math.h: Likewise.
16656         * lib/unictype/pr_other_uppercase.h: Likewise.
16657         * lib/unictype/pr_paired_punctuation.h: Likewise.
16658         * lib/unictype/pr_paragraph_separator.h: Likewise.
16659         * lib/unictype/pr_pattern_syntax.h: Likewise.
16660         * lib/unictype/pr_pattern_white_space.h: Likewise.
16661         * lib/unictype/pr_private_use.h: Likewise.
16662         * lib/unictype/pr_quotation_mark.h: Likewise.
16663         * lib/unictype/pr_radical.h: Likewise.
16664         * lib/unictype/pr_soft_dotted.h: Likewise.
16665         * lib/unictype/pr_space.h: Likewise.
16666         * lib/unictype/pr_titlecase.h: Likewise.
16667         * lib/unictype/pr_variation_selector.h: Likewise.
16668         * lib/unictype/pr_white_space.h: Likewise.
16669         * lib/unictype/sy_c_ident.h: Likewise.
16670         * lib/unictype/sy_c_whitespace.h: Likewise.
16671         * lib/unictype/sy_java_whitespace.h: Likewise.
16672         * modules/uni*/*: Bump version number of expected libunistring version.
16673         Reported by Simon Josefsson.
16674
16675 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16676
16677         useless-if-before-free: fix typo in --help and make the internal,
16678         automatic version date update process work once again.
16679         --help output contained a NUL character instead of the
16680         backslash-zero that was intended.  Also, the "must lie within
16681         the first 8 lines" line is on line 9, and hence not getting
16682         automatically updated.
16683         * build-aux/useless-if-before-free: Fix the former by adding a
16684         backslash, and the latter by condensing the three lines of what-it-does
16685         to a single line, leaving one line of slack for the future.
16686
16687 2011-01-09  Bruno Haible  <bruno@clisp.org>
16688
16689         uniwidth/width: Fix width of U+1D173..U+1D17A.
16690         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16691         symbolic_width, output_width_property_test): New functions.
16692         (main): Invoke output_nonspacing_property, output_width_property_test.
16693         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16694         U+1D173..U+1D17A.
16695         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16696         1.
16697         * modules/uniwidth/*: Bump version number of expected libunistring
16698         version.
16699         * modules/unilbrk/*: Likewise.
16700
16701 2011-01-08  Bruno Haible  <bruno@clisp.org>
16702
16703         uninorm tests: Preserve copyright of Unicode data file.
16704         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16705         Mention modifications.
16706
16707 2011-01-08  Bruno Haible  <bruno@clisp.org>
16708
16709         gen-uni-tables: Prepare for Unicode 5.2.0.
16710         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16711         (debug_output_lbp, output_lbp): Update.
16712
16713 2011-01-08  Bruno Haible  <bruno@clisp.org>
16714
16715         unilbrk: Clarify gen-uni-tables.c code.
16716         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16717         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16718         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16719
16720 2011-01-07  Bruno Haible  <bruno@clisp.org>
16721
16722         strtod: Restore errno when successfully parsing Infinity or NaN.
16723         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16724         restore the original errno.
16725
16726 2011-01-07  Bruno Haible  <bruno@clisp.org>
16727
16728         remove test: Avoid failure on HP-UX 11.
16729         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16730
16731 2011-01-07  Bruno Haible  <bruno@clisp.org>
16732
16733         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16734         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16735         error code.
16736
16737 2011-01-07  Pádraig Brady <P@draigBrady.com>
16738
16739         ignore-value: fixup comments, and add Eric Blake
16740         as an author since he rewrote the macros.
16741         * lib/ignore-value.h (ignore_value):  State that
16742         we now support aggregates.  Also specify exactly
16743         when the GCC warn_unused_result feature was added.
16744
16745 2011-01-06  Eric Blake  <eblake@redhat.com>
16746
16747         ignore-value: support aggregate types
16748         * lib/ignore-value.h (ignore_value): Provide separate gcc
16749         definition.
16750         * modules/ignore-value-tests: New test module.
16751         * tests/test-ignore-value.c: New test.
16752
16753         maint.mk: improve sc_prohibit_strcmp regex
16754         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16755         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16756         definition of STRNEQ.
16757
16758         signal: work around Haiku issue with SIGBUS
16759         * lib/siglist.h: Add comment.
16760         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16761         strsignal's favoring of SIGSEGV.
16762         * tests/test-signal.c (main): Avoid test failure.
16763         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16764         Reported by Scott McCreary.
16765
16766         maint.mk: add pre-release check to ensure submodule commits are public
16767         * top/maint.mk (public-submodule-commit): New rule.
16768         (submodule-checks): New variable.
16769         (alpha beta stable): Depend on the variable.
16770
16771 2011-01-05  Pádraig Brady <P@draigBrady.com>
16772         and Jim Meyering  <meyering@redhat.com>
16773
16774         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16775         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16776         (ATTRIBUTE_DEPRECATED): Define.
16777         (_ignore_case): New function.
16778         (ignore_value): New macro, to replace the old function.
16779         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16780         * modules/ignore-value (Depends-on): Add stdint.
16781
16782 2011-01-04  Eric Blake  <eblake@redhat.com>
16783
16784         doc: regenerate INSTALL
16785         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16786         @firstparagraphindent support, now that autoconf dropped it.
16787         (INSTALL_PRELUDE): Reinstate old macro.
16788         * doc/install.texi: Resync from autoconf.
16789         * doc/INSTALL: Reflect recent autoconf update.
16790         * doc/INSTALL.ISO: Likewise.
16791         * doc/INSTALL.UTF-8: Likewise.
16792         Reported by Karl Berry.
16793
16794 2011-01-04  Bruce Korb  <address@hidden>
16795
16796         git-version-gen: avoid a sub-shell
16797         * build-aux/git-version-gen: Redirect stderr in `...` via
16798         "exec 2>...", rather than via an added sub-shell.
16799
16800 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16801
16802         git-version-gen: use (...) rather than sh -c '...'
16803         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16804         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16805
16806 2011-01-03  Jim Meyering  <meyering@redhat.com>
16807
16808         git-version-gen: convert leading TABs to spaces
16809         * build-aux/git-version-gen: Expand leading TABs.
16810
16811         git-version-gen: handle failed "git rev-list"
16812         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16813         from git and proceeding as if it had succeeded but printed no SHA1
16814         checksums, suppress the diagnostic and handle the failure.
16815         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16816
16817         git-version-gen: include command name in one more diagnostic
16818         * build-aux/git-version-gen: When the required .tarball-version file
16819         was missing or unreadable, you might see the diagnostic from "cat",
16820         but no trace of the name of the invoking script.  Now, you still see
16821         the diagnostic from cat, but also get one from "git-version-gen: ".
16822         Inspired by a patch from Bruce Korb.
16823
16824         update-copyright: adjust test to match changed code
16825         * tests/test-update-copyright.sh: Change test's expected output
16826         to match new actual output.
16827
16828 2011-01-02  Bruno Haible  <bruno@clisp.org>
16829
16830         getlogin_r: Avoid test failure on HP-UX 11.
16831         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16832         ERANGE when the second argument is zero.
16833         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16834         portability problem.
16835
16836 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16837
16838         * build-aux/update-copyright: doc Simon's changes
16839
16840 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16841
16842         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16843         environment variable.
16844
16845 2011-01-02  Bruno Haible  <bruno@clisp.org>
16846
16847         unigbrk: Avoid gcc warnings.
16848         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16849         unused variable.
16850         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16851         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16852         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16853         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16854         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16855         Change type of first argument to 'const char *'.
16856         (main): Remove unused variable.
16857         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16858         type of first argument to 'const char *'.
16859         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16860         Likewise.
16861         (main): Change type of variable 's'.
16862         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16863         to 'int'.
16864
16865 2011-01-02  Bruno Haible  <bruno@clisp.org>
16866
16867         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16868         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16869         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16870         bug.
16871         * lib/pwrite.c: Undo 2010-12-31 patch.
16872         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16873
16874 2011-01-02  Bruno Haible  <bruno@clisp.org>
16875
16876         pread: Fix test whether it works.
16877         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16878
16879 2011-01-02  Bruno Haible  <bruno@clisp.org>
16880
16881         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16882         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16883         ends in "6". Don't require a specific month name. Try also the locale
16884         names found on HP-UX 11 and Solaris 7.
16885
16886 2011-01-02  Bruno Haible  <bruno@clisp.org>
16887
16888         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16889         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16890         C linkage.
16891         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16892
16893 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16894
16895         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16896         for consistency, since the "cluster" term is not used elsewhere.
16897         * lib/unigbrk.in.h: Update name.
16898         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16899         * lib/unigbrk/u16-grapheme-next.c: Update name.
16900         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16901         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16902         * lib/unigbrk/u32-grapheme-next.c: Update name.
16903         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16904         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16905         * lib/unigbrk/u8-grapheme-next.c: Update name.
16906         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16907         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16908         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16909         Suggested by Bruno Haible.
16910
16911 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16912
16913         Remove module 'u8-grapheme-len' as too redundant with
16914         'u8-grapheme-next'.
16915         * modules/unigbrk/u8-grapheme-len: Delete file.
16916         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16917         * lib/unigbrk.in.h: Remove prototype for deleted function.
16918         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16919         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16920
16921         Remove module 'u16-grapheme-len' as too redundant with
16922         'u16-grapheme-next'.
16923         * modules/unigbrk/u16-grapheme-len: Delete file.
16924         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16925         * lib/unigbrk.in.h: Remove prototype for deleted function.
16926         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16927         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16928
16929         Remove module 'u32-grapheme-len' as too redundant with
16930         'u32-grapheme-next'.
16931         * modules/unigbrk/u32-grapheme-len: Delete file.
16932         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16933         * lib/unigbrk.in.h: Remove prototype for deleted function.
16934         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16935         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16936
16937         Suggested by Bruno Haible.
16938
16939 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16940
16941         * unigbrk.in.h: Fix typo: "ben" => "been".
16942         Reported by Bruno Haible.
16943
16944 2011-01-01  Jim Meyering  <meyering@redhat.com>
16945
16946         maint: update almost all copyright ranges to include 2011
16947         Run the new "make update-copyright" rule.
16948
16949 2011-01-01  Jim Meyering  <meyering@redhat.com>
16950
16951         maint: update-copyright: exempt doc/INSTALL*
16952         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16953         since they are generated.  Suggested by Bruno Haible.
16954
16955 2011-01-01  Jim Meyering  <meyering@redhat.com>
16956
16957         maint: refine the update-copyright rule
16958         * Makefile (update-copyright): Also exclude any file that includes
16959         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16960         code that merely generates the comment.
16961
16962 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16963
16964         New module 'u8-grapheme-len'.
16965         * modules/unigbrk/u8-grapheme-len: New file.
16966         * modules/unigbrk/u8-grapheme-len-tests: New file.
16967         * lib/unigbrk.in.h: Add prototype for new function.
16968         * lib/unigbrk/u8-grapheme-len.c: New file.
16969         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16970
16971         New module 'u16-grapheme-len'.
16972         * modules/unigbrk/u16-grapheme-len: New file.
16973         * modules/unigbrk/u16-grapheme-len-tests: New file.
16974         * lib/unigbrk.in.h: Add prototype for new function.
16975         * lib/unigbrk/u16-grapheme-len.c: New file.
16976         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16977
16978         New module 'u32-grapheme-len'.
16979         * modules/unigbrk/u32-grapheme-len: New file.
16980         * modules/unigbrk/u32-grapheme-len-tests: New file.
16981         * lib/unigbrk.in.h: Add prototype for new function.
16982         * lib/unigbrk/u32-grapheme-len.c: New file.
16983         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16984
16985         New module 'u8-grapheme-next'.
16986         * modules/unigbrk/u8-grapheme-next: New file.
16987         * modules/unigbrk/u8-grapheme-next-tests: New file.
16988         * lib/unigbrk.in.h: Add prototype for new function.
16989         * lib/unigbrk/u8-grapheme-next.c: New file.
16990         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16991
16992         New module 'u16-grapheme-next'.
16993         * modules/unigbrk/u16-grapheme-next: New file.
16994         * modules/unigbrk/u16-grapheme-next-tests: New file.
16995         * lib/unigbrk.in.h: Add prototype for new function.
16996         * lib/unigbrk/u16-grapheme-next.c: New file.
16997         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16998
16999         New module 'u32-grapheme-next'.
17000         * modules/unigbrk/u32-grapheme-next: New file.
17001         * modules/unigbrk/u32-grapheme-next-tests: New file.
17002         * lib/unigbrk.in.h: Add prototype for new function.
17003         * lib/unigbrk/u32-grapheme-next.c: New file.
17004         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17005
17006         New module 'u8-grapheme-prev'.
17007         * modules/unigbrk/u8-grapheme-prev: New file.
17008         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17009         * lib/unigbrk.in.h: Add prototype for new function.
17010         * lib/unigbrk/u8-grapheme-prev.c: New file.
17011         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17012
17013         New module 'u16-grapheme-prev'.
17014         * modules/unigbrk/u16-grapheme-prev: New file.
17015         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17016         * lib/unigbrk.in.h: Add prototype for new function.
17017         * lib/unigbrk/u16-grapheme-prev.c: New file.
17018         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17019
17020         New module 'u32-grapheme-prev'.
17021         * modules/unigbrk/u32-grapheme-prev: New file.
17022         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17023         * lib/unigbrk.in.h: Add prototype for new function.
17024         * lib/unigbrk/u32-grapheme-prev.c: New file.
17025         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17026
17027         New module 'u8-grapheme-breaks'.
17028         * modules/unigbrk/u8-grapheme-breaks: New file.
17029         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17030         * lib/unigbrk.in.h: Add prototype for new function.
17031         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17032         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17033
17034         New module 'u16-grapheme-breaks'.
17035         * modules/unigbrk/u16-grapheme-breaks: New file.
17036         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17037         * lib/unigbrk.in.h: Add prototype for new function.
17038         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17039         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17040
17041         New module 'u32-grapheme-breaks'.
17042         * modules/unigbrk/u32-grapheme-breaks: New file.
17043         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17044         * lib/unigbrk.in.h: Add prototype for new function.
17045         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17046         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17047
17048         New module 'ulc-grapheme-breaks'.
17049         * modules/unigbrk/ulc-grapheme-breaks: New file.
17050         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17051         * m4/locale-ar.m4: New file.
17052         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17053         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17054         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17055
17056 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17057
17058         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17059         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17060         modified how this file was generated before I initially submitted
17061         the module, but failed to regenerate it.  This meant that several
17062         of the level2 entries were wrong.
17063         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17064         Remove the division-by-2 that is folded into the table now that
17065         gbrkprop.h has been regenerated properly.  Now -1 entries are
17066         handled correctly.
17067
17068         New module 'unigbrk/uc-gbrk-prop-tests'.
17069         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17070         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17071         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17072         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17073
17074 2011-01-01  Bruno Haible  <bruno@clisp.org>
17075
17076         Avoid use of hexadecimal escapes.
17077         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17078         instead of hexadecimal escapes.
17079
17080 2011-01-01  Jim Meyering  <meyering@redhat.com>
17081
17082         maint: new rule to update copyright year ranges
17083         * Makefile (update-copyright): New rule.
17084
17085         maint: indent with TABs in Makefile
17086         * Makefile: Expand leading sequences of spaces to TABs
17087
17088         version-etc: update the copyright year it reports
17089         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17090
17091 2010-12-31  Bruno Haible  <bruno@clisp.org>
17092
17093         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17094         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17095         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17096         zero.
17097
17098 2010-12-31  Bruno Haible  <bruno@clisp.org>
17099
17100         pwrite: Work around HP-UX 11.11 bug.
17101         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17102         works and set REPLACE_PWRITE if not.
17103         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17104         function.
17105         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17106
17107 2010-12-31  Bruno Haible  <bruno@clisp.org>
17108
17109         pread: Work around HP-UX 11 bugs.
17110         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17111         and set REPLACE_PREAD if not.
17112         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17113
17114 2010-12-31  Eric Blake  <eblake@redhat.com>
17115
17116         nl_langinfo: fix YESEXPR on Irix 6.5
17117         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17118         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17119         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17120         it.
17121
17122 2010-12-31  Bruno Haible  <bruno@clisp.org>
17123
17124         iconv: Document HP-UX 11 bug.
17125         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17126
17127 2010-12-31  Bruno Haible  <bruno@clisp.org>
17128
17129         ldexpl: Fix link error on HP-UX 11.
17130         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17131         LDEXPL_LIBM, using $ISNANL_LIBM.
17132
17133 2010-12-31  Eric Blake  <eblake@redhat.com>
17134
17135         ftello: avoid compilation failure with SunStudio c89
17136         * lib/ftello.c (ftello): Use lseek, not llseek.
17137
17138         tests: avoid failing coreutils tests on cygwin
17139         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17140         (create_exe_shims_): Return 0 when skipping.
17141
17142 2010-12-31  Bruno Haible  <bruno@clisp.org>
17143
17144         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17145         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17146
17147 2010-12-31  Bruno Haible  <bruno@clisp.org>
17148
17149         waitpid: Fix link error in C++ mode.
17150         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17151
17152 2010-12-31  Bruno Haible  <bruno@clisp.org>
17153
17154         isnan: Use GCC built-ins when possible.
17155         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17156         __builtin_isnan.
17157         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17158         (isnan): Define using GCC built-ins for GCC >= 4.0.
17159
17160 2010-12-31  Bruno Haible  <bruno@clisp.org>
17161
17162         isnand: Fix mistake.
17163         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17164         __builtin_isnand.
17165
17166 2010-12-31  Bruno Haible  <bruno@clisp.org>
17167
17168         open: Avoid C++ error on HP-UX 11.
17169         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17170
17171 2010-12-31  Bruno Haible  <bruno@clisp.org>
17172
17173         time_r: Add missing declarations on HP-UX 11.
17174         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17175         instead of HAVE_LOCALTIME_R.
17176         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17177         HAVE_LOCALTIME_R always.
17178         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17179         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17180         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17181         HAVE_LOCALTIME_R.
17182         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17183         * doc/posix-functions/localtime_r.texi: Likewise.
17184
17185 2010-12-29  Eric Blake  <eblake@redhat.com>
17186
17187         mountlist: tweak previous commit
17188         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17189         Reported by Paul Eggert.
17190
17191         mountlist: fix local drive detection on cygwin
17192         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17193         that works for cygwin.
17194
17195 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17196
17197         ftoastr, snprintf: ftoastr + snprintf module
17198         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17199         since the snprintf module now should be good enough here.
17200         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17201         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17202         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17203         GNULIB_SNPRINTF only for the test directory, and the latter
17204         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17205         seems to suffice by itself.
17206
17207 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17208
17209         alloca: one step towards thread-safety
17210         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17211         need for a static variable.  All callers changed.  This does not
17212         make the alloca replacement thread-safe, but it's one step.
17213
17214         tests: minor indenting change
17215         * tests/init.sh: Sync from coreutils housekeeping patch
17216         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17217         to keep lines within 80 columns.
17218
17219 2010-12-28  Jim Meyering  <meyering@redhat.com>
17220
17221         regex: don't infloop on persistent failing calloc
17222         * lib/regexec.c (build_trtable): Return failure indication upon
17223         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17224         In glibc, this was fixed for version 2.13:
17225         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17226
17227 2010-12-28  Bruno Haible  <bruno@clisp.org>
17228             Paul Eggert <eggert@cs.ucla.edu>
17229
17230         linkat: Make implementation robust against system behaviour variations.
17231         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17232         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17233         way, and to -2 if it needs a generic runtime test.
17234         * lib/linkat.c (solaris_optimized_link_immediate,
17235         solaris_optimized_link_follow): New functions.
17236         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17237         (check_same_link): Use it.
17238
17239 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17240
17241         New module 'unigbrk/base'.
17242         * modules/unigbrk/base: New file.
17243         * lib/unigbrk.in.h: New file.
17244
17245         New module 'unigbrk/uc-gbrk-prop'.
17246         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17247         * modules/unigbrk/uc-gbrk-prop: New file.
17248         * lib/unigbrk/gbrkprop.h: New file.
17249         * lib/unigbrk/uc-gbrk-prop.c: New file.
17250
17251         New module 'unigbrk/uc-is-grapheme-break'.
17252         * modules/unigbrk/uc-is-grapheme-break: New file.
17253         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17254         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17255         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17256         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17257         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17258
17259         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17260
17261 2010-12-27  Bruno Haible  <bruno@clisp.org>
17262
17263         linkat test: Avoid failure on Solaris 11 2010-11.
17264         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17265
17266 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17267
17268         utimens: work around glibc rounding bug on more platforms
17269         * lib/utimens.c (fdutimens): Work around rounding bug even if
17270         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17271         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17272
17273 2010-12-27  Bruno Haible  <bruno@clisp.org>
17274
17275         select tests: Improve comments.
17276         * tests/test-select.c (do_select): Add comments.
17277
17278 2010-12-27  Bruno Haible  <bruno@clisp.org>
17279
17280         select tests: Safer way of handling timeout.
17281         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17282         at every invocation.
17283
17284 2010-12-27  Bruno Haible  <bruno@clisp.org>
17285
17286         select tests: Use 'bool' where appropriate.
17287         * tests/test-select.c (connect_to_socket): Change argument type to
17288         'bool'.
17289
17290 2010-12-27  Bruno Haible  <bruno@clisp.org>
17291
17292         select tests: Use existing modules.
17293         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17294         (configure.ac): Don't test for unistd.h.
17295         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17296         declared in <unistd.h>.
17297
17298 2010-12-27  Bruno Haible  <bruno@clisp.org>
17299
17300         mbrtowc: Work around a Solaris 7 bug.
17301         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17302         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17303         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17304         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17305         MBRTOWC_NULL_ARG1_BUG.
17306         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17307         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17308         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17309         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17310
17311 2010-12-27  Jim Meyering  <meyering@redhat.com>
17312
17313         read-file.c: tweak syntax
17314         * lib/read-file.c (fread_file): Remove space after "*" in function
17315         definitions.
17316
17317 2010-12-27  Bruno Haible  <bruno@clisp.org>
17318
17319         times test: Avoid gcc warnings on OSF/1.
17320         * tests/test-times.c (main): Cast printf arguments from clock_t to
17321         'long int'.
17322
17323 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17324
17325         utimens: work around glibc rounding bug on older Linux kernels
17326         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17327         on Linux with a glibc whose utimes might not work, then work
17328         around a longstanding glibc bug involving rounding rather than
17329         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17330         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17331
17332 2010-12-26  Bruno Haible  <bruno@clisp.org>
17333
17334         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17335         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17336         _GL_CXXALIAS_SYS.
17337         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17338
17339 2010-12-26  Bruno Haible  <bruno@clisp.org>
17340
17341         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17342         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17343         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17344         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17345         looking for the declaration.
17346         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17347         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17348         problem.
17349         * doc/posix-functions/inet_pton.texi: Likewise.
17350
17351 2010-12-26  Bruno Haible  <bruno@clisp.org>
17352
17353         arpa_inet: Use the common idioms with C++ support.
17354         * lib/arpa_inet.in.h: Include c++defs.h.
17355         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17356         support.
17357         * modules/arpa_inet (Depends-on): Add c++defs.
17358         (Makefile.am): Substitute the contents of c++defs.h.
17359         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17360         * modules/arpa_inet-c++-tests: New file.
17361         * tests/test-arpa_inet-c++.cc: New file.
17362
17363 2010-12-25  Bruno Haible  <bruno@clisp.org>
17364
17365         Fix more C++ link errors on Solaris 8.
17366         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17367         $(LIB_EACCESS).
17368         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17369         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17370         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17371         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17372         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17373
17374 2010-12-25  Bruno Haible  <bruno@clisp.org>
17375
17376         printf-posix: Fix link error when a non-GCC compiler is used.
17377         * lib/stdio.in.h (printf): When not using GCC, override printf
17378         correctly.
17379         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17380
17381 2010-12-25  Bruno Haible  <bruno@clisp.org>
17382
17383         strerror_r-posix: Update doc.
17384         * doc/posix-functions/strerror_r.texi: Update doc about the return
17385         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17386
17387 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17388
17389         utimens: simplify the logic of the previous change
17390         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17391         This should not affect whether the test succeeds or fails.
17392
17393         utimens: configure better on hosts with NFS clock skew
17394         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17395         uses the clock of the local host.  It might use the clock of the
17396         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17398
17399 2010-12-25  Bruno Haible  <bruno@clisp.org>
17400
17401         ptsname test: Avoid failure on Solaris.
17402         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17403         open a pseudo-terminal; don't use BSD-style ptys.
17404         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17405
17406 2010-12-25  Bruno Haible  <bruno@clisp.org>
17407
17408         ptsname: Avoid ERANGE failure on some systems.
17409         * lib/ptsname.c (buffer): Increase size.
17410
17411 2010-12-25  Bruno Haible  <bruno@clisp.org>
17412
17413         rename, renameat: Avoid test failures at NFS mounted locations.
17414         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17415         so that subsequent mkdir calls succeed.
17416
17417 2010-12-25  Bruno Haible  <bruno@clisp.org>
17418
17419         iswblank: Fix C++ link error on Solaris 8.
17420         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17421         _GL_FUNCDECL_SYS.
17422
17423 2010-12-25  Bruno Haible  <bruno@clisp.org>
17424
17425         unistd: Fix C++ link error on Solaris 8.
17426         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17427
17428 2010-12-25  Bruno Haible  <bruno@clisp.org>
17429
17430         readlink doc: Mention an old glibc bug.
17431         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17432
17433 2010-12-25  Bruno Haible  <bruno@clisp.org>
17434
17435         fcntl-h: Fix for use of C++ on glibc systems.
17436         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17437         also on glibc systems in C++ mode.
17438         Reported by Gary V. Vaughan <gary@gnu.org>.
17439
17440 2010-12-25  Bruno Haible  <bruno@clisp.org>
17441
17442         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17443         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17444
17445 2010-12-25  Bruno Haible  <bruno@clisp.org>
17446
17447         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17448         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17449         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17450         test whether truncl works according to ISO C 99 with IEC 60559.
17451         * m4/truncl-ieee.m4: New file.
17452         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17453         m4/signbit.m4.
17454         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17455
17456 2010-12-25  Bruno Haible  <bruno@clisp.org>
17457
17458         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17459         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17460         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17461         test whether ceill works according to ISO C 99 with IEC 60559.
17462         * m4/ceill-ieee.m4: New file.
17463         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17464         m4/signbit.m4.
17465         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17466
17467 2010-12-25  Bruno Haible  <bruno@clisp.org>
17468
17469         Ensure all prerequisites of <wchar.h> are included.
17470         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17471         before <wchar.h>.
17472         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17473         gl_MBRLEN_NUL_RETVAL): Likewise.
17474         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17475         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17476         AC_FUNC_MBRTOWC): Likewise.
17477         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17478         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17479         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17480         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17481         Likewise.
17482         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17483         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17484         (gl_WCHAR_H): Improve comments.
17485         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17486
17487 2010-12-25  Bruno Haible  <bruno@clisp.org>
17488
17489         strtok_r: Fix C syntax error in autoconf macro.
17490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17491         characters in test program.
17492
17493 2010-12-24  Bruno Haible  <bruno@clisp.org>
17494
17495         ceil, trunc, round: Fix gcc warnings.
17496         * lib/ceil.c (MIN): Undefine before redefining.
17497         * lib/trunc.c (MIN): Likewise.
17498         * lib/round.c (MIN): Likewise.
17499         Include <math.h> first.
17500
17501 2010-12-24  Bruno Haible  <bruno@clisp.org>
17502
17503         select tests: Avoid failures on OSF/1 5.1.
17504         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17505         failure of closing the last socket; it may fail with ECONNRESET.
17506
17507 2010-12-24  Eric Blake  <eblake@redhat.com>
17508
17509         stdint: avoid HP-UX 10.20 preprocessor bug
17510         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17511         than #if.
17512         * tests/test-floor2.c (main): Likewise.
17513         Reported by Peter O'Gorman.
17514
17515         pipe: make obsoletion transition easier
17516         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17517         * modules/pipe (Files): Include revived file.
17518         (Include): Drop reference, to mirror getdate's behavior.
17519
17520 2010-12-24  Bruno Haible  <bruno@clisp.org>
17521
17522         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17523         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17524         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17525         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17526
17527 2010-12-24  Bruno Haible  <bruno@clisp.org>
17528
17529         gethostname: Ensure declaration on NonStop Kernel.
17530         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17531         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17532
17533 2010-12-24  Bruno Haible  <bruno@clisp.org>
17534
17535         sys_select: Ensure all necessary types on NonStop Kernel.
17536         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17537         include <sys/time.h>.
17538         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17539         NonStop Kernel.
17540         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17541
17542 2010-12-24  Bruno Haible  <bruno@clisp.org>
17543
17544         sys_select: Remove unneeded include.
17545         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17546         have <sys/select.h>.
17547
17548 2010-12-24  Bruno Haible  <bruno@clisp.org>
17549
17550         gethostname: Provide a fallback for HOST_NAME_MAX.
17551         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17552         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17553         instead.
17554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17555
17556 2010-12-24  Bruno Haible  <bruno@clisp.org>
17557
17558         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17559         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17560         (SA_RESTART): Likewise.
17561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17562
17563 2010-12-24  Bruno Haible  <bruno@clisp.org>
17564
17565         signal: Define NSIG.
17566         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17567         * tests/test-signal.c (nsig): New variable.
17568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17569
17570 2010-12-24  Bruno Haible  <bruno@clisp.org>
17571
17572         rename, renameat: Avoid test failures on OSF/1 5.1.
17573         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17574         alternative error codes.
17575         * tests/test-renameat.c (main): Likewise.
17576
17577 2010-12-24  Bruno Haible  <bruno@clisp.org>
17578
17579         *printf: Detect large precisions bug on Solaris 10/SPARC.
17580         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17581         by Paul Eggert.
17582         * tests/test-snprintf-posix.h (test_function): Add this test code here
17583         too.
17584         * tests/test-sprintf-posix.h (test_function): Likewise.
17585         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17586         * tests/test-vasprintf-posix.c (test_function): Likewise.
17587         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17588         around by gnulib.
17589         * doc/posix-functions/printf.texi: Likewise.
17590         * doc/posix-functions/snprintf.texi: Likewise.
17591         * doc/posix-functions/sprintf.texi: Likewise.
17592         * doc/posix-functions/vfprintf.texi: Likewise.
17593         * doc/posix-functions/vprintf.texi: Likewise.
17594         * doc/posix-functions/vsnprintf.texi: Likewise.
17595         * doc/posix-functions/vsprintf.texi: Likewise.
17596         * doc/posix-functions/dprintf.texi: Undo last commit.
17597         * doc/posix-functions/vdprintf.texi: Likewise.
17598
17599 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17600
17601         tests: port test-fdutimensat.c to Solaris 8
17602         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17603         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17604         On Solaris 8, it fails with errno == ENOSYS, because there is no
17605         futimens (so it can't use the fd), and there is no lutimens (so it
17606         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17607
17608         vsnprintf: make more consistent with snprintf; doc fixes
17609
17610         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17611         the byte count return problem was promoted from the snprintf-posix
17612         to the snprintf module.
17613         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17614         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17615         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17616         * tests/test-snprintf.c (main): Check the byte count returned.
17617         * tests/test-vsnprintf.c (main): Likewise.
17618
17619 2010-12-23  Eric Blake  <eblake@redhat.com>
17620
17621         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17622         * modules/sigpipe (License): Relax license.
17623
17624 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17625
17626         doc: document Solaris printf bug with large float precisions
17627         * doc/posix-functions/dprintf.texi (dprintf):
17628         * doc/posix-functions/fprintf.texi (fprintf):
17629         * doc/posix-functions/printf.texi (printf):
17630         * doc/posix-functions/snprintf.texi (snprintf):
17631         * doc/posix-functions/sprintf.texi (sprintf):
17632         * doc/posix-functions/vdprintf.texi (vdprintf):
17633         * doc/posix-functions/vfprintf.texi (vfprintf):
17634         * doc/posix-functions/vprintf.texi (vprintf):
17635         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17636         * doc/posix-functions/vsprintf.texi (vsprintf):
17637         Mention that these functions mishandle large floating point
17638         precisions on Solaris 10.  The same bug is also present in Solaris
17639         8, and I assume earlier.  This causes "cd gnulib-tests; make
17640         check" to fail on Solaris 8 (and I assume, later) when building
17641         the latest coreutils, in test-vasprintf-posix's call to
17642         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17643         the wide flavors (e.g., wprintf) so this patch just updates the
17644         documentation for the narrow ones.
17645
17646         test-posixtm.c: add two tests
17647         * tests/test-posixtm.c: Add two tests, to highlight the
17648         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17649         around this bug; this is merely to document it.
17650
17651 2010-12-22  Bruno Haible  <bruno@clisp.org>
17652
17653         getlogin_r: Work around portability problem on OSF/1.
17654         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17655         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17656         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17657         test for a truncated result.
17658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17659         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17660         * modules/getlogin_r (Depends-on): Add memchr.
17661         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17662
17663 2010-12-22  Bruno Haible  <bruno@clisp.org>
17664
17665         ptsname: Avoid test failure on OSF/1 5.1.
17666         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17667         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17668         (same_slave): New function.
17669         (main): Use it to compare ptsname's result with the expected file name.
17670
17671 2010-12-22  Bruno Haible  <bruno@clisp.org>
17672
17673         Port extended stdio modules to HP NonStop Kernel.
17674         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17675         macros.
17676         * lib/fbufmode.c: Update comments.
17677         * lib/fflush.c: Likewise.
17678         * lib/fpurge.c: Likewise.
17679         * lib/freadable.c: Likewise.
17680         * lib/freadahead.c: Likewise.
17681         * lib/freading.c: Likewise.
17682         * lib/freadptr.c: Likewise.
17683         * lib/freadseek.c: Likewise.
17684         * lib/fseeko.c: Likewise.
17685         * lib/fseterr.c: Likewise.
17686         * lib/fwritable.c: Likewise.
17687         * lib/fwriting.c: Likewise.
17688         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17689
17690 2010-12-22  Bruno Haible  <bruno@clisp.org>
17691
17692         ttyname_r: Work around bug on OSF/1 5.1.
17693         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17694         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17695         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17696         present.
17697         * lib/ttyname_r.c (ttyname_r): Update comments.
17698
17699 2010-12-22  Bruno Haible  <bruno@clisp.org>
17700
17701         round: Implement result sign according to IEEE 754.
17702         * lib/round.c (MIN, MINUS_ZERO): New macros.
17703         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17704         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17705         * tests/test-round-ieee.c (main): Likewise.
17706         * tests/test-roundl-ieee.c (main): Likewise.
17707
17708         trunc: Implement result sign according to IEEE 754.
17709         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17710         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17711         * tests/test-trunc2.c: Include minus-zero.h.
17712         (MINUS_ZERO): New macro.
17713         (trunc_reference): Keep in sync with lib/trunc.c.
17714         * tests/test-truncf2.c: Include minus-zero.h.
17715         (MINUS_ZERO): New macro.
17716         (truncf_reference): Keep in sync with lib/trunc.c.
17717         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17718         * tests/test-trunc-ieee.c (main): Likewise.
17719         * tests/test-truncl-ieee.c (main): Likewise.
17720
17721         ceil: Implement result sign according to IEEE 754.
17722         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17723         (FUNC): Return -0.0 for -1 < x < 0.
17724         * tests/test-ceil2.c: Include minus-zero.h.
17725         (MINUS_ZERO): New macro.
17726         (ceil_reference): Keep in sync with lib/ceil.c.
17727         * tests/test-ceilf2.c: Include minus-zero.h.
17728         (MINUS_ZERO): New macro.
17729         (ceilf_reference): Keep in sync with lib/ceil.c.
17730         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17731         * tests/test-ceil-ieee.c (main): Likewise.
17732         * tests/test-ceill-ieee.c (main): Likewise.
17733
17734         floor: Implement result sign according to IEEE 754.
17735         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17736         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17737         * tests/test-floorf2.c (floorf_reference): Likewise.
17738         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17739         * tests/test-floor-ieee.c (main): Likewise.
17740         * tests/test-floorl-ieee.c (main): Likewise.
17741
17742 2010-12-22  Bruno Haible  <bruno@clisp.org>
17743
17744         getaddrinfo: Update doc.
17745         * doc/posix-functions/gai_strerror.texi: Return type is also different
17746         on AIX and HP-UX.
17747
17748 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17749
17750         getaddrinfo, inet_ntop: Update doc for Solaris.
17751         * doc/posix-functions/gai_strerror.texi: Return type is also an
17752         issue on Solaris 9 and earlier.
17753         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17754         on Solaris 10 and earlier.
17755
17756 2010-12-21  Bruno Haible  <bruno@clisp.org>
17757
17758         New module 'roundl-ieee'.
17759         * modules/roundl-ieee: New file.
17760         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17761         test whether roundl works according to ISO C 99 with IEC 60559.
17762         * m4/roundl-ieee.m4: New file.
17763         * modules/roundl-ieee-tests: New file.
17764         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17765         * tests/test-roundl.c (main): Remove signbit tests.
17766         * modules/roundl-tests (Depends-on): Remove signbit.
17767         * doc/posix-functions/roundl.texi: Mention the new module.
17768
17769 2010-12-21  Bruno Haible  <bruno@clisp.org>
17770
17771         New module 'truncl-ieee'.
17772         * modules/truncl-ieee: New file.
17773         * modules/truncl-ieee-tests: New file.
17774         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17775         * tests/test-truncl.c (main): Remove signbit tests.
17776         * modules/truncl-tests (Depends-on): Remove signbit.
17777         * doc/posix-functions/truncl.texi: Mention the new module.
17778
17779 2010-12-21  Bruno Haible  <bruno@clisp.org>
17780
17781         New module 'ceill-ieee'.
17782         * modules/ceill-ieee: New file.
17783         * modules/ceill-ieee-tests: New file.
17784         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17785         * tests/test-ceill.c (main): Remove signbit tests.
17786         * modules/ceill-tests (Depends-on): Remove signbit.
17787         * doc/posix-functions/ceill.texi: Mention the new module.
17788
17789 2010-12-21  Bruno Haible  <bruno@clisp.org>
17790
17791         New module 'floorl-ieee'.
17792         * modules/floorl-ieee: New file.
17793         * modules/floorl-ieee-tests: New file.
17794         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17795         * tests/test-floorl.c (main): Remove signbit tests.
17796         * modules/floorl-tests (Depends-on): Remove signbit.
17797         * doc/posix-functions/floorl.texi: Mention the new module.
17798
17799 2010-12-21  Bruno Haible  <bruno@clisp.org>
17800
17801         New module 'round-ieee'.
17802         * modules/round-ieee: New file.
17803         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17804         whether round works according to ISO C 99 with IEC 60559.
17805         * m4/round-ieee.m4: New file.
17806         * modules/round-ieee-tests: New file.
17807         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17808         * tests/test-round1.c (main): Remove signbit tests.
17809         * modules/round-tests (Depends-on): Remove 'signbit'.
17810         * doc/posix-functions/round.texi: Mention the new module.
17811
17812 2010-12-21  Bruno Haible  <bruno@clisp.org>
17813
17814         New module 'trunc-ieee'.
17815         * modules/trunc-ieee: New file.
17816         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17817         whether trunc works according to ISO C 99 with IEC 60559.
17818         * m4/trunc-ieee.m4: New file.
17819         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17821         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17822         * modules/trunc-ieee-tests: New file.
17823         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17824         * tests/test-trunc1.c (main): Remove signbit tests.
17825         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17826         * doc/posix-functions/trunc.texi: Mention the new module.
17827
17828 2010-12-21  Bruno Haible  <bruno@clisp.org>
17829
17830         New module 'ceil-ieee'.
17831         * modules/ceil-ieee: New file.
17832         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17833         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17834         ISO C 99 with IEC 60559.
17835         * m4/ceil-ieee.m4: New file.
17836         * modules/ceil (Files): Add lib/ceil.c.
17837         (Depends-on): Add 'float'.
17838         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17839         * lib/math.in.h (ceil): New declaration.
17840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17841         REPLACE_CEIL.
17842         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17843         * modules/ceil-ieee-tests: New file.
17844         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17845         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17846         * doc/posix-functions/ceil.texi: Mention the new module.
17847
17848 2010-12-21  Bruno Haible  <bruno@clisp.org>
17849
17850         New module 'floor-ieee'.
17851         * modules/floor-ieee: New file.
17852         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17853         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17854         ISO C 99 with IEC 60559.
17855         * m4/floor-ieee.m4: New file.
17856         * modules/floor (Files): Add lib/floor.c.
17857         (Depends-on): Add 'float'.
17858         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17859         * lib/math.in.h (floor): New declaration.
17860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17861         REPLACE_FLOOR.
17862         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17863         * modules/floor-ieee-tests: New file.
17864         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17865         * tests/test-math-c++.cc: Check the signature of 'floor'.
17866         * doc/posix-functions/floor.texi: Mention the new module.
17867
17868 2010-12-21  Bruno Haible  <bruno@clisp.org>
17869
17870         New module 'roundf-ieee'.
17871         * modules/roundf-ieee: New file.
17872         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17873         test whether roundf works according to ISO C 99 with IEC 60559.
17874         * m4/roundf-ieee.m4: New file.
17875         * modules/roundf-ieee-tests: New file.
17876         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17877         * tests/test-roundf1.c (main): Remove signbit tests.
17878         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17879         * doc/posix-functions/roundf.texi: Mention the new module.
17880
17881 2010-12-21  Bruno Haible  <bruno@clisp.org>
17882
17883         New module 'truncf-ieee'.
17884         * modules/truncf-ieee: New file.
17885         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17886         test whether truncf works according to ISO C 99 with IEC 60559.
17887         * m4/truncf-ieee.m4: New file.
17888         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17890         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17891         * modules/truncf-ieee-tests: New file.
17892         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17893         * tests/test-truncf1.c (main): Remove signbit tests.
17894         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17895         * doc/posix-functions/truncf.texi: Mention the new module.
17896
17897 2010-12-21  Bruno Haible  <bruno@clisp.org>
17898
17899         New module 'ceilf-ieee'.
17900         * modules/ceilf-ieee: New file.
17901         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17902         test whether ceilf works according to ISO C 99 with IEC 60559.
17903         * m4/ceilf-ieee.m4: New file.
17904         * modules/ceilf-ieee-tests: New file.
17905         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17906         * tests/test-ceilf1.c (main): Remove signbit tests.
17907         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17908         * doc/posix-functions/ceilf.texi: Mention the new module.
17909
17910 2010-12-21  Bruno Haible  <bruno@clisp.org>
17911
17912         New module 'floorf-ieee'.
17913         * modules/floorf-ieee: New file.
17914         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17915         test whether floorf works according to ISO C 99 with IEC 60559.
17916         * m4/floorf-ieee.m4: New file.
17917         * modules/floorf-ieee-tests: New file.
17918         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17919         * tests/test-floorf1.c (main): Remove signbit tests.
17920         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17921         * doc/posix-functions/floorf.texi: Mention the new module.
17922
17923 2010-12-21  Bruno Haible  <bruno@clisp.org>
17924
17925         Support for minus zero in autoconf macros.
17926         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17927         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17928         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17929         * tests/minus-zero.h: Update comments.
17930
17931 2010-12-21  Bruno Haible  <bruno@clisp.org>
17932
17933         Tests for module 'ceil'.
17934         * modules/ceil-tests: New file.
17935         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17936         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17937
17938 2010-12-21  Bruno Haible  <bruno@clisp.org>
17939
17940         Tests for module 'floor'.
17941         * modules/floor-tests: New file.
17942         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17943         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17944
17945 2010-12-21  Bruno Haible  <bruno@clisp.org>
17946
17947         math: Fix indentation.
17948         * lib/math.in.h (floorf): Fix indentation.
17949
17950 2010-12-21  Bruno Haible  <bruno@clisp.org>
17951
17952         Fix cross-compilation guesses on Solaris.
17953         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17954         not match "solaris2.10".
17955         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17956         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17957         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17958
17959 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17960
17961         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17962         This fixes a problem observed with the latest coreutils snapshot
17963         that caused a test to fail on Solaris 8.  src/csplit.c's call
17964         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17965         earlier, instead of returning the number of bytes that would have
17966         been generated; this causes csplit to incorrectly report memory
17967         exhaustion.
17968         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17969         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17970         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17971         comments to match.
17972         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17973         Fix typo in matching older versions of Solaris: "solaris2.10"
17974         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17975         only for guessing while cross-compiling.
17976         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17977
17978 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         ftoastr: fix comment again
17981         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17982         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17983         Also, simplify example a bit by using flags = 0.
17984
17985 2010-12-20  Bruno Haible  <bruno@clisp.org>
17986
17987         round*, trunc*: Update documentation regarding glibc.
17988         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17989         * doc/posix-functions/round.texi: Likewise.
17990         * doc/posix-functions/roundl.texi: Likewise.
17991         * doc/posix-functions/truncf.texi: Likewise.
17992         * doc/posix-functions/trunc.texi: Likewise.
17993         * doc/posix-functions/truncl.texi: Likewise.
17994
17995 2010-12-20  Bruno Haible  <bruno@clisp.org>
17996
17997         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17998         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17999         * doc/posix-functions/round.texi: Likewise.
18000         * doc/posix-functions/roundl.texi: Likewise.
18001
18002 2010-12-20  Bruno Haible  <bruno@clisp.org>
18003
18004         ttyname_r: Add missing declaration on HP-UX 11.
18005         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18006         HAVE_TTYNAME_R.
18007         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18008         declared. Set HAVE_TTYNAME_R always.
18009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18010         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18011         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18012         HAVE_TTYNAME_R.
18013         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18014
18015 2010-12-20  Bruno Haible  <bruno@clisp.org>
18016
18017         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18018         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18019         * doc/posix-functions/getlogin_r.texi: Likewise.
18020         * tests/test-getlogin.c: Include <errno.h>.
18021         (main): Avoid test failure on HP-UX 11.11.
18022         * tests/test-getlogin_r.c (main): Likewise.
18023
18024 2010-12-20  Bruno Haible  <bruno@clisp.org>
18025
18026         getlogin_r: Add missing declaration on HP-UX 11.
18027         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18028         declared also when it exists as a function.
18029         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18030
18031 2010-12-20  Bruno Haible  <bruno@clisp.org>
18032
18033         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18034         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18035         through wcrtomb.
18036
18037 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18038
18039         ftoastr: fix comment
18040         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18041         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18042
18043 2010-12-19  Bruno Haible  <bruno@clisp.org>
18044
18045         isnan: Ensure it is a macro.
18046         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18047         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18048         Solaris.
18049
18050 2010-12-19  Bruno Haible  <bruno@clisp.org>
18051
18052         ldexpl test: Fix link error on OSF/1 5.1.
18053         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18054
18055 2010-12-19  Bruno Haible  <bruno@clisp.org>
18056
18057         wctype: Make it work in C++ mode on OSF/1 5.1.
18058         * lib/wctype.in.h (iswblank): Declare but not define here.
18059         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18060         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18061         * modules/wctype (Files): Add lib/iswblank.c.
18062
18063 2010-12-19  Bruno Haible  <bruno@clisp.org>
18064
18065         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18066         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18067         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18068
18069 2010-12-19  Bruno Haible  <bruno@clisp.org>
18070
18071         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18072         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18073         _POSIX_PII_SOCKET.
18074         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18075         * doc/posix-functions/recvfrom.texi: Likewise.
18076         * doc/posix-functions/send.texi: Likewise.
18077         * doc/posix-functions/sendto.texi: Likewise.
18078
18079 2010-12-19  Bruno Haible  <bruno@clisp.org>
18080
18081         tcgetsid: Add missing declaration on OSF/1 5.1.
18082         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18083         HAVE_TCGETSID.
18084         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18085         Don't set HAVE_TCGETSID.
18086         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18087         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18088         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18089         HAVE_TCGETSID.
18090         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18091
18092 2010-12-19  Bruno Haible  <bruno@clisp.org>
18093
18094         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18095         * lib/stdio.in.h: During the include_next statement, let recursive
18096         includes of this file include only the system header file.
18097
18098 2010-12-19  Bruno Haible  <bruno@clisp.org>
18099
18100         iconv_open: Fix regression from 2010-12-04.
18101         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18102         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18103
18104 2010-12-19  Bruno Haible  <bruno@clisp.org>
18105
18106         stdbool test: Avoid a gcc warning.
18107         * tests/test-stdbool.c (main): Fail if e1 is false.
18108         Reported by Jim Meyering.
18109
18110 2010-12-19  Jim Meyering  <meyering@redhat.com>
18111
18112         setenv: restore to working order
18113         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18114         mistakenly removed.
18115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18116         HAVE_SETENV.
18117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18118         HAVE_SETENV.
18119
18120 2010-12-19  Bruno Haible  <bruno@clisp.org>
18121
18122         Document some different function declarations on OSF/1 5.1.
18123         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18124         * doc/posix-functions/inet_ntop.texi: Likewise.
18125         * doc/posix-functions/gethostname.texi: Likewise.
18126         * lib/unistd.in.h (gethostname): Update comment.
18127
18128 2010-12-19  Bruno Haible  <bruno@clisp.org>
18129
18130         doc: Mention vasprintf-posix module.
18131         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18132         the 'vasprintf-posix' module.
18133         * doc/glibc-functions/vasprintf.texi: Likewise.
18134
18135 2010-12-19  Bruno Haible  <bruno@clisp.org>
18136
18137         unsetenv: Add missing declaration on OSF/1 5.1.
18138         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18139         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18140         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18142         not HAVE_UNSETENV.
18143         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18144         HAVE_UNSETENV.
18145         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18146
18147 2010-12-19  Bruno Haible  <bruno@clisp.org>
18148
18149         setenv: Add missing declaration on OSF/1 5.1.
18150         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18151         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18152         declared. Don't set HAVE_SETENV.
18153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18154         not HAVE_SETENV.
18155         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18156         HAVE_SETENV.
18157         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18158
18159 2010-12-19  Bruno Haible  <bruno@clisp.org>
18160
18161         nl_langinfo tests: Avoid gcc warning.
18162         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18163
18164 2010-12-19  Bruno Haible  <bruno@clisp.org>
18165
18166         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18167         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18168         _GL_CXXALIAS_SYS.
18169
18170 2010-12-19  Bruno Haible  <bruno@clisp.org>
18171
18172         stdbool: Relax test.
18173         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18174         address to 'bool' work in static initializer, for compilers other than
18175         GCC.
18176
18177 2010-12-19  Bruno Haible  <bruno@clisp.org>
18178
18179         ftello: Add missing declaration on OSF/1 5.1.
18180         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18181         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18183         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18184         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18185
18186 2010-12-19  Bruno Haible  <bruno@clisp.org>
18187
18188         fseeko: Add missing declaration on OSF/1 5.1.
18189         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18190         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18192         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18193         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18194
18195 2010-12-19  Bruno Haible  <bruno@clisp.org>
18196
18197         fchdir: Add missing declaration on OSF/1 5.1.
18198         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18199         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18201         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18202         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18203
18204 2010-12-19  Bruno Haible  <bruno@clisp.org>
18205
18206         relocatable-prog-wrapper: Separate from relocatable-prog.
18207         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18208         uninstall-relocwrapper rule here.
18209         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18210         Reported by Ian Beckwith <ianb@erislabs.net>.
18211
18212 2010-12-19  Bruno Haible  <bruno@clisp.org>
18213
18214         unistr/u8-mbsnlen: Add missing dependency.
18215         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18216         Reported by Ian Beckwith <ianb@erislabs.net>.
18217
18218 2010-12-19  Bruno Haible  <bruno@clisp.org>
18219
18220         iconv: Make it possible again to use this module without 'iconv-h'.
18221         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18222         if it is not defined.
18223         Reported by Ian Beckwith <ianb@erislabs.net>.
18224
18225 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18226
18227         acl: port to Solaris 8 when copying from tmpfs to ufs
18228         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18229         error number.  Problem observed on Solaris 8 with latest
18230         coreutils, with "mv A B", where A is on a tmpfs file system and B
18231         is on a ufs file system.  This caused coreutils' mv/part-symlink
18232         test to fail.
18233
18234         tests: set fail=0 at start
18235         * tests/init.sh (setup_): Move fail=0 initialization here ...
18236         (mktempd_): ... from here, so that tests can rely on fail being
18237         set to 0 initially.  This fixes a problem in coreutils; see:
18238         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18239
18240 2010-12-18  Bruno Haible  <bruno@clisp.org>
18241
18242         memmem-simple: Stylistic changes.
18243         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18244         Fix preprocessor directive indentation.
18245
18246 2010-12-15  Pádraig Brady <P@draigBrady.com>
18247
18248         memmem, memmem-simple: reorganize and expand empty needle check
18249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18250         functional checks to memmem-simple so that one has a fully functional
18251         memmem by using just this module.
18252         Restrict the performance only check to the memmem module.
18253         Also expand the empty needle check to ensure the correct
18254         pointer is returned, not just a non NULL pointer.
18255         * doc/glibc-functions/memmem.texi: Rearrange the portability
18256         documentation to correlate with the rearranged checks.
18257         Clarify exactly how the memmem and memmem-simple modules
18258         relate to each other.
18259
18260 2010-12-15  Pádraig Brady <P@draigBrady.com>
18261             Bruno Haible  <bruno@clisp.org>
18262
18263         Improve cross-compilation guesses for uClibc.
18264         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18265         that uClibc does not have the glibc bug.
18266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18267         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18268
18269 2010-12-14  Eric Blake  <eblake@redhat.com>
18270
18271         configmake: provide fallbacks for oldest supported autotools
18272         * m4/configmake.m4: New file.
18273         * modules/configmake (Files): Ship it.
18274         (configure.ac): Use it to guarantee fallbacks.
18275
18276 2010-12-13  Pádraig Brady <P@draigBrady.com>
18277
18278         read-file: Improve handling of large files
18279         * lib/read-file.c (fread_file): Minimize realloc()s
18280         for regular files, and better manage sizes around SIZE_MAX.
18281
18282 2010-12-13  Eric Blake  <eblake@redhat.com>
18283
18284         cloexec, fcntl: relax license
18285         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18286         consent from all contributors.
18287         * modules/fcntl (License): Likewise.
18288
18289 2010-12-10  Bruno Haible  <bruno@clisp.org>
18290
18291         Tests for module 'pipe-posix'.
18292         * modules/pipe-posix-tests: New file.
18293         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18294
18295 2010-12-10  Bruno Haible  <bruno@clisp.org>
18296
18297         pipe-posix: Make it work in C++ mode.
18298         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18299         (pipe): Use common idiom, not a macro definition.
18300         * lib/pipe.c: New file.
18301         * m4/pipe.m4: New file.
18302         * modules/pipe-posix (Description): Enhance.
18303         (Files): Add lib/pipe.c, m4/pipe.m4.
18304         (configure.ac): Invoke gl_FUNC_PIPE.
18305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18306         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18307         * tests/test-unistd-c++.cc: Check the signature of pipe.
18308
18309 2010-12-10  Bruno Haible  <bruno@clisp.org>
18310
18311         Rename module 'pipe' to 'spawn-pipe'.
18312         * modules/spawn-pipe: New file, renamed from modules/pipe.
18313         (Files, configure.ac, Makefile.am): Update.
18314         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18315         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18316         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18317         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18318         "spawn-pipe.h" instead of "pipe.h".
18319         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18320         to gl_SPAWN_PIPE.
18321         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18322         (Files, Makefile.am): Update.
18323         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18324         Update.
18325         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18326         Include "spawn-pipe.h" instead of "pipe.h".
18327         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18328         * lib/javacomp.c: Likewise.
18329         * lib/javaversion.c: Likewise.
18330         * lib/pipe-filter-gi.c: Likewise.
18331         * lib/pipe-filter-ii.c: Likewise.
18332         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18333         * modules/javacomp (Depends-on): Likewise.
18334         * modules/javaversion (Depends-on): Likewise.
18335         * modules/pipe-filter-gi (Depends-on): Likewise.
18336         * modules/pipe-filter-ii (Depends-on): Likewise.
18337         * MODULES.html.sh (Executing programs): Update.
18338         * NEWS: Mention the change.
18339
18340 2010-12-10  Eric Blake  <eblake@redhat.com>
18341
18342         pipe-posix: new module
18343         * modules/pipe-posix: New file.
18344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18345         (gl_UNISTD_H): Check for declaration.
18346         * modules/unistd (Makefile.am): Substitute it.
18347         * lib/unistd.in.h (pipe): Provide it for mingw.
18348         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18349         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18350
18351 2010-12-07  Bruno Haible  <bruno@clisp.org>
18352
18353         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18354         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18355         u8_strcmp_gnu.
18356         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18357
18358 2010-12-06  Bruno Haible  <bruno@clisp.org>
18359
18360         Update internal documentation.
18361         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18362
18363 2010-12-04  Bruno Haible  <bruno@clisp.org>
18364
18365         Put more information about failed tests into the test return codes.
18366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18367         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18368         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18369         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18370         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18371         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18372         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18373         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18374         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18376         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18377         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18378         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18379         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18380         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18381         returns a bit mask.
18382         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18383         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18384         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18385         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18386         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18390         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18391         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18392         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18393         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18394         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18396         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18397         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18398         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18399         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18400         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18401         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18403         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18405         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18406         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18407         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18408         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18409         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18410         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18411         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18412         gl_PRINTF_PRECISION): Likewise.
18413         * m4/regex.m4 (gl_REGEX): Likewise.
18414         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18415         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18416         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18417         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18418         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18421         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18422         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18423         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18424         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18425         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18426         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18427         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18428         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18429         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18430         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18431         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18433         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18434         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18435         enumerated value.
18436         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18437
18438 2010-12-04  Bruno Haible  <bruno@clisp.org>
18439
18440         Update for Solaris 11 2010-11.
18441         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18442         Express, released in November 2010.
18443
18444 2010-12-04  Bruno Haible  <bruno@clisp.org>
18445
18446         nproc: Relax license.
18447         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18448         and Paul Eggert.
18449         Requested by Ludovic Courtès <ludo@gnu.org>.
18450
18451 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18452
18453         utimecmp: fine-grained src to nearby coarse-grained dest
18454
18455         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18456         and the source is on a file system with higher-resolution time
18457         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18458         not work, and the time stamps are close together, the algorithm to
18459         determine the exact resolution from the read-back mtime was buggy:
18460         it had a "!=" where it should have had an "==".  This bug has been
18461         in the code ever since it was introduced to gnulib.
18462         Problem reported by Dan Jacobson in
18463         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18464
18465 2010-11-30  Bruno Haible  <bruno@clisp.org>
18466
18467         strerror_r-posix: Fix autoconf test.
18468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18469
18470 2010-11-28  Bruno Haible  <bruno@clisp.org>
18471             Paul Eggert  <eggert@cs.ucla.edu>
18472
18473         Tests for module 'getdomainname'.
18474         * modules/getdomainname-tests: New file.
18475         * tests/test-getdomainname.c: New file, based on
18476         tests/test-gethostname.c.
18477
18478 2010-11-28  Bruno Haible  <bruno@clisp.org>
18479             Paul Eggert  <eggert@cs.ucla.edu>
18480
18481         getdomainname: Use the system function when possible.
18482         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18483         (getdomainname): Replace if needed. Provide the declaration if it is
18484         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18485         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18486         (getdomainname): When the system has getdomainname, call the system
18487         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18488         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18489         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18490         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18491         the function if its second argument is of type 'int' or if it is found
18492         in libnsl.
18493         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18494         <sys/systeminfo.h> and sysinfo().
18495         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18497         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18498         HAVE_GETDOMAINNAME.
18499         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18500         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18501         * doc/glibc-functions/getdomainname.texi: Document the problems with
18502         the getdomainname declaration.
18503
18504 2010-11-28  Bruno Haible  <bruno@clisp.org>
18505
18506         sys_socket: Ensure ss_family field on AIX.
18507         * lib/sys_socket.in.h (ss_family): New macro definition.
18508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18509         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18510         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18511         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18512         * modules/sys_socket (Makefile.am): Substitute
18513         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18514         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18515
18516 2010-11-27  Bruno Haible  <bruno@clisp.org>
18517
18518         readline: Improve configure output.
18519         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18520         "checking for readline..." result understandable.
18521
18522 2010-11-27  Bruno Haible  <bruno@clisp.org>
18523
18524         *printf-posix: Detect a bug on Solaris 10/x86.
18525         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18526         for floating-point output.
18527         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18528         directive.
18529         * tests/test-snprintf-posix.h (test_function): Likewise.
18530         * tests/test-sprintf-posix.h (test_function): Likewise.
18531         * tests/test-vasprintf-posix.c (test_function): Likewise.
18532         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18533         * doc/posix-functions/printf.texi: Likewise.
18534         * doc/posix-functions/snprintf.texi: Likewise.
18535         * doc/posix-functions/sprintf.texi: Likewise.
18536         * doc/posix-functions/vfprintf.texi: Likewise.
18537         * doc/posix-functions/vprintf.texi: Likewise.
18538         * doc/posix-functions/vsnprintf.texi: Likewise.
18539         * doc/posix-functions/vsprintf.texi: Likewise.
18540         * doc/glibc-functions/obstack_printf.texi: Likewise.
18541         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18542
18543 2010-11-27  Bruno Haible  <bruno@clisp.org>
18544
18545         Fix link error when module libunistring-optional is in use.
18546         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18547         * modules/striconveha-tests (Makefile.am): Likewise.
18548
18549 2010-11-27  Bruno Haible  <bruno@clisp.org>
18550
18551         regex: Mention link dependencies.
18552         * modules/regex (Link): New section.
18553         * modules/rpmatch (Link): Likewise.
18554         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18555
18556 2010-11-27  Bruno Haible  <bruno@clisp.org>
18557
18558         ftoastr: Fix compilation error on Solaris.
18559         * lib/ftoastr.c: Include <config.h>.
18560
18561 2010-11-27  Bruno Haible  <bruno@clisp.org>
18562
18563         getloadavg: Update documentation.
18564         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18565
18566 2010-11-27  Bruno Haible  <bruno@clisp.org>
18567
18568         sys_socket: Fix test whether the functions are declared.
18569         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18570         not <sys/select.h>.
18571
18572 2010-11-27  Bruno Haible  <bruno@clisp.org>
18573
18574         getpass: Make sure to get system declaration on some platforms.
18575         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18576         gl_USE_SYSTEM_EXTENSIONS.
18577         * modules/getpass (Depends-on): Add extensions.
18578
18579 2010-11-26  Bruno Haible  <bruno@clisp.org>
18580
18581         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18582         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18583         'iconv' module is present.
18584         (ICONV_CONST): New macro.
18585         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18586         ICONV_CONST.
18587         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18588         set ICONV_CONST.
18589         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18590         here.
18591         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18592         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18593         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18594         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18595         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18596         present.
18597
18598 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18599
18600         ftoastr: comment fix
18601         * lib/ftoastr.c: "little" -> "little or no" in comment
18602
18603 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18604
18605         stdint: port to GCC 4.3 + OSX + Octave
18606         On this platform, stdint.h is buggy and defines int64_t to long
18607         long int.  The replacement defined it to long int, causing
18608         problems with C++ style name mangling.  Instead, trust the system
18609         definition if INT64_MAX is defined, and likewise for the unsigned
18610         variant.   Problem reported by Jarno Rajahalme in
18611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18612         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18613         and don't mess with int64_t and INT64_MAX in this case.
18614         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18615
18616 2010-11-24  Bruno Haible  <bruno@clisp.org>
18617
18618         doc: Corrections regarding MacOS X 10.4 and 10.5.
18619         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18620         MacOS X.
18621         Reported by Simon Josefsson.
18622
18623 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18624
18625         Uninstall ".bin" files installed by relocwrapper.
18626         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18627         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18628         unless it is already there.
18629
18630 2010-11-21  Bruno Haible  <bruno@clisp.org>
18631
18632         Update for NetBSD 5.0.
18633         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18634         NetBSD; the test fails on NetBSD 5.0.
18635         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18636         about NetBSD.
18637
18638 2010-11-21  Bruno Haible  <bruno@clisp.org>
18639
18640         Update for HP-UX 11.23 and HP-UX 11.31.
18641         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18642         HP-UX.
18643
18644 2010-11-21  Bruno Haible  <bruno@clisp.org>
18645
18646         Update for MacOS X 10.5.
18647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18648         MacOS X; the test fails on MacOS X 10.5.8.
18649         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18650         about MacOS X.
18651
18652 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18653
18654         bootstrap: add bootstrap_sync option.
18655         See discussion at
18656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18658         * build-aux/bootstrap: Accept --bootstrap-sync to update
18659         bootstrap if it is not identical to the local gnulib's
18660         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18661         enable this by default.  Accept --no-bootstrap-sync to disable
18662         it.
18663
18664 2010-11-20  Bruno Haible  <bruno@clisp.org>
18665
18666         Ensure that <features.h> is included before __GLIBC__ is tested.
18667         * lib/printf-parse.h: Include <features.h>.
18668         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18669         Reported by Mike Frysinger <vapier@gentoo.org>.
18670
18671         Ensure that <features.h> is included before __GLIBC__ is tested.
18672         * lib/wchar.in.h: Include <features.h>.
18673         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18674         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18675         Reported by Mike Frysinger <vapier@gentoo.org>.
18676
18677         Ensure that <features.h> is included before __GLIBC__ is tested.
18678         * lib/arpa_inet.in.h: Include <features.h>.
18679         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18680         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18681         Reported by Mike Frysinger <vapier@gentoo.org>.
18682
18683         Ensure that <features.h> is included before __GLIBC__ is tested.
18684         * build-aux/link-warning.h: Include <features.h>.
18685         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18686         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18687         Reported by Mike Frysinger <vapier@gentoo.org>.
18688
18689         Ensure that <features.h> is included before __GLIBC__ is tested.
18690         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18691         Reported by Mike Frysinger <vapier@gentoo.org>.
18692
18693 2010-11-20  Bruno Haible  <bruno@clisp.org>
18694
18695         memmem: Fix autoconf test.
18696         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18697
18698 2010-11-20  Bruno Haible  <bruno@clisp.org>
18699
18700         Port to uClibc.
18701         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18702         * lib/fcntl.in.h: Likewise.
18703         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18704         * lib/mbrtowc.c (mbrtowc): Likewise.
18705         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18706         * lib/strerror_r.c: Likewise.
18707         * lib/unistr/u8-strnlen.c: Likewise.
18708         * lib/vasnprintf.c (decimal_point_char): Likewise.
18709         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18710         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18712         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18713         * tests/test-sigaction.c (handler, main): Likewise.
18714         * lib/freading.h: Treat uClibc like a non-glibc platform.
18715         * lib/freading.c: Likewise.
18716         * lib/gettext.h: Likewise.
18717         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18718         Likewise.
18719         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18720         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18721         * lib/propername.c (proper_name_utf8): Likewise.
18722         * lib/spawn.in.h: Likewise.
18723         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18724         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18725         mem_cd_iconveh_internal): Likewise.
18726         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18727         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18728         strstr, strcasestr): Likewise.
18729         * lib/unicodeio.c (unicode_to_mb): Likewise.
18730         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18731         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18732         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18733         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18734         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18735         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18736         * lib/unistr/u8-stpncpy.c: Likewise.
18737         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18738         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18740         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18741         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18742         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18743         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18746         Likewise.
18747         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18748         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18749         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18751         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18752         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18753         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18754         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18755         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18756         * tests/test-striconveha.c (main): Likewise.
18757         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18758         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18759         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18760         * doc/posix-functions/getline.texi: Likewise.
18761         Reported by Mike Frysinger <vapier@gentoo.org>.
18762
18763 2010-11-20  Bruno Haible  <bruno@clisp.org>
18764
18765         nproc: Fix condition.
18766         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18767         HAVE_PTHREAD_AFFINITY_NP.
18768
18769 2010-11-20  Bruno Haible  <bruno@clisp.org>
18770
18771         Fix a comment.
18772         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18773
18774 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18775
18776         ftoastr: don't assume snprintf
18777         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18778         Implement a subset of snprintf here, by using sprintf safely.
18779         * modules/ftoastr (Depends-on): Remove snprintf.
18780
18781 2010-11-19  Jim Meyering  <meyering@redhat.com>
18782
18783         test-rename.h: fix compilation failure
18784         * tests/test-rename.h (test_rename): Add omitted "}".
18785
18786 2010-11-17  Jim Meyering  <meyering@redhat.com>
18787
18788         maint.mk: add a URL discussing the no-@acronym policy
18789         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18790
18791 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18792
18793         ftoastr: depend on snprintf, improve comments
18794         * lib/ftoastr.c: Also mention Loitsch's draft.
18795         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18796         needed in the current implementation, but it might simplify
18797         speeding up the code later.
18798         * modules/ftoastr: Depend on snprintf; this improves portability.
18799         Suggested by Bruno Haible in the same email.
18800
18801         ftoastr: port to hosts lacking strtof and strtold
18802         Problem reported by Bruno Haible in
18803         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18804         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18805         environment and strtold (and presumably strtof) are not available.
18806         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18807         (configure.ac): Require gl_C99_STRTOLD.
18808
18809 2010-11-18  Bruno Haible  <bruno@clisp.org>
18810
18811         c-strtold: Avoid link error on AIX 7.
18812         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18813         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18814         (gl_C_STRTOLD): Test whether strtold_l exists.
18815         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18816
18817 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18818
18819         intprops: new macro INT_BITS_STRLEN_BOUND
18820         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18821         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18822         not exposed.  Also, it uses a slightly tighter bound than before;
18823         though this makes no practical difference, we might as well be as
18824         tight as we easily can.
18825
18826         ftoastr: new module, for lossless conversion of floats to short strings
18827         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18828         * modules/ftoastr: New files.
18829
18830 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         bootstrap: port to Solaris sed
18833         * build-aux/bootstrap (get_version): Port to Solaris sed.
18834         See Ralf Wildenhues's note in
18835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18836
18837 2010-11-14  Jim Meyering  <meyering@redhat.com>
18838
18839         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18840         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18841         and move definition closer to sole use.
18842
18843 2010-11-13  Jim Meyering  <meyering@redhat.com>
18844
18845         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18846         Now we require at least autoconf-2.59, which means the work-around
18847         is no longer needed.
18848         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18849         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18850         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18851         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18852         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18853
18854 2010-11-13  Bruno Haible  <bruno@clisp.org>
18855
18856         rename, renameat: Avoid test failures at NFS mounted locations.
18857         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18858         functions.
18859         (test_rename): Use assert_nonexistent.
18860         * tests/test-rename.c: Include <dirent.h>.
18861         * tests/test-renameat.c: Likewise.
18862         Reported by Gary V. Vaughan <gary@gnu.org>.
18863
18864         rename, renameat: Document Linux bug with NFS
18865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18866         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18867         * doc/posix-functions/renameat.texi: Likewise.
18868         Suggested by Eric Blake.
18869
18870 2010-11-13  Bruno Haible  <bruno@clisp.org>
18871
18872         rename test: Add comments.
18873         * tests/test-rename.h (test_rename): Add structure and comments.
18874
18875 2010-11-13  Eric Blake  <eblake@redhat.com>
18876
18877         maintainer-makefile: cover a few more files
18878         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18879         scripts generated within C files, for libvirt.
18880
18881 2010-11-13  Bruno Haible  <bruno@clisp.org>
18882
18883         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18884         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18885         character, return the number of bytes that belong together, not always
18886         1.
18887         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18888         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18889         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18890         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18891         number of bytes of an invalid character.
18892         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18893         (main): Invoke it.
18894         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18895         results.
18896         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18897         malformed byte sequences.
18898         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18899         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18900         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18901         Reported by Ben Pfaff and Paolo Bonzini.
18902
18903 2010-11-13  Bruno Haible  <bruno@clisp.org>
18904
18905         openat: Work around glibc bug with fchownat() and empty file names.
18906         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18907         (gl_FUNC_FCHOWNAT): Invoke it.
18908         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18909         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18910         Reported by Gary V. Vaughan <gary@gnu.org>.
18911
18912 2010-11-13  Bruno Haible  <bruno@clisp.org>
18913
18914         openat: Ensure autoconf macro ordering.
18915         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18916         gl_USE_SYSTEM_EXTENSIONS.
18917         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18918
18919 2010-11-13  Bruno Haible  <bruno@clisp.org>
18920
18921         Update comments.
18922         * lib/unistr/u8-check.c: Update file name in comments.
18923         * lib/unistr/u8-mblen.c: Likewise.
18924         * lib/unistr/u8-prev.c: Likewise.
18925         * lib/unistr/u8-strmblen.c: Likewise.
18926         * lib/unistr/u8-strmbtouc.c: Likewise.
18927
18928 2010-11-13  Jim Meyering  <meyering@redhat.com>
18929
18930         tests: avoid test failure on Solaris 10 due to lack of PATH export
18931         * tests/test-update-copyright.sh: Don't forget to export PATH.
18932
18933         init.sh: ensure that IFS is defined, just in case...
18934         * tests/init.sh (setup_): Ensure that IFS is defined,
18935         so that saving and restoring it works as expected.  This
18936         appears to be useful at least for an old version of dash
18937         from a long time ago (RH 6).  See here for details:
18938         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18939
18940         maint.mk: tighten "test a == b" check
18941         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18942         test to files that contain something like #!/bin/sh.
18943         Without this, coreutils would get two false positives in
18944         the comments of C source files.
18945
18946 2010-11-12  Eric Blake  <eblake@redhat.com>
18947
18948         bootstrap: fix typo in previous attempt
18949         * build-aux/bootstrap (buildreq): Correct the grouping.
18950         Reported by Paul Eggert.
18951
18952         maintainer-makefile: prohibit test x == x
18953         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18954         Based on a report by Matthias Bolte.
18955
18956         bootstrap: allow FreeBSD gzip
18957         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18958         which has no '.' and goes to stderr.
18959         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18960         Reported by Matthias Bolte.
18961
18962         maintainer-makefile: check for i18n setup
18963         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18964         will likely work.
18965
18966 2010-11-12  Bruno Haible  <bruno@clisp.org>
18967
18968         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18969         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18970         * lib/nanosleep.c (nanosleep): Likewise.
18971
18972 2010-11-11  Bruno Haible  <bruno@clisp.org>
18973
18974         fcntl-h: Fix for use of C++ on glibc systems.
18975         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18976         also on glibc systems in C++ mode.
18977         Reported by Gary V. Vaughan <gary@gnu.org>.
18978
18979 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18980
18981         mknod: avoid false failure with dash
18982         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18983
18984 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18985
18986         unlink: Fix "is it should" typo in diagnostic.
18987         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18989
18990 2010-11-11  Bruno Haible  <bruno@clisp.org>
18991
18992         Tests for module 'strerror_r-posix'.
18993         * modules/strerror_r-posix-tests: New file.
18994         * tests/test-strerror_r.c: New file.
18995         * tests/test-string-c++.cc: Check the signature of strerror_r.
18996
18997         New module 'strerror_r-posix'.
18998         * lib/string.in.h (strerror_r): New declaration.
18999         * lib/strerror_r.c: New file.
19000         * m4/strerror_r.m4: New file.
19001         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19002         of strerror_r.
19003         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19004         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19005         * modules/strerror_r-posix: New file.
19006         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19007         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19008         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19009         portability problems.
19010
19011 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19012
19013         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19014         line is also considered for output. Quoted function name in shell
19015         command, so temporary files for functions like MyClass::operator()
19016         are removed correctly without errors.
19017
19018 2010-11-09  Bruno Haible  <bruno@clisp.org>
19019
19020         * doc/posix-functions/strerror.texi: List more failing platforms.
19021
19022         * doc/posix-functions/strerror.texi: Add a comment.
19023
19024 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19025
19026         fdopendir: fix bug on MacOS X when low on file descriptors
19027
19028         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19029         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19030         All callers changed.
19031         (fdopendir): Invoke save_cwd at the top level, not after using
19032         multiple dup() calls to use up file descriptors.  Then retry
19033         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19034         less than the maximum number of open file descriptors, because
19035         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19036         on Mac OS X 10.6.4 for tar 1.24
19037         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19038         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19039         and for tar 1.25
19040         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19041
19042 2010-11-07  Bruno Haible  <bruno@clisp.org>
19043
19044         vasnprintf: Support I flag on glibc systems.
19045         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19046         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19047         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19048         snprintf function.
19049         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19050         glibc systems.
19051         * tests/test-vasnprintf-posix3.c: New file.
19052         * modules/vasnprintf-posix-tests (Files): Add it.
19053         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19054
19055 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19056
19057         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19058         * MODULES.html.sh: For compiler warnings, use name
19059         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19060
19061 2010-11-05  Eric Blake  <eblake@redhat.com>
19062
19063         ceil, floor: avoid spurious failure with icc
19064         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19065         [denormals-as-zero] when optimizing without -mieee-fp option.
19066         * tests/test-floorf2.c (floorf_reference): Likewise.
19067         * tests/test-ceilf1.c (dummy): New function.
19068         (main): Use it to outsmart icc's optimization.
19069         * tests/test-floorf1.c (dummy, main): Likewise.
19070
19071         tests: require working signbit
19072         * modules/ceilf-tests (Depends-on): Add signbit.
19073         * modules/ceill-tests (Depends-on): Likewise.
19074         * modules/floorf-tests (Depends-on): Likewise.
19075         * modules/floorl-tests (Depends-on): Likewise.
19076         * modules/round-tests (Depends-on): Likewise.
19077         * modules/roundf-tests (Depends-on): Likewise.
19078         * modules/roundl-tests (Depends-on): Likewise.
19079         * modules/trunc-tests (Depends-on): Likewise.
19080         * modules/truncf-tests (Depends-on): Likewise.
19081         * modules/truncl-tests (Depends-on): Likewise.
19082
19083         strtod: work around icc bug
19084         * lib/strtod.c (minus_zero): Define to working value.
19085         (strtod): Use it to avoid icc bug.
19086
19087         copysign: enhance tests
19088         * modules/copysign-tests (Files): Add minus-zero.h.
19089         * tests/test-copysign.c (main): Also test zeros.
19090
19091 2010-11-04  Eric Blake  <eblake@redhat.com>
19092
19093         ceil, floor, round, trunc: enhance tests of -0
19094         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19095         * tests/test-ceill.c (main): Likewise.
19096         * tests/test-floorf1.c (main): Likewise.
19097         * tests/test-floorl.c (main): Likewise.
19098         * tests/test-round1.c (main): Likewise.
19099         * tests/test-roundf1.c (main): Likewise.
19100         * tests/test-roundl.c (main): Likewise.
19101         * tests/test-trunc1.c (main): Likewise.
19102         * tests/test-truncf1.c (main): Likewise.
19103         * tests/test-truncl.c (main): Likewise.
19104
19105 2010-11-04  Eric Blake  <eblake@redhat.com>
19106
19107         frexp, tests: work around ICC bug with -zero
19108         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19109         works with more compilers.
19110         * tests/minus-zero.h: New file.
19111         * modules/ceilf-tests (Files): Include it.
19112         * modules/ceill-tests (Files): Likewise.
19113         * modules/floorf-tests (Files): Likewise.
19114         * modules/floorl-tests (Files): Likewise.
19115         * modules/frexp-nolibm-tests (Files): Likewise.
19116         * modules/frexp-tests (Files): Likewise.
19117         * modules/frexpl-nolibm-tests (Files): Likewise.
19118         * modules/frexpl-tests (Files): Likewise.
19119         * modules/isnan-tests (Files): Likewise.
19120         * modules/isnand-nolibm-tests (Files): Likewise.
19121         * modules/isnand-tests (Files): Likewise.
19122         * modules/isnanf-nolibm-tests (Files): Likewise.
19123         * modules/isnanf-tests (Files): Likewise.
19124         * modules/isnanl-nolibm-tests (Files): Likewise.
19125         * modules/isnanl-tests (Files): Likewise.
19126         * modules/round-tests (Files): Likewise.
19127         * modules/roundf-tests (Files): Likewise.
19128         * modules/roundl-tests (Files): Likewise.
19129         * modules/ldexpl-tests (Files): Likewise.
19130         * modules/signbit-tests (Files): Likewise.
19131         * modules/snprintf-posix-tests (Files): Likewise.
19132         * modules/sprintf-posix-tests (Files): Likewise.
19133         * modules/strtod-tests (Files): Likewise.
19134         * modules/trunc-tests (Files): Likewise.
19135         * modules/truncf-tests (Files): Likewise.
19136         * modules/truncl-tests (Files): Likewise.
19137         * modules/vsnprintf-posix-tests (Files): Likewise.
19138         * modules/vsprintf-posix-tests (Files): Likewise.
19139         * modules/vasnprintf-posix-tests (Files): Likewise.
19140         * modules/vasprintf-posix-tests (Files): Likewise.
19141         * tests/test-ceilf1.c (main): Use it.
19142         * tests/test-ceill.c (main): Likewise.
19143         * tests/test-floorf1.c (main): Likewise.
19144         * tests/test-floorl.c (main): Likewise.
19145         * tests/test-frexp.c (main): Likewise.
19146         * tests/test-frexpl.c (main): Likewise.
19147         * tests/test-isnan.c (main): Likewise.
19148         * tests/test-isnand.h (main): Likewise.
19149         * tests/test-isnanf.h (main): Likewise.
19150         * tests/test-isnanl.h (main): Likewise.
19151         * tests/test-ldexpl.c (main): Likewise.
19152         * tests/test-round.c (main): Likewise.
19153         * tests/test-roundf.c (main): Likewise.
19154         * tests/test-roundl.c (main): Likewise.
19155         * tests/test-signbit.c (test_signbitf, test_signbitd)
19156         (test_signbitl): Likewise.
19157         * tests/test-snprintf-posix.h (test_function): Likewise.
19158         * tests/test-sprintf-posix.h (test_function): Likewise.
19159         * tests/test-strtod.c (main): Likewise.
19160         * tests/test-trunc1.c (main): Likewise.
19161         * tests/test-truncf1.c (main): Likewise.
19162         * tests/test-truncl.c (main): Likewise.
19163
19164         isnanl: work around icc bug
19165         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19166
19167 2010-11-03  Eric Blake  <eblake@redhat.com>
19168
19169         tests: fix compiler warnings
19170         * tests/test-getopt.h (test_getopt): Fix condition.
19171         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19172         * tests/test-pipe2.c (main): Likewise.
19173         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19174
19175         utimens: fix broken m4 test
19176         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19177
19178 2010-10-28  Bruno Haible  <bruno@clisp.org>
19179
19180         posix_spawn*, getdtablesize: Relax license.
19181         * modules/posix_spawn (License): Change to LGPLv2+.
19182         * modules/posix_spawnp (License): Likewise.
19183         * modules/posix_spawn-internal (License): Likewise.
19184         * modules/posix_spawnattr_init (License): Likewise.
19185         * modules/posix_spawnattr_getflags (License): Likewise.
19186         * modules/posix_spawnattr_setflags (License): Likewise.
19187         * modules/posix_spawnattr_getpgroup (License): Likewise.
19188         * modules/posix_spawnattr_setpgroup (License): Likewise.
19189         * modules/posix_spawnattr_getschedparam (License): Likewise.
19190         * modules/posix_spawnattr_setschedparam (License): Likewise.
19191         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19192         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19193         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19194         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19195         * modules/posix_spawnattr_getsigmask (License): Likewise.
19196         * modules/posix_spawnattr_setsigmask (License): Likewise.
19197         * modules/posix_spawnattr_destroy (License): Likewise.
19198         * modules/posix_spawn_file_actions_init (License): Likewise.
19199         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19200         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19201         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19202         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19203         * modules/getdtablesize (License): Likewise.
19204         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19205
19206 2010-10-26  Bruno Haible  <bruno@clisp.org>
19207
19208         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19209         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19210         Cygwin and mingw.
19211         Suggested by Eric Blake.
19212
19213 2010-10-26  Bruno Haible  <bruno@clisp.org>
19214
19215         stdio: Work around compilation error due to renameat() on Solaris 10.
19216         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19217         * lib/renameat.c: Don't include <unistd.h> here.
19218         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19219         Reported by Paul Eggert and Eric Blake.
19220
19221 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19222
19223         renameat: port to Solaris 10, which declares renameat in unistd.h
19224
19225         * lib/renameat.c: Include unistd.h before stdio.h, because
19226         Solaris 10 declares renameat in unistd.h.  Problem encountered
19227         when building GNU tar 1.24 on Solaris 10.
19228
19229 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19230
19231         fdopendir: fix C89 compilation
19232         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19233         compilers.
19234
19235 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19236
19237         inttostr: simplify by removing unnecessary redundancy
19238         * lib/anytostr.c: Don't include verify.h.
19239         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19240         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19241         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19242         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19243         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19244         Likewise.
19245         * modules/inttostr (Depends-on): Remove 'verify'.
19246
19247 2010-10-23  Bruno Haible  <bruno@clisp.org>
19248
19249         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19250         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19251         Reported by Eric Blake.
19252
19253 2010-10-23  Bruno Haible  <bruno@clisp.org>
19254
19255         Tests: Fix LOCALE_JA on MirBSD 10.
19256         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19257         to an UTF-8 locale.
19258         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19260         Reported by Eric Blake.
19261
19262 2010-10-21  Bruno Haible  <bruno@clisp.org>
19263
19264         nl_langinfo test: Avoid test failure on NetBSD 5.
19265         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19266         Reported by Eric Blake.
19267
19268 2010-10-21  Eric Blake  <eblake@redhat.com>
19269
19270         c-stack: work around libsigsegv 2.8 bug
19271         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19272         overflow on at least PowerPC64.
19273
19274 2010-10-17  Bruno Haible  <bruno@clisp.org>
19275
19276         userspec: Drop redundant file.
19277         * modules/userspec (Files): Remove lib/inttostr.h.
19278
19279 2010-10-17  Bruno Haible  <bruno@clisp.org>
19280
19281         nl_langinfo tests: Silence some warnings.
19282         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19283         Reported by Jim Meyering.
19284
19285 2010-10-17  Bruno Haible  <bruno@clisp.org>
19286
19287         Make use of GCC's attribute __alloc_size__.
19288         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19289         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19290         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19291         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19292         __alloc_size__.
19293         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19294         Suggested by Jim Meyering.
19295
19296 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19297
19298         bootstrap: anchor .gitignore entries.
19299         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19300         with...
19301         (insert_vc_ignore): ... this new function, which prepends `/' to
19302         all .gitignore entries before passing them to
19303         insert_sorted_if_absent.
19304
19305 2010-10-16  Bruno Haible  <bruno@clisp.org>
19306
19307         nextafter: Fix configure check.
19308         * modules/nextafter (configure.ac): Correct expected prototype.
19309
19310 2010-10-16  Bruno Haible  <bruno@clisp.org>
19311
19312         termios: Update documentation.
19313         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19314
19315 2010-10-16  Bruno Haible  <bruno@clisp.org>
19316
19317         tests: Make them compile with TinyCC.
19318         * tests/test-strstr.c (main): Remove parentheses around array
19319         initializer.
19320
19321 2010-10-15  Eric Blake  <eblake@redhat.com>
19322
19323         ignore-value: make header idempotent
19324         * lib/ignore-value.h: Add double-inclusion guards.
19325         Reported by Stefan Berger.
19326
19327 2010-10-15  Jim Meyering  <meyering@redhat.com>
19328
19329         GNUmakefile: handle "stable" target, not "major"
19330         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19331         lists in maint.mk and announce-gen.  Without this, "make stable"
19332         would fail to ensure that $(VERSION) is up to date.
19333
19334 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19335
19336         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19337         & co.
19338
19339 2010-10-14  Bruno Haible  <bruno@clisp.org>
19340
19341         vasnprintf: Don't set errno to 0.
19342         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19343         block that sets it to 0.
19344         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19345
19346 2010-10-14  Bruno Haible  <bruno@clisp.org>
19347
19348         socketlib: Fix.
19349         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19350         gl_PREREQ_SYS_H_WINSOCK2.
19351         Reported by Ian Beckwith <ianb@erislabs.net>.
19352
19353 2010-10-13  Jim Meyering  <meyering@redhat.com>
19354
19355         test-select-stdin.c: avoid warn_unused_result warnings
19356         * tests/test-select-stdin.c: Include "macros.h".
19357         ASSERT that read and fflush succeed.
19358
19359 2010-10-13  Jim Meyering  <meyering@redhat.com>
19360
19361         git-version-gen: do require git-VC'd files in cwd
19362         * build-aux/git-version-gen: Reject a git version string
19363         if there are no commits associated with the current directory.
19364         This avoids an unlikely false-positive (unrelated dir whose parent
19365         repository also contains a tag matching v*), as pointed out
19366         by Giuseppe Scrivano in
19367         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19368
19369 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19370
19371         argv-iter: omit nonconforming declaration
19372         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19373         enum arg_iter_err declaration, which doesn't conform to C99.
19374         Solaris 10 cc warns about this.
19375
19376 2010-10-13  Eric Blake  <eblake@redhat.com>
19377
19378         termios: fix compilation on mingw
19379         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19380         (gl_TERMIOS_H): Adjust it on mingw.
19381         * modules/termios (Makefile.am): Substitute new key.
19382         * lib/termios.in.h (includes): Make include_next conditional.
19383         * doc/posix-headers/termios.texi (termios.h): Update
19384         documentation.
19385         Reported by Daniel P. Berrange.
19386
19387 2010-10-13  Jim Meyering  <meyering@redhat.com>
19388
19389         git-version-gen: don't require that .git/ be in the current dir
19390         * build-aux/git-version-gen: Adjust this script so that it works
19391         when run from any working directory beneath the top-level .git/-
19392         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19393         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19394
19395         test-select: avoid warn_unused_result warnings
19396         * tests/test-select.c: Include "macros.h".
19397         ASSERT that each call to read, write, and pipe succeeds.
19398         While not technically required, also check each "close".
19399         * modules/select-tests (Files): Add tests/macros.h.
19400
19401         test-symlinkat: remove declaration of unused local
19402         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19403
19404         test-inttostr: avoid shadowing warnings
19405         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19406         and use malloc rather than the stack for the same reason as
19407         mentioned in the comment justifying the other allocation.
19408
19409 2010-10-11  Bruno Haible  <bruno@clisp.org>
19410
19411         stdlib: Allow multiple gnulib generated replacements to coexist.
19412         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19413         Reported by Sam Steingold <sds@gnu.org>.
19414
19415 2010-10-11  Jim Meyering  <meyering@redhat.com>
19416
19417         fix a documentation typo
19418         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19419
19420 2010-10-11  Eric Blake  <eblake@redhat.com>
19421
19422         futimens: work around Solaris 11 bug
19423         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19424         * tests/test-futimens.h (test_futimens): Enhance, rather than
19425         weaken test.
19426         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19427
19428 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         Indentation.
19431         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19432         higher-level operators more to the left.
19433
19434 2010-10-11  Jim Meyering  <meyering@redhat.com>
19435
19436         test-futimens: avoid unwarranted test failure on Solaris 5.11
19437         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19438         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19439         because it tries to dereference the NULL name argument.
19440
19441 2010-10-11  Bruno Haible  <bruno@clisp.org>
19442
19443         Indentation.
19444         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19445         indentation.
19446
19447 2010-10-11  Jim Meyering  <meyering@redhat.com>
19448
19449         spawn.in.h: make indentation consistent with parentheses
19450         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19451         Make indentation consistent with parentheses.
19452
19453 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19454
19455         Fix mismatched parens in previous commit
19456         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19457         parens.
19458
19459 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19460
19461         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19462
19463         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19464         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19465         * lib/malloca.c: Include "verify.h".
19466         (verify1): Remove, replacing with a verify call.
19467         * lib/relocwrapper.c (verify1): Likewise.
19468         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19469         Likewise.
19470         * modules/malloca (Depends-on): Add 'verify'.
19471         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19472         * modules/vasnprintf (Depends-on): Add 'verify'.
19473         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19475         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19477         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19478         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19479         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19480
19481         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19482
19483         Formerly the style was sometimes 2*X - 1, because the C standard
19484         was wrongly thought to disallow ?: in integral constant expressions.
19485         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19486         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19487         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19488         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19489         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19490         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19491         verify that time_t cannot be floating.
19492
19493 2010-10-08  Eric Blake  <eblake@redhat.com>
19494
19495         time: enforce recent POSIX ruling that time_t is integral
19496         * lib/time.in.h (__time_t_must_be_integral): Detect any
19497         problematic systems, allowing the rest of gnulib to assume POSIX.
19498
19499 2010-10-08  Jim Meyering  <meyering@redhat.com>
19500
19501         fdopendir: fix a bug on systems lacking openat and /proc support
19502         OpenBSD 4.7 is one such system.  The most noticeable effect was
19503         failure of any application making nontrivial use of fts: rm, du,
19504         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19505           ./rm: traversal failed: `a': Bad file descriptor
19506         Debugging that, you see that even though FD 6 was closed just
19507         prior to the opendir call in fd_clone_opendir, its resulting
19508         dir->dd_fd was 8, rather than the expected value of 6:
19509
19510         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19511         93                close (fd);
19512         (gdb) n
19513         94                dir = fd_clone_opendir (dupfd);
19514         (gdb) n
19515         95                saved_errno = errno;
19516         (gdb) p dir->dd_fd
19517         $11 = 8
19518
19519         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19520         The problem is that on OpenBSD, fd_clone_opendir has to resort
19521         to using the old-style save/restore CWD mechanism, due to its
19522         lack of openat/proc support, and *that* would steal the FD (6)
19523         that opendir was supposed to use.
19524
19525         The fix is to squirrel away the desired FD so that save_cwd uses a
19526         different one, and then free the dest FD right before calling opendir.
19527         That guarantees opendir will use the required file descriptor.
19528
19529         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19530
19531 2010-10-08  Bruno Haible  <bruno@clisp.org>
19532
19533         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19534         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19535
19536 2010-10-08  Bruno Haible  <bruno@clisp.org>
19537
19538         nanosleep: Make replacement POSIX compliant.
19539         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19540         is out of range.
19541         Reported by Jim Meyering.
19542
19543 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19544
19545         bootstrap: add hook for altering gnulib.mk, for Bison
19546         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19547         the Bison bootstrapping process can rewrite file names and variables
19548         in this file before later parts of 'bootstrap' use the file.
19549         Bison wants to include lib/gnulib.mk from the top-level makefile,
19550         so it needs the file names in this file to be relative to the top
19551         level, not relative to lib; plus it needs variable names to be
19552         rewritten.
19553         (slurp): Use the new function.
19554
19555         bootstrap: reformat for readability
19556         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19557
19558 2010-10-08  Eric Blake  <eblake@redhat.com>
19559
19560         docs: update cygwin progress
19561         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19562         1.7.7.
19563         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19564         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19565         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19566         * doc/posix-functions/carg.texi (carg): Likewise.
19567         * doc/posix-functions/cargf.texi (cargf): Likewise.
19568         * doc/posix-functions/casin.texi (casin): Likewise.
19569         * doc/posix-functions/casinf.texi (casinf): Likewise.
19570         * doc/posix-functions/casinh.texi (casinh): Likewise.
19571         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19572         * doc/posix-functions/catan.texi (catan): Likewise.
19573         * doc/posix-functions/catanf.texi (catanf): Likewise.
19574         * doc/posix-functions/catanh.texi (catanh): Likewise.
19575         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19576         * doc/posix-functions/ccos.texi (ccos): Likewise.
19577         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19578         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19579         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19580         * doc/posix-functions/cexp.texi (cexp): Likewise.
19581         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19582         * doc/posix-functions/cimag.texi (cimag): Likewise.
19583         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19584         * doc/posix-functions/clog.texi (clog): Likewise.
19585         * doc/posix-functions/clogf.texi (clogf): Likewise.
19586         * doc/posix-functions/conj.texi (conj): Likewise.
19587         * doc/posix-functions/conjf.texi (conjf): Likewise.
19588         * doc/posix-functions/cpow.texi (cpow): Likewise.
19589         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19590         * doc/posix-functions/cproj.texi (cproj): Likewise.
19591         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19592         * doc/posix-functions/creal.texi (creal): Likewise.
19593         * doc/posix-functions/crealf.texi (crealf): Likewise.
19594         * doc/posix-functions/csin.texi (csin): Likewise.
19595         * doc/posix-functions/csinf.texi (csinf): Likewise.
19596         * doc/posix-functions/csinh.texi (csinh): Likewise.
19597         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19598         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19599         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19600         * doc/posix-functions/ctan.texi (ctan): Likewise.
19601         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19602         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19603         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19604         * doc/posix-headers/complex.texi (complex.h): Likewise.
19605
19606 2010-10-07  Jim Meyering  <meyering@redhat.com>
19607
19608         parse-datetime: avoid compilation failure on OpenBSD 4.7
19609         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19610         This works around a compilation failure on OpenBSD 4.7:
19611         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19612
19613 2010-10-07  Eric Blake  <eblake@redhat.com>
19614
19615         docs: update cygwin progress
19616         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19617         1.7.6.
19618         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19619         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19620         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19621         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19622         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19623         Likewise.
19624         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19625         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19626         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19627         Likewise.
19628         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19629         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19630         Likewise.
19631         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19632         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19633         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19634         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19635         Likewise.
19636         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19637         Likewise.
19638         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19639
19640         docs: update parse-datetime history
19641         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19642         documentation of this function's history and alternatives.
19643
19644         cygwin: use more robust version check
19645         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19646         exclude an eventual cygwin 1.9.1.
19647         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19649         (gl_FUNC_STRCASESTR): Likewise.
19650         Reported by Bruno Haible.
19651
19652 2010-10-06  Bruno Haible  <bruno@clisp.org>
19653
19654         string, sys_select: Avoid #including large headers unless necessary.
19655         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19656         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19657         OSF/1, BeOS, Haiku.
19658         Reported by Jim Meyering.
19659
19660 2010-10-05  Eric Blake  <eblake@redhat.com>
19661
19662         memmem, strstr, strcasestr: fix bug with long periodic needle
19663         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19664         periodic needle having false positive.
19665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19666         and cygwin 1.7.7.
19667         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19669         (gl_FUNC_STRCASESTR): Likewise.
19670         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19671         * tests/test-memmem.c (main): Expose the bug.
19672         * tests/test-strcasestr.c (main): Likewise.
19673         * tests/test-strstr.c (main): Likewise.
19674         * tests/test-c-strcasestr.c (main): Likewise.
19675         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19676         * doc/posix-functions/strstr.texi (strstr): Likewise.
19677         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19678         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19679
19680 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19681
19682         parse-datetime: do some more renaming
19683         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19684         parse_datetime, not get_date.  Mention the renaming.
19685         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19686         in comments.
19687         * m4/bison.m4: Likewise.
19688
19689 2010-10-05  Eric Blake  <eblake@redhat.com>
19690
19691         parse-datetime: better name than get_date
19692         * NEWS: Reword the deprecation notice.
19693         * modules/get_date: Rename to modules/parse-datetime.
19694         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19695         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19696         * lib/get_date.y: Rename to lib/parse-datetime.y.
19697         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19698         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19699         * doc/getdate.texi: Provide fallback wrapper.
19700         * lib/getdate.h: Move guts, and wrap...
19701         * lib/parse-datetime.h: ...new file.
19702         * lib/parse-datetime.y (get_date): Rename...
19703         (parse_datetime): ...to this.
19704         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19705         (gl_PARSE_DATETIME): ...to this.
19706         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19707         documentation.
19708         * modules/getdate (Files): Provide fallback docs and header.
19709         (Notice, Depends-on): Update references.
19710         * tests/test-parse-datetime.c: Likewise.
19711         * DEPENDENCIES: Likewise.
19712         * MODULES.html.sh (Date and time <time.h>): Likewise.
19713         * doc/parse-datetime.texi (Date input formats)
19714         (Authors of parse_datetime): Likewise.
19715         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19716         (Include): Likewise.
19717         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19718         * gnulib-tool: Likewise.
19719         * m4/bison.m4 (gl_BISON): Likewise.
19720         Suggested by Bruno Haible.
19721
19722 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19723
19724         more ports to Solaris tr, which needs [] around ranges
19725         * gnulib-tool: Solaris tr needs [] around ranges.
19726         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19727         * tests/test-pipe-filter-gi1.c (main): Likewise.
19728         * tests/test-pipe-filter-ii1.c (main): Likewise.
19729
19730 2010-10-05  Eric Blake  <eblake@redhat.com>
19731
19732         bootstrap: fix Solaris regression
19733         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19734         around ranges.
19735         Reported by Pádraig Brady.
19736
19737         bootstrap: work with pkg-config
19738         * build-aux/bootstrap (check_versions): Also transliterate - in
19739         prerequisite name.
19740         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19741         prerequisites that were already found, to avoid confusion.
19742         Reported by Justin Clift.
19743
19744         faccessat: remove unused wrappers
19745         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19746         presence of these wrappers dragged in -lgen on Solaris.
19747         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19748
19749 2010-10-05  Jim Meyering  <meyering@redhat.com>
19750
19751         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19752         * Makefile (sc_pragma_columns): New syntax-check rule.
19753
19754 2010-10-04  Bruno Haible  <bruno@clisp.org>
19755
19756         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19757         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19758         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19759         Reported by Bruce Korb and Eric Blake.
19760
19761 2010-10-04  Bruno Haible  <bruno@clisp.org>
19762
19763         threadlib: Make option --with-libpth-prefix work.
19764         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19765         use $LIBPTH, not just -lpth.
19766
19767 2010-10-04  Bruno Haible  <bruno@clisp.org>
19768
19769         Avoid line length limitation from HP NonStop system header files.
19770         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19771         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19772         * lib/ctype.in.h: Likewise.
19773         * lib/dirent.in.h: Likewise.
19774         * lib/errno.in.h: Likewise.
19775         * lib/fcntl.in.h: Likewise.
19776         * lib/float.in.h: Likewise.
19777         * lib/getopt.in.h: Likewise.
19778         * lib/iconv.in.h: Likewise.
19779         * lib/inttypes.in.h: Likewise.
19780         * lib/langinfo.in.h: Likewise.
19781         * lib/locale.in.h: Likewise.
19782         * lib/math.in.h: Likewise.
19783         * lib/netdb.in.h: Likewise.
19784         * lib/netinet_in.in.h: Likewise.
19785         * lib/poll.in.h: Likewise.
19786         * lib/pthread.in.h: Likewise.
19787         * lib/pty.in.h: Likewise.
19788         * lib/sched.in.h: Likewise.
19789         * lib/se-selinux.in.h: Likewise.
19790         * lib/search.in.h: Likewise.
19791         * lib/signal.in.h: Likewise.
19792         * lib/spawn.in.h: Likewise.
19793         * lib/stdarg.in.h: Likewise.
19794         * lib/stddef.in.h: Likewise.
19795         * lib/stdint.in.h: Likewise.
19796         * lib/stdio.in.h: Likewise.
19797         * lib/stdlib.in.h: Likewise.
19798         * lib/string.in.h: Likewise.
19799         * lib/strings.in.h: Likewise.
19800         * lib/sys_file.in.h: Likewise.
19801         * lib/sys_ioctl.in.h: Likewise.
19802         * lib/sys_select.in.h: Likewise.
19803         * lib/sys_socket.in.h: Likewise.
19804         * lib/sys_stat.in.h: Likewise.
19805         * lib/sys_time.in.h: Likewise.
19806         * lib/sys_times.in.h: Likewise.
19807         * lib/sys_utsname.in.h: Likewise.
19808         * lib/sys_wait.in.h: Likewise.
19809         * lib/sysexits.in.h: Likewise.
19810         * lib/termios.in.h: Likewise.
19811         * lib/time.in.h: Likewise.
19812         * lib/unistd.in.h: Likewise.
19813         * lib/wchar.in.h: Likewise.
19814         * lib/wctype.in.h: Likewise.
19815         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19816         * modules/ctype (Makefile.am): Likewise.
19817         * modules/dirent (Makefile.am): Likewise.
19818         * modules/errno (Makefile.am): Likewise.
19819         * modules/fcntl-h (Makefile.am): Likewise.
19820         * modules/float (Makefile.am): Likewise.
19821         * modules/getopt-posix (Makefile.am): Likewise.
19822         * modules/iconv-h (Makefile.am): Likewise.
19823         * modules/inttypes (Makefile.am): Likewise.
19824         * modules/langinfo (Makefile.am): Likewise.
19825         * modules/locale (Makefile.am): Likewise.
19826         * modules/math (Makefile.am): Likewise.
19827         * modules/netdb (Makefile.am): Likewise.
19828         * modules/netinet_in (Makefile.am): Likewise.
19829         * modules/poll-h (Makefile.am): Likewise.
19830         * modules/pthread (Makefile.am): Likewise.
19831         * modules/pty (Makefile.am): Likewise.
19832         * modules/sched (Makefile.am): Likewise.
19833         * modules/search (Makefile.am): Likewise.
19834         * modules/selinux-h (Makefile.am): Likewise.
19835         * modules/signal (Makefile.am): Likewise.
19836         * modules/spawn (Makefile.am): Likewise.
19837         * modules/stdarg (Makefile.am): Likewise.
19838         * modules/stddef (Makefile.am): Likewise.
19839         * modules/stdint (Makefile.am): Likewise.
19840         * modules/stdio (Makefile.am): Likewise.
19841         * modules/stdlib (Makefile.am): Likewise.
19842         * modules/string (Makefile.am): Likewise.
19843         * modules/strings (Makefile.am): Likewise.
19844         * modules/sys_file (Makefile.am): Likewise.
19845         * modules/sys_ioctl (Makefile.am): Likewise.
19846         * modules/sys_select (Makefile.am): Likewise.
19847         * modules/sys_socket (Makefile.am): Likewise.
19848         * modules/sys_stat (Makefile.am): Likewise.
19849         * modules/sys_time (Makefile.am): Likewise.
19850         * modules/sys_times (Makefile.am): Likewise.
19851         * modules/sys_utsname (Makefile.am): Likewise.
19852         * modules/sys_wait (Makefile.am): Likewise.
19853         * modules/sysexits (Makefile.am): Likewise.
19854         * modules/termios (Makefile.am): Likewise.
19855         * modules/time (Makefile.am): Likewise.
19856         * modules/unistd (Makefile.am): Likewise.
19857         * modules/wchar (Makefile.am): Likewise.
19858         * modules/wctype (Makefile.am): Likewise.
19859
19860 2010-10-04  Bruno Haible  <bruno@clisp.org>
19861
19862         read-file tests: Avoid a test failure on NonStop Kernel.
19863         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19864         a regular file.
19865         Reported by Joachim Schmitz <schmitz@hp.com>.
19866
19867 2010-10-03  Bruno Haible  <bruno@clisp.org>
19868
19869         gnulib-tool: Fixes for --create-testdir with --libtool.
19870         * gnulib-tool (func_get_automake_snippet): Don't augment
19871         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19872         an executable.
19873         (func_create_testdir): Handle module 'alloca' like func_import.
19874         Reported by Bruce Korb <bruce.korb@gmail.com>.
19875
19876 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19877
19878         Avoid some lines longer than 80 characters.
19879         * lib/stdint.in.h: Break long comment lines.
19880         * lib/math.in.h: Likewise.
19881         (_GL_NUM_UINT_WORDS): New macro, for readability.
19882         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19883         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19884         * lib/stdlib.in.h: Likewise.
19885         * lib/spawn.in.h: Likewise.
19886         * lib/sys_socket.in.h: Update an URL.
19887         * lib/sys_stat.in.h: Break long line.
19888
19889 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19890
19891         Improve pmccabe2html.
19892         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19893         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19894         when the sources change. Remove the line in the HTML about "Used
19895         ranges" (which implied that there might be other unused ranges),
19896         rename "Resume" to "Summary" (easier to understand for more users).
19897         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19898         styles, and some unnecessary blank lines.
19899
19900 2010-10-03  Bruno Haible  <bruno@clisp.org>
19901             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19902
19903         acl: Add support for ACLs on NonStop Kernel.
19904         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19905         Check whether the function aclsort() exists.
19906         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19907         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19908         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19909         (acl_nontrivial [HAVE_ACLSORT]: New function.
19910         (file_has_acl): Implement for NonStop Kernel.
19911         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19912         (qset_acl): Implement for NonStop Kernel.
19913         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19914         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19915         (main): Implement for NonStop Kernel.
19916         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19917         Kernel. Handle this flavor.
19918         * tests/test-set-mode-acl.sh: Likewise.
19919         * tests/test-copy-acl.sh: Likewise.
19920         * tests/test-copy-file.sh: Likewise.
19921
19922 2010-10-03  Bruno Haible  <bruno@clisp.org>
19923
19924         Info about ACLs on NonStop Kernel.
19925         * doc/acl-resources.txt: Add info about NonStop Kernel.
19926         References by Joachim Schmitz <schmitz@hp.com>.
19927
19928 2010-10-02  Bruno Haible  <bruno@clisp.org>
19929
19930         Define missing EDQUOT on NonStop Kernel.
19931         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19932         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19933         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19934         missing.
19935         * doc/posix-headers/errno.texi: Mention the NSK bug.
19936         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19937         Reported by Joachim Schmitz <schmitz@hp.com>.
19938
19939 2010-10-02  Bruno Haible  <bruno@clisp.org>
19940
19941         Update doc for POSIX:2008.
19942         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19943         Update URL of POSIX specification.
19944
19945 2010-10-02  Bruno Haible  <bruno@clisp.org>
19946
19947         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19948         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19949         from gnulib, not from Automake.
19950
19951 2010-10-02  Bruno Haible  <bruno@clisp.org>
19952
19953         New module 'system-posix'.
19954         * modules/system-posix: New file.
19955         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19956         module is present.
19957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19958         GNULIB_SYSTEM_POSIX.
19959         * modules/stdlib (Depends-on): Remove sys_wait.
19960         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19961         * doc/posix-functions/system.texi: Mention the new module.
19962         * doc/posix-headers/stdlib.texi: Likewise.
19963         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19964         define test_sys_wait_macros to a no-op.
19965         Reported by Sam Steingold <sds@gnu.org>.
19966
19967 2010-09-30  Bruno Haible  <bruno@clisp.org>
19968
19969         More renaming from 'getdate' to 'get_date'.
19970         * doc/get_date.texi: Renamed from doc/getdate.texi.
19971         * modules/get_date (Files): Update.
19972         * MODULES.html.sh (Date and time <time.h>): Update.
19973         * DEPENDENCIES: Update.
19974         * gnulib-tool: Update comment.
19975         * m4/bison.m4 (gl_BISON): Likewise.
19976         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19977
19978 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19979
19980         bootstrap: support ACLOCAL_FLAGS during aclocal
19981         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19982         can add additional -I dir for third-party .m4 files.
19983
19984 2010-09-30  Eric Blake  <eblake@redhat.com>
19985
19986         bootstrap: use glibtoolize on MacOS
19987         * build-aux/bootstrap (check_versions): Convert libtool into
19988         libtoolize.
19989         (tool search): Move libtool check earlier, and look for
19990         glibtoolize for MacOS.
19991         (gnulib_tool_options): Auto-add --libtool when appropriate.
19992         Reported by Justin Clift.
19993
19994         poll: fix typo that broke test on MacOS
19995         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19996         Reported by Justin Clift.
19997
19998         getdate: rename to get_date
19999         Note: getdate.h is not renamed, to minimize client impact.
20000         * modules/getdate: Mark obsolete.  Move old contents...
20001         * modules/get_date: ...to new module name.
20002         * modules/getdate-tests: Move...
20003         * modules/get_date-tests: ...here.
20004         * m4/getdate.m4: Move...
20005         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20006         * lib/getdate.y: Move...
20007         * lib/get_date.y: ...here.
20008         * tests/test-getdate.c: Move...
20009         * tests/test-get_date.c: ...here.
20010         * doc/posix-functions/getdate.texi (getdate): Update name.
20011         * NEWS: Mention the change.
20012
20013 2010-09-29  Bruno Haible  <bruno@clisp.org>
20014
20015         Separate the module 'waitpid' from the module 'sys_wait'.
20016         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20017         present.
20018         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20019         gl_MODULE_INDICATOR_FOR_TESTS.
20020         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20021         * modules/sys_wait (Depends-on): Remove waitpid.
20022         (Makefile.am): Substitute GNULIB_WAITPID.
20023         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20024         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20025         signature only if the 'waitpid' module is present.
20026         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20027         * NEWS: Mention the change.
20028         * modules/grantpt (Depends-on): Add waitpid.
20029         * modules/wait-process (Depends-on): Likewise.
20030
20031 2010-09-29  Bruno Haible  <bruno@clisp.org>
20032
20033         More tests for module 'sys_wait'.
20034         * modules/sys_wait-c++-tests: New file.
20035         * tests/test-sys_wait-c++.cc: New file.
20036         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20037         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20038
20039 2010-09-29  Bruno Haible  <bruno@clisp.org>
20040
20041         New module 'waitpid'.
20042         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20043         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20044         Don't include <process.h>.
20045         (waitpid): Declare only, using modern idiom.
20046         * m4/waitpid.m4: New file.
20047         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20048         * modules/waitpid: New file.
20049         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20050         (Makefile.am): Update.
20051         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20052
20053 2010-09-28  Bruno Haible  <bruno@clisp.org>
20054
20055         poll: Assume ANSI C.
20056         * lib/poll.c (poll): Use an ANSI C declaration.
20057
20058 2010-09-28  Bruno Haible  <bruno@clisp.org>
20059
20060         poll-h: Create poll.h on all platforms.
20061         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20062         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20063         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20064         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20065         (gl_REPLACE_POLL_H): Don't set POLL_H.
20066         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20067         * modules/poll-h (Depends-on): Add include_next.
20068         (Makefile.am): Create poll.h unconditionally. Substitute also
20069         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20070
20071 2010-09-28  Bruno Haible  <bruno@clisp.org>
20072
20073         Tests for module 'poll-h'.
20074         * modules/poll-h-c++-tests: New file.
20075         * tests/test-poll-h-c++.cc: New file.
20076
20077         Tests for module 'poll-h'.
20078         * modules/poll-h-tests: New file.
20079         * tests/test-poll-h.c: New file.
20080
20081 2010-09-28  Bruno Haible  <bruno@clisp.org>
20082
20083         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20084         * modules/poll-h (Depends-on): Add 'extensions'.
20085
20086 2010-09-28  Bruno Haible  <bruno@clisp.org>
20087
20088         New module 'poll-h'.
20089         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20090         (poll): Use modern idiom.
20091         * modules/poll-h: New file.
20092         * modules/poll (Files): Remove lib/poll.in.h.
20093         (Depends-on): Add poll-h.
20094         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20095         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20096         * m4/poll_h.m4: New file.
20097         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20098         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20099         and invoke gl_REPLACE_POLL_H.
20100         * lib/poll.c: Use common idiom.
20101         * tests/test-poll.c: Likewise.
20102         * doc/posix-headers/poll.texi: Mention the poll-h module.
20103         Suggested by Eric Blake.
20104
20105 2010-09-26  Bruno Haible  <bruno@clisp.org>
20106
20107         sys_wait: Implement WSTOPSIG.
20108         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20109         Reported by Simon Josefsson.
20110
20111 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20112
20113         stdlib, sys_wait: Avoid compilation error on mingw.
20114         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20115
20116 2010-09-26  Bruno Haible  <bruno@clisp.org>
20117
20118         stdlib tests: Avoid code duplication.
20119         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20120         * modules/sys_wait-tests (Files): Likewise.
20121         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20122         * tests/test-stdlib.c: Include test-sys_wait.h.
20123         (main): Invoke test_sys_wait_macros.
20124         * tests/test-sys_wait.c: Include test-sys_wait.h.
20125         (main): Invoke test_sys_wait_macros.
20126
20127 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20128
20129         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20130         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20131         sure Windows sockets are working before calling getaddrinfo.
20132         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20133         * doc/gnulib.texi (Windows sockets): Fix typo.
20134
20135 2010-09-25  Bruno Haible  <bruno@clisp.org>
20136
20137         Tests for module 'regex-quote'.
20138         * modules/regex-quote-tests: New file.
20139         * tests/test-regex-quote.c: New file.
20140
20141         New module 'regex-quote'.
20142         * lib/regex-quote.h: New file.
20143         * lib/regex-quote.c: New file.
20144         * modules/regex-quote: New file.
20145         Suggested by Reuben Thomas <rrt@sc3d.org>.
20146
20147 2010-09-24  Bruno Haible  <bruno@clisp.org>
20148
20149         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20150         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20151
20152 2010-09-23  Bruno Haible  <bruno@clisp.org>
20153
20154         setenv: Relax license.
20155         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20156         Blake.
20157         Requested by Eric Blake.
20158
20159 2010-09-22  Bruno Haible  <bruno@clisp.org>
20160
20161         termios: Relax license.
20162         * modules/termios (License): Change to LGPLv2+.
20163         Requested by Eric Blake.
20164
20165 2010-09-22  Bruno Haible  <bruno@clisp.org>
20166
20167         threadlib: Allow the package to change the default to 'no'.
20168         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20169         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20170         Reported by Paul Eggert.
20171
20172 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20173             Bruno Haible  <bruno@clisp.org>
20174
20175         Fix endless loop in mbmemcasecoll.
20176         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20177         byte.
20178         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20179
20180 2010-09-22  Bruno Haible  <bruno@clisp.org>
20181
20182         Tests for module 'memcoll'.
20183         * modules/memcoll-tests: New file.
20184         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20185
20186         memcoll, xmemcoll: Clarify size vs. length.
20187         * modules/memcoll.c (memcoll0): Clarify specification.
20188         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20189         passed to collate_error.
20190
20191 2010-09-22  Bruno Haible  <bruno@clisp.org>
20192
20193         Tests for module 'memcasecmp'.
20194         * modules/memcasecmp-tests: New file.
20195         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20196
20197 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20198
20199         * lib/pthread.in.h: Add split double-inclusion guard, and include
20200         system <pthread.h> if there is one.  Use @@-style as in other
20201         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20202         pthread.h doesn't.
20203         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20204         (pthread_mutexattr_settype, pthread_mutex_trylock):
20205         New static inline functions, if there's no system <pthread.h>.
20206         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20207         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20208         Approximate with mutexes if the system lacks spinlocks, as in
20209         MacOS.
20210         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20211         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20212         @@-style.  Check for spinlocks separately.
20213         (gl_PTHREAD_DEFAULTS): New macro.
20214         * modules/pthread: Redo to use a more typical style for in.h files.
20215
20216 2010-09-21  Eric Blake  <eblake@redhat.com>
20217
20218         net_if: enhance tests
20219         * tests/test-net_if.c (main): Move signature checks earlier.
20220         Print failures to stderr.
20221         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20222         Document the bug that we do not yet fix.
20223
20224 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20225
20226         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20227         about gnulib, not GSS.
20228
20229 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20230
20231         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20232         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20233         for Emacs.
20234         * build-aux/pmccabe2html: Make Makefile.am example code more
20235         cut-and-paste friendly.
20236
20237 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20238
20239         * tests/test-net_if.c: New file.
20240         * modules/net_if-tests: New file.
20241
20242 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20243
20244         pthread: add pthread_spin_destroy
20245         * lib/pthread.in.h (pthread_spin_destroy): New function.
20246
20247 2010-09-19  Bruno Haible  <bruno@clisp.org>
20248
20249         gnulib-tool: Fix --help output.
20250         * gnulib-tool (func_usage): Fix help message.
20251         Reported by Reuben Thomas <rrt@sc3d.org>.
20252
20253 2010-09-18  Jim Meyering  <meyering@redhat.com>
20254
20255         maint.mk: avoid unexpanded \n in two diagnostics
20256         * top/maint.mk (sc_prohibit_always_true_header_tests):
20257         Don't use a literal \n in a halt=... assignment.  It would not be
20258         expanded, and the two \n bytes would appear in the diagnostic output
20259         rather than the desired newline.  Use halt=$$(printf ... instead.
20260         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20261
20262 2010-09-18  Bruno Haible  <bruno@clisp.org>
20263
20264         netinet_in: Doc tweak.
20265         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20266         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20267
20268 2010-09-18  Jim Meyering  <meyering@redhat.com>
20269
20270         init.sh: correct an outdated comment
20271         * tests/init.sh (create_exe_shims_):  s/function/alias/
20272
20273         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20274         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20275         a file named "*.exe" is removed between the glob expansion and the
20276         processing of that oddly named file.
20277
20278 2010-09-17  Eric Blake  <eblake@redhat.com>
20279
20280         mirbsd: add some more support
20281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20282         in BSD family.
20283         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20284         devices as OpenBSD.
20285         * m4/host-os.m4 (mirbsd): Add MirBSD.
20286
20287         tests: fix unportable assumption on sys/wait.h
20288         * tests/test-sys_wait.c (main): Relax test.
20289         * tests/test-stdlib.c (main): Likewise.
20290
20291         init.sh: accomodate directory with no .exes
20292         * tests/init.sh: Accomodate directory containing only scripts.
20293
20294         tests: avoid compiler warning
20295         * tests/test-stdlib.c (main): Use the variable.
20296
20297         fdutimens, fdutimensat: update signature, again
20298         * lib/utimens.h (gl_futimens): Delete, and move signature...
20299         (fdutimens): ...here.
20300         (fdutimensat): Rearrange signature.
20301         (lutimensat): Rename variable for clarity.
20302         * lib/fdutimensat.c (fdutimensat): Update signature.
20303         * lib/utimens.c (fdutimens): Likewise.
20304         (gl_futimens): Delete.
20305         (utimens, lutimens): Update callers.
20306         * lib/futimens.c (futimens): Likewise.
20307         * tests/test-fdutimensat.c: Likewise.
20308         * tests/test-utimens.c: Likewise.
20309         * tests/test-futimens.h: Update comment.
20310         * NEWS: Mention this.
20311         Suggested by Paul Eggert.
20312
20313 2010-09-17  Bruno Haible  <bruno@clisp.org>
20314
20315         Take over the maintenance of some older macros from Autoconf.
20316         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20317         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20318         GNU Autoconf.
20319         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20320         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20321
20322 2010-09-17  Eric Blake  <eblake@redhat.com>
20323
20324         fdutimensat: drop atflag validation
20325         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20326         with valid fd, to close a race scenario where futimens is
20327         unsupported and FILE was replaced by a symlink.
20328         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20329         accordingly.
20330         Suggested by Paul Eggert.
20331
20332 2010-09-16  Bruno Haible  <bruno@clisp.org>
20333
20334         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20335         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20336
20337 2010-09-16  Bruno Haible  <bruno@clisp.org>
20338
20339         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20340         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20341         login_tty exists.
20342         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20343
20344 2010-09-16  Bruno Haible  <bruno@clisp.org>
20345
20346         login_tty: Make the replacement code work on BSD systems.
20347         * lib/login_tty.c: Include <sys/ioctl.h>.
20348         (login_tty): Use ioctl TIOCSCTTY when available.
20349         * modules/login_tty (Depends-on): Add sys_ioctl.
20350         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20351
20352 2010-09-16  Bruno Haible  <bruno@clisp.org>
20353
20354         login_tty: Stricter unit test.
20355         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20356         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20357         and tcgetsid() after login_tty.
20358         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20359
20360 2010-09-16  Bruno Haible  <bruno@clisp.org>
20361
20362         New module 'tcgetsid'.
20363         * lib/tcgetsid.c: New file.
20364         * m4/tcgetsid.m4: New file.
20365         * modules/tcgetsid: New file.
20366         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20367         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20368         GNULIB_TCGETSID, HAVE_TCGETSID.
20369         * lib/termios.in.h: Include <sys/types.h>.
20370         (tcgetsid): New declaration.
20371         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20372         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20373         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20374         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20375
20376 2010-09-16  Bruno Haible  <bruno@clisp.org>
20377
20378         Tests for module 'termios'.
20379         * modules/termios-c++-tests: New file.
20380         * modules/termios-tests: New file.
20381         * tests/test-termios-c++.cc: New file.
20382         * tests/test-termios.c: New file.
20383
20384         New module 'termios'.
20385         * modules/termios: New file.
20386         * lib/termios.in.h: New file.
20387         * m4/termios_h.m4: New file.
20388         * doc/posix-headers/termios.texi: Mention the new module.
20389
20390 2010-09-16  Eric Blake  <eblake@redhat.com>
20391
20392         fdutimensat: add an atflag parameter
20393         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20394         * lib/utimens.h (fdutimensat): Update prototype.
20395         * tests/test-fdutimensat.c: Adjust test to match.
20396         * NEWS: Document the change.
20397         Suggested by Paul Eggert.
20398
20399 2010-09-16  Bruno Haible  <bruno@clisp.org>
20400
20401         Fix typos in comments.
20402         * lib/striconveh.h: Fix typo in comment.
20403         * lib/login_tty.c (login_tty): Likewise.
20404
20405 2010-09-15  Bruno Haible  <bruno@clisp.org>
20406
20407         stdlib: clarify MirBSD WEXITSTATUS bug
20408         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20409         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20410
20411 2010-09-15  Eric Blake  <eblake@redhat.com>
20412
20413         stdlib: work around MirBSD WEXITSTATUS bug
20414         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20415         * modules/stdlib (Depends-on): Add sys_wait.
20416         * tests/test-sys_wait.c (main): Enhance test.
20417         * tests/test-stdlib.c (main): Likewise.
20418         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20419
20420         docs: mention MacOS issue with WEXITSTATUS(constant)
20421         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20422         issue.
20423         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20424
20425         strnlen: add tests
20426         * modules/strnlen-tests: New file.
20427         * tests/test-strnlen.c: Likewise.
20428
20429 2010-09-14  Bruno Haible  <bruno@clisp.org>
20430
20431         unistr/base: Avoid link errors when module 'libunistring' is also used.
20432         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20433         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20434         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20435         Declare also when HAVE_LIBUNISTRING is set.
20436         Reported by Pádraig Brady <P@draigbrady.com>.
20437
20438 2010-09-14  Eric Blake  <eblake@redhat.com>
20439
20440         test-rawmemchr: make more robust
20441         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20442         (Depends-on, configure.ac): Add needed prerequisites to use it.
20443         * modules/memchr-tests (Files, Depends-on, configure.ac):
20444         Likewise, to avoid implicit reliance on memchr module prereqs.
20445         * tests/test-memchr.c (main): Ensure proper masking.
20446         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20447         reads.
20448
20449         memchr: detect glibc Alpha bug
20450         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20451         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20452         Alpha.
20453         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20454         * tests/test-memchr.c (main): Enhance test.
20455         Reported by Nelson H. F. Beebe.
20456
20457 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20458
20459         fts, getcwd, glob: audit for dirfd returning -1
20460         * lib/fts.c (opendir): Remove #define; no longer used.
20461         (opendirat): New arg PDIR_FD.  All callers changed.
20462         (fts_build, _opendir2): Use new opendirat to avoid the need for
20463         dirfd, or for checking whether dirfd returns a negative value.
20464         Don't use opendir; always use openat followed by fdopendir.
20465         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20466         it.
20467         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20468         returns -1 here.
20469         * modules/fts (Depends-on): Remove dirfd.
20470         * modules/getcwd (Depends-on): Likewise.
20471
20472 2010-09-13  Eric Blake  <eblake@redhat.com>
20473
20474         float: fix broken MirBSD header
20475         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20476         * doc/posix-headers/float.texi (float.h): Document it.
20477
20478 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20479
20480         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20481         * lib/fts.c (opendirat): New arg extra_flags.
20482         (__opendir2): Use it to avoid following symlinks when opening
20483         a directory, if symlinks are not supposed to be followed.  See
20484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20485
20486         fdopendir: preserve argument fd before returning
20487         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20488         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20489         (fdopendir): Use them, arranging for FD to be open to the same
20490         directory that it was when it started.  (It might be temporarily
20491         closed while fdopendir is running, so this not thread- or
20492         signal-safe.)  Be careful to do the right thing even when file
20493         descriptors are scarce and dup fails with errno == EMFILE.  See
20494         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20495
20496 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20497
20498         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20499         * NEWS: Document change.
20500         * m4/regex.m4: Disable test for regoff_t size.
20501
20502 2010-09-13  Jim Meyering  <meyering@redhat.com>
20503
20504         fts: don't operate on an invalid file descriptor after failed dup
20505         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20506         negative file descriptor.
20507
20508 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20509
20510         savedir: add streamsavedir, deprecate fdsavedir
20511         * NEWS: Mention deprecation of fdsavedir.
20512         * lib/savedir.c (streamsavedir): New extern function, whose name
20513         ends in "savedir" to be consistent with the others.  This differs
20514         from savedirstream in that it doesn't close its argument.  The
20515         next version of GNU tar will use this instead of fdsavedir, to
20516         avoid some race conditions and conserve file descriptors.
20517         (savedirstream): Reimplement as a wrapper around streamsavedir.
20518         (fdsavedir): Add a comment deprecating this function.  As far as
20519         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20520         * lib/savedir.h (streamsavedir): New decl.
20521         (fdsavedir): Add a comment deprecating this.
20522
20523 2010-09-10  Bruno Haible  <bruno@clisp.org>
20524
20525         langinfo: Fix last commit.
20526         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20527         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20529
20530 2010-09-10  Bruno Haible  <bruno@clisp.org>
20531
20532         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20533         * lib/progreloc.c (O_EXEC): Define fallback.
20534
20535 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20536
20537         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20538         * NEWS: Document recent changes to fcntl-h.
20539         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20540         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20541         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20542         Similarly for O_SEARCH; this last was already true, but not documented.
20543         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20544         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20545         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20546         Likewise.
20547         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20548         is zero, not whether it is defined.
20549         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20550         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20551         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20552
20553 2010-09-10  Bruno Haible  <bruno@clisp.org>
20554
20555         langinfo, nl_langinfo: Fix for IRIX 5.3.
20556         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20557         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20558         HAVE_LANGINFO_YESEXPR.
20559         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20560         HAVE_LANGINFO_YESEXPR.
20561         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20562         HAVE_LANGINFO_T_FMT_AMPM is 0.
20563         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20564         HAVE_LANGINFO_YESEXPR is 0.
20565         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20566         NOEXPR.
20567         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20568         * doc/posix-functions/nl_langinfo.texi: Likewise.
20569         Reported by Eric Blake.
20570
20571 2010-09-10  Bruno Haible  <bruno@clisp.org>
20572
20573         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20574         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20575         on FreeBSD 8.0 and OpenBSD 4.6.
20576         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20577         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20578         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20579         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20580         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20581         ac_includes_default.
20582         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20583
20584 2010-09-09  Eric Blake  <eblake@redhat.com>
20585
20586         strsignal: work around NetBSD bug
20587         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20588         * lib/string.in.h (includes): Likewise.
20589         * doc/posix-functions/strsignal.texi (strsignal): Document the
20590         bug.
20591         Reported by Nelson H. F. Beebe.
20592
20593         gnulib-tool: work with NetBSD /bin/sh
20594         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20595         (func_get_description, func_get_comment, func_get_status)
20596         (func_get_notice, func_get_applicability, func_get_filelist)
20597         (func_get_dependencies, func_get_autoconf_early_snippet)
20598         (func_get_autoconf_snippet, func_get_automake_snippet)
20599         (func_get_include_directive, func_get_link_directive)
20600         (func_get_license, func_get_maintainer, func_import): Avoid
20601         shell syntax errors from parsing syntax extensions.
20602
20603 2010-09-09  Bruno Haible  <bruno@clisp.org>
20604
20605         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20606         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20607         a reliable way to determine whether the 'alias' command works.
20608
20609 2010-09-08  Jim Meyering  <meyering@redhat.com>
20610
20611         init.sh: penalize a set-x-impaired shell; don't disqualify it
20612         * tests/init.sh: Too many shells corrupt application stderr when
20613         you set -x, so we can't afford to disqualify them, since at least
20614         on Irix-6.5, that would disqualify all bourne shells.
20615         Instead, use a two-pass approach.
20616         On the first pass, try to find a shell that meets the stricter
20617         condition that set -x does not corrupt stderr.
20618         If no shell meets the stricter condition, retest each candidate
20619         shell, but without that extra condition.  Finally, when
20620         VERBOSE=yes is requested and set -x might cause trouble, simply
20621         issue a warning and refrain from enabling debug output.
20622
20623 2010-09-08  Eric Blake  <eblake@redhat.com>
20624
20625         unsetenv: fix OpenBSD bug
20626         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20627         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20628         documentation.
20629         Reported by Jim Meyering.
20630
20631         strtod: work around IRIX 6.5 bug
20632         * lib/strtod.c (strtod): Reparse number on shorter string if
20633         exponent parse was invalid.
20634         * tests/test-strtod.c (main): Add check for "0x1p 2".
20635         Reported by Tom G. Christensen.
20636
20637         getopt: optimize previous patch
20638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20639         empty variable.  Speed up awk script.
20640         Reported by Paolo Bonzini.
20641
20642 2010-09-08  Jim Meyering  <meyering@redhat.com>
20643
20644         test.sh: disqualify shells for which set -x corrupts stderr
20645         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20646         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20647         appear in stderr output.  For example, this command:
20648             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20649         prints "P=1" on those two systems:
20650
20651 2010-09-08  Bruno Haible  <bruno@clisp.org>
20652
20653         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20654         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20655         commands, because some shells ignore redirections when there is an
20656         error in the command lookup.
20657         Reported by Eric Blake.
20658
20659 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20660
20661         * lib/regex.h: Fix a mention of `regex_compile' (should be
20662         `re_compile_pattern').
20663         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20664         (re_set_registers): Correct name of parameter in comment.
20665
20666         * doc/regex.texi: Add documentation for missing syntax flags.
20667         Remove commented-out documentation of defunct syntax option
20668         RE_NO_EMPTY_ALTS.
20669         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20670         Add documentation of re_set_registers.
20671         Document trick to re-use a pattern buffer by setting fastmap manually.
20672         Update documentation of struct re_pattern_buffer per public members.
20673         Uncomment documentation of equivalence class operators and
20674         collating symbol operators, since they are now implemented,
20675         Explain leftmost-longest matching in relation to alternatives.
20676         Tidy documentation of substring matching.
20677         Remove POSIX documentation, which is done better in
20678         glibc, and refer the reader there. Keep BSD API documentation, as
20679         that is not readily available elsewhere.
20680
20681 2010-09-07  Eric Blake  <eblake@redhat.com>
20682
20683         getopt: handle POSIXLY_CORRECT set but not exported
20684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20685         export state of POSIXLY_CORRECT, due to bash set -o posix.
20686         Reported by Dustin J. Mitchell.
20687
20688 2010-09-05  Bruno Haible  <bruno@clisp.org>
20689
20690         gnulib-tool: Highlight the changed options.
20691         * gnulib-tool (func_usage): Display the --import, --add-import,
20692         --remove-import explanations in bold font.
20693
20694 2010-09-06  Karl Berry  <karl@gnu.org>
20695
20696         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20697
20698 2010-09-05  Bruno Haible  <bruno@clisp.org>
20699
20700         uniwidth/width: Update comment.
20701         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20702         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20703
20704 2010-09-05  Bruno Haible  <bruno@clisp.org>
20705
20706         isinf, isnan: Relax license.
20707         * modules/isinf (License): Change from GPL to LGPL, with consent from
20708         Ben Pfaff.
20709         * modules/isnan (License): Likewise.
20710         Requested by Ludovic Courtès.
20711
20712 2010-09-04  Bruno Haible  <bruno@clisp.org>
20713
20714         gnulib-tool: Help migration from --import to --add-import or --update.
20715         * gnulib-tool: Emit a verbose error message when --import is used
20716         without any module name.
20717
20718 2010-09-04  Bruno Haible  <bruno@clisp.org>
20719
20720         Update doc about gnulib-tool.
20721         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20722         'gnulib-tool --update' in more detail.
20723         Reported by Eric Blake.
20724
20725 2010-09-04  Bruno Haible  <bruno@clisp.org>
20726
20727         gnulib-tool: Change --import. New options --add/remove-import.
20728         * gnulib-tool: New options --add-import, --remove-import.
20729         (func_usage): Document them.
20730         (have_associative): Define always.
20731         (func_import): In import mode, don't merge the specified settings with
20732         the cached settings. Implement remove-import mode.
20733         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20734         Explain when to use them versus --import.
20735         (Simple update): Use --add-import instead of --import.
20736         * NEWS: Mention the change.
20737
20738 2010-09-04  Bruno Haible  <bruno@clisp.org>
20739
20740         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20741         separate gnulib.mk.
20742
20743 2010-09-04  Bruno Haible  <bruno@clisp.org>
20744
20745         gnulib-tool: Don't talk about CVS any more.
20746         * gnulib-tool (func_usage, func_import): Write "version control"
20747         instead of CVS.
20748
20749 2010-09-04  Jim Meyering  <meyering@redhat.com>
20750
20751         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20752         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20753         false positives (whose names may be ill-chosen) when searching
20754         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20755         would cause a false-positive.
20756
20757         avoid coreutils "make distcheck" failure
20758         Coreutils tests with an absolute build directory name that contains
20759         a space.  Not quoting this directory name caused a failure.
20760         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20761         * tests/test-vc-list-files-cvs.sh: Likewise.
20762
20763 2010-09-04  Bruno Haible  <bruno@clisp.org>
20764
20765         gnulib-tool: Avoid error when run in a package without Makefile.am.
20766         * gnulib-tool: When collecting the m4dirs in a package that does not
20767         have a Makefile.am, eliminate those directories that contain no
20768         gnulib-cache.m4. Fix expression that counts these directories.
20769
20770 2010-09-04  Bruno Haible  <bruno@clisp.org>
20771
20772         update-copyright test: Improve output when perl is missing or too old.
20773         * tests/test-update-copyright.sh: Move test of Perl version down after
20774         the test whether Perl exists. Provide an explanation relating Perl's
20775         error message to Automake's SKIP: message.
20776
20777 2010-09-04  Bruno Haible  <bruno@clisp.org>
20778
20779         Don't augment PATH in TESTS_ENVIRONMENT.
20780         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20781         set abs_aux_dir instead of augmenting PATH.
20782         * modules/vc-list-files-tests (Makefile.am): Likewise.
20783         * tests/test-update-copyright.sh: Augment PATH here.
20784         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20785         path_prepend_.
20786         * tests/test-vc-list-files-git.sh: Likewise.
20787
20788 2010-09-04  Jim Meyering  <meyering@redhat.com>
20789
20790         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20791         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20792
20793 2010-09-04  Bruno Haible  <bruno@clisp.org>
20794
20795         strdup: Fix compilation error in C++ mode.
20796         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20797         the macro.
20798
20799 2010-09-04  Bruno Haible  <bruno@clisp.org>
20800
20801         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20802         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20803         macro into a function.
20804         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20805
20806 2010-09-04  Bruno Haible  <bruno@clisp.org>
20807
20808         Set PATH_SEPARATOR the same way autoconf does.
20809         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20810         the value of PATH_SEPARATOR the same way autoconf-generated configure
20811         scripts do.
20812         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20813         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20814
20815 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20816
20817         Set PATH_SEPARATOR the same way autoconf does.
20818         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20819         the same way autoconf-generated configure scripts do.
20820         * posix-modules: Likewise.
20821
20822 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20823
20824         hash: fix safe_hasher const typo
20825         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20826         const; otherwise, there is a type error later.
20827
20828 2010-09-02  Jim Meyering  <meyering@redhat.com>
20829
20830         test-update-copyright.sh: require perl 5.8.0
20831         * tests/test-update-copyright.sh: Require 5.8.0,
20832         which Tom G. Christensen has confirmed is adequate,
20833         while 5.6.1 is not.
20834
20835 2010-09-02  Eric Blake  <eblake@redhat.com>
20836
20837         tests: init.sh improvements for re-exec'ing with zsh
20838         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20839         -vx through shell re-exec.
20840         Reported by Tom G. Christensen.
20841
20842         wctype: fix typo in previous commit
20843         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20844         Reported by Ludovic Courtès.
20845
20846 2010-09-02  Jim Meyering  <meyering@redhat.com>
20847
20848         test-update-copyright.sh: skip test if Perl is too old
20849         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20850         Reported by Tom G. Christensen.
20851
20852 2010-09-02  Bruno Haible  <bruno@clisp.org>
20853
20854         wctype: Avoid compilation error on IRIX 6.5.30.
20855         * lib/wctype.in.h (iswblank): Declare with a replacement if
20856         REPLACE_ISWBLANK is set.
20857         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20858         declared. Set REPLACE_ISWBLANK.
20859         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20860         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20861         * doc/posix-headers/wctype.texi: Likewise.
20862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20863
20864 2010-09-01  Bruno Haible  <bruno@clisp.org>
20865
20866         New module 'socketlib'.
20867         * modules/socketlib: New file.
20868         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20869         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20870         * modules/sockets (Depends-on): Add socketlib.
20871         Suggested by Sam Steingold <sds@gnu.org>.
20872
20873 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20874
20875         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20876
20877         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20878         when one needs search access to a directory but not read access.
20879         On systems where it is available, it works in some cases where
20880         O_RDONLY does not, namely on directories that are searchable but
20881         not readable, and which need only to be searchable.  If O_SEARCH
20882         is not available, fall back to the traditional method of using
20883         O_RDONLY.
20884
20885         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20886         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20887         when opening a directory that needs only to be searchable.
20888         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20889         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20890         * lib/openat-proc.c (openat_proc_name): Likewise.
20891         * lib/openat.c (openat_needs_fchdir): Likewise.
20892         * lib/save-cwd.c (save_cwd): Likewise.
20893         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20894
20895 2010-08-28  Bruno Haible  <bruno@clisp.org>
20896
20897         New module 'host-cpu-c-abi'.
20898         * modules/host-cpu-c-abi: New file.
20899         * m4/host-cpu-c-abi.m4: New file, based on part of
20900         clisp/src/m4/general.m4.
20901         Requested by Sam Steingold <sds@gnu.org>.
20902
20903 2010-08-31  Eric Blake  <eblake@redhat.com>
20904         and Jim Meyering  <meyering@redhat.com>
20905
20906         hash: factor, and guard against misbehaving hasher function
20907         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20908         of table->hasher's return value.  Also protect against a hash value
20909         so large that adding it to table->bucket results in a NULL pointer.
20910         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20911         Use it in place of open-coded check-and-abort.
20912
20913 2010-08-30  Bruno Haible  <bruno@clisp.org>
20914
20915         hash: silence spurious clang warning
20916         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20917         Reported by Eric Blake.
20918
20919 2010-08-30  Eric Blake  <eblake@redhat.com>
20920
20921         strstr, memmem, strcasestr: avoid leaked shell message
20922         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20923         FreeBSD.
20924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20926
20927         tests: silence clang warning
20928         * tests/test-malloca.c (do_allocation): Avoid dead store.
20929
20930 2010-08-29  Bruno Haible  <bruno@clisp.org>
20931
20932         gettext: Fix recent mistake.
20933         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20934
20935 2010-08-29  Bruno Haible  <bruno@clisp.org>
20936
20937         selinux-h: Offer a --without-selinux option.
20938         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20939         --without-selinux was specified, skip all tests and define
20940         HAVE_SELINUX_SELINUX_H to 0.
20941         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20942         set LIB_SELINUX to empty.
20943         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20944         gl_LIBSELINUX. If --without-selinux was specified, replace
20945         selinux/context.h.
20946         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20947
20948 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20949             Bruno Haible  <bruno@clisp.org>
20950
20951         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20952         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20953         of HAVE_REALLOC.
20954         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20955         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20956         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20957         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20958
20959 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20960             Bruno Haible  <bruno@clisp.org>
20961
20962         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20963         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20964         HAVE_CALLOC.
20965         * lib/xmalloc.c: Update accordingly.
20966         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20967         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20968         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20969
20970 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20971             Bruno Haible  <bruno@clisp.org>
20972
20973         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20974         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20975         HAVE_MALLOC.
20976         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20977         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20978         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20979
20980 2010-08-29  Bruno Haible  <bruno@clisp.org>
20981
20982         Update modules list.
20983         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20984         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20985         (String handling <string.h>): Add astrxfrm.
20986         (File system functions): Add readlinkat.
20987
20988 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20989
20990         Tests for module 'realloc-gnu'.
20991         * modules/realloc-gnu-tests: New file.
20992         * tests/test-realloc-gnu.c: New file.
20993
20994         Tests for module 'calloc-gnu'.
20995         * modules/calloc-gnu-tests: New file.
20996         * tests/test-calloc-gnu.c: New file.
20997
20998         Tests for module 'malloc-gnu'.
20999         * modules/malloc-gnu-tests: New file.
21000         * tests/test-malloc-gnu.c: New file.
21001
21002 2010-08-28  Bruno Haible  <bruno@clisp.org>
21003
21004         Rename module 'realloc' -> 'realloc-gnu'.
21005         * modules/realloc-gnu: New file, copied from modules/realloc.
21006         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21007         obsolete.
21008         * modules/mgetgroups (Depends-on): Update.
21009         * doc/posix-functions/realloc.texi: Update.
21010         * NEWS: Mention the change.
21011
21012         Rename module 'calloc' -> 'calloc-gnu'.
21013         * modules/calloc-gnu: New file, copied from modules/calloc.
21014         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21015         obsolete.
21016         * doc/posix-functions/calloc.texi: Update.
21017         * NEWS: Mention the change.
21018
21019         Rename module 'malloc' -> 'malloc-gnu'.
21020         * modules/malloc-gnu: New file, copied from modules/malloc.
21021         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21022         obsolete.
21023         * modules/argp (Depends-on): Update.
21024         * modules/regex (Depends-on): Update.
21025         * doc/posix-functions/malloc.texi: Update.
21026         * NEWS: Mention the change.
21027
21028 2010-08-28  Eric Blake  <eblake@redhat.com>
21029
21030         pread, pwrite: add missing dependency
21031         * modules/pread (Depends-on): Add extensions.
21032         * modules/pwrite (Depends-on): Likewise.
21033
21034 2010-08-28  Bruno Haible  <bruno@clisp.org>
21035
21036         unistr/u*-strchr: Fix tests dependencies.
21037         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21038         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21039         Reported by Ian Beckwith <ianb@erislabs.net>.
21040
21041 2010-08-28  Bruno Haible  <bruno@clisp.org>
21042
21043         read-file: Don't occupy too much unused memory.
21044         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21045
21046 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21047             Eric Blake  <eblake@redhat.com>
21048             Bruno Haible  <bruno@clisp.org>
21049
21050         read-file: Avoid memory reallocations with regular files.
21051         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21052         (fread_file): With regular files, use the remaining length as the
21053         initial buffer size.  Check against overflow.
21054         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21055         sys_stat.
21056
21057 2010-08-28  Bruno Haible  <bruno@clisp.org>
21058
21059         ftello: Relax license.
21060         * modules/ftello (License): Relax to LGPLv2+.
21061         Reported by Eric Blake.
21062
21063 2010-08-28  Bruno Haible  <bruno@clisp.org>
21064
21065         Avoid relocwrapper link errors due to gnulib replacement functions.
21066         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21067         function.
21068         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21069
21070 2010-08-28  Bruno Haible  <bruno@clisp.org>
21071
21072         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21073         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21074         defined.
21075         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21076         Suggested by Eric Blake.
21077
21078 2010-08-28  Bruno Haible  <bruno@clisp.org>
21079
21080         sys_socket, netdb: Ensure socklen_t gets defined.
21081         * modules/sys_socket (Depends-on): Add socklen.
21082         * modules/netdb (Depends-on): Likewise.
21083         * modules/getaddrinfo (Depends-on): Remove socklen.
21084         * modules/getsockopt (Depends-on): Likewise.
21085         * modules/setsockopt (Depends-on): Likewise.
21086         * tests/test-sys_socket.c: Check that socklen_t is defined.
21087         * tests/test-netdb.c: Likewise.
21088         * m4/socklen.m4: Update comments.
21089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21090
21091 2010-08-27  Eric Blake  <eblake@redhat.com>
21092
21093         login_tty: add missing dependency
21094         * modules/login_tty (Depends-on): Add pty.
21095
21096 2010-08-26  Eric Blake  <eblake@redhat.com>
21097
21098         lib-symbol-versions: fix m4 quoting
21099         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21100         format for AC_LINK_IFELSE.
21101
21102         glob: fix compile test
21103         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21104
21105         btowc: fix missing file
21106         * modules/btowc (Files): Also ship locale-fr.m4.
21107
21108         lseek: fix link test
21109         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21110         AC_LINK_IFELSE.
21111
21112         include_next: silence autoconf 2.68 warning
21113         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21114         AC_COMPILE_IFELSE as special.
21115         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21116         autoconf < 2.68.
21117
21118         acl: fix compilation test
21119         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21120         AC_COMPILE_IFELSE.
21121
21122 2010-08-26  Bruno Haible  <bruno@clisp.org>
21123
21124         Modernize AC_TRY_RUN invocations.
21125         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21126         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21127         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21128         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21129         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21130         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21131         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21132         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21133         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21134         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21135         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21136         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21137         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21139         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21140         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21141         gl_MBRLEN_NUL_RETVAL): Likewise.
21142         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21143         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21144         Likewise.
21145         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21146         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21147         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21148         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21149         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21150         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21151         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21152         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21153         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21154         Likewise.
21155         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21156         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21158         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21159         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21160         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21161         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21162         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21163         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21165
21166 2010-08-26  Bruno Haible  <bruno@clisp.org>
21167
21168         Modernize AC_TRY_LINK invocations.
21169         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21170         AC_TRY_LINK.
21171         * m4/argp.m4 (gl_ARGP): Likewise.
21172         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21173         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21174         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21175         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21176         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21177         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21178         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21179         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21180         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21181         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21182         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21183         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21184         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21185         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21186         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21187         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21188         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21189         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21190         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21191         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21192         Likewise.
21193         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21194         Likewise.
21195         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21196         Likewise.
21197         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21199         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21200         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21201         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21202         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21203         * m4/servent.m4 (gl_SERVENT): Likewise.
21204         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21205         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21206         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21207         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21208         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21209         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21211         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21212         * modules/tsearch-tests (configure.ac): Likewise.
21213
21214 2010-08-26  Bruno Haible  <bruno@clisp.org>
21215
21216         Modernize AC_TRY_COMPILE invocations.
21217         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21218         AC_TRY_COMPILE.
21219         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21220         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21221         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21222         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21223         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21224         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21225         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21226         * m4/lock.m4 (gl_LOCK): Likewise.
21227         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21228         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21229         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21230         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21231         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21232         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21233         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21234         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21235         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21236         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21237         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21238         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21239         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21240         extraneous semicolon.
21241
21242 2010-08-26  Jim Meyering  <meyering@redhat.com>
21243
21244         stat-time: relax license LGPL
21245         * modules/stat-time (License): Change from GPL to LGPL,
21246         with consent from all contributors, for use in libguile.
21247         Requested by Ludovic Courtès.
21248
21249 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21250
21251         poll: return immediately on POLLHUP.
21252         * lib/poll.c (poll): Always set timeout before wait_timeout is
21253         computed.
21254
21255 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21256
21257         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21258         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21259         rmdir ("dir/.//"), unlinkat.
21260
21261 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21262
21263         stdbool: avoid spurious failure with modern xlc
21264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21265
21266 2010-08-24  Bruno Haible  <bruno@clisp.org>
21267
21268         getloadavg: simplify code
21269         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21270         gl_have_func. Update comments.
21271
21272 2010-08-24  Eric Blake  <eblake@redhat.com>
21273
21274         getloadavg: don't define SVR4 on cygwin
21275         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21276         only define SVR4 when -lkvm is required.
21277         Reported by Yaakov Selkowitz.
21278
21279 2010-08-24  Bruno Haible  <bruno@clisp.org>
21280
21281         priv-set: fix comment
21282         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21283
21284 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21285
21286         priv-set: fix comments
21287         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21288         to match code, as suggested by David Bartley in:
21289         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21290
21291 2010-08-23  Eric Blake  <eblake@redhat.com>
21292
21293         stdbool: avoid rejecting clang
21294         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21295         * tests/test-stdbool.c: Enable more tests if using the system
21296         <stdbool.h> instead of the gnulib replacement.
21297         (main): Move xlc bug test to a runtime test for all compilers.
21298         Reported by Anders Kaseorg.
21299
21300         argz: fix shell quoting issue
21301         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21302         Reported by Charles Wilson.
21303
21304 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21305             Erik Faye-Lund <kusmabite@gmail.com>
21306
21307         poll, select: handle ERROR_BROKEN_PIPE.
21308         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21309         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21310         * lib/select.c (win32_compute_revents): Do not mark a pipe
21311         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21312
21313 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21314
21315         fts: allow compilation with C++
21316         * lib/fts_.h: Specify extern "C" linkage with C++.
21317
21318 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21319
21320         Fix gnulib-tool sed script de-commentation for AIX sed.
21321         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21322         sed.
21323
21324 2010-08-17  Eric Blake  <eblake@redhat.com>
21325
21326         test-stddef: test for (some) offsetof bugs
21327         * tests/test-stddef.c: Enhance test to ensure correct type of
21328         offsetof.
21329         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21330         that we are not fixing at this time.
21331
21332 2010-08-15  Bruno Haible  <bruno@clisp.org>
21333
21334         stpncpy: Allow stpncpy to be defined as a macro.
21335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21336         if it's already correctly declared.
21337         * lib/string.in.h (stpncpy): Undefine before redefining.
21338         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21339
21340 2010-08-14  Bruno Haible  <bruno@clisp.org>
21341
21342         Rename module 'memxfrm' to 'amemxfrm'.
21343         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21344         (amemxfrm): Renamed from memxfrm.
21345         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21346         (amemxfrm): Renamed from memxfrm.
21347         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21348         * NEWS: Mention the change.
21349         * MODULES.html.sh (String handling <string.h>): Update.
21350         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21351         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21352         * lib/unicase/u16-casexfrm.c: Likewise.
21353         * lib/unicase/u32-casexfrm.c: Likewise.
21354         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21355         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21356         * lib/uninorm/u16-normxfrm.c: Likewise.
21357         * lib/uninorm/u32-normxfrm.c: Likewise.
21358         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21359         memxfrm.
21360         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21361         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21362         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21363         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21364         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21365         Suggested by Paul Eggert.
21366
21367 2010-08-14  Bruno Haible  <bruno@clisp.org>
21368
21369         Tests for module 'astrxfrm'.
21370         * modules/astrxfrm-tests: New file.
21371         * tests/test-astrxfrm.c: New file.
21372
21373         New module 'astrxfrm'.
21374         * lib/astrxfrm.h: New file.
21375         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21376         * modules/astrxfrm: New file.
21377
21378 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21379
21380         regex: Tweak doc.
21381         * doc/regex.texi (Overview): Don't mention regex.c.
21382         (GNU Regular Expression Compiling): Likewise.
21383         (Match-end-of-line Operator): Mention 'not_eol'.
21384
21385 2010-08-14  Brian Gough  <bjg@gnu.org>
21386             Bruno Haible  <bruno@clisp.org>
21387
21388         git-merge-changelog: add doc relating to use with bzr and hg.
21389         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21390
21391 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21392
21393         pthread: fix pthread.h creation for srcdir != builddir
21394         * modules/pthread (Makefile.am): Fix the rule to work also in a
21395         non-srcdir build.
21396
21397 2010-08-13  Karl Berry  <karl@gnu.org>
21398
21399         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21400         * doc/posix-*/*: force line break before @url of POSIX
21401         specifications.
21402         Suggested by Werner Lemberg.
21403
21404 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21405
21406         strtod: fix const diagnostic
21407         * lib/strtod.c (strtod): Don't assign const char * to char *,
21408         as this elicits a warning from GCC when warnings are enabled.
21409
21410 2010-08-10  Pádraig Brady <P@draigbrady.com>
21411         and Eric Blake  <eblake@redhat.com>
21412
21413         copy-acl: ignore ENOTSUP on HP-UX
21414         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21415         so that it is available for HP-UX.
21416         * lib/copy-acl.c (qcopy_acl): Use it.
21417         Reported by Patrick M. Callahan.
21418
21419 2010-08-10  Eric Blake  <eblake@redhat.com>
21420
21421         open, chown: relax license
21422         * modules/open (License): Change to LGPLv2+, with consent by all
21423         authors, for use in augeas.
21424         * modules/chown (License): Likewise.
21425         * modules/lchown (Likewise): Likewise.
21426         Requested by Adam Stokes.
21427
21428 2010-08-09  Karl Berry  <karl@gnu.org>
21429
21430         * build-aux/ar-lib: new file, import from Automake.
21431         * config/srclist.txt: autocheck for updates.
21432
21433 2010-08-09  Eric Blake  <eblake@redhat.com>
21434
21435         readlinkat: adjust client modules
21436         * modules/areadlinkat (Depends-on): Use readlinkat, not
21437         symlinkat.
21438         * modules/areadlinkat-with-size (Depends-on): Likewise.
21439
21440         mknod: be more vocal about danger of running tests as root
21441         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21442         root, since that is just asking for problems.
21443         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21444
21445         readlinkat: split into its own module
21446         * modules/symlinkat: Split readlinkat...
21447         * modules/readlinkat: ...into separate module.
21448         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21449         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21450         * lib/symlinkat.c (readlinkat): Move...
21451         * lib/readlinkat.c: ...into new file.
21452         * modules/symlinkat-tests: Split readlinkat test...
21453         * modules/readlinkat-tests: ...into separate module.
21454         * tests/test-symlinkat.c: Split...
21455         * tests/test-readlinkat.c: ...into new file.
21456         * NEWS: Document the split.
21457         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21458         * lib/unistd.in.h (readlinkat): Likewise.
21459         Suggested by Bruno Haible.
21460
21461 2010-08-08  Bruno Haible  <bruno@clisp.org>
21462
21463         memxfrm: Speed up.
21464         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21465         that usually only one call to strxfrm is necessary for each string
21466         part.
21467         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21468
21469 2010-08-07  Karl Berry  <karl@gnu.org>
21470
21471         * doc/posix-headers/limits.texi,
21472         * doc/posix-functions/malloc.texi,
21473         * doc/posix-functions/strsignal.texi: missing @item.
21474         * doc/ld-version-script.texi: spurious leading i.
21475         * doc/regex.texi (Interval Operators): no commas inside @var.
21476
21477 2010-08-01  Bruno Haible  <bruno@clisp.org>
21478
21479         Integrate the regex documentation.
21480         * doc/gnulib.texi: Define 'cn' index.
21481         (Regular expressions): New a chapter that includes regex.texi and
21482         regexprops-generic.texi.
21483         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21484         syntax.
21485
21486         Whitespace cleanup.
21487         * doc/regex.texi: Remove trailing spaces.
21488
21489         Add regex documentation.
21490         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21491         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21492         Written by Kathy A. Hargreaves and Karl Berry.
21493
21494 2010-08-01  Bruno Haible  <bruno@clisp.org>
21495
21496         link: Update documentation.
21497         * doc/posix-functions/link.texi: Update regarding Solaris.
21498
21499 2010-07-31  Bruno Haible  <bruno@clisp.org>
21500
21501         Update modules list.
21502         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21503         (String handling <string.h>): Add memcmp2, memxfrm.
21504         (Container data structures): Add xlist, xsublist, xoset.
21505         (Core language properties): Add alignof, unused-parameter.
21506         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21507         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21508         (Unibyte characters <ctype.h>): New section.
21509         (String handling <string.h>): New section.
21510         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21511         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21512         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21513         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21514         tan, tanh, tanl, y0, y1, yn.
21515         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21516         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21517         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21518         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21519         unlockpt, vdprintf, vdprintf-posix.
21520         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21521         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21522         xconcat-filename.
21523         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21524         getdtablesize, pipe2, pipe2-safer.
21525         (Security): New section.
21526         (Networking functions): Add accept4.
21527         (Signal handling): Add sigpipe.
21528         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21529         mbmemcasecoll.
21530         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21531         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21532         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21533         pipe-filter-ii.
21534         (Misc): Add argp-version-etc, login_tty, parse-duration.
21535
21536 2010-07-31  Bruno Haible  <bruno@clisp.org>
21537
21538         Improve doc in MODULES.html.
21539         * modules/linkat (Description): Add the word "function".
21540         * modules/mkfifo (Description): Likewise.
21541         * modules/mknod (Description): Likewise.
21542         * modules/remove (Description): Likewise.
21543         * modules/renameat (Description): Likewise.
21544         * modules/stat (Description): Likewise.
21545         * modules/symlink (Description): Likewise.
21546         * modules/unlink (Description): Likewise.
21547
21548 2010-07-31  Bruno Haible  <bruno@clisp.org>
21549
21550         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21551         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21552         option --enable/disable-c++ instead of --enable/disable-cxx.
21553         * NEWS: Mention the change.
21554
21555 2010-07-31  Bruno Haible  <bruno@clisp.org>
21556
21557         readlink, areadlink: Relax test a bit.
21558         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21559         alternative to ENOTDIR.
21560         * tests/test-areadlink.h (test_areadlink): Likewise.
21561         Reported by Rainer Tammer.
21562
21563 2010-07-31  Bruno Haible  <bruno@clisp.org>
21564
21565         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21566         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21567         character, perform the search using U_STRCHR.
21568         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21569         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21570         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21571         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21572         Suggested by Paolo Bonzini.
21573
21574 2010-07-31  Bruno Haible  <bruno@clisp.org>
21575
21576         unistr/u*-strstr: Fix dependencies.
21577         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21578         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21579         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21580
21581 2010-07-31  Bruno Haible  <bruno@clisp.org>
21582
21583         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21584         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21585         the beginning of the loop.
21586         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21587         cases in 'switch' statement.
21588
21589         unistr/u8-strchr: Fix several bugs.
21590         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21591         the string. When not found, return NULL, not a pointer near the end.
21592
21593         More tests for unistr/u8-strchr.
21594         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21595         that the function does not read past the first occurrence of the byte
21596         being searched.
21597         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21598         * tests/unistr/test-u16-strchr.c (main): New function.
21599         * tests/unistr/test-u32-strchr.c (main): New function.
21600
21601 2010-07-31  Bruno Haible  <bruno@clisp.org>
21602
21603         posix-modules: Ignore backup files of documentation files.
21604         * posix-modules: grep only through files named *.texi.
21605
21606 2010-07-31  Bruno Haible  <bruno@clisp.org>
21607
21608         symlinkat: Fix documentation.
21609         * doc/posix-functions/readlinkat.texi: Fix module name.
21610
21611 2010-07-31  Bruno Haible  <bruno@clisp.org>
21612
21613         fchownat: Replace also when chown has the trailing slash bug.
21614         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21615         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21616         introduced on 2010-04-10.
21617         Reported by Rainer Tammer.
21618
21619 2010-07-31  Bruno Haible  <bruno@clisp.org>
21620
21621         linkat: Work around AIX 7.1 bug.
21622         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21623         whether linkat handles trailing slash correctly. If not, replace linkat
21624         and define LINKAT_TRAILING_SLASH_BUG.
21625         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21626         check whether (fd1,file1) points to a directory if file1 or file2 ends
21627         in a slash. Code taken from lib/link.c.
21628         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21629         Reported by Rainer Tammer.
21630
21631 2010-07-31  Bruno Haible  <bruno@clisp.org>
21632
21633         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21634         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21635         This disables an xlc optimization that was causing wrong test results.
21636         Reported by Rainer Tammer.
21637
21638 2010-07-31  Bruno Haible  <bruno@clisp.org>
21639
21640         iconv: Work around AIX 6.1..7.1 bug.
21641         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21642         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21643         cross-compiling, guess no on all versions of AIX.
21644         Reported by Rainer Tammer.
21645
21646 2010-07-31  Bruno Haible  <bruno@clisp.org>
21647
21648         readlink: Relax test a bit.
21649         * tests/test-readlink.h (test_readlink): Allow different errno value
21650         when readlink is called with a file name that ends in / and refers to
21651         a file.
21652         Suggested by Eric Blake.
21653         Reported by Rainer Tammer.
21654
21655 2010-07-31  Bruno Haible  <bruno@clisp.org>
21656
21657         copysign: Does not require -lm on glibc systems.
21658         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21659         gl_COMMON_DOUBLE_MATHFUNC.
21660         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21661
21662 2010-07-31  Bruno Haible  <bruno@clisp.org>
21663
21664         duplocale: Work around AIX 7.1 bug.
21665         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21666         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21667         * lib/duplocale.c (rpl_duplocale): Update comment.
21668         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21669         Reported by Rainer Tammer.
21670
21671 2010-07-30  Bruno Haible  <bruno@clisp.org>
21672
21673         dirfd: Avoid link error on AIX 7.1.
21674         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21675         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21676         exist, set REPLACE_DIRFD.
21677         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21678         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21679         * doc/posix-functions/dirfd.texi: Update.
21680         Reported by Rainer Tammer.
21681
21682 2010-07-30  Eric Blake  <eblake@redhat.com>
21683
21684         strtod: next round of AIX fixes
21685         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21686         exponent.
21687         * tests/test-strtod.c (main): Enhance tests.
21688         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21689         Reported by Rainer Tammer.
21690
21691         futimens: fix configure check
21692         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21693         Reported by Bruno Haible.
21694
21695 2010-07-30  Bruno Haible  <bruno@clisp.org>
21696
21697         getline: Update regarding AIX.
21698         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21699         Reported by Rainer Tammer.
21700
21701 2010-07-30  Bruno Haible  <bruno@clisp.org>
21702
21703         wcwidth: Drop replacement on AIX 7.
21704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21705         AIX 7.
21706         Reported by Rainer Tammer.
21707
21708 2010-07-30  Bruno Haible  <bruno@clisp.org>
21709
21710         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21711         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21712         a 'char *'.
21713         Reported by Rainer Tammer.
21714
21715 2010-07-30  Bruno Haible  <bruno@clisp.org>
21716
21717         unlink: Update regarding AIX.
21718         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21719         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21720         Reported by Rainer Tammer.
21721
21722 2010-07-30  Bruno Haible  <bruno@clisp.org>
21723
21724         symlink: Update regarding AIX.
21725         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21726         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21727         Reported by Rainer Tammer.
21728
21729 2010-07-30  Bruno Haible  <bruno@clisp.org>
21730
21731         strndup: Update regarding AIX.
21732         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21733         AIX 7.
21734         Reported by Rainer Tammer.
21735
21736 2010-07-30  Bruno Haible  <bruno@clisp.org>
21737
21738         stat: Update regarding AIX.
21739         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21740         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21741         Reported by Rainer Tammer.
21742
21743 2010-07-30  Bruno Haible  <bruno@clisp.org>
21744
21745         truncl: Fix autoconf test.
21746         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21747         whether truncl works.
21748         Reported by Rainer Tammer.
21749
21750 2010-07-30  Bruno Haible  <bruno@clisp.org>
21751
21752         round: Update regarding AIX.
21753         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21754         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21755         Reported by Rainer Tammer.
21756
21757 2010-07-30  Bruno Haible  <bruno@clisp.org>
21758
21759         rename: Update regarding AIX.
21760         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21761         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21762         Reported by Rainer Tammer.
21763
21764 2010-07-30  Bruno Haible  <bruno@clisp.org>
21765
21766         printf.m4: Update regarding AIX.
21767         * m4/printf.m4: Update comments regarding AIX.
21768         Reported by Rainer Tammer.
21769
21770 2010-07-30  Bruno Haible  <bruno@clisp.org>
21771
21772         iconv: Update regarding AIX.
21773         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21774         AIX 7.
21775         Reported by Rainer Tammer.
21776
21777 2010-07-30  Bruno Haible  <bruno@clisp.org>
21778
21779         getopt: Update regarding AIX.
21780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21781         no on AIX.
21782         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21783         Reported by Rainer Tammer.
21784
21785 2010-07-30  Bruno Haible  <bruno@clisp.org>
21786
21787         ldexpl; Update regarding AIX.
21788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21789         on AIX 7.
21790         Reported by Rainer Tammer.
21791
21792 2010-07-30  Bruno Haible  <bruno@clisp.org>
21793
21794         frexpl: Update regarding AIX.
21795         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21796         on AIX 7.
21797         Reported by Rainer Tammer.
21798
21799 2010-07-30  Bruno Haible  <bruno@clisp.org>
21800
21801         open, fopen: Update regarding AIX.
21802         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21803         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21804         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21805         * doc/posix-functions/fopen.texi: Likewise.
21806         Reported by Rainer Tammer.
21807
21808 2010-07-30  Bruno Haible  <bruno@clisp.org>
21809
21810         chown: Update doc regarding AIX.
21811         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21812         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21813         Reported by Rainer Tammer.
21814
21815 2010-07-30  Eric Blake  <eblake@redhat.com>
21816
21817         strtod: fix bug in replacement function on AIX
21818         * lib/strtod.c (strtod): Special case broken "0x" parse in
21819         underlying strtod.
21820         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21821         * doc/posix-functions/strtod.texi (strtod): Likewise.
21822         Reported by Rainer Tammer.
21823
21824 2010-07-30  Bruno Haible  <bruno@clisp.org>
21825
21826         mbrlen: Fix cross-compilation guess for AIX.
21827         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21828         guess. Leftover from 2008-12-22.
21829
21830 2010-07-30  Bruno Haible  <bruno@clisp.org>
21831
21832         mbrtowc: Fix cross-compilation guess for AIX.
21833         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21834         guess. Leftover from 2008-12-21.
21835
21836 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21837
21838         init.sh: work around trap limitation of some shells
21839         * tests/init.sh (setup_): Move exit trap outside of shell function.
21840
21841 2010-07-29  Eric Blake  <eblake@redhat.com>
21842
21843         strtod: aid debugging
21844         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21845         understanding why strtod is rejected.
21846
21847 2010-07-28  Bruno Haible  <bruno@clisp.org>
21848
21849         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21850         * lib/unistr/u8-chr.c: Include <string.h>.
21851         * tests/unistr/test-u8-chr.c: Likewise.
21852         * tests/unistr/test-u16-chr.c: Likewise.
21853         * tests/unistr/test-u32-chr.c: Likewise.
21854         * tests/unistr/test-u8-strchr.c: Likewise.
21855         * tests/unistr/test-u16-strchr.c: Likewise.
21856         * tests/unistr/test-u32-strchr.c: Likewise.
21857         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21858         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21859         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21860         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21861
21862 2010-07-28  Bruno Haible  <bruno@clisp.org>
21863
21864         Use spaces for indentation, not tabs.
21865         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21866
21867 2010-07-27  Bruno Haible  <bruno@clisp.org>
21868
21869         mbspcasecmp: Fix function specification.
21870         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21871         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21872         Reported by Eric Blake <eblake@redhat.com>.
21873
21874 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21875
21876         timespec: use cast and not conditional, as truncation isn't possible
21877         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21878         instead of a conditional.  Comment about the situation in more detail.
21879         This undoes most of the 2009-10-29 patch.
21880
21881 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21882
21883         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21884         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21885         * lib/unistr/u8-strchr.c: Likewise.
21886         * modules/unistr/u8-chr: Depend on memchr.
21887
21888         unistr/u*-strchr: add tests
21889         * modules/unistr/u8-strchr-tests: New file.
21890         * modules/unistr/u16-strchr-tests: New file.
21891         * modules/unistr/u32-strchr-tests: New file.
21892         * tests/unistr/test-strchr.h: New file.
21893         * tests/unistr/test-u8-strchr.c: New file.
21894         * tests/unistr/test-u16-strchr.c: New file.
21895         * tests/unistr/test-u32-strchr.c: New file.
21896
21897         unistr/u*-chr: test multibyte sequences more
21898         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21899         test vector.
21900         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21901         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21902         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21903
21904         unistr/u*-chr: test multibyte sequences
21905         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21906
21907         unistr/u*-chr: prepare for multibyte tests
21908         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21909         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21910         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21911         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21912         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21913         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21914
21915 2010-07-18  Bruno Haible  <bruno@clisp.org>
21916
21917         unistr/u8-strchr: Optimize non-ASCII argument case.
21918         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21919         because the first byte often matches anyway.
21920         Reported by Pádraig Brady <P@draigbrady.com>.
21921
21922 2010-07-15  Karl Berry  <karl@gnu.org>
21923
21924         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21925
21926 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21927
21928         getcwd: on Solaris, work better if ancestors are inaccessible
21929         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21930         buffer and size, try again with a large buffer.  This works better
21931         on Solaris, since its getcwd succeeds even if the path to the root
21932         is inaccessible, and this is helpful in common cases such as .zfs
21933         hidden directories.  Problem reported by J Chapman Flack in
21934         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21935         Use system getcwd if it's declared, not merely if it's partly
21936         working; use the partly-working test only to avoid needless effort
21937         if the system getcwd fails.
21938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21939         comment that was already obsolete and is now even more obsolete.
21940         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21941         now might call strdup.
21942
21943 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21944
21945         pthread: Add enough so that coreutils/src/sort.c compiles.
21946         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21947         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21948         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21949         Include <sys/types.h>, in case it defines pthread_t.
21950         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21951         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21952         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21953         (pthread_rwlockattr_t, pthread_spinlock_t):
21954         New typedefs, if HAVE_PTHREAD_T is not defined.
21955         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21956         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21957         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21958         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21959         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21960         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21961         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21962         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21963         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21964         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21965         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21966         New macros.
21967         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21968         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21969         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21970         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21971         (pthread_spin_unlock): New dummy functions.
21972         (pthread_create): Return EAGAIN; don't set errno.
21973         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21974         require AC_C_INLINE.
21975         * modules/pthread (Depends-on): Add sched, time.
21976         (pthread.h): Use AM_V_GEN.
21977
21978 2010-07-13  Bruno Haible  <bruno@clisp.org>
21979
21980         striconveh: Don't malloc memory if the result buffer is sufficient.
21981         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21982         buffer if its size is sufficient.
21983         Reported by Ludovic Courtès <ludo@gnu.org>.
21984
21985 2010-07-13  Bruno Haible  <bruno@clisp.org>
21986
21987         strtod: Add safety check.
21988         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21989
21990 2010-07-12  Bruno Haible  <bruno@clisp.org>
21991
21992         Unify tests that set gl_cv_func_ldexpl_no_libm.
21993         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21994         gl_FUNC_LDEXPL.
21995         (gl_FUNC_LDEXPL): Invoke it.
21996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21997
21998 2010-07-12  Bruno Haible  <bruno@clisp.org>
21999
22000         Unify tests that set gl_cv_func_ldexp_no_libm.
22001         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22002         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22003         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22004         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22005         * modules/strtod (Files): Add m4/ldexp.m4.
22006
22007 2010-07-12  Bruno Haible  <bruno@clisp.org>
22008
22009         Unify tests that set gl_cv_func_frexpl_no_libm.
22010         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22011         gl_FUNC_FREXPL_NO_LIBM.
22012         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22014
22015 2010-07-12  Bruno Haible  <bruno@clisp.org>
22016
22017         Unify tests that set gl_cv_func_frexp_no_libm.
22018         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22019         gl_FUNC_FREXP_NO_LIBM.
22020         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22021         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22022
22023 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22024
22025         memcoll: clarify sizes versus lengths, document better, and tweak perf
22026         * lib/memcoll.c (strcoll_loop, memcoll0):
22027         Improve quality of descriptive comments.  Name variables
22028         consistently as to whether they are lengths (which do not include
22029         terminating null) versus sizes (which do).
22030         * lib/xmemcoll.c (xmemcoll0): Likewise.
22031         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22032         returned when s1size == 0; this is easier to compile and saves
22033         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22034
22035 2010-07-12  Bruno Haible  <bruno@clisp.org>
22036
22037         Tests for module '_Exit'.
22038         * modules/_Exit-tests: New file.
22039         * tests/test-_Exit.sh: New file.
22040         * tests/test-_Exit.c: New file.
22041
22042         New module '_Exit'.
22043         * lib/stdlib.in.h (__attribute__): New macro.
22044         (_Exit): New declaration.
22045         * lib/_Exit.c: New file.
22046         * m4/_Exit.m4: New file.
22047         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22048         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22049         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22050         * modules/_Exit: New file.
22051         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22052         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22053
22054 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22055
22056         strtod: make it more-accurate typically, and don't require libm
22057         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22058         Include limits.h.  Don't include string.h.
22059         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22060         (locale_isspace): New function, so that no casts are needed to
22061         check whether *s is a space.
22062         (ldexp): Provide an unused dummy if not available.
22063         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22064         (strtod): Use them.  This implementation prefers to use the
22065         underlying strtod if available, falling back on our own code
22066         only to fix known bugs.  This is more likely to produce an
22067         accurate result.  Also, it avoids the use of libm functions.
22068         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22069         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22070         was absent, but it caused a test failure with coreutils.
22071         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22072         with libm.
22073         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22074         * modules/strtod-tests (Makefile.am): Likewise.
22075
22076 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22077             Bruno Haible  <bruno@clisp.org>
22078
22079         unistr/u8-strchr: Optimize ASCII argument case.
22080         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22081
22082 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         (x)memcoll: minor tweaks
22085         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22086         is after the type that it qualifies.
22087         (memcoll0): Likewise.
22088         * lib/memcoll.h (memcoll0): Likewise.
22089         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22090         * lib/xmemcoll.h (xmemcoll0): Likewise.
22091         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22092         differs from memcoll in that the NUL byte is part of the argument.
22093         Omit the abort-checks, as performance is a real issue here.  Plus,
22094         the checks were wrong anyway (an off-by-one error).  Omit local
22095         variable 'diff', as it's a bit clearer that way.
22096         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22097         no longer needed.
22098
22099 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22100
22101         (x)memcoll: speedup when input is known to be NUL delimited
22102         * lib/memcoll.c: Include stdlib.
22103         (memcoll0): New function.
22104         (strcoll_loop): New function, refactored for use in both memcoll
22105         and memcoll0.
22106         * lib/memcoll.h (memcoll0): Add prototype.
22107         * lib/xmemcoll.c (xmemcoll0): New function.
22108         (collate_error): New function, refactored for use in both xmemcoll
22109         and xmemcoll0.
22110         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22111         * m4/memcoll.m4: add inline invocation.
22112
22113 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22114
22115         * build-aux/bootstrap: Remove any local translations
22116         from the translation project synchronization directory,
22117         so that local only translations are not distributed.
22118
22119 2010-07-04  Bruno Haible  <bruno@clisp.org>
22120
22121         fsusage: Clarify which code applies to which platforms.
22122         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22123         platform.
22124         * lib/fsusage.c (get_fs_usage): Likewise.
22125
22126 2010-07-04  Bruno Haible  <bruno@clisp.org>
22127
22128         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22129         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22130         Reported by Martin Lambers <marlam@marlam.de>.
22131
22132 2010-07-04  Jim Meyering  <meyering@redhat.com>
22133
22134         hash: once again explicitly disallow insertion of NULL
22135         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22136         inserting a NULL pointer cannot work with these functions.
22137         Add a comment with details.
22138         This reverts part of the 2010-07-01 commit, 5bef1a35
22139         "hash: extend module to deal with non-pointer keys".
22140
22141 2010-07-01  Bruno Haible  <bruno@clisp.org>
22142
22143         stdbool: Update doc.
22144         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22145         Info from Christian Weisgerber <naddy@mips.inka.de>.
22146
22147 2010-07-01  Jim Meyering  <meyering@redhat.com>
22148
22149         hash: extend module to deal with non-pointer keys
22150         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22151         but that allows insertion of non-pointer entries.
22152         Do not disallow an ENTRY value of NULL.
22153         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22154         * lib/hash.h (hash_insert0): Declare.
22155
22156 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22157
22158         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22159         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22160         not present (i.e. with autoconf 2.59 and when using gettextize, not
22161         gnulib), require AC_GNU_SOURCE instead.
22162
22163 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22164
22165         idpriv-drop: Fix tests.
22166         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22167         not to the test-idpriv-droptemp program.
22168
22169 2010-06-29  Bruno Haible  <bruno@clisp.org>
22170
22171         string: Fix syntax error with g++ 2.96.
22172         * lib/string.in.h (__pure__): Remove definition.
22173         (_GL_ATTRIBUTE_PURE): New macro.
22174         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22175         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22176         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22177
22178 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22179
22180         unitypes: Fix bug introduced on 2010-05-18.
22181         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22182
22183 2010-06-22  Eric Blake  <eblake@redhat.com>
22184
22185         memmem: slight optimization
22186         * lib/str-two-way.h (critical_factorization): Update comments.
22187         Reduce work during factorization phase.
22188         Reported by Carlos Bueno <carlos@bueno.org>.
22189
22190 2010-06-21  Bruno Haible  <bruno@clisp.org>
22191
22192         Fix HAVE_CALLOC_POSIX misnomer.
22193         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22194         !HAVE_CALLOC_POSIX.
22195         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22196         HAVE_CALLOC_POSIX.
22197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22198         instead of HAVE_CALLOC_POSIX.
22199         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22200         HAVE_CALLOC_POSIX.
22201
22202         Use modern idiom for calloc() replacement.
22203         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22204         AC_FUNC_CALLOC.
22205         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22206         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22207         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22208         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22209         (gl_REPLACE_CALLOC): New macro.
22210
22211 2010-06-21  Bruno Haible  <bruno@clisp.org>
22212
22213         Fix HAVE_REALLOC_POSIX misnomer.
22214         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22215         !HAVE_REALLOC_POSIX.
22216         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22217         HAVE_REALLOC_POSIX.
22218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22219         instead of HAVE_REALLOC_POSIX.
22220         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22221         HAVE_REALLOC_POSIX.
22222
22223         Use modern idiom for realloc() replacement.
22224         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22225         AC_FUNC_REALLOC.
22226         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22227         Autoconf's AC_FUNC_REALLOC.
22228         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22229         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22230         (gl_REPLACE_REALLOC): New macro.
22231         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22232
22233 2010-06-21  Bruno Haible  <bruno@clisp.org>
22234
22235         Fix HAVE_MALLOC_POSIX misnomer.
22236         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22237         !HAVE_MALLOC_POSIX.
22238         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22239         HAVE_MALLOC_POSIX.
22240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22241         instead of HAVE_MALLOC_POSIX.
22242         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22243         HAVE_MALLOC_POSIX.
22244
22245         Use modern idiom for malloc() replacement.
22246         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22247         AC_FUNC_MALLOC.
22248         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22249         Autoconf's AC_FUNC_MALLOC.
22250         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22251         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22252         (gl_REPLACE_MALLOC): New macro.
22253         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22254
22255 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22256
22257         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22258         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22259         This macro takes 3 arguments, not 4.
22260
22261 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22262
22263         ipv6: fix detection under mingw
22264         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22265         in6_addr.
22266
22267 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22268
22269         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22270         that strtod() works when cross-compiling to a glibc version known
22271         to work.
22272
22273 2010-06-15  Bruno Haible  <bruno@clisp.org>
22274
22275         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22276
22277 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22278
22279         select: Correct timeout.
22280         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22281
22282 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22283
22284         git-version-gen: init shell var to avoid env var influence
22285         * build-aux/git-version-gen (v): Init shell var to empty.
22286
22287 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22288
22289         priv-set: Don't assume that priv.h exists merely because getppriv does.
22290         See Jan Andersen's bug report about AIX 5L in
22291         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22292         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22293         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22294         * lib/priv-set.h: Likewise.
22295         * tests/test-priv-set.c: Likewise.
22296
22297 2010-06-13  Bruno Haible  <bruno@clisp.org>
22298
22299         relocatable: Make it easier to test whether to install wrappers.
22300         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22301         RELOCATABLE_VIA_WRAPPER.
22302
22303 2010-06-13  Bruno Haible  <bruno@clisp.org>
22304
22305         gnulib-tool: Display specified modules and dependencies differently.
22306         * gnulib-tool (func_show_module_list): New function.
22307         (func_import, func_create_testdir): Invoke it.
22308         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22309
22310 2010-06-13  Bruno Haible  <bruno@clisp.org>
22311
22312         gnulib-tool: Align code of func_import and func_create_testdir.
22313         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22314         specified_modules.
22315
22316 2010-06-12  Jim Meyering  <meyering@redhat.com>
22317
22318         test-inttostr: avoid spurious failure on Solaris 9
22319         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22320         to accept "%ju".  Reported by Bruno Haible.
22321
22322 2010-06-11  Jim Meyering  <meyering@redhat.com>
22323
22324         test-sys_socket: mark variables as used more readably
22325         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22326         as "used" explicitly via (void) statement casts.  This is more
22327         readable than using them in an artificial return expression.
22328         Suggestion from Bruno Haible.
22329
22330 2010-06-11  Bruno Haible  <bruno@clisp.org>
22331
22332         Avoid some more warnings from "gcc -Wwrite-strings".
22333         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22334         to 'const char *'.
22335         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22336         * tests/test-c-strcasestr.c (main): Likewise.
22337         * tests/test-mbscasestr1.c (main): Likewise.
22338         * tests/test-mbscasestr2.c (main): Likewise.
22339         * tests/test-memmem.c (main): Likewise.
22340         * tests/test-strstr.c (main): Likewise.
22341         * tests/test-strcasestr.c (main): Likewise.
22342
22343 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22344
22345         init.sh: change framework_failure_ to fail with status 99, not 1
22346         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22347         automake's parallel-tests rule that this is an unexpected failure,
22348         even if the test is listed in XFAIL_TESTS.
22349
22350 2010-06-11  Jim Meyering  <meyering@redhat.com>
22351
22352         test-inttostr: avoid warnings about 4-6KB literal strings
22353         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22354         Include "macros.h", for its definition of ASSERT.
22355         (CK): s/assert/ASSERT/
22356         * modules/inttostr-tests (Files): Add macros.h.
22357
22358         init.sh: don't use $ME_ or skip_ before they are defined
22359         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22360         their first uses.  Also hoist their companions: warn_, fail_,
22361         framework_failure_, $stderr_fileno.  Prompted by a patch from
22362         Stefano Lattarini.
22363
22364         test-sys_socket: avoid set-but-not-used warnings from gcc
22365         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22366         avoid warning about set-but-not-used variables.
22367
22368         test-xvasprintf: avoid 'const' discard warnings
22369         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22370         "const" when assigning from literal strings.
22371         (test_xasprintf): Add "void" in function argument list to placate
22372         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22373
22374         tests: avoid compilation warnings in argmatch and exclude tests...
22375         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22376         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22377         Since it always exits, declare with the "noreturn" attribute.
22378         * tests/test-argmatch.c: Likewise.
22379
22380         tests: avoid 'const' discard warnings in mbsstr tests
22381         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22382         * tests/test-mbsstr2.c (main): Likewise.
22383
22384         test-verify: avoid warning from gcc's -Wmissing-declarations
22385         * tests/test-verify.c (function): Declare to be static.
22386
22387         test-inttostr.c: include <string.h> for use of strcmp
22388         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22389
22390         test-linkat: avoid failed assertion on "other" architectures
22391         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22392         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22393         sparc: https://bugs.launchpad.net/bugs/591968
22394
22395 2010-06-11  Jim Meyering  <meyering@redhat.com>
22396
22397         printf.m4: avoid autoconf's "Expanded Before Required" warning
22398         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22399         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22400         autoconf warning.
22401
22402 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22403
22404         Replacement header templates are now named with ".in", not "_".
22405         * doc/gnulib-intro.texi: Correct.
22406
22407 2010-06-10  Jim Meyering  <meyering@redhat.com>
22408
22409         inttostr-tests: depend on snprintf, not snprintf-posix
22410         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22411         snprintf-posix, to avoid this aclocal failure:
22412           missing file gnulib-tests/vasnprintf.c
22413           configure.ac:45: error: expected source file, required through \
22414           AC_LIBSOURCES, not found
22415
22416 2010-06-10  Jim Meyering  <meyering@redhat.com>
22417
22418         inttostr: add a new function, inttostr, and tests
22419         The namesake function was not available.  The existence of the
22420         template file, inttostr.c makes its addition nontrivial.
22421         * lib/anytostr.c: Rename from inttostr.c.
22422         (anytostr): Rename from inttostr.
22423         * lib/inttostr.c: New file.
22424         * modules/inttostr (Files): Add anytostr.c.
22425         (Makefile.am): Set lib_SOURCES instead of ...
22426         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22427         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22428         * lib/offtostr.c: Likewise.
22429         * lib/uinttostr.c: Likewise.
22430         * lib/umaxtostr.c: Likewise.
22431         * modules/inttostr-tests: New file.
22432         * tests/test-inttostr.c: New file.  Test these functions.
22433
22434 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22435             Bruno Haible  <bruno@clisp.org>
22436
22437         Add "Extending Gnulib" chapter to manual.
22438         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22439         chapter.
22440         (Extending Gnulib): New chapter.
22441         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22442         chapter.
22443
22444 2010-06-09  Bruno Haible  <bruno@clisp.org>
22445
22446         Avoid relocwrapper link errors due to gnulib replacement functions.
22447         * lib/areadlink.c: Use the system's malloc, realloc functions.
22448         (areadlink): Set errno to ENOMEM explicitly.
22449         * modules/areadlink (Depends-on): Remove malloc-posix.
22450         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22451
22452 2010-06-09  Bruno Haible  <bruno@clisp.org>
22453
22454         Avoid relocwrapper link errors due to gnulib replacement functions.
22455         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22456         * lib/malloca.c: Likewise.
22457         * lib/relocatable.c: Likewise.
22458         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22459         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22460         * lib/setenv.c: Use the system's malloc, realloc functions.
22461         * lib/strerror.c: Use the system's sprintf function.
22462         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22463
22464 2010-06-04  Bruno Haible  <bruno@clisp.org>
22465
22466         Prefer documented low-level autoconf macro names.
22467         * m4/lib-link.m4: Use m4_translit instead of translit.
22468         * m4/environ.m4: Likewise.
22469         * m4/mathfunc.m4: Likewise.
22470         * m4/onceonly.m4: Likewise.
22471         * m4/stdint.m4: Likewise.
22472         Suggested by Eric Blake.
22473
22474 2010-06-04  Martin Lambers  <marlam@marlam.de>
22475             Bruno Haible  <bruno@clisp.org>
22476
22477         havelib: Allow library names with '+' characters.
22478         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22479         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22480
22481 2010-06-09  Bruno Haible  <bruno@clisp.org>
22482
22483         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22484         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22485         realloc failed.
22486
22487 2010-06-08  Peter Simons  <simons@cryp.to>
22488
22489         maint.mk: make the news-check rule more configurable
22490         * top/maint.mk (news-check-lines-spec): New variable.
22491         (news-check): Use "sed -n 1,10p" in place of "head".
22492
22493 2010-06-07  Jim Meyering  <meyering@redhat.com>
22494
22495         do-release-commit-and-tag: fix typo in --help
22496         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22497
22498         regex: avoid new dead-code warning with gcc-4.6.0
22499         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22500         if-block containing a while-loop.  It's been unused for at least
22501         5 years.
22502
22503 2010-06-05  Bruno Haible  <bruno@clisp.org>
22504
22505         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22506         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22507
22508 2010-06-04  Bruno Haible  <bruno@clisp.org>
22509
22510         Update to GNU gettext 0.18.1.
22511         * modules/gettext (configure.ac): Require gettext infrastructure from
22512         version 0.18.1.
22513
22514 2010-06-03  Bruno Haible  <bruno@clisp.org>
22515
22516         Don't use AC_LIBOBJ with file names in subdirectories.
22517         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22518         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22519         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22520         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22521         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22522         gl_LIBUNISTRING_LIBSOURCE.
22523         (Makefile.am): Augment lib_SOURCES here, conditionally.
22524         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22525
22526 2010-06-03  Bruno Haible  <bruno@clisp.org>
22527
22528         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22529         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22530         expansion does not end with a newline.
22531         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22532         unnecessary newline.
22533
22534 2010-06-03  Bruno Haible  <bruno@clisp.org>
22535
22536         Reduce dependencies.
22537         * tests/test-quotearg.h: New file, extracted from
22538         tests/test-quotearg.c.
22539         * tests/test-quotearg-simple.c: New file, extracted from
22540         tests/test-quotearg.c.
22541         * tests/test-quotearg.c: Don't include <ctype.h>.
22542         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22543         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22544         use_quote_double_quotes, use_quotearg_colon): Moved to
22545         tests/test-quotearg.h.
22546         (results_g, flag_results, custom_quotes, custom_results): Moved
22547         to tests/test-quotearg-simple.c.
22548         (main): Moved the part that does not depend on gettext to
22549         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22550         performed.
22551         * modules/quotearg-simple: New file.
22552         * modules/quotearg-simple-tests: New file.
22553         * modules/quotearg (Depends-on): Add quotearg-simple.
22554         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22555         (Files): Add tests/test-quotearg.h.
22556         Reported by Paolo Bonzini.
22557
22558 2010-06-03  Bruno Haible  <bruno@clisp.org>
22559
22560         Reduce dependencies.
22561         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22562
22563 2010-06-03  Bruno Haible  <bruno@clisp.org>
22564
22565         time: Undefine more broken macros.
22566         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22567         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22568         Reported by Eric Blake.
22569
22570 2010-06-03  Bruno Haible  <bruno@clisp.org>
22571
22572         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22573         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22574         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22575         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22576         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22577         Reported by Ludovic Courtès <ludo@gnu.org>.
22578
22579 2010-06-02  Eric Blake  <eblake@redhat.com>
22580
22581         time: work with mingw + pthreads-win32 library
22582         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22583         if timespec is defined only in pthread.h.
22584         * modules/time (Makefile.am): Substitute it.
22585         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22586         <pthread.h>, when needed.
22587         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22588         from the library.
22589
22590 2010-05-31  Bruno Haible  <bruno@clisp.org>
22591
22592         Avoid expanding two macros in the wrong order.
22593         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22594         gl_LIBUNISTRING if it is defined.
22595         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22596         autoconf >= 2.64.
22597         Reported by Ludovic Courtès <ludo@gnu.org>.
22598
22599 2010-05-27  Jim Meyering  <meyering@redhat.com>
22600
22601         maint.mk: also prohibit "#undef" of always-defined symbols
22602         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22603         Allow more than one space before the symbol name.
22604         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22605         the regexp uses alternation.
22606
22607 2010-05-26  Eric Blake  <eblake@redhat.com>
22608
22609         maint.mk: avoid echo -e
22610         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22611         Convert all uses of echo -* to printf.
22612         Reported by Matthias Bolte.
22613
22614 2010-05-25  Bruno Haible  <bruno@clisp.org>
22615
22616         Update to GNU gettext 0.18, part 2.
22617         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22618         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22619
22620 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22621
22622         Add missing include in test-pwrite.c.
22623         * tests/test-pwrite.c: Include string.h, for strcmp.
22624
22625 2010-05-24  Bruno Haible  <bruno@clisp.org>
22626
22627         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22628
22629 2010-05-24  Bruno Haible  <bruno@clisp.org>
22630
22631         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22632         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22633         iconveh_error argument.
22634         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22635         U_STRCONV_TO_LOCALE.
22636         * lib/unistr/u16-strcoll.c: Likewise.
22637         * lib/unistr/u32-strcoll.c: Likewise.
22638         * modules/unistr/u8-strcoll (Depends-on): Add
22639         uniconv/u8-strconv-to-enc, localcharset. Remove
22640         uniconv/u8-strconv-to-locale.
22641         (configure.ac): Bump version number.
22642         * modules/unistr/u16-strcoll (Depends-on): Add
22643         uniconv/u16-strconv-to-enc, localcharset. Remove
22644         uniconv/u16-strconv-to-locale.
22645         (configure.ac): Bump version number.
22646         * modules/unistr/u32-strcoll (Depends-on): Add
22647         uniconv/u32-strconv-to-enc, localcharset. Remove
22648         uniconv/u32-strconv-to-locale.
22649         (configure.ac): Bump version number.
22650
22651 2010-05-24  Bruno Haible  <bruno@clisp.org>
22652
22653         Avoid a test failure on NetBSD 5.0.
22654         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22655         an iconv() bug.
22656
22657 2010-05-24  Bruno Haible  <bruno@clisp.org>
22658
22659         Adjust #include directive style.
22660         * modules/regex (Includes): Recommend to write <regex.h>.
22661
22662 2010-05-24  Bruno Haible  <bruno@clisp.org>
22663
22664         regex: Don't require alloca.
22665         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22666         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22667         only inside if (0).
22668
22669 2010-05-23  Jim Meyering  <meyering@redhat.com>
22670
22671         test-renameat.c: include <sys/stat.h>
22672         * tests/test-renameat.c: Include <sys/stat.h>; required for
22673         definition of S_IS* macros.
22674
22675 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22676
22677         Update maintainer documentation for 'relocatable-prog' module.
22678         * doc/relocatable-maint.texi: Update.
22679         Comments by Bruno Haible.
22680
22681 2010-05-23  Bruno Haible  <bruno@clisp.org>
22682
22683         git-merge-changelog: Enable --split-merged-entry by default.
22684         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22685         (usage): Don't mention this option any more.
22686         Reported by Ralf Wildenhues.
22687
22688 2010-05-23  Jim Meyering  <meyering@redhat.com>
22689
22690         test-pwrite: do not leave behind a test file named "out"
22691         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22692         The trivial-looking use of init.sh is really necessary.
22693         It ensures that the temporary file, "out", is created in
22694         a temporary directory, and removed upon termination.
22695         * tests/test-pwrite.sh: Re-add file.
22696         * modules/pwrite-tests: Reference it.
22697
22698 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22699
22700         Fix output redirection buglet in init.sh.
22701         * tests/init.sh: Fix redirection of stderr.
22702
22703 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22704
22705         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22706
22707 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22708
22709         * modules/valgrind-tests: New file.
22710         * m4/valgrind-tests.m4: New file.
22711         * doc/valgrind-tests.texi: New file.
22712         * doc/gnulib.texi (Running self-tests under valgrind): New
22713         section.
22714
22715 2010-05-19  Bruno Haible  <bruno@clisp.org>
22716
22717         Clean up dead code in recent commit.
22718         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22719         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22720         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22721         Suggested by Paolo Bonzini.
22722
22723 2010-05-19  Bruno Haible  <bruno@clisp.org>
22724
22725         Avoid valgrind error reports from libunistring.
22726         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22727         * modules/libunistring (Files): Add it.
22728         * modules/libunistring-optional (Files): Likewise.
22729
22730 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22731             Bruno Haible  <bruno@clisp.org>
22732
22733         New module 'libunistring-optional'.
22734         * modules/libunistring-optional: New file.
22735         * m4/libunistring-base.m4: New file.
22736         * m4/libunistring-optional.m4: New file.
22737         * lib/unicase.in.h: Renamed from lib/unicase.h.
22738         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22739         * lib/unictype.in.h: Renamed from lib/unictype.h.
22740         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22741         * lib/uniname.in.h: Renamed from lib/uniname.h.
22742         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22743         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22744         * lib/unistr.in.h: Renamed from lib/unistr.h.
22745         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22746         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22747         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22748         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22749         gl_LIBUNISTRING. If the library was found, determine the installed
22750         version and set LIBUNISTRING_VERSION.
22751         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22752         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22753         handle a configuration option --with-included-libunistring.
22754         * modules/libunistring (Files): Add m4/absolute-header.m4.
22755         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22756         Add m4/libunistring-base.m4.
22757         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22758         (Makefile.am): Build unicase.h from unicase.in.h.
22759         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22760         Add m4/libunistring-base.m4.
22761         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22762         (Makefile.am): Build uniconv.h from uniconv.in.h.
22763         * modules/unictype/base (Files): Use unictype.in.h instead of
22764         unictype.h. Add m4/libunistring-base.m4.
22765         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22766         (Makefile.am): Build unictype.h from unictype.in.h.
22767         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22768         Add m4/libunistring-base.m4.
22769         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22770         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22771         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22772         Add m4/libunistring-base.m4.
22773         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22774         (Makefile.am): Build uniname.h from uniname.in.h.
22775         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22776         Add m4/libunistring-base.m4.
22777         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22778         (Makefile.am): Build uninorm.h from uninorm.in.h.
22779         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22780         unistdio.h. Add m4/libunistring-base.m4.
22781         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22782         (Makefile.am): Build unistdio.h from unistdio.in.h.
22783         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22784         Add m4/libunistring-base.m4.
22785         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22786         (Makefile.am): Build unistr.h from unistr.in.h.
22787         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22788         Add m4/libunistring-base.m4.
22789         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22790         (Makefile.am): Build unitypes.h from unitypes.in.h.
22791         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22792         Add m4/libunistring-base.m4.
22793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22794         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22795         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22796         uniwidth.h. Add m4/libunistring-base.m4.
22797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22798         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22799         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22800         instead of augmenting lib_SOURCES.
22801         * modules/unicase/empty-suffix-context: Likewise.
22802         * modules/unicase/locale-language: Likewise.
22803         * modules/unicase/tolower: Likewise.
22804         * modules/unicase/totitle: Likewise.
22805         * modules/unicase/toupper: Likewise.
22806         * modules/unicase/u8-casecmp: Likewise.
22807         * modules/unicase/u8-casecoll: Likewise.
22808         * modules/unicase/u8-casefold: Likewise.
22809         * modules/unicase/u8-casexfrm: Likewise.
22810         * modules/unicase/u8-ct-casefold: Likewise.
22811         * modules/unicase/u8-ct-tolower: Likewise.
22812         * modules/unicase/u8-ct-totitle: Likewise.
22813         * modules/unicase/u8-ct-toupper: Likewise.
22814         * modules/unicase/u8-is-cased: Likewise.
22815         * modules/unicase/u8-is-casefolded: Likewise.
22816         * modules/unicase/u8-is-lowercase: Likewise.
22817         * modules/unicase/u8-is-titlecase: Likewise.
22818         * modules/unicase/u8-is-uppercase: Likewise.
22819         * modules/unicase/u8-prefix-context: Likewise.
22820         * modules/unicase/u8-suffix-context: Likewise.
22821         * modules/unicase/u8-tolower: Likewise.
22822         * modules/unicase/u8-totitle: Likewise.
22823         * modules/unicase/u8-toupper: Likewise.
22824         * modules/unicase/u16-casecmp: Likewise.
22825         * modules/unicase/u16-casecoll: Likewise.
22826         * modules/unicase/u16-casefold: Likewise.
22827         * modules/unicase/u16-casexfrm: Likewise.
22828         * modules/unicase/u16-ct-casefold: Likewise.
22829         * modules/unicase/u16-ct-tolower: Likewise.
22830         * modules/unicase/u16-ct-totitle: Likewise.
22831         * modules/unicase/u16-ct-toupper: Likewise.
22832         * modules/unicase/u16-is-cased: Likewise.
22833         * modules/unicase/u16-is-casefolded: Likewise.
22834         * modules/unicase/u16-is-lowercase: Likewise.
22835         * modules/unicase/u16-is-titlecase: Likewise.
22836         * modules/unicase/u16-is-uppercase: Likewise.
22837         * modules/unicase/u16-prefix-context: Likewise.
22838         * modules/unicase/u16-suffix-context: Likewise.
22839         * modules/unicase/u16-tolower: Likewise.
22840         * modules/unicase/u16-totitle: Likewise.
22841         * modules/unicase/u16-toupper: Likewise.
22842         * modules/unicase/u32-casecmp: Likewise.
22843         * modules/unicase/u32-casecoll: Likewise.
22844         * modules/unicase/u32-casefold: Likewise.
22845         * modules/unicase/u32-casexfrm: Likewise.
22846         * modules/unicase/u32-ct-casefold: Likewise.
22847         * modules/unicase/u32-ct-tolower: Likewise.
22848         * modules/unicase/u32-ct-totitle: Likewise.
22849         * modules/unicase/u32-ct-toupper: Likewise.
22850         * modules/unicase/u32-is-cased: Likewise.
22851         * modules/unicase/u32-is-casefolded: Likewise.
22852         * modules/unicase/u32-is-lowercase: Likewise.
22853         * modules/unicase/u32-is-titlecase: Likewise.
22854         * modules/unicase/u32-is-uppercase: Likewise.
22855         * modules/unicase/u32-prefix-context: Likewise.
22856         * modules/unicase/u32-suffix-context: Likewise.
22857         * modules/unicase/u32-tolower: Likewise.
22858         * modules/unicase/u32-totitle: Likewise.
22859         * modules/unicase/u32-toupper: Likewise.
22860         * modules/unicase/ulc-casecmp: Likewise.
22861         * modules/unicase/ulc-casecoll: Likewise.
22862         * modules/unicase/ulc-casexfrm: Likewise.
22863         * modules/uniconv/u8-conv-from-enc: Likewise.
22864         * modules/uniconv/u8-conv-to-enc: Likewise.
22865         * modules/uniconv/u8-strconv-from-enc: Likewise.
22866         * modules/uniconv/u8-strconv-from-locale: Likewise.
22867         * modules/uniconv/u8-strconv-to-enc: Likewise.
22868         * modules/uniconv/u8-strconv-to-locale: Likewise.
22869         * modules/uniconv/u16-conv-from-enc: Likewise.
22870         * modules/uniconv/u16-conv-to-enc: Likewise.
22871         * modules/uniconv/u16-strconv-from-enc: Likewise.
22872         * modules/uniconv/u16-strconv-from-locale: Likewise.
22873         * modules/uniconv/u16-strconv-to-enc: Likewise.
22874         * modules/uniconv/u16-strconv-to-locale: Likewise.
22875         * modules/uniconv/u32-conv-from-enc: Likewise.
22876         * modules/uniconv/u32-conv-to-enc: Likewise.
22877         * modules/uniconv/u32-strconv-from-enc: Likewise.
22878         * modules/uniconv/u32-strconv-from-locale: Likewise.
22879         * modules/uniconv/u32-strconv-to-enc: Likewise.
22880         * modules/uniconv/u32-strconv-to-locale: Likewise.
22881         * modules/unictype/bidicategory-byname: Likewise.
22882         * modules/unictype/bidicategory-name: Likewise.
22883         * modules/unictype/bidicategory-of: Likewise.
22884         * modules/unictype/bidicategory-test: Likewise.
22885         * modules/unictype/block-list: Likewise.
22886         * modules/unictype/block-test: Likewise.
22887         * modules/unictype/category-C: Likewise.
22888         * modules/unictype/category-Cc: Likewise.
22889         * modules/unictype/category-Cf: Likewise.
22890         * modules/unictype/category-Cn: Likewise.
22891         * modules/unictype/category-Co: Likewise.
22892         * modules/unictype/category-Cs: Likewise.
22893         * modules/unictype/category-L: Likewise.
22894         * modules/unictype/category-Ll: Likewise.
22895         * modules/unictype/category-Lm: Likewise.
22896         * modules/unictype/category-Lo: Likewise.
22897         * modules/unictype/category-Lt: Likewise.
22898         * modules/unictype/category-Lu: Likewise.
22899         * modules/unictype/category-M: Likewise.
22900         * modules/unictype/category-Mc: Likewise.
22901         * modules/unictype/category-Me: Likewise.
22902         * modules/unictype/category-Mn: Likewise.
22903         * modules/unictype/category-N: Likewise.
22904         * modules/unictype/category-Nd: Likewise.
22905         * modules/unictype/category-Nl: Likewise.
22906         * modules/unictype/category-No: Likewise.
22907         * modules/unictype/category-P: Likewise.
22908         * modules/unictype/category-Pc: Likewise.
22909         * modules/unictype/category-Pd: Likewise.
22910         * modules/unictype/category-Pe: Likewise.
22911         * modules/unictype/category-Pf: Likewise.
22912         * modules/unictype/category-Pi: Likewise.
22913         * modules/unictype/category-Po: Likewise.
22914         * modules/unictype/category-Ps: Likewise.
22915         * modules/unictype/category-S: Likewise.
22916         * modules/unictype/category-Sc: Likewise.
22917         * modules/unictype/category-Sk: Likewise.
22918         * modules/unictype/category-Sm: Likewise.
22919         * modules/unictype/category-So: Likewise.
22920         * modules/unictype/category-Z: Likewise.
22921         * modules/unictype/category-Zl: Likewise.
22922         * modules/unictype/category-Zp: Likewise.
22923         * modules/unictype/category-Zs: Likewise.
22924         * modules/unictype/category-and: Likewise.
22925         * modules/unictype/category-and-not: Likewise.
22926         * modules/unictype/category-byname: Likewise.
22927         * modules/unictype/category-name: Likewise.
22928         * modules/unictype/category-none: Likewise.
22929         * modules/unictype/category-of: Likewise.
22930         * modules/unictype/category-or: Likewise.
22931         * modules/unictype/category-test: Likewise.
22932         * modules/unictype/combining-class: Likewise.
22933         * modules/unictype/ctype-alnum: Likewise.
22934         * modules/unictype/ctype-alpha: Likewise.
22935         * modules/unictype/ctype-blank: Likewise.
22936         * modules/unictype/ctype-cntrl: Likewise.
22937         * modules/unictype/ctype-digit: Likewise.
22938         * modules/unictype/ctype-graph: Likewise.
22939         * modules/unictype/ctype-lower: Likewise.
22940         * modules/unictype/ctype-print: Likewise.
22941         * modules/unictype/ctype-punct: Likewise.
22942         * modules/unictype/ctype-space: Likewise.
22943         * modules/unictype/ctype-upper: Likewise.
22944         * modules/unictype/ctype-xdigit: Likewise.
22945         * modules/unictype/decimal-digit: Likewise.
22946         * modules/unictype/digit: Likewise.
22947         * modules/unictype/mirror: Likewise.
22948         * modules/unictype/numeric: Likewise.
22949         * modules/unictype/property-alphabetic: Likewise.
22950         * modules/unictype/property-ascii-hex-digit: Likewise.
22951         * modules/unictype/property-bidi-arabic-digit: Likewise.
22952         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22953         * modules/unictype/property-bidi-block-separator: Likewise.
22954         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22955         * modules/unictype/property-bidi-common-separator: Likewise.
22956         * modules/unictype/property-bidi-control: Likewise.
22957         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22958         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22959         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22960         * modules/unictype/property-bidi-european-digit: Likewise.
22961         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22962         * modules/unictype/property-bidi-left-to-right: Likewise.
22963         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22964         * modules/unictype/property-bidi-other-neutral: Likewise.
22965         * modules/unictype/property-bidi-pdf: Likewise.
22966         * modules/unictype/property-bidi-segment-separator: Likewise.
22967         * modules/unictype/property-bidi-whitespace: Likewise.
22968         * modules/unictype/property-byname: Likewise.
22969         * modules/unictype/property-combining: Likewise.
22970         * modules/unictype/property-composite: Likewise.
22971         * modules/unictype/property-currency-symbol: Likewise.
22972         * modules/unictype/property-dash: Likewise.
22973         * modules/unictype/property-decimal-digit: Likewise.
22974         * modules/unictype/property-default-ignorable-code-point: Likewise.
22975         * modules/unictype/property-deprecated: Likewise.
22976         * modules/unictype/property-diacritic: Likewise.
22977         * modules/unictype/property-extender: Likewise.
22978         * modules/unictype/property-format-control: Likewise.
22979         * modules/unictype/property-grapheme-base: Likewise.
22980         * modules/unictype/property-grapheme-extend: Likewise.
22981         * modules/unictype/property-grapheme-link: Likewise.
22982         * modules/unictype/property-hex-digit: Likewise.
22983         * modules/unictype/property-hyphen: Likewise.
22984         * modules/unictype/property-id-continue: Likewise.
22985         * modules/unictype/property-id-start: Likewise.
22986         * modules/unictype/property-ideographic: Likewise.
22987         * modules/unictype/property-ids-binary-operator: Likewise.
22988         * modules/unictype/property-ids-trinary-operator: Likewise.
22989         * modules/unictype/property-ignorable-control: Likewise.
22990         * modules/unictype/property-iso-control: Likewise.
22991         * modules/unictype/property-join-control: Likewise.
22992         * modules/unictype/property-left-of-pair: Likewise.
22993         * modules/unictype/property-line-separator: Likewise.
22994         * modules/unictype/property-logical-order-exception: Likewise.
22995         * modules/unictype/property-lowercase: Likewise.
22996         * modules/unictype/property-math: Likewise.
22997         * modules/unictype/property-non-break: Likewise.
22998         * modules/unictype/property-not-a-character: Likewise.
22999         * modules/unictype/property-numeric: Likewise.
23000         * modules/unictype/property-other-alphabetic: Likewise.
23001         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23002         * modules/unictype/property-other-grapheme-extend: Likewise.
23003         * modules/unictype/property-other-id-continue: Likewise.
23004         * modules/unictype/property-other-id-start: Likewise.
23005         * modules/unictype/property-other-lowercase: Likewise.
23006         * modules/unictype/property-other-math: Likewise.
23007         * modules/unictype/property-other-uppercase: Likewise.
23008         * modules/unictype/property-paired-punctuation: Likewise.
23009         * modules/unictype/property-paragraph-separator: Likewise.
23010         * modules/unictype/property-pattern-syntax: Likewise.
23011         * modules/unictype/property-pattern-white-space: Likewise.
23012         * modules/unictype/property-private-use: Likewise.
23013         * modules/unictype/property-punctuation: Likewise.
23014         * modules/unictype/property-quotation-mark: Likewise.
23015         * modules/unictype/property-radical: Likewise.
23016         * modules/unictype/property-sentence-terminal: Likewise.
23017         * modules/unictype/property-soft-dotted: Likewise.
23018         * modules/unictype/property-space: Likewise.
23019         * modules/unictype/property-terminal-punctuation: Likewise.
23020         * modules/unictype/property-test: Likewise.
23021         * modules/unictype/property-titlecase: Likewise.
23022         * modules/unictype/property-unassigned-code-value: Likewise.
23023         * modules/unictype/property-unified-ideograph: Likewise.
23024         * modules/unictype/property-uppercase: Likewise.
23025         * modules/unictype/property-variation-selector: Likewise.
23026         * modules/unictype/property-white-space: Likewise.
23027         * modules/unictype/property-xid-continue: Likewise.
23028         * modules/unictype/property-xid-start: Likewise.
23029         * modules/unictype/property-zero-width: Likewise.
23030         * modules/unictype/scripts: Likewise.
23031         * modules/unictype/syntax-c-ident: Likewise.
23032         * modules/unictype/syntax-c-whitespace: Likewise.
23033         * modules/unictype/syntax-java-ident: Likewise.
23034         * modules/unictype/syntax-java-whitespace: Likewise.
23035         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23036         * modules/unilbrk/u8-width-linebreaks: Likewise.
23037         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23038         * modules/unilbrk/u16-width-linebreaks: Likewise.
23039         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23040         * modules/unilbrk/u32-width-linebreaks: Likewise.
23041         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23042         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23043         * modules/uniname/uniname: Likewise.
23044         * modules/uninorm/canonical-decomposition: Likewise.
23045         * modules/uninorm/composition: Likewise.
23046         * modules/uninorm/decomposing-form: Likewise.
23047         * modules/uninorm/decomposition: Likewise.
23048         * modules/uninorm/filter: Likewise.
23049         * modules/uninorm/nfc: Likewise.
23050         * modules/uninorm/nfd: Likewise.
23051         * modules/uninorm/nfkc: Likewise.
23052         * modules/uninorm/nfkd: Likewise.
23053         * modules/uninorm/u8-normalize: Likewise.
23054         * modules/uninorm/u8-normcmp: Likewise.
23055         * modules/uninorm/u8-normcoll: Likewise.
23056         * modules/uninorm/u8-normxfrm: Likewise.
23057         * modules/uninorm/u16-normalize: Likewise.
23058         * modules/uninorm/u16-normcmp: Likewise.
23059         * modules/uninorm/u16-normcoll: Likewise.
23060         * modules/uninorm/u16-normxfrm: Likewise.
23061         * modules/uninorm/u32-normalize: Likewise.
23062         * modules/uninorm/u32-normcmp: Likewise.
23063         * modules/uninorm/u32-normcoll: Likewise.
23064         * modules/uninorm/u32-normxfrm: Likewise.
23065         * modules/unistdio/u8-asnprintf: Likewise.
23066         * modules/unistdio/u8-asprintf: Likewise.
23067         * modules/unistdio/u8-snprintf: Likewise.
23068         * modules/unistdio/u8-sprintf: Likewise.
23069         * modules/unistdio/u8-u8-asnprintf: Likewise.
23070         * modules/unistdio/u8-u8-asprintf: Likewise.
23071         * modules/unistdio/u8-u8-snprintf: Likewise.
23072         * modules/unistdio/u8-u8-sprintf: Likewise.
23073         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23074         * modules/unistdio/u8-u8-vasprintf: Likewise.
23075         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23076         * modules/unistdio/u8-u8-vsprintf: Likewise.
23077         * modules/unistdio/u8-vasnprintf: Likewise.
23078         * modules/unistdio/u8-vasprintf: Likewise.
23079         * modules/unistdio/u8-vsnprintf: Likewise.
23080         * modules/unistdio/u8-vsprintf: Likewise.
23081         * modules/unistdio/u16-asnprintf: Likewise.
23082         * modules/unistdio/u16-asprintf: Likewise.
23083         * modules/unistdio/u16-snprintf: Likewise.
23084         * modules/unistdio/u16-sprintf: Likewise.
23085         * modules/unistdio/u16-u16-asnprintf: Likewise.
23086         * modules/unistdio/u16-u16-asprintf: Likewise.
23087         * modules/unistdio/u16-u16-snprintf: Likewise.
23088         * modules/unistdio/u16-u16-sprintf: Likewise.
23089         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23090         * modules/unistdio/u16-u16-vasprintf: Likewise.
23091         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23092         * modules/unistdio/u16-u16-vsprintf: Likewise.
23093         * modules/unistdio/u16-vasnprintf: Likewise.
23094         * modules/unistdio/u16-vasprintf: Likewise.
23095         * modules/unistdio/u16-vsnprintf: Likewise.
23096         * modules/unistdio/u16-vsprintf: Likewise.
23097         * modules/unistdio/u32-asnprintf: Likewise.
23098         * modules/unistdio/u32-asprintf: Likewise.
23099         * modules/unistdio/u32-snprintf: Likewise.
23100         * modules/unistdio/u32-sprintf: Likewise.
23101         * modules/unistdio/u32-u32-asnprintf: Likewise.
23102         * modules/unistdio/u32-u32-asprintf: Likewise.
23103         * modules/unistdio/u32-u32-snprintf: Likewise.
23104         * modules/unistdio/u32-u32-sprintf: Likewise.
23105         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23106         * modules/unistdio/u32-u32-vasprintf: Likewise.
23107         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23108         * modules/unistdio/u32-u32-vsprintf: Likewise.
23109         * modules/unistdio/u32-vasnprintf: Likewise.
23110         * modules/unistdio/u32-vasprintf: Likewise.
23111         * modules/unistdio/u32-vsnprintf: Likewise.
23112         * modules/unistdio/u32-vsprintf: Likewise.
23113         * modules/unistdio/ulc-asnprintf: Likewise.
23114         * modules/unistdio/ulc-asprintf: Likewise.
23115         * modules/unistdio/ulc-fprintf: Likewise.
23116         * modules/unistdio/ulc-snprintf: Likewise.
23117         * modules/unistdio/ulc-sprintf: Likewise.
23118         * modules/unistdio/ulc-vasnprintf: Likewise.
23119         * modules/unistdio/ulc-vasprintf: Likewise.
23120         * modules/unistdio/ulc-vfprintf: Likewise.
23121         * modules/unistdio/ulc-vsnprintf: Likewise.
23122         * modules/unistdio/ulc-vsprintf: Likewise.
23123         * modules/unistr/u8-check: Likewise.
23124         * modules/unistr/u8-chr: Likewise.
23125         * modules/unistr/u8-cmp: Likewise.
23126         * modules/unistr/u8-cmp2: Likewise.
23127         * modules/unistr/u8-cpy: Likewise.
23128         * modules/unistr/u8-cpy-alloc: Likewise.
23129         * modules/unistr/u8-endswith: Likewise.
23130         * modules/unistr/u8-mblen: Likewise.
23131         * modules/unistr/u8-mbsnlen: Likewise.
23132         * modules/unistr/u8-mbtouc: Likewise.
23133         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23134         * modules/unistr/u8-mbtoucr: Likewise.
23135         * modules/unistr/u8-move: Likewise.
23136         * modules/unistr/u8-next: Likewise.
23137         * modules/unistr/u8-prev: Likewise.
23138         * modules/unistr/u8-set: Likewise.
23139         * modules/unistr/u8-startswith: Likewise.
23140         * modules/unistr/u8-stpcpy: Likewise.
23141         * modules/unistr/u8-stpncpy: Likewise.
23142         * modules/unistr/u8-strcat: Likewise.
23143         * modules/unistr/u8-strchr: Likewise.
23144         * modules/unistr/u8-strcmp: Likewise.
23145         * modules/unistr/u8-strcoll: Likewise.
23146         * modules/unistr/u8-strcpy: Likewise.
23147         * modules/unistr/u8-strcspn: Likewise.
23148         * modules/unistr/u8-strdup: Likewise.
23149         * modules/unistr/u8-strlen: Likewise.
23150         * modules/unistr/u8-strmblen: Likewise.
23151         * modules/unistr/u8-strmbtouc: Likewise.
23152         * modules/unistr/u8-strncat: Likewise.
23153         * modules/unistr/u8-strncmp: Likewise.
23154         * modules/unistr/u8-strncpy: Likewise.
23155         * modules/unistr/u8-strnlen: Likewise.
23156         * modules/unistr/u8-strpbrk: Likewise.
23157         * modules/unistr/u8-strrchr: Likewise.
23158         * modules/unistr/u8-strspn: Likewise.
23159         * modules/unistr/u8-strstr: Likewise.
23160         * modules/unistr/u8-strtok: Likewise.
23161         * modules/unistr/u8-to-u16: Likewise.
23162         * modules/unistr/u8-to-u32: Likewise.
23163         * modules/unistr/u8-uctomb: Likewise.
23164         * modules/unistr/u16-check: Likewise.
23165         * modules/unistr/u16-chr: Likewise.
23166         * modules/unistr/u16-cmp: Likewise.
23167         * modules/unistr/u16-cmp2: Likewise.
23168         * modules/unistr/u16-cpy: Likewise.
23169         * modules/unistr/u16-cpy-alloc: Likewise.
23170         * modules/unistr/u16-endswith: Likewise.
23171         * modules/unistr/u16-mblen: Likewise.
23172         * modules/unistr/u16-mbsnlen: Likewise.
23173         * modules/unistr/u16-mbtouc: Likewise.
23174         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23175         * modules/unistr/u16-mbtoucr: Likewise.
23176         * modules/unistr/u16-move: Likewise.
23177         * modules/unistr/u16-next: Likewise.
23178         * modules/unistr/u16-prev: Likewise.
23179         * modules/unistr/u16-set: Likewise.
23180         * modules/unistr/u16-startswith: Likewise.
23181         * modules/unistr/u16-stpcpy: Likewise.
23182         * modules/unistr/u16-stpncpy: Likewise.
23183         * modules/unistr/u16-strcat: Likewise.
23184         * modules/unistr/u16-strchr: Likewise.
23185         * modules/unistr/u16-strcmp: Likewise.
23186         * modules/unistr/u16-strcoll: Likewise.
23187         * modules/unistr/u16-strcpy: Likewise.
23188         * modules/unistr/u16-strcspn: Likewise.
23189         * modules/unistr/u16-strdup: Likewise.
23190         * modules/unistr/u16-strlen: Likewise.
23191         * modules/unistr/u16-strmblen: Likewise.
23192         * modules/unistr/u16-strmbtouc: Likewise.
23193         * modules/unistr/u16-strncat: Likewise.
23194         * modules/unistr/u16-strncmp: Likewise.
23195         * modules/unistr/u16-strncpy: Likewise.
23196         * modules/unistr/u16-strnlen: Likewise.
23197         * modules/unistr/u16-strpbrk: Likewise.
23198         * modules/unistr/u16-strrchr: Likewise.
23199         * modules/unistr/u16-strspn: Likewise.
23200         * modules/unistr/u16-strstr: Likewise.
23201         * modules/unistr/u16-strtok: Likewise.
23202         * modules/unistr/u16-to-u32: Likewise.
23203         * modules/unistr/u16-to-u8: Likewise.
23204         * modules/unistr/u16-uctomb: Likewise.
23205         * modules/unistr/u32-check: Likewise.
23206         * modules/unistr/u32-chr: Likewise.
23207         * modules/unistr/u32-cmp: Likewise.
23208         * modules/unistr/u32-cmp2: Likewise.
23209         * modules/unistr/u32-cpy: Likewise.
23210         * modules/unistr/u32-cpy-alloc: Likewise.
23211         * modules/unistr/u32-endswith: Likewise.
23212         * modules/unistr/u32-mblen: Likewise.
23213         * modules/unistr/u32-mbsnlen: Likewise.
23214         * modules/unistr/u32-mbtouc: Likewise.
23215         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23216         * modules/unistr/u32-mbtoucr: Likewise.
23217         * modules/unistr/u32-move: Likewise.
23218         * modules/unistr/u32-next: Likewise.
23219         * modules/unistr/u32-prev: Likewise.
23220         * modules/unistr/u32-set: Likewise.
23221         * modules/unistr/u32-startswith: Likewise.
23222         * modules/unistr/u32-stpcpy: Likewise.
23223         * modules/unistr/u32-stpncpy: Likewise.
23224         * modules/unistr/u32-strcat: Likewise.
23225         * modules/unistr/u32-strchr: Likewise.
23226         * modules/unistr/u32-strcmp: Likewise.
23227         * modules/unistr/u32-strcoll: Likewise.
23228         * modules/unistr/u32-strcpy: Likewise.
23229         * modules/unistr/u32-strcspn: Likewise.
23230         * modules/unistr/u32-strdup: Likewise.
23231         * modules/unistr/u32-strlen: Likewise.
23232         * modules/unistr/u32-strmblen: Likewise.
23233         * modules/unistr/u32-strmbtouc: Likewise.
23234         * modules/unistr/u32-strncat: Likewise.
23235         * modules/unistr/u32-strncmp: Likewise.
23236         * modules/unistr/u32-strncpy: Likewise.
23237         * modules/unistr/u32-strnlen: Likewise.
23238         * modules/unistr/u32-strpbrk: Likewise.
23239         * modules/unistr/u32-strrchr: Likewise.
23240         * modules/unistr/u32-strspn: Likewise.
23241         * modules/unistr/u32-strstr: Likewise.
23242         * modules/unistr/u32-strtok: Likewise.
23243         * modules/unistr/u32-to-u16: Likewise.
23244         * modules/unistr/u32-to-u8: Likewise.
23245         * modules/unistr/u32-uctomb: Likewise.
23246         * modules/uniwbrk/u8-wordbreaks: Likewise.
23247         * modules/uniwbrk/u16-wordbreaks: Likewise.
23248         * modules/uniwbrk/u32-wordbreaks: Likewise.
23249         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23250         * modules/uniwbrk/wordbreak-property: Likewise.
23251         * modules/uniwidth/u8-strwidth: Likewise.
23252         * modules/uniwidth/u8-width: Likewise.
23253         * modules/uniwidth/u16-strwidth: Likewise.
23254         * modules/uniwidth/u16-width: Likewise.
23255         * modules/uniwidth/u32-strwidth: Likewise.
23256         * modules/uniwidth/u32-width: Likewise.
23257         * modules/uniwidth/width: Likewise.
23258         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23259         with $(LIBUNISTRING).
23260         * modules/unicase/ignorable-tests: Likewise.
23261         * modules/unicase/locale-language-tests: Likewise.
23262         * modules/unicase/tolower-tests: Likewise.
23263         * modules/unicase/totitle-tests: Likewise.
23264         * modules/unicase/toupper-tests: Likewise.
23265         * modules/unicase/u8-casecmp-tests: Likewise.
23266         * modules/unicase/u8-casecoll-tests: Likewise.
23267         * modules/unicase/u8-casefold-tests: Likewise.
23268         * modules/unicase/u8-is-cased-tests: Likewise.
23269         * modules/unicase/u8-is-casefolded-tests: Likewise.
23270         * modules/unicase/u8-is-lowercase-tests: Likewise.
23271         * modules/unicase/u8-is-titlecase-tests: Likewise.
23272         * modules/unicase/u8-is-uppercase-tests: Likewise.
23273         * modules/unicase/u8-tolower-tests: Likewise.
23274         * modules/unicase/u8-totitle-tests: Likewise.
23275         * modules/unicase/u8-toupper-tests: Likewise.
23276         * modules/unicase/u16-casecmp-tests: Likewise.
23277         * modules/unicase/u16-casecoll-tests: Likewise.
23278         * modules/unicase/u16-casefold-tests: Likewise.
23279         * modules/unicase/u16-is-cased-tests: Likewise.
23280         * modules/unicase/u16-is-casefolded-tests: Likewise.
23281         * modules/unicase/u16-is-lowercase-tests: Likewise.
23282         * modules/unicase/u16-is-titlecase-tests: Likewise.
23283         * modules/unicase/u16-is-uppercase-tests: Likewise.
23284         * modules/unicase/u16-tolower-tests: Likewise.
23285         * modules/unicase/u16-totitle-tests: Likewise.
23286         * modules/unicase/u16-toupper-tests: Likewise.
23287         * modules/unicase/u32-casecmp-tests: Likewise.
23288         * modules/unicase/u32-casecoll-tests: Likewise.
23289         * modules/unicase/u32-casefold-tests: Likewise.
23290         * modules/unicase/u32-is-cased-tests: Likewise.
23291         * modules/unicase/u32-is-casefolded-tests: Likewise.
23292         * modules/unicase/u32-is-lowercase-tests: Likewise.
23293         * modules/unicase/u32-is-titlecase-tests: Likewise.
23294         * modules/unicase/u32-is-uppercase-tests: Likewise.
23295         * modules/unicase/u32-tolower-tests: Likewise.
23296         * modules/unicase/u32-totitle-tests: Likewise.
23297         * modules/unicase/u32-toupper-tests: Likewise.
23298         * modules/unicase/ulc-casecmp-tests: Likewise.
23299         * modules/unicase/ulc-casecoll-tests: Likewise.
23300         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23301         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23302         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23303         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23304         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23305         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23306         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23307         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23308         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23309         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23310         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23311         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23312         * modules/unictype/bidicategory-byname-tests: Likewise.
23313         * modules/unictype/bidicategory-name-tests: Likewise.
23314         * modules/unictype/bidicategory-of-tests: Likewise.
23315         * modules/unictype/bidicategory-test-tests: Likewise.
23316         * modules/unictype/block-list-tests: Likewise.
23317         * modules/unictype/block-of-tests: Likewise.
23318         * modules/unictype/block-test-tests: Likewise.
23319         * modules/unictype/category-C-tests: Likewise.
23320         * modules/unictype/category-Cc-tests: Likewise.
23321         * modules/unictype/category-Cf-tests: Likewise.
23322         * modules/unictype/category-Cn-tests: Likewise.
23323         * modules/unictype/category-Co-tests: Likewise.
23324         * modules/unictype/category-Cs-tests: Likewise.
23325         * modules/unictype/category-L-tests: Likewise.
23326         * modules/unictype/category-Ll-tests: Likewise.
23327         * modules/unictype/category-Lm-tests: Likewise.
23328         * modules/unictype/category-Lo-tests: Likewise.
23329         * modules/unictype/category-Lt-tests: Likewise.
23330         * modules/unictype/category-Lu-tests: Likewise.
23331         * modules/unictype/category-M-tests: Likewise.
23332         * modules/unictype/category-Mc-tests: Likewise.
23333         * modules/unictype/category-Me-tests: Likewise.
23334         * modules/unictype/category-Mn-tests: Likewise.
23335         * modules/unictype/category-N-tests: Likewise.
23336         * modules/unictype/category-Nd-tests: Likewise.
23337         * modules/unictype/category-Nl-tests: Likewise.
23338         * modules/unictype/category-No-tests: Likewise.
23339         * modules/unictype/category-P-tests: Likewise.
23340         * modules/unictype/category-Pc-tests: Likewise.
23341         * modules/unictype/category-Pd-tests: Likewise.
23342         * modules/unictype/category-Pe-tests: Likewise.
23343         * modules/unictype/category-Pf-tests: Likewise.
23344         * modules/unictype/category-Pi-tests: Likewise.
23345         * modules/unictype/category-Po-tests: Likewise.
23346         * modules/unictype/category-Ps-tests: Likewise.
23347         * modules/unictype/category-S-tests: Likewise.
23348         * modules/unictype/category-Sc-tests: Likewise.
23349         * modules/unictype/category-Sk-tests: Likewise.
23350         * modules/unictype/category-Sm-tests: Likewise.
23351         * modules/unictype/category-So-tests: Likewise.
23352         * modules/unictype/category-Z-tests: Likewise.
23353         * modules/unictype/category-Zl-tests: Likewise.
23354         * modules/unictype/category-Zp-tests: Likewise.
23355         * modules/unictype/category-Zs-tests: Likewise.
23356         * modules/unictype/category-and-not-tests: Likewise.
23357         * modules/unictype/category-and-tests: Likewise.
23358         * modules/unictype/category-byname-tests: Likewise.
23359         * modules/unictype/category-name-tests: Likewise.
23360         * modules/unictype/category-none-tests: Likewise.
23361         * modules/unictype/category-of-tests: Likewise.
23362         * modules/unictype/category-or-tests: Likewise.
23363         * modules/unictype/category-test-withtable-tests: Likewise.
23364         * modules/unictype/combining-class-tests: Likewise.
23365         * modules/unictype/ctype-alnum-tests: Likewise.
23366         * modules/unictype/ctype-alpha-tests: Likewise.
23367         * modules/unictype/ctype-blank-tests: Likewise.
23368         * modules/unictype/ctype-cntrl-tests: Likewise.
23369         * modules/unictype/ctype-digit-tests: Likewise.
23370         * modules/unictype/ctype-graph-tests: Likewise.
23371         * modules/unictype/ctype-lower-tests: Likewise.
23372         * modules/unictype/ctype-print-tests: Likewise.
23373         * modules/unictype/ctype-punct-tests: Likewise.
23374         * modules/unictype/ctype-space-tests: Likewise.
23375         * modules/unictype/ctype-upper-tests: Likewise.
23376         * modules/unictype/ctype-xdigit-tests: Likewise.
23377         * modules/unictype/decimal-digit-tests: Likewise.
23378         * modules/unictype/digit-tests: Likewise.
23379         * modules/unictype/mirror-tests: Likewise.
23380         * modules/unictype/numeric-tests: Likewise.
23381         * modules/unictype/property-alphabetic-tests: Likewise.
23382         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23383         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23384         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23385         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23386         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23387         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23388         * modules/unictype/property-bidi-control-tests: Likewise.
23389         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23390         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23391         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23392         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23393         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23394         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23395         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23396         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23397         * modules/unictype/property-bidi-pdf-tests: Likewise.
23398         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23399         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23400         * modules/unictype/property-byname-tests: Likewise.
23401         * modules/unictype/property-combining-tests: Likewise.
23402         * modules/unictype/property-composite-tests: Likewise.
23403         * modules/unictype/property-currency-symbol-tests: Likewise.
23404         * modules/unictype/property-dash-tests: Likewise.
23405         * modules/unictype/property-decimal-digit-tests: Likewise.
23406         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23407         * modules/unictype/property-deprecated-tests: Likewise.
23408         * modules/unictype/property-diacritic-tests: Likewise.
23409         * modules/unictype/property-extender-tests: Likewise.
23410         * modules/unictype/property-format-control-tests: Likewise.
23411         * modules/unictype/property-grapheme-base-tests: Likewise.
23412         * modules/unictype/property-grapheme-extend-tests: Likewise.
23413         * modules/unictype/property-grapheme-link-tests: Likewise.
23414         * modules/unictype/property-hex-digit-tests: Likewise.
23415         * modules/unictype/property-hyphen-tests: Likewise.
23416         * modules/unictype/property-id-continue-tests: Likewise.
23417         * modules/unictype/property-id-start-tests: Likewise.
23418         * modules/unictype/property-ideographic-tests: Likewise.
23419         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23420         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23421         * modules/unictype/property-ignorable-control-tests: Likewise.
23422         * modules/unictype/property-iso-control-tests: Likewise.
23423         * modules/unictype/property-join-control-tests: Likewise.
23424         * modules/unictype/property-left-of-pair-tests: Likewise.
23425         * modules/unictype/property-line-separator-tests: Likewise.
23426         * modules/unictype/property-logical-order-exception-tests: Likewise.
23427         * modules/unictype/property-lowercase-tests: Likewise.
23428         * modules/unictype/property-math-tests: Likewise.
23429         * modules/unictype/property-non-break-tests: Likewise.
23430         * modules/unictype/property-not-a-character-tests: Likewise.
23431         * modules/unictype/property-numeric-tests: Likewise.
23432         * modules/unictype/property-other-alphabetic-tests: Likewise.
23433         * modules/unictype/property-other-default-ignorable-code-point-tests:
23434         Likewise.
23435         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23436         * modules/unictype/property-other-id-continue-tests: Likewise.
23437         * modules/unictype/property-other-id-start-tests: Likewise.
23438         * modules/unictype/property-other-lowercase-tests: Likewise.
23439         * modules/unictype/property-other-math-tests: Likewise.
23440         * modules/unictype/property-other-uppercase-tests: Likewise.
23441         * modules/unictype/property-paired-punctuation-tests: Likewise.
23442         * modules/unictype/property-paragraph-separator-tests: Likewise.
23443         * modules/unictype/property-pattern-syntax-tests: Likewise.
23444         * modules/unictype/property-pattern-white-space-tests: Likewise.
23445         * modules/unictype/property-private-use-tests: Likewise.
23446         * modules/unictype/property-punctuation-tests: Likewise.
23447         * modules/unictype/property-quotation-mark-tests: Likewise.
23448         * modules/unictype/property-radical-tests: Likewise.
23449         * modules/unictype/property-sentence-terminal-tests: Likewise.
23450         * modules/unictype/property-soft-dotted-tests: Likewise.
23451         * modules/unictype/property-space-tests: Likewise.
23452         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23453         * modules/unictype/property-test-tests: Likewise.
23454         * modules/unictype/property-titlecase-tests: Likewise.
23455         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23456         * modules/unictype/property-unified-ideograph-tests: Likewise.
23457         * modules/unictype/property-uppercase-tests: Likewise.
23458         * modules/unictype/property-variation-selector-tests: Likewise.
23459         * modules/unictype/property-white-space-tests: Likewise.
23460         * modules/unictype/property-xid-continue-tests: Likewise.
23461         * modules/unictype/property-xid-start-tests: Likewise.
23462         * modules/unictype/property-zero-width-tests: Likewise.
23463         * modules/unictype/scripts-tests: Likewise.
23464         * modules/unictype/syntax-c-ident-tests: Likewise.
23465         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23466         * modules/unictype/syntax-java-ident-tests: Likewise.
23467         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23468         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23469         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23470         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23471         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23472         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23473         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23474         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23475         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23476         * modules/uniname/uniname-tests: Likewise.
23477         * modules/uninorm/canonical-decomposition-tests: Likewise.
23478         * modules/uninorm/compat-decomposition-tests: Likewise.
23479         * modules/uninorm/composition-tests: Likewise.
23480         * modules/uninorm/decomposing-form-tests: Likewise.
23481         * modules/uninorm/decomposition-tests: Likewise.
23482         * modules/uninorm/filter-tests: Likewise.
23483         * modules/uninorm/nfc-tests: Likewise.
23484         * modules/uninorm/nfd-tests: Likewise.
23485         * modules/uninorm/nfkc-tests: Likewise.
23486         * modules/uninorm/nfkd-tests: Likewise.
23487         * modules/uninorm/u8-normcmp-tests: Likewise.
23488         * modules/uninorm/u8-normcoll-tests: Likewise.
23489         * modules/uninorm/u16-normcmp-tests: Likewise.
23490         * modules/uninorm/u16-normcoll-tests: Likewise.
23491         * modules/uninorm/u32-normcmp-tests: Likewise.
23492         * modules/uninorm/u32-normcoll-tests: Likewise.
23493         * modules/unistdio/u8-asnprintf-tests: Likewise.
23494         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23495         * modules/unistdio/u8-vasprintf-tests: Likewise.
23496         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23497         * modules/unistdio/u8-vsprintf-tests: Likewise.
23498         * modules/unistdio/u16-asnprintf-tests: Likewise.
23499         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23500         * modules/unistdio/u16-vasprintf-tests: Likewise.
23501         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23502         * modules/unistdio/u16-vsprintf-tests: Likewise.
23503         * modules/unistdio/u32-asnprintf-tests: Likewise.
23504         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23505         * modules/unistdio/u32-vasprintf-tests: Likewise.
23506         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23507         * modules/unistdio/u32-vsprintf-tests: Likewise.
23508         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23509         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23510         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23511         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23512         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23513         * modules/unistr/u8-check-tests: Likewise.
23514         * modules/unistr/u8-chr-tests: Likewise.
23515         * modules/unistr/u8-cmp-tests: Likewise.
23516         * modules/unistr/u8-cmp2-tests: Likewise.
23517         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23518         * modules/unistr/u8-cpy-tests: Likewise.
23519         * modules/unistr/u8-mblen-tests: Likewise.
23520         * modules/unistr/u8-mbsnlen-tests: Likewise.
23521         * modules/unistr/u8-mbtouc-tests: Likewise.
23522         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23523         * modules/unistr/u8-mbtoucr-tests: Likewise.
23524         * modules/unistr/u8-move-tests: Likewise.
23525         * modules/unistr/u8-next-tests: Likewise.
23526         * modules/unistr/u8-prev-tests: Likewise.
23527         * modules/unistr/u8-set-tests: Likewise.
23528         * modules/unistr/u8-stpcpy-tests: Likewise.
23529         * modules/unistr/u8-stpncpy-tests: Likewise.
23530         * modules/unistr/u8-strcat-tests: Likewise.
23531         * modules/unistr/u8-strcmp-tests: Likewise.
23532         * modules/unistr/u8-strcoll-tests: Likewise.
23533         * modules/unistr/u8-strcpy-tests: Likewise.
23534         * modules/unistr/u8-strdup-tests: Likewise.
23535         * modules/unistr/u8-strlen-tests: Likewise.
23536         * modules/unistr/u8-strmblen-tests: Likewise.
23537         * modules/unistr/u8-strmbtouc-tests: Likewise.
23538         * modules/unistr/u8-strncat-tests: Likewise.
23539         * modules/unistr/u8-strncmp-tests: Likewise.
23540         * modules/unistr/u8-strncpy-tests: Likewise.
23541         * modules/unistr/u8-strnlen-tests: Likewise.
23542         * modules/unistr/u8-to-u16-tests: Likewise.
23543         * modules/unistr/u8-to-u32-tests: Likewise.
23544         * modules/unistr/u8-uctomb-tests: Likewise.
23545         * modules/unistr/u16-check-tests: Likewise.
23546         * modules/unistr/u16-chr-tests: Likewise.
23547         * modules/unistr/u16-cmp-tests: Likewise.
23548         * modules/unistr/u16-cmp2-tests: Likewise.
23549         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23550         * modules/unistr/u16-cpy-tests: Likewise.
23551         * modules/unistr/u16-mblen-tests: Likewise.
23552         * modules/unistr/u16-mbsnlen-tests: Likewise.
23553         * modules/unistr/u16-mbtouc-tests: Likewise.
23554         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23555         * modules/unistr/u16-mbtoucr-tests: Likewise.
23556         * modules/unistr/u16-move-tests: Likewise.
23557         * modules/unistr/u16-next-tests: Likewise.
23558         * modules/unistr/u16-prev-tests: Likewise.
23559         * modules/unistr/u16-set-tests: Likewise.
23560         * modules/unistr/u16-stpcpy-tests: Likewise.
23561         * modules/unistr/u16-stpncpy-tests: Likewise.
23562         * modules/unistr/u16-strcat-tests: Likewise.
23563         * modules/unistr/u16-strcmp-tests: Likewise.
23564         * modules/unistr/u16-strcoll-tests: Likewise.
23565         * modules/unistr/u16-strcpy-tests: Likewise.
23566         * modules/unistr/u16-strdup-tests: Likewise.
23567         * modules/unistr/u16-strlen-tests: Likewise.
23568         * modules/unistr/u16-strmblen-tests: Likewise.
23569         * modules/unistr/u16-strmbtouc-tests: Likewise.
23570         * modules/unistr/u16-strncat-tests: Likewise.
23571         * modules/unistr/u16-strncmp-tests: Likewise.
23572         * modules/unistr/u16-strncpy-tests: Likewise.
23573         * modules/unistr/u16-strnlen-tests: Likewise.
23574         * modules/unistr/u16-to-u32-tests: Likewise.
23575         * modules/unistr/u16-to-u8-tests: Likewise.
23576         * modules/unistr/u16-uctomb-tests: Likewise.
23577         * modules/unistr/u32-check-tests: Likewise.
23578         * modules/unistr/u32-chr-tests: Likewise.
23579         * modules/unistr/u32-cmp-tests: Likewise.
23580         * modules/unistr/u32-cmp2-tests: Likewise.
23581         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23582         * modules/unistr/u32-cpy-tests: Likewise.
23583         * modules/unistr/u32-mblen-tests: Likewise.
23584         * modules/unistr/u32-mbsnlen-tests: Likewise.
23585         * modules/unistr/u32-mbtouc-tests: Likewise.
23586         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23587         * modules/unistr/u32-mbtoucr-tests: Likewise.
23588         * modules/unistr/u32-move-tests: Likewise.
23589         * modules/unistr/u32-next-tests: Likewise.
23590         * modules/unistr/u32-prev-tests: Likewise.
23591         * modules/unistr/u32-set-tests: Likewise.
23592         * modules/unistr/u32-stpcpy-tests: Likewise.
23593         * modules/unistr/u32-stpncpy-tests: Likewise.
23594         * modules/unistr/u32-strcat-tests: Likewise.
23595         * modules/unistr/u32-strcmp-tests: Likewise.
23596         * modules/unistr/u32-strcoll-tests: Likewise.
23597         * modules/unistr/u32-strcpy-tests: Likewise.
23598         * modules/unistr/u32-strdup-tests: Likewise.
23599         * modules/unistr/u32-strlen-tests: Likewise.
23600         * modules/unistr/u32-strmblen-tests: Likewise.
23601         * modules/unistr/u32-strmbtouc-tests: Likewise.
23602         * modules/unistr/u32-strncat-tests: Likewise.
23603         * modules/unistr/u32-strncmp-tests: Likewise.
23604         * modules/unistr/u32-strncpy-tests: Likewise.
23605         * modules/unistr/u32-strnlen-tests: Likewise.
23606         * modules/unistr/u32-to-u16-tests: Likewise.
23607         * modules/unistr/u32-to-u8-tests: Likewise.
23608         * modules/unistr/u32-uctomb-tests: Likewise.
23609         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23610         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23611         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23612         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23613         * modules/uniwidth/u8-strwidth-tests: Likewise.
23614         * modules/uniwidth/u8-width-tests: Likewise.
23615         * modules/uniwidth/u16-strwidth-tests: Likewise.
23616         * modules/uniwidth/u16-width-tests: Likewise.
23617         * modules/uniwidth/u32-strwidth-tests: Likewise.
23618         * modules/uniwidth/u32-width-tests: Likewise.
23619         * modules/uniwidth/width-tests: Likewise.
23620
23621 2010-05-18  Richard Jones  <rjones@redhat.com>
23622
23623         doc: users.txt: list hivex
23624         * users.txt: Add hivex.
23625
23626 2010-05-18  Richard Jones  <rjones@redhat.com>
23627
23628         doc: users.txt: list febootstrap
23629         * users.txt: Add febootstrap.
23630
23631 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23632
23633         bootstrap: fix an error when gnulib is not used as a git submodule
23634         * build-aux/bootstrap (gnulib_path): If its length is zero then
23635         assign "gnulib" to it.
23636         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23637
23638 2010-05-16  Bruno Haible  <bruno@clisp.org>
23639
23640         Avoid autoconf warnings about AM_ICONV.
23641         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23642         2.64.
23643
23644 2010-05-16  Bruno Haible  <bruno@clisp.org>
23645
23646         absolute-header: Make the macro usable in more situations.
23647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23648         from gl_ABSOLUTE_HEADER.
23649         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23650
23651 2010-05-16  James Youngman  <jay@gnu.org>
23652
23653         doc: update users.txt
23654         * users.txt: Add CSSC.
23655
23656 2010-05-16  Jim Meyering  <meyering@redhat.com>
23657
23658         init.sh: fix an error in the previous change; add more comments
23659         * tests/init.sh: Compare exit code in loop against 9, not 2.
23660         Patch by Bruno Haible.
23661         Make the two tests more similar by adding an empty "then" clause.
23662         Add comments.
23663
23664         init.sh: avoid unnecessary shell re-exec
23665         * tests/init.sh: Improve the re-exec-required check to first test the
23666         current shell.  If it passes the test, do not search for a shell that
23667         does pass, and do not re-exec.  This test is particularly contorted to
23668         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23669         of $(...) evokes a syntax error and causes immediate shell exit with
23670         status 2.  Bruno Haible reported that the re-exec made it impossible
23671         to single-step through any init.sh-using script.
23672
23673 2010-05-16  Bruno Haible  <bruno@clisp.org>
23674
23675         Fix collision between gnulib's and libintl's printf replacements.
23676         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23677         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23678         (printf): When using GNU C, map the __printf__ function to rpl_printf
23679         via __asm__. When not using GNU C, define rpl_printf instead of
23680         __printf__.
23681         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23682         commit.
23683         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23684         commit.
23685         * m4/asm-underscore.m4: New file.
23686         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23687         * modules/stdio (Files): Add m4/asm-underscore.m4.
23688         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23689         Reported by Ben Pfaff.
23690
23691 2010-05-16  Bruno Haible  <bruno@clisp.org>
23692
23693         verify: Avoid skipping the test on openSUSE 11.0.
23694         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23695
23696 2010-05-13  Bruno Haible  <bruno@clisp.org>
23697
23698         Avoid useless warnings from G++.
23699         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23700         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23701         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23702
23703 2010-05-11  Jim Meyering  <meyering@redhat.com>
23704
23705         maint.mk: tweak preceding change
23706         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23707         regexps tighter by anchoring at EOL, and make the new group "shy"
23708         for slightly decreased overhead.
23709
23710 2010-05-11  Eric Blake  <eblake@redhat.com>
23711
23712         maint.mk: gnulib doesn't guarantee NSIG
23713         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23714
23715 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23716
23717         test-pwrite.c: Remove unused variable declaration.
23718         * tests/test-pwrite.c (main): Remove read_buf declaration.
23719
23720         Remove useless test-pwrite.sh file.
23721         * tests/test-pwrite.sh: Delete file.
23722         * modules/pwrite-tests: Remove references.
23723         Reported by Bruno Haible.
23724
23725 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23726
23727         init.sh: fix a typo
23728         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23729
23730 2010-05-10  Jim Meyering  <meyering@redhat.com>
23731
23732         maint.mk: avoid using a temporary file in the always-defined-macros check
23733         * top/maint.mk (.re-defmac): Remove rule.
23734         (gl_trap_): Remove definition.
23735         (sc_prohibit_always-defined_macros): Rewrite not to create and
23736         depend on a temporary file.  Instead, depend on GNU grep's ability
23737         to read a list of regular expressions from stdin when given "-f -".
23738
23739 2010-05-09  Bruno Haible  <bruno@clisp.org>
23740
23741         Update to GNU gettext 0.18, part 1.
23742         * m4/gettext.m4: Update to GNU gettext 0.18.
23743         * m4/intl.m4: Likewise.
23744         * m4/po.m4: Likewise.
23745         * modules/gettext (Files): Add m4/fcntl-o.m4.
23746         (configure.ac): Require gettext infrastructure from version 0.18.
23747
23748 2010-05-09  Jim Meyering  <meyering@redhat.com>
23749
23750         init.sh: enable MALLOC_PERTURB_
23751         * tests/init.sh: Enable glibc's malloc-perturbing option.
23752
23753         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23754         With my recent change in init.sh from the two-line form:
23755             -#   : ${srcdir=.}
23756             -#   . "$srcdir/init.sh"; path_prepend_ .
23757             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23758         I noticed that using the one-line form would cause this test
23759         to fail with a false-positive, or to stop working altogether,
23760         depending on whether help-version changed or all the tests did.
23761         * top/maint.mk (_hv_regex): Remove this definition.
23762         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23763         (_hv_regex_strong): Use a stronger regex to check for conformance.
23764         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23765         Give a separate diagnostic for lack of conforming use.
23766
23767         maint.mk: prohibit definition of symbols defined by gnulib
23768         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23769         definition of symbols defined by gnulib.
23770
23771 2010-05-09  Bruno Haible  <bruno@clisp.org>
23772
23773         acl: Avoid test failure on Cygwin-hosted mingw.
23774         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23775
23776 2010-05-09  Bruno Haible  <bruno@clisp.org>
23777
23778         error: Use system's fcntl function.
23779         * lib/error.c (fcntl): Undefine.
23780
23781 2010-05-09  Jim Meyering  <meyering@redhat.com>
23782
23783         verify: adjust formatting to be more consistent
23784         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23785         argument-list '('s, and after one comma.
23786
23787 2010-05-09  Bruno Haible  <bruno@clisp.org>
23788
23789         error: More reliable output on mingw.
23790         * lib/error.c: Include <windows.h>.
23791         (is_open): New function.
23792         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23793         defined.
23794
23795 2010-05-09  Bruno Haible  <bruno@clisp.org>
23796
23797         vasnprintf: Fix syntax errors in libintl build on mingw.
23798         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23799         pad_ourselves and prec_ourselves after use.
23800
23801 2010-05-08  Bruno Haible  <bruno@clisp.org>
23802
23803         * lib/config.charset: Update comments for Cygwin 1.7.
23804         * lib/localcharset.c: Likewise.
23805
23806 2010-05-07  Jim Meyering  <meyering@redhat.com>
23807
23808         init.sh: improve comments
23809         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23810         . "${srcdir=.}/init.sh"; path_prepend_ .
23811         Add a note about path_prepend_ and the alternative of using
23812         TESTS_ENVIRONMENT.
23813
23814 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23815
23816         exclude: Unescape hashed patterns in wildcard mode.
23817         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23818         to the hash list.
23819         * tests/test-exclude8.sh: New test case.
23820         * modules/exclude-tests: Add new test.
23821
23822 2010-05-05  Eric Blake  <eblake@redhat.com>
23823
23824         verify: automate tests
23825         * modules/verify-tests: New module.
23826         * tests/test-verify.sh: New file.
23827         * tests/test-verify.c: Guard each negative test with a unique id.
23828         Also avoid warning about unused left hand of comma expressions.
23829
23830 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23831
23832         Further improvements to verify.h, suggested by Eric Blake.
23833         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23834         the GL_* versions, to avoid collision with OpenGL.
23835         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23836         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23837         than testing merely whether it's defined.
23838
23839         Modify verify.h to pacify gcc -Wredundant_decls.
23840         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23841         These use the prefix "GL_" since they're likely to be useful elsewhere.
23842         We may need to break them out into a different .h file.
23843         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23844         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23845         of verify_function__.
23846
23847 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23848
23849         Tests for module pwrite.
23850         * modules/pwrite-tests: New file.
23851         * tests/test-pwrite.sh: New file.
23852         * tests/test-pwrite.c: New file.
23853
23854         New module pwrite.
23855         * lib/unistd.in.h (pwrite): New declaration.
23856         * lib/pwrite.c: New file, from glibc with modifications.
23857         * m4/pwrite.m4: New file.
23858         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23859         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23860         REPLACE_PWRITE.
23861         * modules/pwrite: New file.
23862         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23863         REPLACE_PWRITE.
23864         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23865         * doc/posix-functions/pwrite.texi: Mention the new module.
23866
23867 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23868
23869         pread: Update documentation.
23870         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23871
23872 2010-05-04  Eric Blake  <eblake@redhat.com>
23873
23874         docs: update cygwin progress
23875         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23876         this bug.
23877         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23878         Added in cygwin 1.7.2.
23879         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23880         Likewise.
23881         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23882         Likewise.
23883         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23884         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23885         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23886         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23887         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23888         Mention nproc module.
23889         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23890         bug in cygwin 1.7.5 addition.
23891         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23892         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23893         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23894         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23895         1.7.5.
23896         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23897         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23898         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23899         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23900         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23901         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23902         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23903         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23904         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23905         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23906         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23907         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23908         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23909         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23910         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23911         Likewise.
23912         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23913         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23914         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23915         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23916         Likewise.
23917         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23918         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23919         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23920         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23921         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23922         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23923         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23924         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23925         Likewise.
23926         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23927         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23928         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23929         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23930         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23931         Likewise.
23932         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23933         Likewise.
23934         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23935         Likewise.
23936         * doc/glibc-functions/xdrrec_endofrecord.texi
23937         (xdrrec_endofrecord): Likewise.
23938         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23939         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23940         Likewise.
23941         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23942         Likewise.
23943
23944 2010-05-04  Jim Meyering  <meyering@redhat.com>
23945
23946         gendocs.sh: make its "-s FILE" option more useful
23947         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23948         $PACKAGE to reflect the probably-different basename of "FILE".
23949
23950 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23951
23952         bootstrap: don't ignore download_po_files failure
23953         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23954         failure.
23955
23956 2010-05-03  Jim Meyering  <meyering@redhat.com>
23957
23958         maint.mk: allow to pass options to gendocs.sh
23959         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23960         (gendocs_options_): New overridable variable.
23961
23962         gnu-web-doc-update: don't ignore configure or build failure
23963         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23964
23965         announce-gen: backslash-escape '@'s in --help output
23966         * build-aux/announce-gen: Fix syntax errors.
23967
23968         maint.mk, announce-gen: allow project-specific announcement mail headers
23969         * top/maint.mk (translation_project_): Define default.
23970         (announcement_Cc_, announcement_mail_headers_): Likewise.
23971         (announcement): Invoke announce-gen with new --mail-headers option.
23972         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23973
23974         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23975         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23976         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23977         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23978         line in the "err2" output file when running "make check" in verbose
23979         mode (i.e., with set -x enabled).
23980
23981 2010-05-03  Bruno Haible  <bruno@clisp.org>
23982
23983         wctob: Fix for weird platforms.
23984         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23985         argument value.
23986
23987 2010-05-03  Jim Meyering  <meyering@redhat.com>
23988
23989         maint.mk: prohibit unwarranted use of <strings.h>
23990         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23991         strings.h in a file that does not also use strcasecmp, strncasecmp,
23992         ffs or ffsll.
23993
23994         maint.mk: remove obsolete comments
23995         * top/maint.mk: Remove stale, commented-out rules.
23996
23997 2010-05-02  Bruno Haible  <bruno@clisp.org>
23998
23999         wcwidth: Declare also when it's aliased.
24000         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24001         macro.
24002
24003 2010-05-02  Bruno Haible  <bruno@clisp.org>
24004
24005         Fix regression from 2010-04-25.
24006         * gnulib-tool (func_modules_transitive_closure): Check the status of
24007         all modules, not only of the tests that are of the form foo-tests where
24008         foo is a module.
24009
24010 2010-05-02  Bruno Haible  <bruno@clisp.org>
24011
24012         wctob: Work around nasty Cygwin 1.7.2 bug.
24013         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24014         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24015
24016 2010-05-01  Bruno Haible  <bruno@clisp.org>
24017
24018         fpurge: Sharper test.
24019         * tests/test-fpurge.c (main): Add one more ftell check.
24020         * modules/fpurge-tests (Depends-on): Add ftell.
24021         Suggested by Eric Blake.
24022
24023 2010-05-01  Bruno Haible  <bruno@clisp.org>
24024
24025         ftello: Another test.
24026         * tests/test-ftello3.c: New file.
24027         * modules/ftello-tests (Files): Add it.
24028         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24029         MOSTLYCLEANFILES.
24030
24031         ftell: Another test.
24032         * tests/test-ftell3.c: New file.
24033         * modules/ftell-tests (Files): Add it.
24034         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24035         MOSTLYCLEANFILES.
24036
24037 2010-05-01  Bruno Haible  <bruno@clisp.org>
24038
24039         ftell, ftello: Work around Solaris bug.
24040         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24041         * lib/ftello.c: Include stdio-impl.h.
24042         (ftello): On Solaris, when _IOWRT is set, compute the result without
24043         looking at _IOREAD.
24044         * modules/ftello (Files): Add lib/stdio-impl.h.
24045         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24046         * doc/posix-functions/ftello.texi: Likewise.
24047         Reported by Eric Blake.
24048
24049 2010-05-01  Bruno Haible  <bruno@clisp.org>
24050
24051         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24052         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24053         the _IOWRT flag is also set.
24054
24055 2010-05-01  Bruno Haible  <bruno@clisp.org>
24056
24057         Fix doc about a HP-UX stdio bug.
24058         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24059         * doc/posix-functions/ftello.texi: Likewise.
24060
24061 2010-05-01  Bruno Haible  <bruno@clisp.org>
24062
24063         lseek test: Fix failure on Solaris.
24064         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24065         output.
24066
24067 2010-04-30  Jim Meyering  <meyering@redhat.com>
24068
24069         bootstrap: don't ignore failure to generate po*/Makevars
24070         * build-aux/bootstrap (with_gettext): Don't ignore failure
24071         to create po/Makevars or runtime-po/Makevars.
24072
24073 2010-04-29  Eric Blake  <eblake@redhat.com>
24074
24075         headers: relax license to LGPLv2+
24076         * modules/fcntl-h (License): Relax license.
24077         * modules/getopt-posix (License): Likewise.
24078         * modules/locale (License): Likewise.
24079         * modules/math (License): Likewise.
24080         * modules/pty (License): Likewise.
24081         * modules/sched (License): Likewise.
24082         * modules/search (License): Likewise.
24083         * modules/spawn (License): Likewise.
24084         * modules/stdarg (License): Likewise.
24085         * modules/sysexits (License): Likewise.
24086
24087 2010-04-29  Jim Meyering  <meyering@redhat.com>
24088
24089         inttypes: relax license to LGPLv2+
24090         * modules/inttypes (License): Relax license.
24091
24092 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24093
24094         * top/maint.mk (indent): Run twice to produce idempotent results.
24095
24096 2010-04-28  Bruno Haible  <bruno@clisp.org>
24097
24098         getdate: Generate getdate.c in the source directory.
24099         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24100         MOSTLYCLEANFILES.
24101         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24102
24103 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24104
24105         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24106         is not declared as a const *; avoid warnings in that case.
24107
24108 2010-04-28  Eric Blake  <eblake@redhat.com>
24109
24110         canonicalize-lgpl: avoid compiler warning
24111         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24112         declaration' / 'extraneous semicolon' warning with some compilers.
24113         Reported by Andreas Gruenbacher.
24114
24115 2010-04-28  Jim Meyering  <meyering@redhat.com>
24116
24117         init.sh: ensure a more reliable exit status when exiting via trap
24118         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24119         Inspired by patches from Dmitry V. Levin.
24120         Also trap on signal 3 (SIGQUIT).
24121
24122 2010-04-27  Bruno Haible  <bruno@clisp.org>
24123
24124         Update doc about utimes().
24125         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24126         'utimens' module.
24127         Reported by Andreas Gruenbacher <agruen@suse.de>.
24128
24129 2010-04-27  Eric Blake  <eblake@redhat.com>
24130
24131         full-read, full-write: relax license
24132         * modules/full-read (License): Drop to LGPLv2+.
24133         * modules/full-write (License): Likewise.
24134         * modules/safe-read (License): Likewise.
24135         * modules/safe-write (License): Likewise.
24136
24137         pthread: mention library for linking
24138         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24139
24140 2010-04-27  Jim Meyering  <meyering@redhat.com>
24141
24142         maint.mk: fix a bug introduced in last change
24143         * top/maint.mk (gl_assured_headers_): Now that all names are on
24144         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24145         is not anchored to end of word, it should be adequate.
24146
24147         maint.mk: avoid side-effect in latest syntax-check
24148         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24149         to run commands via $(shell...), and hence to incur cost only when
24150         the new rule is actually run.
24151
24152         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24153         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24154         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24155         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24156         (gl_assured_headers_, az_, AZ_): Define.
24157         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24158
24159 2010-04-26  Jim Meyering  <jim@meyering.net>
24160             Bruno Haible  <bruno@clisp.org>
24161
24162         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24163         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24164         Prompted by an exchange with Gilles Espinasse.
24165
24166 2010-04-26  Jim Meyering  <meyering@redhat.com>
24167
24168         git-version-gen: aesthetic tweak
24169         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24170         so that the command remains on a single line.
24171
24172 2010-04-26  Eric Blake  <eblake@redhat.com>
24173
24174         git-version-gen: allow use on EBCDIC hosts
24175         * build-aux/git-version-gen (dirty): Use literal rather than tying
24176         ourselves to ascii.
24177         Reported by Steve Goetze.
24178
24179 2010-04-25  Bruno Haible  <bruno@clisp.org>
24180
24181         netdb: Add support for GNULIB_POSIXCHECK.
24182         * lib/netdb.in.h: Include warn-on-use.h.
24183         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24184         functions are used when GNULIB_POSIXCHECK is defined and the
24185         getaddrinfo module is not in use.
24186         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24187         freeaddrinfo, gai_strerror, getnameinfo are declared.
24188         * modules/netdb (Depends-on): Add warn-on-use.
24189         (Makefile.am): Include warn-on-use.h in netdb.h.
24190
24191 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24192
24193         build: avoid "make check" failure without .git/ directory
24194         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24195         there is no .git/ directory.
24196
24197 2010-04-25  Bruno Haible  <bruno@clisp.org>
24198
24199         ptsname: Fix misuse of ttyname_r.
24200         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24201         of errno.
24202
24203 2010-04-25  Bruno Haible  <bruno@clisp.org>
24204
24205         ttyname_r: Make it work on Solaris 10.
24206         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24207         if the system function has the POSIX declaration. Test whether the
24208         function fails if the buffer is less than 128 bytes large.
24209         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24210         system's ttyname_r function. Provide a reasonably large buffer.
24211         * modules/ttyname_r (Depends-on): Add extensions.
24212         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24213
24214 2010-04-25  Bruno Haible  <bruno@clisp.org>
24215
24216         Use the 'extensions' module for some more functions on Solaris.
24217         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24218         module.
24219         * doc/posix-functions/ctime_r.texi: Likewise.
24220         * doc/posix-functions/getgrgid_r.texi: Likewise.
24221         * doc/posix-functions/getgrnam_r.texi: Likewise.
24222         * doc/posix-functions/getpwnam_r.texi: Likewise.
24223         * doc/posix-functions/getpwuid_r.texi: Likewise.
24224         * doc/posix-functions/readdir_r.texi: Likewise.
24225         * doc/posix-functions/sigwait.texi: Likewise.
24226         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24227         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24228
24229 2010-04-25  Bruno Haible  <bruno@clisp.org>
24230
24231         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24232         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24233         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24234         * lib/ttyname_r.c: Include <limits.h>.
24235         (ttyname_r): Define using the system's ttyname_r function, if it exists
24236         and not on Solaris.
24237         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24238         set.
24239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24240         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24241         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24242         Reported by Simon Josefsson.
24243
24244 2010-04-25  Bruno Haible  <bruno@clisp.org>
24245
24246         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24247         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24248         * doc/posix-functions/ctime_r.texi: Likewise.
24249         * doc/posix-functions/getgrgid_r.texi: Likewise.
24250         * doc/posix-functions/getgrnam_r.texi: Likewise.
24251         * doc/posix-functions/getlogin_r.texi: Likewise.
24252         * doc/posix-functions/getpwnam_r.texi: Likewise.
24253         * doc/posix-functions/getpwuid_r.texi: Likewise.
24254         * doc/posix-functions/readdir_r.texi: Likewise.
24255         * doc/posix-functions/sigwait.texi: Likewise.
24256         * doc/posix-functions/ttyname_r.texi: Likewise.
24257         Reported by Simon Josefsson.
24258
24259 2010-04-25  Bruno Haible  <bruno@clisp.org>
24260
24261         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24262         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24263         also to --create-testdir.
24264         (func_acceptable): Don't consider the status of *-tests modules here.
24265         (func_modules_transitive_closure): Consider it here, before including a
24266         test module.
24267         (func_import, func_create_testdir): Set inc_all_direct_tests,
24268         inc_all_indirect_tests.
24269         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24270         --create-testdir and --create-megatestdir.
24271
24272 2010-04-25  Bruno Haible  <bruno@clisp.org>
24273
24274         gnulib-tool: Add --without-*-tests options.
24275         * gnulib-tool (func_usage): Document the --without-*-tests options.
24276         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24277         excl_unportable_tests): New variables.
24278         Fail if they are specified with --import or --update.
24279         (func_acceptable): Respect the excl_*_tests variables.
24280         (func_import): Set the excl_*_tests variables to empty.
24281
24282 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24283             Bruno Haible  <bruno@clisp.org>
24284
24285         Work around a MacOS X 10.4 bug with openpty.
24286         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24287         * tests/test-openpty.c (main): Close the master side explicitly.
24288
24289 2010-04-25  Bruno Haible  <bruno@clisp.org>
24290
24291         strnlen: Fix a C++ test error on MacOS X and Solaris.
24292         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24293         the function is not declared.
24294         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24295         Simon Josefsson.
24296
24297 2010-04-24  Bruno Haible  <bruno@clisp.org>
24298
24299         Avoid a gcc warning.
24300         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24301         of correct type for %08lx directive.
24302         Reported by Eric Blake.
24303
24304 2010-04-24  Bruno Haible  <bruno@clisp.org>
24305
24306         vasnprintf: Correct errno value in case of out-of-memory.
24307         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24308         or sprintf. Use the errno value from SNPRINTF or sprintf.
24309         Reported by Ian Beckwith <ianb@erislabs.net>.
24310
24311 2010-04-24  Bruno Haible  <bruno@clisp.org>
24312
24313         ansi-c++-opt: Find correct compiler when cross-compiling.
24314         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24315         AC_CHECK_PROGS.
24316         Reported by Simon Josefsson.
24317
24318 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24319
24320         vc-list-files: Add support for subversion
24321         * build-aux/vc-list-files: Use "svn list" to generate the list of
24322         files controlled by subversion.
24323
24324 2010-04-23  Jim Meyering  <meyering@redhat.com>
24325
24326         vc-list-files tests: convert to use init.sh
24327         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24328         path_prepend_.
24329         Use Exit, not exit.
24330         Use skip_ rather than open coding it.
24331         Remove trap set-up and compare definitions.
24332         * tests/test-vc-list-files-git.sh: Likewise.
24333         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24334
24335 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24336
24337         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24338         backup files.
24339
24340 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24341
24342         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24343
24344 2010-04-20  Eric Blake  <eblake@redhat.com>
24345
24346         tests: be robust to ignored SIGPIPE
24347         * tests/test-select-in.sh: Consume all output.
24348         * tests/test-lseek.sh: Check correct exit status, while avoiding
24349         EPIPE.
24350
24351 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24352             Bruno Haible  <bruno@clisp.org>
24353
24354         visibility: Don't use -fvisibility if it leads to a warning.
24355         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24356         yes, don't pretend that visibility works if it leads to a warning.
24357         Reported by Mike Gran <spk121@yahoo.com>.
24358
24359 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24360
24361         * build-aux/bootstrap: Use "git -h" for testing for supported options
24362         instead of "git --help".  The short-form option only shows a summary,
24363         and doesn't layout the full man page.  Grep for the full option name
24364         in the summary, too.
24365
24366 2010-04-19  Bruno Haible  <bruno@clisp.org>
24367
24368         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24369         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24370         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24371         mention of RELOCATABLE_STRIP.
24372         Reported by Sylvain Beucler <beuc@beuc.net>.
24373
24374 2010-04-19  Bruno Haible  <bruno@clisp.org>
24375
24376         * lib/diffseq.h: Fix typo in comment.
24377         Reported by Eric Blake.
24378
24379 2010-04-19  Bruno Haible  <bruno@clisp.org>
24380
24381         ioctl: Move autoconf macro to a .m4 file.
24382         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24383         * modules/ioctl (Files): Add it.
24384         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24385         Reported by Ian Beckwith <ianb@erislabs.net>.
24386
24387 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24388             Bruno Haible  <bruno@clisp.org>
24389
24390         diffseq: Accommodate use-case with abstract arrays.
24391         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24392         is not defined.
24393         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24394         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24395
24396 2010-04-18  Bruno Haible  <bruno@clisp.org>
24397
24398         * doc/posix-headers/stdbool.texi: More precise wording.
24399
24400 2010-04-17  Jim Meyering  <meyering@redhat.com>
24401
24402         maint.mk: use gnu-style indentation in an embedded perl script
24403         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24404         Rename variable: s/two/last_two_bytes/
24405
24406 2010-04-16  Eric Blake  <eblake@redhat.com>
24407
24408         test-stdbool: skip test that fails with Solaris CC
24409         * tests/test-stdbool.c (f): Skip test that causes compilation
24410         error under buggy C++ compiler.
24411         * lib/stdbool.in.h: Document the limitation.
24412         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24413
24414         setenv: allow compilation with C++
24415         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24416         register keyword.
24417
24418         stdint: allow test to pass with C++
24419         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24420
24421         getopt: allow compilation with C++
24422         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24423         struct.
24424         * lib/getopt.c (_getopt_internal_r): Use correct type.
24425         Reported by Dagobert Michelson, via Joel E. Denny.
24426
24427 2010-04-16  Bruno Haible  <bruno@clisp.org>
24428
24429         Override netdb.h always.
24430         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24431         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24432         Reported by Ludovic Courtès <ludo@gnu.org>.
24433
24434 2010-04-15  Bruno Haible  <bruno@clisp.org>
24435
24436         openpty: Fix mistake from 2010-03-21.
24437         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24438         Reported by Simon Josefsson.
24439
24440 2010-04-15  Eric Blake  <eblake@redhat.com>
24441
24442         test-forkpty: fix expected signature
24443         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24444         Reported by Simon Josefsson.
24445
24446 2010-04-15  Jim Meyering  <meyering@redhat.com>
24447
24448         maint.mk: texinfo_suffix_re_: correct the default regexp
24449         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24450
24451         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24452         make it configurable via texinfo_suffix_re_.
24453
24454 2010-04-14  Eric Blake  <eblake@redhat.com>
24455
24456         strtok_r: relax license to LGPLv2+
24457         * modules/strtok_r (License): Relax license.
24458         Reported by Matthias Bolte.
24459
24460 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24461
24462         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24463         version 1.4.4 by default instead of requiring the libgcrypt
24464         version used during build.  This makes it possible to use the
24465         application with older but still binary compatible libgcrypt
24466         versions.
24467
24468 2010-04-13  Eric Blake  <eblake@redhat.com>
24469
24470         getopt-gnu: match recent glibc fixes and posix ruling
24471         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24472         '+' handling, when requesting extensions.
24473         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24474         'W;' handling.
24475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24476         * doc/posix-functions/getopt.texi (getopt): Document this.
24477         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24478         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24479         Likewise.
24480
24481         getopt: merge bug fixes from glibc
24482         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24483         diagnostics.  Honor '+:' correctly.  Reject ';'.
24484
24485         getopt-posix: detect MacOS bug
24486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24487         optind when missing a required argument.
24488         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24489         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24490         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24491         Likewise.
24492
24493         getopt-posix: avoid spurious failure on Solaris
24494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24495         an indicator that setting optind=1 is sufficient for reset.
24496
24497         getopt-posix: avoid spurious failure on FreeBSD
24498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24499         in POSIX mode, since the m4 test uses it.
24500
24501         gnulib-tool: silence warning on BSD sh
24502         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24503
24504 2010-04-13  Jim Meyering  <meyering@redhat.com>
24505
24506         doc: users.txt: GNU patch now uses gnulib
24507         * users.txt: Add patch.
24508
24509 2010-04-12  Jim Meyering  <meyering@redhat.com>
24510
24511         maint.mk: generate more concise timing data for syntax-check rules
24512         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24513         " done" from each line that reports a syntax-check test duration.
24514
24515 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24516
24517         git-version-gen: use "git update-index..." rather than "git status"
24518         * build-aux/git-version-gen: Use git update-index --refresh, not
24519         "git status".  With some versions of git, "git status" would fail
24520         to update the index and result in an unwarranted "-dirty" suffix.
24521
24522 2010-04-11  Jim Meyering  <meyering@redhat.com>
24523
24524         openat: correct formatting (no semantic change)
24525         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24526         Suggested by Bruno Haible.
24527
24528 2010-04-11  Bruno Haible  <bruno@clisp.org>
24529
24530         Stricter declaration checking in testdirs.
24531         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24532         If for_tests is true, augment AM_CPPFLAGS to define
24533         GNULIB_STRICT_CHECKING.
24534         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24535         GNULIB_STRICT_CHECKING is defined, verify that the function is
24536         declared.
24537
24538 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24539             Bruno Haible  <bruno@clisp.org>
24540
24541         libunistring: Improve configure output.
24542         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24543         Don't say "consider installing GNU libunistring" when checking again
24544         with libiconv.
24545
24546 2010-04-11  Bruno Haible  <bruno@clisp.org>
24547
24548         libunistring: Correct value of $LTLIBUNISTRING.
24549         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24550         correct the value of $LTLIBUNISTRING.
24551
24552 2010-04-11  Bruno Haible  <bruno@clisp.org>
24553
24554         havelib: Add static libraries to LIBS in the right order.
24555         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24556         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24557
24558 2010-04-11  Bruno Haible  <bruno@clisp.org>
24559
24560         libunistring: Detect libunistring also when it depends on libiconv.
24561         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24562         the second AC_LIB_HAVE_LINKFLAGS invocation.
24563
24564 2010-04-11  James Youngman  <jay@gnu.org>
24565
24566         close-stream: declare local scalars to be "const"
24567         * lib/close-stream.c (close_stream): Make boolean variables const
24568         to document the fact that we set but do not change them.
24569
24570 2010-04-11  Bruno Haible  <bruno@clisp.org>
24571
24572         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24573
24574 2010-04-11  Jim Meyering  <meyering@redhat.com>
24575
24576         maint.mk: don't include dist-check.mk
24577         * top/maint.mk: Remove bogus include directive.
24578
24579         maint.mk: improve empty-line-at-EOF check
24580         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24581         solution, rather than tail+Perl-based one.  The latter would read
24582         a few kilobytes from the end of each file, and did not handle empty
24583         files properly.
24584
24585         maint.mk: print the elapsed time for each syntax-check rule
24586         * top/maint.mk (sc_m_rules_): Save start time in a file.
24587         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24588         (local-check): Interpose the .z rules
24589
24590 2010-04-11  Jim Meyering  <meyering@redhat.com>
24591
24592         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24593         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24594         empty file with one that ends in an empty line.
24595
24596 2010-04-10  Bruno Haible  <bruno@clisp.org>
24597
24598         mkdir: Make it work on mingw64.
24599         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24600         * lib/mkdir.c: Update comment.
24601         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24602
24603 2010-04-10  Bruno Haible  <bruno@clisp.org>
24604
24605         Don't override improved macro from newer autoconf.
24606         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24607         autoconf >= 2.62.
24608         Reported by Joel E. Denny <jdenny@clemson.edu>.
24609
24610 2010-04-10  Jim Meyering  <meyering@redhat.com>
24611
24612         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24613         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24614
24615         maint.mk: correct a diagnostic
24616         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24617         in diagnostic; now use $prohibit.
24618
24619 2010-04-10  Bruno Haible  <address@hidden>
24620
24621         fchownat: Fix a C++ test error on Solaris 8.
24622         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24623         the function does not exist.
24624
24625 2010-04-10  Bruno Haible  <bruno@clisp.org>
24626
24627         vasnprintf: Add more tests.
24628         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24629         (test_function): Test converting an invalid wide string.
24630
24631         vasnprintf: Correct handling of unconvertible wide string arguments.
24632         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24633         VASNPRINTF.
24634         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24635         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24636         smaller than the expected maximum need for the directive. Set errno to
24637         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24638         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24640         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24641         * modules/vasnprintf (Files): Add m4/printf.m4.
24642         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24643
24644 2010-04-10  Bruno Haible  <bruno@clisp.org>
24645
24646         vasnprintf: Fix crash in %ls directive.
24647         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24648         string is passed as argument to %ls, with no precision and no width.
24649         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24650
24651 2010-04-10  Bruno Haible  <bruno@clisp.org>
24652
24653         vasnprintf: Fix multiple test failures on mingw.
24654         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24655         _snprintf, or snwprintf, not _snwprintf.
24656
24657 2010-04-10  Bruno Haible  <bruno@clisp.org>
24658
24659         write: Fix a C++ test error on mingw.
24660         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24661
24662 2010-04-10  Bruno Haible  <bruno@clisp.org>
24663
24664         vasnprintf test: Reduce code duplication.
24665         * tests/test-vasnprintf.c (test_function): New function, extracted from
24666         test_vasnprintf.
24667         (test_vasnprintf, test_asnprintf): Invoke it.
24668
24669 2010-04-10  Bruno Haible  <bruno@clisp.org>
24670
24671         strnlen: Fix warning in C++ mode on MacOS X.
24672         * lib/string.in.h (strnlen): Use the modern idiom.
24673         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24674         defining strnlen as a macro already in <config.h>.
24675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24676         REPLACE_STRNLEN.
24677         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24678         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24679
24680 2010-04-08  James Youngman  <jay@gnu.org>
24681
24682         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24683         the example.
24684
24685 2010-04-09  Jim Meyering  <meyering@redhat.com>
24686
24687         maint.mk: print better diagnostic when there is no $(_hv_file)
24688         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24689         announce that when $(_hv_file) (aka help-version) does not exist.
24690
24691         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24692         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24693         not try to interpret its random input bytes.  Jarno Rajahalme reported
24694         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24695         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24696         (mktempd_): Likewise, just in case.
24697
24698         ftruncate: add two years to projected module removal date: 2012
24699         * m4/ftruncate.m4: Adjust comments.
24700
24701         ftruncate: mark module as obsolete; even MinGW provides it, now
24702         * modules/ftruncate (Status): Obsolete.
24703         (Notice): Say that.
24704         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24705         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24706
24707 2010-04-08  Bruno Haible  <bruno@clisp.org>
24708
24709         Fix side effects from tests-related modules.
24710         * modules/dprintf-posix (Comment): New section.
24711         * modules/fprintf-posix (Comment): Likewise.
24712         * modules/obstack-printf-posix (Comment): Likewise.
24713         * modules/printf-posix (Comment): Likewise.
24714         * modules/snprintf-posix (Comment): Likewise.
24715         * modules/sprintf-posix (Comment): Likewise.
24716         * modules/vasnprintf-posix (Comment): Likewise.
24717         * modules/vasprintf-posix (Comment): Likewise.
24718         * modules/vdprintf-posix (Comment): Likewise.
24719         * modules/vfprintf-posix (Comment): Likewise.
24720         * modules/vprintf-posix (Comment): Likewise.
24721         * modules/vsnprintf-posix (Comment): Likewise.
24722         * modules/vsprintf-posix (Comment): Likewise.
24723         * modules/xprintf-posix (Comment): Likewise.
24724         * modules/xvasprintf-posix (Comment): Likewise.
24725         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24726         * modules/floorf-tests (Depends-on): Likewise.
24727         * modules/round-tests (Depends-on): Likewise.
24728         * modules/roundf-tests (Depends-on): Likewise.
24729         * modules/trunc-tests (Depends-on): Likewise.
24730         * modules/truncf-tests (Depends-on): Likewise.
24731         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24732         'fprintf-posix' module is not present.
24733         * tests/test-floorf2.c (check): Likewise.
24734         * tests/test-trunc2.c (check): Likewise.
24735         * tests/test-truncf2.c (check): Likewise.
24736         * tests/test-round2.c (equal): Likewise.
24737         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24738
24739 2010-04-07  Karl Berry  <karl@gnu.org>
24740
24741         * config/srclist.txt,
24742         * config/srclistvars.sh,
24743         * config/srclist-update: doc fixes.
24744
24745 2010-04-07  Jim Meyering  <meyering@redhat.com>
24746
24747         maint.mk: add a PATH crosschecking syntax-check rule
24748         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24749         Useful if you use a test like the one in help-version (coreutils,
24750         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24751         printed by prog --version.
24752
24753 2010-04-06  Bruno Haible  <bruno@clisp.org>
24754
24755         Fix link error on mingw.
24756         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24757         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24758
24759 2010-04-06  Bruno Haible  <bruno@clisp.org>
24760
24761         Assume rmdir exists.
24762         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24763
24764 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24765
24766         doc: update users.txt
24767         * users.txt: Add gcal.
24768
24769 2010-04-06  Jim Meyering  <meyering@redhat.com>
24770
24771         init.sh: simply unset TMPDIR rather than risking env -i
24772         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24773         although it probably works fine on all Unix-based systems, some
24774         systems (Cygwin?) cannot tolerate a totally cleared environment.
24775         Suggestion from Eric Blake.
24776
24777 2010-04-06  Jim Meyering  <meyering@redhat.com>
24778
24779         init.sh: portability fix: use env's POSIX-specified -i option not -u
24780         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24781         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24782
24783 2010-04-05  Bruno Haible  <bruno@clisp.org>
24784
24785         btowc: Work around Cygwin 1.7.2 bug.
24786         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24787         does not map NUL to 0.
24788         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24789
24790 2010-04-05  Bruno Haible  <bruno@clisp.org>
24791
24792         Make the multithread modules work on Cygwin 1.7.2.
24793         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24794         imported symbols can be declared weak, so that it returns "no" on
24795         Cygwin 1.7.2.
24796
24797 2010-04-05  Bruno Haible  <bruno@clisp.org>
24798
24799         Use the module 'strncat'.
24800         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24801
24802         Tests for module 'strncat'.
24803         * modules/strncat-tests: New file.
24804         * tests/test-strncat.c: New file.
24805
24806         New module 'strncat'.
24807         * lib/string.in.h (strncat): New declaration.
24808         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24809         * m4/strncat.m4: New file, based on m4/memchr.m4.
24810         * modules/strncat: New file.
24811         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24812         is declared.
24813         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24814         REPLACE_STRNCAT.
24815         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24816         REPLACE_STRNCAT.
24817         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24818         module.
24819         * tests/test-string-c++.cc: Check signature of strncat.
24820
24821 2010-04-05  Jim Meyering  <meyering@redhat.com>
24822
24823         xstrtoumax-tests: convert to use init.sh
24824         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24825         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24826         Use Exit, not exit.
24827         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24828
24829         xstrtoimax-tests: convert to use init.sh
24830         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24831         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24832         Use Exit, not exit.
24833         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24834
24835 2010-04-05  Bruno Haible  <bruno@clisp.org>
24836
24837         sys_socket: Avoid #define replacements in C++ mode.
24838         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24839         warning to the function if possible, rather than #defining the symbol
24840         to a dysfunctional alias.
24841
24842 2010-04-05  Bruno Haible  <bruno@clisp.org>
24843
24844         fseeko: Fix C++ test error on mingw.
24845         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24846         gl_FUNC_FSEEKO.
24847         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24848         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24849         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24850         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24851
24852 2010-04-05  Bruno Haible  <bruno@clisp.org>
24853
24854         duplocale: Improve test output.
24855         * tests/test-duplocale.c (main): Print reason for skipped test.
24856
24857 2010-04-05  Bruno Haible  <bruno@clisp.org>
24858
24859         Assume rmdir exists.
24860         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24861         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24862
24863 2010-04-05  Bruno Haible  <bruno@clisp.org>
24864
24865         Fix link error on Solaris 8 with cc.
24866         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24867
24868 2010-04-05  Bruno Haible  <bruno@clisp.org>
24869
24870         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24871         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24872
24873 2010-04-05  Bruno Haible  <bruno@clisp.org>
24874
24875         vasprintf: Update documentation.
24876         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24877
24878 2010-04-05  Bruno Haible  <bruno@clisp.org>
24879
24880         ptsname: Improve test.
24881         * tests/test-ptsname.c (main): Also try the various master names of BSD
24882         systems.
24883
24884 2010-04-05  Bruno Haible  <bruno@clisp.org>
24885
24886         memchr: Avoid a possible C++ test error.
24887         * lib/string.in.h (memchr): Provide declaration if function is missing.
24888         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24889         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24891         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24892
24893 2010-04-05  Bruno Haible  <bruno@clisp.org>
24894
24895         strtok_r: Improve idiom.
24896         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24897         AC_LIBOBJ is used.
24898
24899 2010-04-05  Bruno Haible  <bruno@clisp.org>
24900
24901         strdup: Improve idiom.
24902         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24903         AC_LIBOBJ is used.
24904         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24905         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24906         when AC_LIBOBJ is used.
24907
24908 2010-04-05  Bruno Haible  <bruno@clisp.org>
24909
24910         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24911         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24912         don't set REPLACE_MBSINIT to 1.
24913         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24914         don't set REPLACE_MBRTOWC to 1.
24915         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24916         exist, don't set REPLACE_MBSRTOWCS to 1.
24917         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24918         exist, don't set REPLACE_MBSNRTOWCS to 1.
24919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24920         don't set REPLACE_WCRTOMB to 1.
24921         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24922         exist, don't set REPLACE_WCSRTOMBS to 1.
24923         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24924         exist, don't set REPLACE_WCSNRTOMBS to 1.
24925
24926 2010-04-05  Bruno Haible  <bruno@clisp.org>
24927
24928         ldexpl: Improve idiom.
24929         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24930         make sure to set HAVE_DECL_LDEXPL to 0.
24931
24932 2010-04-05  Jim Meyering  <meyering@redhat.com>
24933
24934         xstrtol-tests: convert to use init.sh
24935         * modules/xstrtol-tests (Files): Add tests/init.sh.
24936         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24937         Use Exit, not exit.
24938         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24939
24940         atexit-tests: convert to use init.sh
24941         * modules/atexit-tests (Files): Add tests/init.sh.
24942         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24943         Use Exit, not exit.
24944         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24945
24946         init.sh: fix typo
24947         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24948
24949         init.sh: make it easier for a test script to write to the tty, ...
24950         when using automake's parallel-tests mode.
24951         * tests/init.sh (stderr_fileno_): Define overridable variable.
24952         (warn_): New function, to use it.
24953         (fail_, skip_, framework_failure_): Use warn_.
24954
24955 2010-04-04  Bruno Haible  <bruno@clisp.org>
24956
24957         btowc: Avoid warning.
24958         * lib/btowc.c: Include <stdlib.h>.
24959         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24960
24961 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24962             Bruno Haible  <bruno@clisp.org>
24963
24964         wchar: Port to NetBSD 1.5.
24965         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24966         * lib/wctype.in.h (WEOF): Likewise.
24967
24968 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24969             Bruno Haible  <bruno@clisp.org>
24970
24971         Port extended stdio to NetBSD 1.5.
24972         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24973         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24974         older.
24975
24976 2010-04-04  Bruno Haible  <bruno@clisp.org>
24977
24978         string: Remove unused substitution.
24979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24980         HAVE_DECL_STRERROR.
24981         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24982
24983 2010-04-04  Bruno Haible  <bruno@clisp.org>
24984
24985         strtod: Avoid a possible C++ test error.
24986         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24987         set REPLACE_STRTOD.
24988
24989 2010-04-04  Bruno Haible  <bruno@clisp.org>
24990
24991         strerror: Update documentation.
24992         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24993
24994 2010-04-04  Bruno Haible  <bruno@clisp.org>
24995
24996         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24997         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24998         _GL_CXXALIAS_SYS_CAST.
24999
25000 2010-04-04  Bruno Haible  <bruno@clisp.org>
25001
25002         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25003         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25004         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25005         REPLACE_FREXPL to 1.
25006         * doc/posix-functions/frexpl.texi: Update documentation.
25007
25008 2010-04-04  Bruno Haible  <bruno@clisp.org>
25009
25010         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25011         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25012
25013 2010-04-04  Bruno Haible  <bruno@clisp.org>
25014
25015         Implement nanosleep for native Windows.
25016         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25017
25018 2010-04-04  Bruno Haible  <bruno@clisp.org>
25019
25020         math: Fix some C++ test errors on Solaris 8.
25021         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25022
25023 2010-04-04  Bruno Haible  <bruno@clisp.org>
25024
25025         math: Fix some C++ test errors on Cygwin.
25026         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25027         truncl): Provide declaration if the system does not have it.
25028         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25029         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25030         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25031         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25032         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25033         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25034         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25035         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25036         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25037         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25038         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25039         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25040         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25041         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25042         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25043         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25045         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25046         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25047         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25048         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25049         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25050
25051 2010-04-04  Bruno Haible  <bruno@clisp.org>
25052
25053         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25054         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25055         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25056         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25057         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25058         * m4/isinf.m4 (gl_ISINF): Likewise.
25059         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25060
25061 2010-04-04  Bruno Haible  <bruno@clisp.org>
25062
25063         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25064         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25065
25066 2010-04-04  Bruno Haible  <bruno@clisp.org>
25067
25068         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25069         * modules/tmpfile (configure.ac): Update.
25070
25071         tmpfile: Fix C++ test error on mingw.
25072         * lib/stdio.in.h (tmpfile): New declaration.
25073         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25074         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25075         * modules/tmpfile (Depends-on): Add stdio.
25076         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25077         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25078         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25079         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25080         REPLACE_TMPFILE.
25081         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25082
25083 2010-04-04  Bruno Haible  <bruno@clisp.org>
25084
25085         ioctl: Fix C++ test error on mingw.
25086         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25087         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25088         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25089
25090 2010-04-03  Bruno Haible  <bruno@clisp.org>
25091
25092         wcwidth: Fix C++ test error on mingw.
25093         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25095         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25096
25097 2010-04-03  Bruno Haible  <bruno@clisp.org>
25098
25099         nanosleep: Fix C++ test error on mingw.
25100         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25101         * lib/time.in.h (nanosleep): Use modern idiom.
25102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25103         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25104         REPLACE_NANOSLEEP to 1.
25105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25106         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25107
25108 2010-04-03  Bruno Haible  <bruno@clisp.org>
25109
25110         strptime: Fix C++ test error on mingw.
25111         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25112         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25113         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25114         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25115         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25116         not REPLACE_STRPTIME.
25117         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25118         REPLACE_STRPTIME.
25119
25120 2010-04-03  Bruno Haible  <bruno@clisp.org>
25121
25122         timegm: Fix C++ test error on mingw.
25123         * lib/time.in.h (timegm): Use modern idiom.
25124         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25125         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25126         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25127         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25128
25129 2010-04-03  Bruno Haible  <bruno@clisp.org>
25130
25131         timegm: Assume declaration if function exists.
25132         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25133         if it exists. Don't clobber ac_cv_func_timegm.
25134
25135 2010-04-03  Bruno Haible  <bruno@clisp.org>
25136
25137         time_r: Fix C++ test error on mingw.
25138         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25139         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25140         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25142         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25143
25144 2010-04-03  Bruno Haible  <bruno@clisp.org>
25145
25146         time_r: Minor updates.
25147         * modules/time_r (Description): Mention the provided functions.
25148         * lib/time_r.c: Don't include <string.h>.
25149         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25150         * doc/posix-functions/localtime_r.texi: Likewise.
25151
25152 2010-04-03  Bruno Haible  <bruno@clisp.org>
25153
25154         time: Fix regression introduced on 2010-03-08.
25155         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25156         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25157
25158 2010-04-03  Jim Meyering  <meyering@redhat.com>
25159
25160         maint.mk: don't silently disable project-specific syntax-check rules
25161         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25162         that they need to convert their project-specific syntax-check rules
25163         to use the new _sc_search_regexp.
25164
25165 2010-04-03  Bruno Haible  <bruno@clisp.org>
25166
25167         fchdir: Fix regression introduced on 2010-03-08.
25168         * lib/unistd.in.h (fchdir): Fix declaration.
25169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25171         REPLACE_FCHDIR.
25172         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25173         REPLACE_FCHDIR.
25174
25175 2010-04-03  Bruno Haible  <bruno@clisp.org>
25176
25177         getpagesize: Fix C++ test error on mingw.
25178         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25179         system does not declare the function.
25180         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25181         declared.
25182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25183         HAVE_DECL_GETPAGESIZE.
25184         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25185
25186 2010-04-03  Bruno Haible  <bruno@clisp.org>
25187
25188         stdio: Make C++ tests work on mingw.
25189         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25190         does not declare the function.
25191
25192 2010-04-03  Bruno Haible  <bruno@clisp.org>
25193
25194         ftello: Fix C++ test error on mingw.
25195         * lib/stdio.in.h (ftello): Use modern idiom.
25196         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25197         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25198         is missing and that it needs to be replaced.
25199         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25201         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25202
25203 2010-04-03  Bruno Haible  <bruno@clisp.org>
25204
25205         fseeko: Fix C++ test error on mingw.
25206         * lib/stdio.in.h (fseeko): Use modern idiom.
25207         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25208         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25209         is missing and that it needs to be replaced.
25210         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25212         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25213
25214 2010-04-03  Bruno Haible  <bruno@clisp.org>
25215
25216         mkstemp: Fix C++ test error on mingw.
25217         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25219         function is missing and that it needs to be replaced.
25220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25221         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25222
25223 2010-04-03  Bruno Haible  <bruno@clisp.org>
25224
25225         stpncpy: Fix C++ test error on mingw.
25226         * lib/string.in.h (stpncpy): Use modern idiom.
25227         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25228         function is missing and that it needs to be replaced.
25229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25230         REPLACE_STPNCPY.
25231         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25232
25233 2010-04-03  Bruno Haible  <bruno@clisp.org>
25234
25235         sys_stat: Fix C++ test error on mingw.
25236         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25237         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25238
25239 2010-04-03  Bruno Haible  <bruno@clisp.org>
25240
25241         pty: Update doc.
25242         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25243
25244 2010-04-03  Bruno Haible  <bruno@clisp.org>
25245
25246         unistd: Fix C++ test error on mingw.
25247         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25248
25249 2010-04-03  Bruno Haible  <bruno@clisp.org>
25250
25251         Update doc regarding mingw.
25252         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25253         * doc/glibc-functions/login_tty.texi: Likewise.
25254         * doc/glibc-functions/forkpty.texi: Likewise.
25255
25256 2010-04-03  Bruno Haible  <bruno@clisp.org>
25257
25258         stdlib: Avoid compilation failure of c-strtold on mingw.
25259         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25260
25261 2010-04-03  Bruno Haible  <bruno@clisp.org>
25262
25263         locale: Make C++ tests work on Cygwin and mingw.
25264         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25265         cannot provide the function.
25266         Reported by Simon Josefsson.
25267
25268 2010-04-03  Bruno Haible  <bruno@clisp.org>
25269
25270         localename: Port to MacOS X 10.6.
25271         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25272         memory layout of the locales in MacOS X 10.6 as well.
25273         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25274
25275 2010-04-02  Bruno Haible  <bruno@clisp.org>
25276
25277         gnulib-tool: Ensure that long-running tests are executed last.
25278         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25279         running tests after the one for the other tests.
25280
25281 2010-04-02  Bruno Haible  <bruno@clisp.org>
25282
25283         gnulib-tool: Ensure the tests in the main directory are executed first.
25284         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25285         start with the current directory.
25286
25287 2010-04-02  Bruno Haible  <bruno@clisp.org>
25288
25289         Tests for module 'havelib', moved here from GNU gettext.
25290         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25291         modifications.
25292         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25293         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25294         with modifications.
25295         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25296         modifications.
25297         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25298         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25299         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25300         with modifications.
25301         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25302         with modifications.
25303         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25304         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25305         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25306         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25307         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25308         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25309         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25310         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25311         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25312         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25313         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25314         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25315         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25316         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25317         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25318         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25319         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25320         with modifications.
25321         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25322         with modifications.
25323         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25324         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25325         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25326         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25327         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25328         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25329         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25330         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25331         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25332         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25333         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25334         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25335         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25336         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25337         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25338         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25339         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25340         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25341         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25342         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25343         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25344         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25345         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25346         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25347         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25348         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25349         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25350         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25351         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25352         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25353         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25354         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25355         * tests/havelib/rpathx/rpathx.c: New file, from
25356         gettext/autoconf-lib-link.
25357         * tests/havelib/rpathx/Makefile.am: New file, from
25358         gettext/autoconf-lib-link.
25359         * tests/havelib/rpathx/configure.ac: New file, from
25360         gettext/autoconf-lib-link with modifications.
25361         * tests/havelib/rpathy/rpathy.c: New file, from
25362         gettext/autoconf-lib-link.
25363         * tests/havelib/rpathy/Makefile.am: New file, from
25364         gettext/autoconf-lib-link.
25365         * tests/havelib/rpathy/configure.ac: New file, from
25366         gettext/autoconf-lib-link with modifications.
25367         * tests/havelib/rpathz/rpathz.c: New file, from
25368         gettext/autoconf-lib-link.
25369         * tests/havelib/rpathz/Makefile.am: New file, from
25370         gettext/autoconf-lib-link.
25371         * tests/havelib/rpathz/configure.ac: New file, from
25372         gettext/autoconf-lib-link with modifications.
25373         * tests/havelib/rpathlx/usex.c: New file, from
25374         gettext/autoconf-lib-link.
25375         * tests/havelib/rpathlx/Makefile.am: New file, from
25376         gettext/autoconf-lib-link.
25377         * tests/havelib/rpathlx/configure.ac: New file, from
25378         gettext/autoconf-lib-link with modifications.
25379         * tests/havelib/rpathly/usey.c: New file, from
25380         gettext/autoconf-lib-link.
25381         * tests/havelib/rpathly/Makefile.am: New file, from
25382         gettext/autoconf-lib-link.
25383         * tests/havelib/rpathly/configure.ac: New file, from
25384         gettext/autoconf-lib-link with modifications.
25385         * tests/havelib/rpathlz/usez.c: New file, from
25386         gettext/autoconf-lib-link.
25387         * tests/havelib/rpathlz/Makefile.am: New file, from
25388         gettext/autoconf-lib-link.
25389         * tests/havelib/rpathlz/configure.ac: New file, from
25390         gettext/autoconf-lib-link with modifications.
25391         * tests/havelib/rpathlyx/usey.c: New file, from
25392         gettext/autoconf-lib-link.
25393         * tests/havelib/rpathlyx/Makefile.am: New file, from
25394         gettext/autoconf-lib-link.
25395         * tests/havelib/rpathlyx/configure.ac: New file, from
25396         gettext/autoconf-lib-link with modifications.
25397         * tests/havelib/rpathlzyx/usez.c: New file, from
25398         gettext/autoconf-lib-link.
25399         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25400         gettext/autoconf-lib-link.
25401         * tests/havelib/rpathlzyx/configure.ac: New file, from
25402         gettext/autoconf-lib-link with modifications.
25403         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25404         with modifications.
25405
25406 2010-04-02  Bruno Haible  <bruno@clisp.org>
25407
25408         gnulib-tool: Create distributed built sources also for the tests.
25409         * gnulib-tool (func_create_testdir): Also generate distributed built
25410         sources in the tests directory.
25411
25412 2010-04-02  Bruno Haible  <bruno@clisp.org>
25413
25414         gnulib-tool: Obey user's environment variables.
25415         * gnulib-tool (func_create_testdir): When creating built sources,
25416         respect the environment variables for autoconf, automake, etc. given by
25417         the user.
25418
25419 2010-04-02  Bruno Haible  <bruno@clisp.org>
25420
25421         gnulib-tool: Provide the value of --m4-base to modules.
25422         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25423         of gl_m4_base.
25424
25425 2010-04-02  Eric Blake  <eblake@redhat.com>
25426
25427         maint.mk: fix some fallout
25428         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25429         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25430
25431 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25432
25433         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25434         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25435         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25436         (sc_cast_of_x_alloc_return_value): Likewise.
25437         (sc_cast_of_alloca_return_value): Likewise.
25438         (sc_space_tab): Likewise.
25439         (sc_prohibit_atoi_atof): Likewise.
25440         (sc_prohibit_magic_number_exit): Likewise.
25441         (sc_error_exit_success): Likewise.
25442         (sc_file_system): Likewise.
25443         (sc_prohibit_have_config_h): Likewise.
25444         (sc_require_config_h): Likewise.
25445         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25446         (sc_obsolete_symbols): Likewise.
25447         (sc_changelog): Likewise.
25448         (sc_program_name): Likewise.
25449         (sc_the_the): Likewise.
25450         (sc_trailing_blank): Likewise.
25451         (sc_two_space_separator_in_usage): Likewise.
25452         (sc_useless_cpp_parens): Likewise.
25453         (sc_GPL_version): Likewise.
25454         (sc_GFDL_version): Likewise.
25455         (sc_texinfo_acronym): Likewise.
25456         (sc_prohibit_cvs_keyword): Likewise.
25457         (sc_prohibit_stat_st_blocks): Likewise.
25458         (sc_prohibit_S_IS_definition): Likewise.
25459         (sc_redundant_const): Likewise.
25460         (sc_makefile_TAB_only_indentation): Likewise.
25461         (sc_m4_quote_check): Likewise.
25462         (sc_makefile_path_separator_check): Likewise.
25463         (sc_copyright_check): Likewise.
25464         (sc_Wundef_boolean): Likewise.
25465         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25466
25467         maint.mk: match 0 or more whitespace-before-function-call '('
25468         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25469         that have zero or two-and-more spaces between the function name
25470         and the open parenthesis.
25471         (sc_error_message_warn_fatal): Likewise.
25472         (sc_error_message_uppercase): Likewise.
25473         (sc_error_message_period): Likewise.
25474
25475 2010-03-31  Eric Blake  <eblake@redhat.com>
25476
25477         maint.mk: check for [ as well as test
25478         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25479         Based on a libvirt report by Matthias Bolte.
25480
25481         gnumakefile: don't squelch _version output
25482         * top/GNUmakefile (_version): Create one-shot dependency rather
25483         than using $(shell) when version must be regenerated.
25484         (_autoreconf): Run verbosely, by default.
25485
25486         sys_time: avoid compiler warnings
25487         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25488         unconditional, fixing regression from 2010-03-29.
25489         Reported by Simon Josefsson.
25490
25491 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25492
25493         maint.mk: s/_header_without_use/_sc_header_without_use/
25494         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25495         (sc_prohibit_assert_without_use): Use the new name.
25496         (sc_prohibit_close_stream_without_use): Likewise.
25497         (sc_prohibit_getopt_without_use): Likewise.
25498         (sc_prohibit_quotearg_without_use): Likewise.
25499         (sc_prohibit_quote_without_use): Likewise.
25500         (sc_prohibit_long_options_without_use): Likewise.
25501         (sc_prohibit_inttostr_without_use): Likewise.
25502         (sc_prohibit_ignore_value_without_use): Likewise.
25503         (sc_prohibit_error_without_use): Likewise.
25504         (sc_prohibit_xalloc_without_use): Likewise.
25505         (sc_prohibit_hash_without_use): Likewise.
25506         (sc_prohibit_hash_pjw_without_use): Likewise.
25507         (sc_prohibit_safe_read_without_use): Likewise.
25508         (sc_prohibit_argmatch_without_use): Likewise.
25509         (sc_prohibit_canonicalize_without_use): Likewise.
25510         (sc_prohibit_root_dev_ino_without_use): Likewise.
25511         (sc_prohibit_openat_without_use): Likewise.
25512         (sc_prohibit_c_ctype_without_use): Likewise.
25513         (sc_prohibit_signal_without_use): Likewise.
25514         (sc_prohibit_intprops_without_use): Likewise.
25515
25516 2010-03-30  Eric Blake  <eblake@redhat.com>
25517
25518         maint: improve module indicators
25519         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25520         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25521         columns, and avoid extra macro expansion.
25522
25523         fdopendir: work around FreeBSD bug
25524         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25526         * modules/dirent (Makefile.am): Substitute it.
25527         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25528         declaration.
25529         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25530         fix.
25531         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25532
25533 2010-03-29  Bruno Haible  <bruno@clisp.org>
25534
25535         Emit #pragma system_header after the inclusion guard, not before.
25536         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25537         guard that spans the entire file, not before. This enables an
25538         optimization in GCC's preprocessor.
25539         * lib/ctype.in.h: Likewise.
25540         * lib/dirent.in.h: Likewise.
25541         * lib/errno.in.h: Likewise.
25542         * lib/float.in.h: Likewise.
25543         * lib/getopt.in.h: Likewise.
25544         * lib/iconv.in.h: Likewise.
25545         * lib/langinfo.in.h: Likewise.
25546         * lib/locale.in.h: Likewise.
25547         * lib/math.in.h: Likewise.
25548         * lib/netdb.in.h: Likewise.
25549         * lib/netinet_in.in.h: Likewise.
25550         * lib/pty.in.h: Likewise.
25551         * lib/sched.in.h: Likewise.
25552         * lib/se-selinux.in.h: Likewise.
25553         * lib/search.in.h: Likewise.
25554         * lib/spawn.in.h: Likewise.
25555         * lib/stdarg.in.h: Likewise.
25556         * lib/stdint.in.h: Likewise.
25557         * lib/string.in.h: Likewise.
25558         * lib/strings.in.h: Likewise.
25559         * lib/sys_file.in.h: Likewise.
25560         * lib/sys_ioctl.in.h: Likewise.
25561         * lib/sys_time.in.h: Likewise.
25562         * lib/sys_times.in.h: Likewise.
25563         * lib/sys_utsname.in.h: Likewise.
25564         * lib/sys_wait.in.h: Likewise.
25565         * lib/sysexits.in.h: Likewise.
25566         * lib/wctype.in.h: Likewise.
25567
25568 2010-03-28  James Youngman  <jay@gnu.org>
25569
25570         save-cwd: don't leak a file descriptor when the caller execs.
25571         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25572         saved file descriptor.
25573         * modules/save-cwd (Depends-on): Depend on cloexec.
25574
25575 2010-03-29  Bruno Haible  <bruno@clisp.org>
25576
25577         Remove vestiges of fts-lgpl module.
25578         * lib/fts_.h: Assume GNULIB_FTS is 1.
25579         * lib/fts.c: Likewise.
25580         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25581
25582 2010-03-28  Bruno Haible  <bruno@clisp.org>
25583
25584         Fix definition of tests witness macro.
25585         * gnulib-tool (func_import): Fix definition of witness macro.
25586
25587 2010-03-28  Bruno Haible  <bruno@clisp.org>
25588
25589         Fix ioctl's protoype on glibc systems.
25590         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25591         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25592         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25593         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25594         signature. If not, arrange to replace the ioctl function.
25595         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25596         REPLACE_IOCTL.
25597         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25598         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25599         Reported by Ludovic Courtès <ludo@gnu.org>.
25600
25601 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25602
25603         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25604         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25605         made it so grep -r --include=GLOB* ... did not work.
25606
25607 2010-03-26  Jim Meyering  <meyering@redhat.com>
25608             Eric Blake  <eblake@redhat.com>
25609
25610         maint.mk: prohibit use of test's -o and -a operators
25611         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25612
25613 2010-03-28  Bruno Haible  <bruno@clisp.org>
25614
25615         Remove unused GNULIB_XYZ macro definitions.
25616         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25617         invocation.
25618
25619 2010-03-28  Bruno Haible  <bruno@clisp.org>
25620
25621         Mark privileged tests modules.
25622         * modules/idpriv-drop-tests (Status): New section.
25623         * modules/idpriv-droptemp-tests (Status): New section.
25624
25625 2010-03-28  Bruno Haible  <bruno@clisp.org>
25626
25627         Split C++ tests into separate tests modules.
25628         * modules/dirent-c++-tests: New file, extracted from
25629         modules/dirent-tests.
25630         * modules/dirent-tests: Depend on it.
25631         * modules/fcntl-h-c++-tests: New file, extracted from
25632         modules/fcntl-h-tests.
25633         * modules/fcntl-h-tests: Depend on it.
25634         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25635         * modules/glob-tests: Depend on it.
25636         * modules/iconv-h-c++-tests: New file, extracted from
25637         modules/iconv-h-tests.
25638         * modules/iconv-h-tests: Depend on it.
25639         * modules/langinfo-c++-tests: New file, extracted from
25640         modules/langinfo-tests.
25641         * modules/langinfo-tests: Depend on it.
25642         * modules/locale-c++-tests: New file, extracted from
25643         modules/locale-tests.
25644         * modules/locale-tests: Depend on it.
25645         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25646         * modules/math-tests: Depend on it.
25647         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25648         * modules/pty-tests: Depend on it.
25649         * modules/search-c++-tests: New file, extracted from
25650         modules/search-tests.
25651         * modules/search-tests: Depend on it.
25652         * modules/signal-c++-tests: New file, extracted from
25653         modules/signal-tests.
25654         * modules/signal-tests: Depend on it.
25655         * modules/spawn-c++-tests: New file, extracted from
25656         modules/spawn-tests.
25657         * modules/spawn-tests: Depend on it.
25658         * modules/stdio-c++-tests: New file, extracted from
25659         modules/stdio-tests.
25660         * modules/stdio-tests: Depend on it.
25661         * modules/stdlib-c++-tests: New file, extracted from
25662         modules/stdlib-tests.
25663         * modules/stdlib-tests: Depend on it.
25664         * modules/string-c++-tests: New file, extracted from
25665         modules/string-tests.
25666         * modules/string-tests: Depend on it.
25667         * modules/sys_ioctl-c++-tests: New file, extracted from
25668         modules/sys_ioctl-tests.
25669         * modules/sys_ioctl-tests: Depend on it.
25670         * modules/sys_select-c++-tests: New file, extracted from
25671         modules/sys_select-tests.
25672         * modules/sys_select-tests: Depend on it.
25673         * modules/sys_socket-c++-tests: New file, extracted from
25674         modules/sys_socket-tests.
25675         * modules/sys_socket-tests: Depend on it.
25676         * modules/sys_stat-c++-tests: New file, extracted from
25677         modules/sys_stat-tests.
25678         * modules/sys_stat-tests: Depend on it.
25679         * modules/sys_time-c++-tests: New file, extracted from
25680         modules/sys_time-tests.
25681         * modules/sys_time-tests: Depend on it.
25682         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25683         * modules/time-tests: Depend on it.
25684         * modules/unistd-c++-tests: New file, extracted from
25685         modules/unistd-tests.
25686         * modules/unistd-tests: Depend on it.
25687         * modules/wchar-c++-tests: New file, extracted from
25688         modules/wchar-tests.
25689         * modules/wchar-tests: Depend on it.
25690         * modules/wctype-c++-tests: New file, extracted from
25691         modules/wctype-tests.
25692         * modules/wctype-tests: Depend on it.
25693         Reported by Simon Josefsson.
25694
25695 2010-03-28  Bruno Haible  <bruno@clisp.org>
25696
25697         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25698         * gnulib-tool (func_exists_module): New function, extracted from
25699         func_verify_module.
25700         (func_verify_module): Use it.
25701         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25702         'foo' only if 'foo' exists.
25703         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25704         module.
25705
25706 2010-03-28  Bruno Haible  <bruno@clisp.org>
25707
25708         gnulib-tool: Add support for special categories of tests.
25709         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25710         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25711         (func_usage): Document them.
25712         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25713         inc_unportable_tests, inc_all_tests): New variables.
25714         (func_acceptable): Consider these variables.
25715         (func_modules_transitive_closure): Make it work when the 'Status' field
25716         consists of multiple words.
25717         (func_import): Store and restore the values of inc_cxx_tests,
25718         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25719         inc_all_tests in gnulib-comp.m4.
25720         (func_create_testdir): Set inc_all_tests to true.
25721         * doc/gnulib.texi (Extra tests modules): New section.
25722         Suggested by Jim Meyering.
25723
25724 2010-03-28  Bruno Haible  <bruno@clisp.org>
25725
25726         ansi-c++-opt: Allow turning off the C++ build by default.
25727         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25728         gl_CXX_CHOICE_DEFAULT_NO is defined.
25729         Requested by Eric Blake.
25730
25731 2010-03-28  Bruno Haible  <bruno@clisp.org>
25732
25733         unistd: Avoid #define replacements in C++ mode.
25734         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25735         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25736         setsockopt, shutdown, select): In C++, attach a warning to the function
25737         if possible, rather than #defining the symbol to a dysfunctional alias.
25738         Reported by John W. Eaton <jwe@gnu.org>.
25739
25740 2010-03-28  Bruno Haible  <bruno@clisp.org>
25741
25742         Fix link errors on mingw.
25743         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25744         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25745         $(LIBSOCKET).
25746         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25747         $(LIBSOCKET).
25748
25749 2010-03-28  Bruno Haible  <bruno@clisp.org>
25750             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25751
25752         lib-ignore: Determine different options for different compilers.
25753         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25754         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25755         Add comments.
25756         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25757         * NEWS: Mention the change.
25758
25759 2010-03-27  Bruno Haible  <bruno@clisp.org>
25760
25761         Remove unused GNULIB_XYZ macro definitions.
25762         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25763         * modules/fseek (configure.ac): Likewise.
25764         * modules/ioctl (configure.ac): Likewise.
25765         * modules/open (configure.ac): Likewise.
25766         * modules/stdlib-safer (configure.ac): Likewise.
25767
25768 2010-03-27  Bruno Haible  <bruno@clisp.org>
25769
25770         Add a remark about certain modules.
25771         * modules/malloc (Comment): New section.
25772         * modules/realloc (Comment): Likewise.
25773         * modules/sigpipe (Comment): Likewise.
25774
25775 2010-03-27  Bruno Haible  <bruno@clisp.org>
25776
25777         Resolve conflict between the two kinds of module indicators.
25778         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25779         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25780         * modules/canonicalize (configure.ac): Invoke
25781         gl_MODULE_INDICATOR_FOR_TESTS.
25782         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25783         GNULIB_XYZ.
25784         * tests/test-dirent-c++.cc: Likewise.
25785         * tests/test-dirent-safer.c: Likewise.
25786         * tests/test-dup2.c: Likewise.
25787         * tests/test-fchdir.c: Likewise.
25788         * tests/test-fcntl-h-c++.cc: Likewise.
25789         * tests/test-getopt.c: Likewise.
25790         * tests/test-getopt.h: Likewise.
25791         * tests/test-langinfo-c++.cc: Likewise.
25792         * tests/test-locale-c++.cc: Likewise.
25793         * tests/test-math-c++.cc: Likewise.
25794         * tests/test-pty-c++.cc: Likewise.
25795         * tests/test-search-c++.cc: Likewise.
25796         * tests/test-signal-c++.cc: Likewise.
25797         * tests/test-spawn-c++.cc: Likewise.
25798         * tests/test-stdio-c++.cc: Likewise.
25799         * tests/test-stdlib-c++.cc: Likewise.
25800         * tests/test-string-c++.cc: Likewise.
25801         * tests/test-sys_ioctl-c++.cc: Likewise.
25802         * tests/test-sys_select-c++.cc: Likewise.
25803         * tests/test-sys_socket-c++.cc: Likewise.
25804         * tests/test-sys_stat-c++.cc: Likewise.
25805         * tests/test-sys_time-c++.cc: Likewise.
25806         * tests/test-time-c++.cc: Likewise.
25807         * tests/test-unistd-c++.cc: Likewise.
25808         * tests/test-wchar-c++.cc: Likewise.
25809         * tests/uninorm/test-u8-nfc.c: Likewise.
25810         * tests/uninorm/test-u8-nfd.c: Likewise.
25811         * tests/uninorm/test-u8-nfkc.c: Likewise.
25812         * tests/uninorm/test-u8-nfkd.c: Likewise.
25813         * tests/uninorm/test-u16-nfc.c: Likewise.
25814         * tests/uninorm/test-u16-nfd.c: Likewise.
25815         * tests/uninorm/test-u16-nfkc.c: Likewise.
25816         * tests/uninorm/test-u16-nfkd.c: Likewise.
25817         * tests/uninorm/test-u32-nfc.c: Likewise.
25818         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25819         * tests/uninorm/test-u32-nfd.c: Likewise.
25820         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25821         * tests/uninorm/test-u32-nfkc.c: Likewise.
25822         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25823         * tests/uninorm/test-u32-nfkd.c: Likewise.
25824         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25825         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25826
25827 2010-03-27  Bruno Haible  <bruno@clisp.org>
25828
25829         Distinguish two kinds of module indicators.
25830         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25831         gl_MODULE_INDICATOR.
25832         (gl_MODULE_INDICATOR): New macro.
25833         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25834         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25835         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25836         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25837         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25838         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25839         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25840         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25841         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25842         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25843         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25844         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25846         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25847         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25848         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25849         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25850         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25851         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25852         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25853         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25854         * modules/cloexec (configure.ac): Likewise.
25855         * modules/getopt-gnu (configure.ac): Likewise.
25856         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25857         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25858         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25859         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25860
25861 2010-03-27  Bruno Haible  <bruno@clisp.org>
25862
25863         New module description field 'Comment'.
25864         * gnulib-tool: New option --extract-comment.
25865         (func_usage): Document it.
25866         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25867         (func_get_comment): New function.
25868         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25869
25870 2010-03-27  Bruno Haible  <bruno@clisp.org>
25871
25872         Addendum to 2010-02-07 commit.
25873         * gnulib-tool (func_usage): Document --extract-applicability option.
25874
25875 2010-03-27  Bruno Haible  <bruno@clisp.org>
25876
25877         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25878         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25879         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25880         rather than link errors.
25881
25882 2010-03-27  Bruno Haible  <bruno@clisp.org>
25883
25884         Avoid side effects from tests-related modules on the compilation of lib.
25885         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25886         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25887         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25888         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25889         macro.
25890         (func_import): Define a witness macro. Assign it a value that depends
25891         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25892         tests-related modules.
25893         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25894         Reported by Jim Meyering.
25895
25896 2010-03-27  Bruno Haible  <bruno@clisp.org>
25897
25898         Factorize common .m4 code.
25899         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25900         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25901         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25902         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25903         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25904         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25905         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25906         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25907         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25908         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25909         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25910         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25911         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25912         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25913         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25914         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25915         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25916         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25918         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25919         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25920         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25921         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25922         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25923         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25924         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25925         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25926         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25927         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25928         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25929         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25930         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25931
25932 2010-03-27  Bruno Haible  <bruno@clisp.org>
25933
25934         Fix a compilation error on Cygwin with g++ >= 4.3.
25935         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25936         if it is undefined or if we alias it to chmod.
25937         (lstat): Don't warn about the use of this function if it is undefined
25938         or if we alias it to stat.
25939         Reported by Simon Josefsson.
25940
25941 2010-03-27  Bruno Haible  <bruno@clisp.org>
25942
25943         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25944         * modules/getlogin (configure.ac): Update.
25945
25946         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25947         * modules/getlogin_r (configure.ac): Update.
25948
25949         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25951         * modules/inet_ntop (configure.ac): Update.
25952
25953         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25954         * modules/inet_pton (configure.ac): Update.
25955
25956         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25957         * modules/mbslen (configure.ac): Update.
25958
25959         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25960         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25961         * modules/forkpty (configure.ac): Update.
25962         * modules/openpty (configure.ac): Update.
25963
25964 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25965
25966         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25967         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25968
25969 2010-03-25  Eric Blake  <eblake@redhat.com>
25970
25971         maint: use pragma consistently across replacement headers
25972         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25973         * lib/dirent.in.h (system_header): Likewise.
25974         * lib/errno.in.h (system_header): Likewise.
25975         * lib/float.in.h (system_header): Likewise.
25976         * lib/getopt.in.h (system_header): Likewise.
25977         * lib/iconv.in.h (system_header): Likewise.
25978         * lib/inttypes.in.h (system_header): Likewise.
25979         * lib/langinfo.in.h (system_header): Likewise.
25980         * lib/locale.in.h (system_header): Likewise.
25981         * lib/math.in.h (system_header): Likewise.
25982         * lib/netdb.in.h (system_header): Likewise.
25983         * lib/netinet_in.in.h (system_header): Likewise.
25984         * lib/pty.in.h (system_header): Likewise.
25985         * lib/sched.in.h (system_header): Likewise.
25986         * lib/se-selinux.in.h (system_header): Likewise.
25987         * lib/search.in.h (system_header): Likewise.
25988         * lib/spawn.in.h (system_header): Likewise.
25989         * lib/stdarg.in.h (system_header): Likewise.
25990         * lib/stdint.in.h (system_header): Likewise.
25991         * lib/string.in.h (system_header): Likewise.
25992         * lib/strings.in.h (system_header): Likewise.
25993         * lib/sys_file.in.h (system_header): Likewise.
25994         * lib/sys_ioctl.in.h (system_header): Likewise.
25995         * lib/sys_socket.in.h (system_header): Likewise.
25996         * lib/sys_times.in.h (system_header): Likewise.
25997         * lib/sys_utsname.in.h (system_header): Likewise.
25998         * lib/sys_wait.in.h (system_header): Likewise.
25999         * lib/sysexits.in.h (system_header): Likewise.
26000         * lib/unistd.in.h (system_header): Likewise.
26001         * lib/wctype.in.h (system_header): Likewise.
26002
26003         arpa/inet: fix mingw compilation warning
26004         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26005         Reported by Matthew Bolte.
26006
26007 2010-03-25  Bruno Haible  <bruno@clisp.org>
26008
26009         Avoid collision between gnulib wrapper and libintl wrapper.
26010         * lib/printf.c (printf): Don't define if a printf wrapper is already
26011         defined in intl/printf.c.
26012         Reported by Michel Boaventura <michel@michelboaventura.com>.
26013
26014 2010-03-25  Bruno Haible  <bruno@clisp.org>
26015
26016         Use ANSI C.
26017         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26018
26019 2010-03-25  Bruno Haible  <bruno@clisp.org>
26020
26021         Minor formatting changes.
26022         * lib/acosl.c: Insert space before function argument list.
26023         * lib/argz.c: Likewise.
26024         * lib/asinl.c: Likewise.
26025         * lib/expl.c: Likewise.
26026         * lib/gen-uni-tables.c: Likewise.
26027         * lib/gettext.h: Likewise.
26028         * lib/glthread/lock.h: Likewise.
26029         * lib/tanl.c: Likewise.
26030         * lib/uniname/uniname.c: Likewise.
26031         * tests/test-idpriv-drop.c: Likewise.
26032         * tests/test-idpriv-droptemp.c: Likewise.
26033         * tests/test-lock.c: Likewise.
26034         * tests/test-tls.c: Likewise.
26035         * lib/argp-help.c: Insert space before function-like macro argument
26036         list.
26037         * lib/memcmp.c: Likewise.
26038         * tests/test-base64.c: Likewise.
26039         * lib/localename.c: Insert space before sizeof's argument list.
26040         * lib/safe-alloc.h: Likewise.
26041         * lib/file-set.h: Insert space before macro argument list.
26042         * tests/test-argp.c: Likewise.
26043         * lib/argp-namefrob.h: Insert space before function parameter list.
26044         * lib/getaddrinfo.c: Likewise.
26045         * lib/netdb.in.h: Likewise.
26046         * lib/parse-duration.h: Likewise.
26047         * lib/parse-duration.c: Likewise.
26048         * lib/poll.c: Likewise.
26049         * lib/select.c: Likewise.
26050         * lib/trim.h: Likewise.
26051         * tests/test-usleep.c: Likewise.
26052         * lib/ldexpl.c: Insert space before function parameter list and before
26053         function argument list.
26054         * lib/logl.c: Likewise.
26055         * lib/sqrtl.c: Likewise.
26056         * lib/trim.c: Likewise.
26057         * lib/cosl.c: Use GNU style indentation. Insert space before function
26058         argument list.
26059         * lib/sinl.c: Likewise.
26060         * lib/tsearch.c: Insert space after 'for'.
26061         Reported by Jim Meyering.
26062
26063 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26064
26065         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26066         config header before grepping, as it's not present before
26067         autoreconf/configure are run.  Reported by Simon Josefsson.
26068
26069 2010-03-23  Bruno Haible  <bruno@clisp.org>
26070
26071         pt_chown: Make it work with automake < 1.11.
26072         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26073         Reported by Simon Josefsson.
26074
26075 2010-03-23  Bruno Haible  <bruno@clisp.org>
26076
26077         pt_chown: Don't depend on GPLed modules.
26078         * lib/pt_chown.c: Don't include idpriv.h.
26079         (main): Don't drop privileges.
26080         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26081         Reported by Simon Josefsson.
26082
26083 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26084
26085         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26086         suggestions from karl@freefriends.org (Karl Berry).
26087
26088 2010-03-22  Eric Blake  <eblake@redhat.com>
26089
26090         gethostname: further tweaks
26091         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26092         are overriding gethostname.
26093         Suggested by Bruno Haible.
26094
26095 2010-03-21  Bruno Haible  <bruno@clisp.org>
26096
26097         Fix comments.
26098         * lib/forkpty.c (rpl_forkpty): Fix comment.
26099         * lib/openpty.c (rpl_openpty): Likewise.
26100         Reported by Eric Blake.
26101
26102 2010-03-22  Eric Blake  <eblake@redhat.com>
26103
26104         gethostname: fix build on mingw
26105         * lib/unistd.in.h (includes): Work around fact that mingw
26106         <winsock2.h> re-includes <unistd.h>, by avoiding any
26107         redeclarations if we are being included by <winsock2.h>.
26108         Reported by Matthias Bolte.
26109
26110 2010-03-21  Bruno Haible  <bruno@clisp.org>
26111
26112         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26113         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26114         modifications.
26115         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26116         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26117         provide the replacement.
26118         * modules/forkpty (Depends-on): Add openpty, login_tty.
26119         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26120         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26121         * doc/glibc-functions/forkpty.texi: More supported platforms.
26122         * config/srclist.txt: Add forkpty.c (commented).
26123
26124 2010-03-21  Bruno Haible  <bruno@clisp.org>
26125
26126         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26127         (Makefile.am): Verify that PTY_LIB is defined.
26128
26129         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26130
26131 2010-03-21  Bruno Haible  <bruno@clisp.org>
26132
26133         Tests for module 'login_tty'.
26134         * modules/login_tty-tests: New file.
26135         * tests/test-login_tty.c: New file.
26136
26137         New module 'login_tty'.
26138         * lib/login_tty.c: New file.
26139         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26140         * modules/login_tty: New file.
26141         * doc/glibc-functions/login_tty.texi: Mention the new module.
26142
26143 2010-03-21  Bruno Haible  <bruno@clisp.org>
26144
26145         login_tty: Documentation.
26146         * doc/glibc-functions/login_tty.texi: New file.
26147         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26148
26149 2010-03-21  Bruno Haible  <bruno@clisp.org>
26150
26151         pty: Consistent macro naming.
26152         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26153         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26154         * modules/pty (configure.ac): Update.
26155
26156 2010-03-21  Bruno Haible  <bruno@clisp.org>
26157
26158         Tests for openpty: Make stricter.
26159         * tests/test-openpty.c (main): Add test of canonical processing and
26160         erase.
26161         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26162
26163         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26164         * lib/openpty.c (openpty): New replacement function.
26165         * lib/pty.in.h: Include <termios.h>.
26166         (openpty): Update declaration. Add comments.
26167         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26168         is not declared, arrange to provide the replacement. Check for _getpty
26169         and posix_openpt.
26170         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26171         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26172         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26173         * modules/pty-tests (test_pty_c___LDADD): New variable.
26174         * doc/glibc-functions/openpty.texi: More supported platforms.
26175
26176 2010-03-21  Bruno Haible  <bruno@clisp.org>
26177
26178         setenv: Tweaks.
26179         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26180         the test program.
26181         * doc/posix-functions/setenv.texi: Update platforms list.
26182
26183 2010-03-21  Bruno Haible  <bruno@clisp.org>
26184
26185         New module 'unlockpt'.
26186         * lib/unlockpt.c: New file, from glibc with modifications.
26187         * m4/unlockpt.m4: New file.
26188         * modules/unlockpt: New file.
26189         * lib/stdlib.in.h (unlockpt): New declaration.
26190         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26191         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26192         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26193         HAVE_UNLOCKPT.
26194         * doc/posix-functions/unlockpt.texi: Mention the new module.
26195         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26196         * config/srclist.txt: Add unlockpt.c (commented).
26197
26198 2010-03-21  Jim Meyering  <meyering@redhat.com>
26199
26200         maint.mk: prohibit inclusion of "intprops.h" without use
26201         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26202
26203 2010-03-21  Bruno Haible  <bruno@clisp.org>
26204
26205         New module 'grantpt'.
26206         * lib/grantpt.c: New file, from glibc with modifications.
26207         * m4/grantpt.m4: New file.
26208         * modules/grantpt: New file.
26209         * lib/stdlib.in.h (grantpt): New declaration.
26210         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26211         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26212         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26213         HAVE_GRANTPT.
26214         * doc/posix-functions/grantpt.texi: Mention the new module.
26215         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26216         * config/srclist.txt: Add grantpt.c (commented).
26217
26218 2010-03-21  Bruno Haible  <bruno@clisp.org>
26219
26220         New module 'pt_chown'.
26221         * lib/pt_chown.c: New file, from glibc with modifications.
26222         * lib/pty-private.h: New file, from glibc with modifications.
26223         * modules/pt_chown: New file.
26224         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26225
26226 2010-03-21  Bruno Haible  <bruno@clisp.org>
26227
26228         Tests for module 'ptsname'.
26229         * modules/ptsname-tests: New file.
26230         * tests/test-ptsname.c: New file.
26231
26232         New module 'ptsname'.
26233         * lib/ptsname.c: New file, from glibc with modifications.
26234         * m4/ptsname.m4: New file.
26235         * modules/ptsname: New file.
26236         * lib/stdlib.in.h (ptsname): New declaration.
26237         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26238         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26239         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26240         HAVE_PTSNAME.
26241         * doc/posix-functions/ptsname.texi: Mention the new module.
26242         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26243         * config/srclist.txt: Add ptsname.c (commented).
26244
26245 2010-03-21  Bruno Haible  <bruno@clisp.org>
26246
26247         Tests for module 'ttyname_r'.
26248         * modules/ttyname_r-tests: New file.
26249         * tests/test-ttyname_r.c: New file.
26250
26251         New module 'ttyname_r'.
26252         * lib/ttyname_r.c: New file.
26253         * m4/ttyname_r.m4: New file.
26254         * modules/ttyname_r: New file.
26255         * lib/unistd.in.h (ttyname_r): New declaration.
26256         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26257         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26258         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26259         HAVE_TTYNAME_R.
26260         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26261         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26262
26263 2010-03-20  Bruno Haible  <bruno@clisp.org>
26264
26265         signal: Undefine macro definitions in C++ mode.
26266         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26267         sigfillset): Undefine macro definitions from the system header in C++
26268         mode.
26269         Reported by John W. Eaton <jwe@gnu.org>.
26270
26271 2010-03-20  Bruno Haible  <bruno@clisp.org>
26272
26273         Ensure no #include statements inside extern "C" { ... }.
26274         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26275         contain #include statements.
26276         * lib/time.in.h: Likewise.
26277
26278 2010-03-20  Bruno Haible  <bruno@clisp.org>
26279
26280         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26281         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26282         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26283         Reported by John W. Eaton <jwe@gnu.org>.
26284
26285 2010-03-20  Bruno Haible  <bruno@clisp.org>
26286
26287         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26288         Reported by Jim Meyering.
26289
26290 2010-03-20  Bruno Haible  <bruno@clisp.org>
26291
26292         pipe: Set errno upon failure.
26293         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26294         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26295         errno value in error message.
26296
26297 2010-03-20  Bruno Haible  <bruno@clisp.org>
26298             Jim Meyering  <meyering@redhat.com>
26299
26300         lchown: Avoid "unused variable" warning.
26301         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26302
26303 2010-03-20  Bruno Haible  <bruno@clisp.org>
26304
26305         Work around unlink() bug on MacOS X 10.5.6.
26306         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26307         attempting to unlink a parent directory.
26308         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26309         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26310         activate for the replacement function.
26311         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26312
26313 2010-03-20  Bruno Haible  <bruno@clisp.org>
26314
26315         Fix link errors on Solaris 8.
26316         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26317         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26318
26319 2010-03-19  Jim Meyering  <meyering@redhat.com>
26320
26321         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26322         The _LIBC implementation of build_range_exp correctly honors the
26323         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26324         However, the non-_LIBC implementation would ignore that syntax-bit
26325         flag and return REG_ERANGE unconditionally.
26326         This change makes it honor that flag.
26327         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26328         Make two pointer parameters "const".
26329         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26330         (parse_bracket_exp): Update caller.
26331
26332         regex.m4: correct the reversed range endpoint ([b-a]) test
26333         * m4/regex.m4: When requiring that [b-a] evoke failure,
26334         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26335         test pass once again for x86-based systems.
26336
26337 2010-03-19  Bruno Haible  <bruno@clisp.org>
26338
26339         scandir: Fix link error on Solaris 8.
26340         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26341         macros.
26342
26343 2010-03-19  Bruno Haible  <bruno@clisp.org>
26344
26345         getusershell: Fix documentation.
26346         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26347         module.
26348         * doc/glibc-functions/setusershell.texi: Likewise.
26349
26350         getusershell: Provide declaration, missing on Solaris 9.
26351         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26352         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26353         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26354         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26356         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26357         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26358         HAVE_GETUSERSHELL.
26359         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26360
26361 2010-03-19  Bruno Haible  <bruno@clisp.org>
26362
26363         wctype: Provide iswblank function.
26364         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26365         exists and is fine.
26366         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26367         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26368         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26369         * doc/posix-functions/iswblank.texi: Update.
26370
26371 2010-03-19  Bruno Haible  <bruno@clisp.org>
26372
26373         Tests of module 'pty' in C++ mode.
26374         * modules/pty-tests: New file.
26375         * tests/test-pty-c++.cc: New file.
26376         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26377
26378 2010-03-19  Eric Blake  <eblake@redhat.com>
26379
26380         logb: fix documentation
26381         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26382         1.5 declaration bug.
26383
26384         forkpty, openpty: prefer glibc's const-safe prototype
26385         * lib/forkpty.c (rpl_forkpty): New file.
26386         * lib/openpty.c (rpl_openpty): Likewise.
26387         * modules/forkpty (Files): Distribute it.
26388         * modules/openpty (Files): Likewise.
26389         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26390         check...
26391         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26392         replacement for for non-const BSD signature.
26393         * modules/pty (Makefile.am): Substitute witnesses.
26394         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26395         * tests/test-forkpty.c: Update signature check.
26396         * tests/test-openpty.c: Likewise.
26397         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26398         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26399
26400         forkpty, openpty: split functions into new modules
26401         * modules/pty (Makefile.am): Substitute new witnesses.
26402         (Libraries): Move library detection...
26403         * modules/forkpty: ...into new module.
26404         * modules/openpty: Another new module.
26405         * modules/pty-tests: Rename and split...
26406         * modules/forkpty-tests: ...to this...
26407         * modules/openpty-tests: ...and this.
26408         * tests/test-pty.c: Rename and split...
26409         * tests/test-forkpty.c: ...to this...
26410         * tests/test-openpty.c: ...and this.
26411         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26412         (gl_PTY): Split library searching...
26413         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26414         (gl_FORKPTY, gl_OPENPTY): New macros.
26415         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26416         * NEWS: Mention the split.
26417         * MODULES.html.sh (Misc): Document the modules.
26418         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26419         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26420
26421         pty: improve replacement header
26422         * lib/pty.in.h: New file.
26423         * modules/pty (Files): Ship it.
26424         (Makefile.am): Always build replacement.
26425         * m4/pty.m4: Rename...
26426         * m4/pty_h.m4: ...to this.
26427         (gl_PTY): Modernize setting of witness macros; update check of
26428         forkpty to take proper advantage of cache.
26429         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26430
26431         getopt: avoid compiler warning
26432         * lib/getopt.c (attribute_hidden): Remove unused macro.
26433
26434 2010-03-18  Bruno Haible  <bruno@clisp.org>
26435
26436         Fix link errors on Solaris 8.
26437         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26438         * modules/search-tests (test_search_c___LDADD): Likewise.
26439         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26440         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26441         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26442         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26443         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26444         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26445         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26446
26447 2010-03-18  Bruno Haible  <bruno@clisp.org>
26448
26449         Fix bug introduced on 2010-03-14.
26450         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26451         (gl_SPAWN_H): Require it.
26452         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26453         Reported by Simon Josefsson.
26454
26455 2010-03-18  Bruno Haible  <bruno@clisp.org>
26456
26457         Fix typo introduced on 2009-12-31.
26458         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26459         posix_spawn_file_actions_adddup2.
26460
26461 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26462         and Eric Blake  <eblake@redhat.com>
26463
26464         test-vc-list-files-git: make more robust
26465         * tests/test-vc-list-files-git.sh: Unset problematic environment
26466         variables.  Chain commands together.
26467
26468 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26469
26470         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26471         `AC_CHECK_DECL' invocation.
26472
26473 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26474
26475         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26476         appears before executable statements. Suggested by Petr Sumbera
26477         <Petr.Sumbera@Sun.COM>.
26478
26479 2010-03-14  Bruno Haible  <bruno@clisp.org>
26480
26481         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26482         portability problems. Instead use a simpler test.
26483         (main): Check that invalid arguments are rejected only on Linux.
26484
26485 2010-03-14  Bruno Haible  <bruno@clisp.org>
26486
26487         Fix bug introduced on 2009-12-31.
26488         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26489         gl_PREREQ_SYS_H_WINSOCK2 always.
26490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26491         SYS_SOCKET_H variable.
26492         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26493         Update comments.
26494         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26495         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26496         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26497         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26498         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26499
26500 2010-03-14  Bruno Haible  <bruno@clisp.org>
26501
26502         Fix values returned by sinl, cosl.
26503         * lib/trigl.h: Add specification comments.
26504         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26505         that combines the values from the precomputed table with the values of
26506         the Chebyshev polynomials.
26507
26508 2010-03-14  Bruno Haible  <bruno@clisp.org>
26509
26510         Fix compilation error when modules 'posix_spawn[p]' are not used.
26511         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26512         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26513
26514 2010-03-14  Bruno Haible  <bruno@clisp.org>
26515
26516         Fix compilation error on mingw when module 'time_r' is not used.
26517         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26518         is 1.
26519         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26520         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26521         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26522         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26523
26524 2010-03-14  Bruno Haible  <bruno@clisp.org>
26525
26526         Fix compilation error with Sun C.
26527         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26528         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26529         instead of GCC specific ULONG_LONG_MAX.
26530         * lib/xstrtoll.c: Likewise.
26531         * lib/xstrtoull.c: Likewise.
26532
26533 2010-03-13  Bruno Haible  <bruno@clisp.org>
26534
26535         Allow the user to disable C++ code and tests.
26536         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26537         (gl_PROG_ANSI_CXX): Require it.
26538
26539 2010-03-13  Bruno Haible  <bruno@clisp.org>
26540
26541         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26542         cases.
26543
26544 2010-03-13  Bruno Haible  <bruno@clisp.org>
26545
26546         Test that gnulib does not break the standard C++ headers.
26547         * tests/test-locale-c++2.cc: New file.
26548         * modules/locale-tests (Files): Add it.
26549         (Makefile.am): Compile it for test-locale-c++.
26550         * tests/test-math-c++2.cc: New file.
26551         * modules/math-tests (Files): Add it.
26552         (Makefile.am): Compile it for test-math-c++.
26553         * tests/test-signal-c++2.cc: New file.
26554         * modules/signal-tests (Files): Add it.
26555         (Makefile.am): Compile it for test-signal-c++.
26556         * tests/test-stdio-c++2.cc: New file.
26557         * modules/stdio-tests (Files): Add it.
26558         (Makefile.am): Compile it for test-stdio-c++.
26559         * tests/test-stdlib-c++2.cc: New file.
26560         * modules/stdlib-tests (Files): Add it.
26561         (Makefile.am): Compile it for test-stdlib-c++.
26562         * tests/test-string-c++2.cc: New file.
26563         * modules/string-tests (Files): Add it.
26564         (Makefile.am): Compile it for test-string-c++.
26565         * tests/test-time-c++2.cc: New file.
26566         * modules/time-tests (Files): Add it.
26567         (Makefile.am): Compile it for test-time-c++.
26568         Reported by John W. Eaton <jwe@gnu.org>.
26569
26570 2010-03-13  Bruno Haible  <bruno@clisp.org>
26571
26572         * gnulib-tool (func_usage): Clarify which options are available for
26573         --create-testdir and --create-megatestdir.
26574
26575 2010-03-13  Bruno Haible  <bruno@clisp.org>
26576
26577         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26578         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26579         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26580         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26581         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26582         when appropriate.
26583         Reported by Jim Meyering.
26584
26585 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26586
26587         * gnulib-tool (func_import): Explain origin of code.
26588
26589 2010-03-12  Bruno Haible  <bruno@clisp.org>
26590
26591         Fix problem with automake's definition of CXXLINK.
26592         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26593         Reported by Simon Josefsson and Ludovic Courtès.
26594
26595 2010-03-12  Bruno Haible  <bruno@clisp.org>
26596
26597         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26598         stable releases.
26599
26600 2010-03-11  Bruno Haible  <bruno@clisp.org>
26601
26602         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26603         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26604         whether the system provides one variant or multiple variants of the
26605         function.
26606         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26607         C++ compilers.
26608         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26609         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26610         Reported by Jim Meyering.
26611
26612 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26613
26614         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26615
26616 2010-03-08  Bruno Haible  <bruno@clisp.org>
26617
26618         gnulib-tool: Add support for --libtool in --create-testdir.
26619         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26620         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26621
26622 2010-03-08  Eric Blake  <eblake@redhat.com>
26623
26624         gnulib-tool.texi: mention possibility of git submodule
26625         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26626         submodules.
26627         * doc/.gitignore: Ignore another generated file.
26628
26629 2010-03-08  Karl Berry  <karl@gnu.org>
26630
26631         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26632         of committing gnulib files while skipping others.
26633
26634 2010-03-07  Bruno Haible  <bruno@clisp.org>
26635
26636         Tests of module 'wctype' in C++ mode.
26637         * tests/test-wctype-c++.cc: New file.
26638         * modules/wctype-tests (Files): Add it and tests/signature.h.
26639         (Depends-on): Add ansi-c++-opt.
26640         (Makefile.am): Arrange to compile and run test-wctype-c++.
26641
26642         Tests of module 'wchar' in C++ mode.
26643         * tests/test-wchar-c++.cc: New file.
26644         * modules/wchar-tests (Files): Add it and tests/signature.h.
26645         (Depends-on): Add ansi-c++-opt.
26646         (Makefile.am): Arrange to compile and run test-wchar-c++.
26647         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26648         gl_MODULE_INDICATOR.
26649
26650         Tests of module 'unistd' in C++ mode.
26651         * tests/test-unistd-c++.cc: New file.
26652         * modules/unistd-tests (Files): Add it and tests/signature.h.
26653         (Depends-on): Add ansi-c++-opt.
26654         (Makefile.am): Arrange to compile and run test-unistd-c++.
26655         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26656         gl_MODULE_INDICATOR.
26657
26658         Tests of module 'time' in C++ mode.
26659         * tests/test-time-c++.cc: New file.
26660         * modules/time-tests (Files): Add it and tests/signature.h.
26661         (Depends-on): Add ansi-c++-opt.
26662         (Makefile.am): Arrange to compile and run test-time-c++.
26663         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26664
26665         Tests of module 'sys_time' in C++ mode.
26666         * tests/test-sys_time-c++.cc: New file.
26667         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26668         (Depends-on): Add ansi-c++-opt.
26669         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26670         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26671         gl_MODULE_INDICATOR.
26672
26673         Tests of module 'sys_stat' in C++ mode.
26674         * tests/test-sys_stat-c++.cc: New file.
26675         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26676         (Depends-on): Add ansi-c++-opt.
26677         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26678         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26679         gl_MODULE_INDICATOR.
26680
26681         Tests of module 'sys_socket' in C++ mode.
26682         * tests/test-sys_socket-c++.cc: New file.
26683         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26684         (Depends-on): Add ansi-c++-opt.
26685         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26686         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26687         gl_MODULE_INDICATOR.
26688
26689         Tests of module 'sys_select' in C++ mode.
26690         * tests/test-sys_select-c++.cc: New file.
26691         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26692         (Depends-on): Add ansi-c++-opt.
26693         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26694         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26695         gl_MODULE_INDICATOR.
26696
26697         Tests of module 'sys_ioctl' in C++ mode.
26698         * tests/test-sys_ioctl-c++.cc: New file.
26699         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26700         (Depends-on): Add ansi-c++-opt.
26701         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26703         gl_MODULE_INDICATOR.
26704
26705         Tests of module 'string' in C++ mode.
26706         * tests/test-string-c++.cc: New file.
26707         * modules/string-tests (Files): Add it and tests/signature.h.
26708         (Depends-on): Add ansi-c++-opt.
26709         (Makefile.am): Arrange to compile and run test-string-c++.
26710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26711         gl_MODULE_INDICATOR.
26712
26713         Tests of module 'stdlib' in C++ mode.
26714         * tests/test-stdlib-c++.cc: New file.
26715         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26716         (Depends-on): Add ansi-c++-opt.
26717         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26718         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26719         gl_MODULE_INDICATOR.
26720
26721         Tests of module 'stdio' in C++ mode.
26722         * tests/test-stdio-c++.cc: New file.
26723         * modules/stdio-tests (Files): Add it and tests/signature.h.
26724         (Depends-on): Add ansi-c++-opt.
26725         (Makefile.am): Arrange to compile and run test-stdio-c++.
26726         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26727         gl_MODULE_INDICATOR.
26728
26729         Tests of module 'spawn' in C++ mode.
26730         * tests/test-spawn-c++.cc: New file.
26731         * modules/spawn-tests (Files): Add it and tests/signature.h.
26732         (Depends-on): Add ansi-c++-opt.
26733         (Makefile.am): Arrange to compile and run test-spawn-c++.
26734         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26735         gl_MODULE_INDICATOR.
26736
26737         Tests of module 'signal' in C++ mode.
26738         * tests/test-signal-c++.cc: New file.
26739         * modules/signal-tests (Files): Add it and tests/signature.h.
26740         (Depends-on): Add ansi-c++-opt.
26741         (Makefile.am): Arrange to compile and run test-signal-c++.
26742         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26743         gl_MODULE_INDICATOR.
26744
26745         Tests of module 'search' in C++ mode.
26746         * tests/test-search-c++.cc: New file.
26747         * modules/search-tests (Files): Add it and tests/signature.h.
26748         (Depends-on): Add ansi-c++-opt.
26749         (Makefile.am): Arrange to compile and run test-search-c++.
26750         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26751         gl_MODULE_INDICATOR.
26752
26753         Tests of module 'math' in C++ mode.
26754         * tests/test-math-c++.cc: New file.
26755         * modules/math-tests (Files): Add it and tests/signature.h.
26756         (Depends-on): Add ansi-c++-opt.
26757         (Makefile.am): Arrange to compile and run test-math-c++.
26758         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26759
26760         Tests of module 'locale' in C++ mode.
26761         * tests/test-locale-c++.cc: New file.
26762         * modules/locale-tests (Files): Add it and tests/signature.h.
26763         (Depends-on): Add ansi-c++-opt.
26764         (Makefile.am): Arrange to compile and run test-locale-c++.
26765         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26766         gl_MODULE_INDICATOR.
26767
26768         Tests of module 'langinfo' in C++ mode.
26769         * tests/test-langinfo-c++.cc: New file.
26770         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26771         (Depends-on): Add ansi-c++-opt.
26772         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26773         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26774         gl_MODULE_INDICATOR.
26775
26776         Tests of module 'iconv-h' in C++ mode.
26777         * tests/test-iconv-h-c++.cc: New file.
26778         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26779         (Depends-on): Add ansi-c++-opt.
26780         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26781
26782         Tests of module 'glob' in C++ mode.
26783         * tests/test-glob-c++.cc: New file.
26784         * modules/glob-tests (Files): Add it.
26785         (Depends-on): Add ansi-c++-opt.
26786         (Makefile.am): Arrange to compile and run test-glob-c++.
26787
26788         Tests of module 'fcntl-h' in C++ mode.
26789         * tests/test-fcntl-h-c++.cc: New file.
26790         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26791         (Depends-on): Add ansi-c++-opt.
26792         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26793         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26794         gl_MODULE_INDICATOR.
26795
26796         Tests of module 'dirent' in C++ mode.
26797         * tests/test-dirent-c++.cc: New file.
26798         * modules/dirent-tests (Files): Add it and tests/signature.h.
26799         (Depends-on): Add ansi-c++-opt.
26800         (Makefile.am): Arrange to compile and run test-dirent-c++.
26801         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26802         gl_MODULE_INDICATOR.
26803
26804         New module 'ansi-c++-opt'.
26805         * modules/ansi-c++-opt: New file.
26806         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26807
26808         Document C++ namespace mode.
26809         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26810
26811         wctype: Avoid #define replacements in C++ mode.
26812         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26813         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26814         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26815         In C++, define a namespaced alias symbol.
26816         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26817         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26818         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26819         rule.
26820
26821         wchar: Avoid #define replacements in C++ mode.
26822         * lib/wchar.in.h: Include c++defs.h.
26823         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26824         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26825         symbol.
26826         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26827         * modules/wchar (Depends-on): Add c++defs.
26828         (Makefile.am): Update wchar.h rule.
26829
26830         unistd: Avoid #define replacements in C++ mode.
26831         * lib/unistd.in.h: Include c++defs.h.
26832         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26833         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26834         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26835         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26836         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26837         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26838         symbol.
26839         (environ): Update.
26840         * modules/unistd (Depends-on): Add c++defs.
26841         (Makefile.am): Update unistd.h rule.
26842
26843         time: Avoid #define replacements in C++ mode.
26844         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26845         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26846         define a namespaced alias symbol.
26847         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26848         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26849         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26850         * modules/time (Depends-on): Add c++defs, warn-on-use.
26851         (Makefile.am): Update time.h rule.
26852         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26853         * modules/nanosleep (configure.ac): Likewise.
26854         * modules/strptime (configure.ac): Likewise.
26855         * modules/timegm (configure.ac): Likewise.
26856
26857         sys_time: Avoid #define replacements in C++ mode.
26858         * lib/sys_time.in.h: Include c++defs.h.
26859         (gettimeofday): In C++, define a namespaced alias symbol.
26860         * modules/sys_time (Depends-on): Add c++defs.
26861         (Makefile.am): Update sys/time.h rule.
26862
26863         sys_stat: Avoid #define replacements in C++ mode.
26864         * lib/sys_stat.in.h: Include c++defs.h.
26865         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26866         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26867         namespaced alias symbol.
26868         In C++, define a namespaced alias symbol.
26869         * modules/sys_stat (Depends-on): Add c++defs.
26870         (Makefile.am): Update sys/stat.h rule.
26871
26872         sys_socket: Avoid #define replacements in C++ mode.
26873         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26874         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26875         definitions also when the system has a <sys/socket.h>.
26876         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26877         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26878         In C++, define a namespaced alias symbol.
26879         * modules/sys_socket (Depends-on): Add c++defs.
26880         (Makefile.am): Update sys/socket.h rule.
26881
26882         sys_select: Avoid #define replacements in C++ mode.
26883         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26884         definitions also when the system has a <sys/select.h>.
26885         (select): In C++, define a namespaced alias symbol.
26886         * modules/sys_select (Depends-on): Add c++defs.
26887         (Makefile.am): Update sys/select.h rule.
26888
26889         sys_ioctl: Avoid #define replacements in C++ mode.
26890         * lib/sys_ioctl.in.h: Include c++defs.h.
26891         (ioctl): In C++, define a namespaced alias symbol.
26892         * modules/sys_ioctl (Depends-on): Add c++defs.
26893         (Makefile.am): Update sys/ioctl.h rule.
26894
26895         string: Avoid #define replacements in C++ mode.
26896         * lib/string.in.h: Include c++defs.h.
26897         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26898         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26899         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26900         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26901         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26902         * modules/string (Depends-on): Add c++defs.
26903         (Makefile.am): Update string.h rule.
26904
26905         stdlib: Avoid #define replacements in C++ mode.
26906         * lib/stdlib.in.h: Include c++defs.h.
26907         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26908         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26909         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26910         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26911         symbol.
26912         * modules/stdlib (Depends-on): Add c++defs.
26913         (Makefile.am): Update stdlib.h rule.
26914
26915         stdio: Avoid #define replacements in C++ mode.
26916         * lib/stdio.in.h: Include c++defs.h.
26917         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26918         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26919         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26920         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26921         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26922         namespaced alias symbol.
26923         * modules/stdio (Depends-on): Add c++defs.
26924         (Makefile.am): Update stdio.h rule.
26925
26926         spawn: Avoid #define replacements in C++ mode.
26927         * lib/spawn.in.h: Include c++defs.h.
26928         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26929         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26930         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26931         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26932         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26933         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26934         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26935         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26936         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26937         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26938         In C++, define a namespaced alias symbol.
26939         * modules/spawn (Depends-on): Add c++defs.
26940         (Makefile.am): Update spawn.h rule.
26941
26942         signal: Avoid #define replacements in C++ mode.
26943         * lib/signal.in.h: Include c++defs.h.
26944         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26945         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26946         namespaced alias symbol.
26947         * modules/signal (Depends-on): Add c++defs.
26948         (Makefile.am): Update signal.h rule.
26949
26950         search: Avoid #define replacements in C++ mode.
26951         * lib/search.in.h: Include c++defs.h.
26952         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26953         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26954         symbol.
26955         * modules/search (Depends-on): Add c++defs.
26956         (Makefile.am): Update search.h rule.
26957
26958         math: Avoid #define replacements in C++ mode.
26959         * lib/math.in.h: Include c++defs.h.
26960         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26961         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26962         trunc, truncl): In C++, define a namespaced alias symbol.
26963         * modules/math (Depends-on): Add c++defs.
26964         (Makefile.am): Update math.h rule.
26965
26966         locale: Avoid #define replacements in C++ mode.
26967         * lib/locale.in.h: Include c++defs.h.
26968         (duplocale): In C++, define a namespaced alias symbol.
26969         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26970         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26971         * modules/locale (Depends-on): Add c++defs.
26972         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26973
26974         langinfo: Avoid #define replacements in C++ mode.
26975         * lib/langinfo.in.h: Include c++defs.h.
26976         (nl_langinfo): In C++, define a namespaced alias symbol.
26977         * modules/langinfo (Depends-on): Add c++defs.
26978         (Makefile.am): Update langinfo.h rule.
26979
26980         iconv-h: Avoid #define replacements in C++ mode.
26981         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26982         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26983         symbol.
26984         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26985         whenever iconv is present.
26986         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26987         (Makefile.am): Update iconv.h rule.
26988
26989         glob: Avoid #define replacements in C++ mode.
26990         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26991         (_gl_glob_errfunc_fn): New type.
26992         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26993         symbol.
26994         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26995         (Makefile.am): Update glob.h rule.
26996
26997         fcntl-h: Avoid #define replacements in C++ mode.
26998         * lib/fcntl.in.h: Include c++defs.h.
26999         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27000         * modules/fcntl-h (Depends-on): Add c++defs.
27001         (Makefile.am): Update fcntl.h rule.
27002
27003         dirent: Avoid #define replacements in C++ mode.
27004         * lib/dirent.in.h: Include c++defs.h.
27005         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27006         namespaced alias symbol.
27007         (dirfd): Update declaration.
27008         * modules/dirent (Depends-on): Add c++defs.
27009         (Makefile.am): Update dirent.h rule.
27010
27011         ctype: Make it usable in C++ code.
27012         * lib/ctype.in.h: Include c++defs.h.
27013         (isblank): Declare as extern "C".
27014         * modules/ctype (Depends-on): Add c++defs.
27015         (Makefile.am): Update ctype.h rule.
27016
27017         New module 'c++defs'.
27018         * modules/c++defs: New file.
27019         * build-aux/c++defs.h: New file.
27020         Reported by John W. Eaton <jwe@gnu.org>.
27021
27022 2010-03-07  Bruno Haible  <bruno@clisp.org>
27023
27024         logb: Provide missing declaration for Cygwin.
27025         * lib/math.in.h (logb): New declaration.
27026         * m4/logb.m4: New file.
27027         * modules/logb (Files): Add m4/logb.m4.
27028         (Depends-on): Add math.
27029         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27030         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27032         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27033         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27034
27035 2010-03-07  Bruno Haible  <bruno@clisp.org>
27036
27037         Fix test-cond link error.
27038         * tests/test-cond.c: Include <stdio.h>.
27039
27040 2010-03-07  Bruno Haible  <bruno@clisp.org>
27041
27042         Fix test-dirent-safer link error.
27043         * modules/dirent-safer-tests (Makefile.am): Define
27044         test_dirent_safer_LDADD.
27045
27046 2010-03-07  Bruno Haible  <bruno@clisp.org>
27047
27048         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27049         among default module list.
27050
27051 2010-03-07  Bruno Haible  <bruno@clisp.org>
27052
27053         Fix link error on platforms with GNU libiconv.
27054         * modules/unistr/u8-strcoll-tests (Makefile): Define
27055         test_u8_strcoll_LDADD.
27056         * modules/unistr/u16-strcoll-tests (Makefile): Define
27057         test_u16_strcoll_LDADD.
27058         * modules/unistr/u32-strcoll-tests (Makefile): Define
27059         test_u32_strcoll_LDADD.
27060
27061 2010-03-07  Bruno Haible  <bruno@clisp.org>
27062
27063         Use POSIX declarations for socket functions.
27064         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27065         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27066         rpl_sendto): Change declaration to match POSIX.
27067         * lib/connect.c (rpl_connect): Likewise.
27068         * lib/accept.c (rpl_accept): Likewise.
27069         * lib/bind.c (rpl_bind): Likewise.
27070         * lib/getpeername.c (rpl_getpeername): Likewise.
27071         * lib/getsockname.c (rpl_getsockname): Likewise.
27072         * lib/recv.c (rpl_recv): Likewise.
27073         * lib/send.c (rpl_send): Likewise.
27074         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27075         * lib/sendto.c (rpl_sendto): Likewise.
27076
27077 2010-03-06  Bruno Haible  <bruno@clisp.org>
27078
27079         Clarify access, euidaccess, faccessat.
27080         * doc/posix-functions/faccessat.texi: Mention security problem under
27081         "Other problems", not "Portability problems".
27082         * doc/posix-functions/access.texi: Likewise. Mention a related security
27083         problem.
27084         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27085         * lib/euidaccess.c: Add comments about platforms.
27086         * lib/unistd.in.h (access, euidaccess): Add warnings.
27087
27088 2010-03-07  Bruno Haible  <bruno@clisp.org>
27089
27090         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27091         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27092         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27093         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27094         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27095         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27096         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27097         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27098         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27099         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27100         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27101         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27102         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27103         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27104         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27105         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27106         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27107         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27108         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27109         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27110         Likewise.
27111         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27112         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27113         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27114         Likewise.
27115         * tests/test-spawn.c (main): Make it work when
27116         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27117
27118 2010-03-07  Bruno Haible  <bruno@clisp.org>
27119
27120         Fix incorrect Makefile.am generation in German locale.
27121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27122         Execute sed command with character range in C locale.
27123
27124 2010-03-06  Bruno Haible  <bruno@clisp.org>
27125
27126         Tests for module 'iconv-h'.
27127         * modules/iconv-h-tests: New file.
27128         * tests/test-iconv-h.c: New file.
27129
27130         New module 'iconv-h'.
27131         * modules/iconv-h: New file.
27132         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27133         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27134         (configure.ac): Remove gl_ICONV_H.
27135         (Makefile.am): Remove rule for iconv.h.
27136
27137 2010-03-06  Bruno Haible  <bruno@clisp.org>
27138
27139         More consistent naming of *.m4 files.
27140         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27141         * modules/wctype (Files): Update.
27142
27143         More consistent naming of *.m4 files.
27144         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27145         * modules/wchar (Files): Update.
27146
27147 2010-03-06  Jim Meyering  <meyering@redhat.com>
27148
27149         euidaccess: relax license to LGPLv2+
27150         * modules/euidaccess (License): Relax to LGPLv2+.
27151
27152 2010-03-06  Bruno Haible  <bruno@clisp.org>
27153
27154         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27155         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27156         (Makefile.am): Augment lib_SOURCES instead.
27157
27158 2010-03-04  Jim Meyering  <meyering@redhat.com>
27159
27160         utime: remove obsolete module
27161         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27162         unnecessary for years, and has been marked as obsolete for 10 months.
27163         * modules/utime: Remove file.
27164         * lib/utime.c: Remove file.
27165         * m4/utime.m4: Remove file.
27166         * m4/utimes-null.m4: Remove file.
27167         * doc/posix-functions/utime.texi (utime): Remove reference to
27168         the module.  Move the sole "fixed by gnulib" item into the
27169         "problems not fixed by Gnulib" list.
27170         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27171
27172 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27173
27174         * modules/exit (License): Relax license to LGPLv2+.
27175         (Status): Mark as obsolete.
27176         * NEWS: Mention deprecated 'exit' module.
27177         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27178         of now obsolete 'exit'.
27179
27180 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27181
27182         fts-lgpl: remove unused module
27183         * modules/fts-lgpl: Remove.
27184         * MODULES.html.sh (func_all_modules): Adjust.
27185         * check-module (find_included_lib_files): Adjust.
27186         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27187
27188 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27189
27190         copy-acl: enhance Solaris ACL error handling
27191         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27192         * lib/set-mode-acl.c (qset_acl): Likewise.
27193
27194 2010-03-02  Bruno Haible  <bruno@clisp.org>
27195
27196         spawn: Don't override the system defined values on FreeBSD 8.
27197         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27198         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27199         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27200         if HAVE_POSIX_SPAWN is 1.
27201         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27202
27203 2010-03-01  Bruno Haible  <bruno@clisp.org>
27204
27205         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27206         regarding Automake.
27207
27208 2010-02-25  Bruno Haible  <bruno@clisp.org>
27209
27210         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27211         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27212         setting, not afterwards.
27213         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27214
27215 2010-02-24  Eric Blake  <eblake@redhat.com>
27216
27217         bootstrap, git-version-gen: use timestamp
27218         * build-aux/git-version-gen (scriptversion): Force UTC.
27219         * build-aux/bootstrap (scriptversion): New variable.
27220
27221         bootstrap: allow older git
27222         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27223         older than 1.6.4.  Requested by the libvirt project.
27224
27225 2010-02-23  Eric Blake  <eblake@redhat.com>
27226
27227         warn-on-use: work with old autoconf
27228         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27229         AS_VAR semantics of autoconf 2.60.
27230         Reported by Bruno Haible.
27231
27232         bootstrap: improve some comments
27233         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27234         clarification comments.
27235
27236         gettimeofday: provide correct function
27237         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27238         when replacement is declared, otherwise provide gettimeofday.
27239         Reported by Michael Goffioul.
27240
27241 2010-02-23  Jim Meyering  <meyering@redhat.com>
27242
27243         lib-ignore: relax license to "unlimited", not LGPLv2+
27244         * modules/lib-ignore (License): Relax to "unlimited".
27245
27246 2010-02-23  Jim Meyering  <meyering@redhat.com>
27247
27248         lib-ignore: relax license to LGPLv2+
27249         * modules/lib-ignore (License): Relax to LGPLv2+.
27250
27251 2010-02-22  Eric Blake  <eblake@redhat.com>
27252
27253         lseek: avoid bash 3.2 broken pipe bug
27254         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27255         warning from bash 3.2.
27256         Reported by Ben Pfaff, with analysis from Bruno Haible.
27257
27258         bootstrap: support non-FSF copyright holder
27259         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27260         bootstrap.conf override of COPYRIGHT_HOLDER.
27261         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27262
27263         bootstrap: interoperate with gettext 0.14.1
27264         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27265
27266         bootstrap: allow for alternate submodule location
27267         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27268         hardcoding submodule location.
27269         (gnulib_mk): Allow direct use of Makefile.am.
27270
27271         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27272         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27273         rather than reconfiguring where the submodule points.
27274
27275         gettimeofday: restore support for platforms that lack function
27276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27277         replacement if function is missing.
27278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27279         * modules/sys_time (Makefile.am): Substitute it.
27280         * lib/sys_time.in.h (gettimeofday): Check it.
27281         Reported by Michael Goffioul.
27282
27283 2010-02-21  Bruno Haible  <bruno@clisp.org>
27284
27285         * lib/stdio.in.h (obstack_printf): Fix typo.
27286
27287 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27288
27289         vc-list-files: use bzr ls's -R option
27290         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27291         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27292
27293 2010-02-21  Jim Meyering  <meyering@redhat.com>
27294
27295         init.sh: fix EXEEXT shims to work also for names like test-prog
27296         * tests/init.sh: Re-exec a better shell, when needed.
27297         If the current shell lacks support for posix $(...), an init.sh-using
27298         test will now try to find a shell that supports that.  If EXEEXT is
27299         nonempty, we also require support for hyphen-in-alias-name and shell
27300         substitutions like ${var#glob}.  Failure to find such a shell results
27301         in a skipped test.
27302
27303 2010-02-21  Bruno Haible  <bruno@clisp.org>
27304
27305         Really work around around "broken pipe" error message from bash 3.2.
27306         * gnulib-tool (func_reset_sigpipe): Remove function.
27307         (echo): In bash 3.2, define to a function that uses printf.
27308         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27309
27310 2010-02-20  Bruno Haible  <bruno@clisp.org>
27311
27312         Restore support for automake 1.9.6 with autoconf 2.61.
27313         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27314         Reported by James Youngman <jay@gnu.org>.
27315
27316 2010-02-20  Bruno Haible  <bruno@clisp.org>
27317
27318         Improve *printf warning condition.
27319         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27320         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27321         and the function is overridden due to SIGPIPE emulation.
27322
27323 2010-02-20  Bruno Haible  <bruno@clisp.org>
27324
27325         * lib/stdio.in.h: Tweak comments.
27326
27327 2010-02-19  Bruno Haible  <bruno@clisp.org>
27328
27329         Make it easier to find modules. New gnulib-tool option '--find'.
27330         * gnulib-tool: New option --find.
27331         (func_usage): Document it.
27332         (func_sanitize_modulelist): New function, extracted from
27333         func_all_modules.
27334         (func_all_modules): Invoke it.
27335         * doc/gnulib-tool.texi (Which modules?): New node.
27336
27337 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27338
27339         * lib/sys_select.in.h: Provide select replacement even if
27340         sys/select.h exists on a system, for Interix.
27341
27342 2010-02-18  Jim Meyering  <meyering@redhat.com>
27343
27344         init.sh: don't use $(...) just yet
27345         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27346         to accommodate e.g., Solaris' /bin/sh.
27347
27348 2010-02-17  Bruno Haible  <bruno@clisp.org>
27349
27350         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27351         Reported by Ludovic Courtès <ludo@gnu.org>.
27352
27353 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27354
27355         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27356         linking with -lintl.
27357
27358 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27359
27360         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27361         if not provided by the system's netdb.h.  Reported by
27362         ludo@gnu.org (Ludovic Courtès).
27363
27364 2010-02-15  Jim Meyering  <meyering@redhat.com>
27365
27366         init.sh: improve portability and efficiency
27367         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27368         "dummy" in a for loop.
27369         Use '!', not '^' to select the complement of a character set used
27370         in a "case" statement.
27371         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27372         Suggestions from Eric Blake.
27373
27374         init.sh: automatically accommodate programs with the .exe suffix
27375         Automatically arrange for an invocation of "prog" to execute the
27376         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27377         may use the simpler "prog", yet still work when built on a system
27378         that requires specifying the added suffix.
27379         Do this by constructing a function named "prog" that invokes
27380         "prog.exe" for each .exe file in selected directories.
27381         * tests/init.sh (find_exe_basenames_): New function.
27382         (create_exe_shim_functions_): New function.
27383         (path_prepend_): Use it.
27384
27385         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27386         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27387         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27388
27389 2010-02-14  Jim Meyering  <meyering@redhat.com>
27390
27391         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27392         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27393         (sc_prohibit_hash_pjw_without_use): New rule.
27394
27395         maint.mk: allow the default upload destination dir to be overridden
27396         * top/maint.mk (upload_dest_dir_): Define with a default that
27397         preserves the status quo.
27398         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27399         Reported by Peter Simons.
27400
27401         maint.mk: prohibit inclusion of "hash.h" without_use
27402         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27403
27404 2010-02-10  Jim Meyering  <meyering@redhat.com>
27405
27406         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27407         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27408
27409 2010-02-09  Eric Blake  <ebb9@byu.net>
27410         and Bruno Haible  <bruno@clisp.org>
27411
27412         obstack-printf-posix: ensure declaration
27413         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27414         extracted from gl_FUNC_OBSTACK_PRINTF.
27415         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27416         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27417         Likewise.
27418         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27419         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27420         0.
27421
27422 2010-02-08  Bruno Haible  <bruno@clisp.org>
27423
27424         gnulib-tool: Fix typo in 2010-02-07 commit.
27425         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27426         Reported by Eric Blake.
27427
27428 2010-02-07  Bruno Haible  <bruno@clisp.org>
27429
27430         gnulib-tool: Fix up caching patches.
27431         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27432         option --no-cache. Use associative arrays when supported by the shell.
27433         (sed_comments): New variable.
27434         (modcache): Renamed from do_cache.
27435         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27436         abbreviate unnecessarily.
27437         (have_associative): New variable.
27438         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27439         way also for ksh and zsh.
27440         (func_init_sed_convert_to_cache_statements): New function, extracted
27441         from func_cache_lookup_module. Add support for associative arrays.
27442         Don't set the c_MODULE_cached variable here. Ignore all lines before
27443         the first field header. Remove only the final newline, not all trailing
27444         newlines. Support empty fields correctly. Limit the use of 'eval' to
27445         assignments.
27446         (func_get_description, func_get_status, func_get_notice,
27447         func_get_applicability, func_get_filelist, func_get_dependencies,
27448         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27449         func_get_automake_snippet, func_get_include_directive,
27450         func_get_link_directive, func_get_license, func_get_maintainer):
27451         Update documentation. List the unoptimized code first. Add support for
27452         associative arrays. Limit the use of 'eval' to assignments.
27453         (func_get_applicability): Undo stylistic pessimisations.
27454         (func_get_automake_snippet, func_get_include_directive): Reduce code
27455         duplication.
27456         (func_modules_transitive_closure, func_modules_add_dummy,
27457         func_modules_notice, func_modules_to_filelist, func_add_file,
27458         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27459         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27460         func_create_testdir, func_create_megatestdir): Update documentation.
27461
27462 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27463
27464         * gnulib-tool (func_cache_lookup_module): Store the module name
27465         belonging to the cache variable; error out if two different
27466         module names map to the same cache variable name.
27467
27468 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27469
27470         gnulib-tool: Make caching optional.
27471         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27472         Update matching short versions of --no-changelog.
27473         (func_usage): Update.
27474         (sed_extract_cache_prog): Renamed from ...
27475         (sed_extract_prog): ... this; revert to old extraction script.
27476         (func_get_description, func_get_status)
27477         (func_get_notice, func_get_applicability, func_get_filelist)
27478         (func_get_dependencies, func_get_autoconf_early_snippet)
27479         (func_get_autoconf_snippet, func_get_automake_snippet)
27480         (func_get_include_directive, func_get_link_directive)
27481         (func_get_license, func_get_maintainer): If $do_cache is false,
27482         use old, non-caching extraction scripts.
27483         Suggestion by Bruno Haible.
27484
27485 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27486
27487         gnulib-tool: cache module metainformation.
27488         * gnulib-tool (sed_extract_prog): Match newline before each
27489         header, and rewrite header to a shell variable suffix.
27490         (func_cache_var, func_cache_lookup_module): New functions,
27491         to turn a module name into a cache variable prefix, and to
27492         look up and cache module metainformation.
27493         (func_get_description, func_get_status)
27494         (func_get_notice, func_get_applicability, func_get_filelist)
27495         (func_get_dependencies, func_get_autoconf_early_snippet)
27496         (func_get_autoconf_snippet, func_get_automake_snippet)
27497         (func_get_include_directive, func_get_link_directive)
27498         (func_get_license, func_get_maintainer): Use
27499         func_cache_lookup_module.
27500
27501 2010-02-07  Bruno Haible  <bruno@clisp.org>
27502
27503         fnctl: Fix missing dependency.
27504         * modules/fcntl (Depends-on): Add getdtablesize.
27505         Reported by John W. Eaton <jwe@gnu.org>.
27506
27507 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27508
27509         Argp: fix recognition of short alias options.
27510
27511         * lib/argp-parse.c (convert_options): Fix improper use of
27512         `|' between character values.
27513         * tests/test-argp.c (group1_option): New alias option
27514         --read (-r).
27515         (group1_parser): Special handling for 'r'.
27516         (test15): New test case.
27517         (test_fun): Add test15.
27518         * tests/test-argp-2.sh: Update expected --help and --usage
27519         outputs.
27520
27521 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27522
27523         * tests/test-argp.c: Fix indentation.
27524
27525 2010-02-04  Eric Blake  <ebb9@byu.net>
27526
27527         gettimeofday: expose type of second argument
27528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27529         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27530         * tests/test-gettimeofday.c: Use it to silence warning.
27531         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27532         the issue.
27533
27534 2010-02-03  Jim Meyering  <meyering@redhat.com>
27535
27536         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27537         * lib/regcomp.c (TYPE_SIGNED): Define.
27538         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27539
27540         regcomp.c: avoid a new -Wshadow warning
27541         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27542
27543 2010-02-01  Jim Meyering  <meyering@redhat.com>
27544
27545         removing useless parentheses in cpp #define directives
27546         For motivation, see commit c0221df4, "define STREQ(a,b)
27547         consistently, removing useless parentheses"
27548         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27549         * lib/mountlist.c (MNT_IGNORE): Likewise.
27550         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27551
27552 2010-02-01  Eric Blake  <ebb9@byu.net>
27553
27554         sys_time: use link-warning
27555         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27556         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27557         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27558         * modules/sys_time (Depends-on): Add warn-on-use.
27559         (Makefile.am): Always build replacement.
27560         (configure.ac): Update substitutions.
27561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27562         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27563         bother with SYS_TIME_H.
27564         * modules/gettimeofday (configure.ac): Declare indicator.
27565         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27566         in use.
27567
27568         closein-tests: silence compiler warning
27569         * tests/test-closein.c (main): Ignore fread result.
27570         * modules/closein-tests (Depends-on): Add ignore-value.
27571
27572         tests: silence warning about system return
27573         * tests/test-areadlink-with-size.c (main): Ignore system result.
27574         * tests/test-areadlink.c (main): Likewise.
27575         * tests/test-areadlinkat-with-size.c (main): Likewise.
27576         * tests/test-areadlinkat.c (main): Likewise.
27577         * tests/test-canonicalize-lgpl.c (main): Likewise.
27578         * tests/test-canonicalize.c (main): Likewise.
27579         * tests/test-chown.c (main): Likewise.
27580         * tests/test-fchownat.c (main): Likewise.
27581         * tests/test-fdutimensat.c (main): Likewise.
27582         * tests/test-fstatat.c (main): Likewise.
27583         * tests/test-futimens.c (main): Likewise.
27584         * tests/test-lchown.c (main): Likewise.
27585         * tests/test-link.c (main): Likewise.
27586         * tests/test-linkat.c (main): Likewise.
27587         * tests/test-lstat.c (main): Likewise.
27588         * tests/test-mkdir.c (main): Likewise.
27589         * tests/test-mkdirat.c (main): Likewise.
27590         * tests/test-mkfifo.c (main): Likewise.
27591         * tests/test-mkfifoat.c (main): Likewise.
27592         * tests/test-mknod.c (main): Likewise.
27593         * tests/test-readlink.c (main): Likewise.
27594         * tests/test-remove.c (main): Likewise.
27595         * tests/test-rename.c (main): Likewise.
27596         * tests/test-renameat.c (main): Likewise.
27597         * tests/test-rmdir.c (main): Likewise.
27598         * tests/test-symlink.c (main): Likewise.
27599         * tests/test-symlinkat.c (main): Likewise.
27600         * tests/test-unlink.c (main): Likewise.
27601         * tests/test-unlinkat.c (main): Likewise.
27602         * tests/test-utimens.c (main): Likewise.
27603         * tests/test-utimensat.c (main): Likewise.
27604         * modules/areadlink-tests (Depends-on): Add ignore-value.
27605         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27606         * modules/areadlinkat-tests (Depends-on): Likewise.
27607         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27608         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27609         * modules/canonicalize-tests (Depends-on): Likewise.
27610         * modules/chown-tests (Depends-on): Likewise.
27611         * modules/fdutimensat-tests (Depends-on): Likewise.
27612         * modules/futimens-tests (Depends-on): Likewise.
27613         * modules/lchown-tests (Depends-on): Likewise.
27614         * modules/link-tests (Depends-on): Likewise.
27615         * modules/linkat-tests (Depends-on): Likewise.
27616         * modules/lstat-tests (Depends-on): Likewise.
27617         * modules/mkdir-tests (Depends-on): Likewise.
27618         * modules/mkfifo-tests (Depends-on): Likewise.
27619         * modules/mkfifoat-tests (Depends-on): Likewise.
27620         * modules/mknod-tests (Depends-on): Likewise.
27621         * modules/openat-tests (Depends-on): Likewise.
27622         * modules/readlink-tests (Depends-on): Likewise.
27623         * modules/remove-tests (Depends-on): Likewise.
27624         * modules/rename-tests (Depends-on): Likewise.
27625         * modules/renameat-tests (Depends-on): Likewise.
27626         * modules/rmdir-tests (Depends-on): Likewise.
27627         * modules/symlink-tests (Depends-on): Likewise.
27628         * modules/symlinkat-tests (Depends-on): Likewise.
27629         * modules/unlink-tests (Depends-on): Likewise.
27630         * modules/utimens-tests (Depends-on): Likewise.
27631         * modules/utimensat-tests (Depends-on): Likewise.
27632
27633 2010-01-31  Bruno Haible  <bruno@clisp.org>
27634
27635         Perform the same test for many <math.h> functions.
27636         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27637         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27638         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27639         of gl_MATHFUNC.
27640         * modules/acos (configure.ac): Likewise.
27641         * modules/asin (configure.ac): Likewise.
27642         * modules/atan (configure.ac): Likewise.
27643         * modules/atan2 (configure.ac): Likewise.
27644         * modules/cbrt (configure.ac): Likewise.
27645         * modules/copysign (configure.ac): Likewise.
27646         * modules/cos (configure.ac): Likewise.
27647         * modules/cosh (configure.ac): Likewise.
27648         * modules/erf (configure.ac): Likewise.
27649         * modules/erfc (configure.ac): Likewise.
27650         * modules/exp (configure.ac): Likewise.
27651         * modules/fmod (configure.ac): Likewise.
27652         * modules/hypot (configure.ac): Likewise.
27653         * modules/j0 (configure.ac): Likewise.
27654         * modules/j1 (configure.ac): Likewise.
27655         * modules/jn (configure.ac): Likewise.
27656         * modules/lgamma (configure.ac): Likewise.
27657         * modules/log (configure.ac): Likewise.
27658         * modules/log10 (configure.ac): Likewise.
27659         * modules/log1p (configure.ac): Likewise.
27660         * modules/pow (configure.ac): Likewise.
27661         * modules/remainder (configure.ac): Likewise.
27662         * modules/sin (configure.ac): Likewise.
27663         * modules/sinh (configure.ac): Likewise.
27664         * modules/tan (configure.ac): Likewise.
27665         * modules/tanh (configure.ac): Likewise.
27666         * modules/y0 (configure.ac): Likewise.
27667         * modules/y1 (configure.ac): Likewise.
27668         * modules/yn (configure.ac): Likewise.
27669         Suggested by Paolo Bonzini.
27670
27671 2010-01-31  Bruno Haible  <bruno@clisp.org>
27672
27673         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27674
27675 2010-01-31  Bruno Haible  <bruno@clisp.org>
27676
27677         Work around getdelim() bug on FreeBSD 8.0.
27678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27679         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27680         not work.
27681         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27682         is 1.
27683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27684         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27685         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27686         a non-zero size.
27687         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27688
27689 2010-01-31  Bruno Haible  <bruno@clisp.org>
27690
27691         Work around getline() bug on FreeBSD 8.0.
27692         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27693         and a non-zero size.
27694         * tests/test-getline.c (main): Likewise.
27695         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27696         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27697
27698 2010-01-28  Eric Blake  <ebb9@byu.net>
27699
27700         regex: fix build failure
27701         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27702         platforms.
27703
27704 2010-01-28  Jim Meyering  <meyering@redhat.com>
27705
27706         regex: do not ignore memory allocation failure
27707         * lib/regex_internal.c (create_cd_newstate): Detect
27708         re_node_set_init_copy failure.   Extracted from glibc commit
27709         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27710
27711         regex: sync more white-space changes from libc
27712         * lib/regex_internal.c: White-space only changes.
27713         * lib/regexec.c: Likewise.
27714
27715         regex: add many uses of __attribute_warn_unused_result__
27716         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27717         * lib/regexec.c: Likewise.
27718         Extracted from a messy glibc commit.
27719
27720         regcomp.c: spelling and merge-artifact from glibc
27721         * lib/regcomp.c: Merge remainder of glibc's
27722         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27723
27724         regcomp.c: sync white-space changes from glibc
27725         * lib/regcomp.c: Merge to accommodate white space
27726         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27727
27728         regcomp.c: do not ignore internal return values
27729         * lib/regcomp.c: Do not ignore internal return values.
27730         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27731         but without its white-space changes and spelling fixes.
27732
27733         regex_internal.h: define __attribute_warn_unused_result__
27734         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27735
27736         maint: add a syntax-check rule to check for vulnerable Makefile.in
27737         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27738
27739 2010-01-27  Jim Meyering  <meyering@redhat.com>
27740
27741         ncftpput-ftp: clean up spaces
27742         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27743         Remove trailing blanks.
27744
27745 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27746
27747         * build-aux/git-version-gen: Fix copyright statement.
27748         * build-aux/gnupload: Likewise.
27749         * tests/test-arcfour.c: Likewise.
27750         * tests/test-arctwo.c: Likewise.
27751         * tests/test-count-one-bits.c: Likewise.
27752         * tests/test-crc.c: Likewise.
27753         * tests/test-des.c: Likewise.
27754         * tests/test-gc-arcfour.c: Likewise.
27755         * tests/test-gc-arctwo.c: Likewise.
27756         * tests/test-gc-des.c: Likewise.
27757         * tests/test-gc-hmac-md5.c: Likewise.
27758         * tests/test-gc-hmac-sha1.c: Likewise.
27759         * tests/test-gc-md2.c: Likewise.
27760         * tests/test-gc-md4.c: Likewise.
27761         * tests/test-gc-md5.c: Likewise.
27762         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27763         * tests/test-gc-rijndael.c: Likewise.
27764         * tests/test-gc-sha1.c: Likewise.
27765         * tests/test-gc.c: Likewise.
27766         * tests/test-gethostname.c: Likewise.
27767         * tests/test-gettimeofday.c: Likewise.
27768         * tests/test-hash.c: Likewise.
27769         * tests/test-hmac-md5.c: Likewise.
27770         * tests/test-hmac-sha1.c: Likewise.
27771         * tests/test-md2.c: Likewise.
27772         * tests/test-md4.c: Likewise.
27773         * tests/test-md5.c: Likewise.
27774         * tests/test-memchr.c: Likewise.
27775         * tests/test-memchr2.c: Likewise.
27776         * tests/test-memcmp.c: Likewise.
27777         * tests/test-memmem.c: Likewise.
27778         * tests/test-memrchr.c: Likewise.
27779         * tests/test-rawmemchr.c: Likewise.
27780         * tests/test-read-file.c: Likewise.
27781         * tests/test-rijndael.c: Likewise.
27782         * tests/test-sockets.c: Likewise.
27783         * tests/test-strchrnul.c: Likewise.
27784         * tests/test-strstr.c: Likewise.
27785         * tests/test-strtod.c: Likewise.
27786         * build-aux/ncftpput-ftp: Likewise.
27787
27788 2010-01-26  Eric Blake  <ebb9@byu.net>
27789
27790         ignore-value: update recommended header name
27791         * modules/ignore-value (Include): Only use <> for headers that
27792         exist in glibc.
27793
27794 2010-01-26  Jim Meyering  <meyering@redhat.com>
27795
27796         test-userspec.c: avoid compiler warnings
27797         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27798         and "initialization discards qualifiers..." warnings.
27799         Put the first "uid" in its own scope, and make char* members "const".
27800
27801 2010-01-25  Bruno Haible  <bruno@clisp.org>
27802
27803         gnulib-tool: Make warning diagnostics consistent.
27804         * gnulib-tool (func_warning): New function.
27805         Use it everywhere where gnulib-tool produces output to stderr and it is
27806         not a fatal error.
27807
27808 2010-01-25  Bruno Haible  <bruno@clisp.org>
27809
27810         Fix test dependencies.
27811         * modules/xstrtol-tests (Depends-on): Add inttypes.
27812         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27813
27814 2010-01-25 Pádraig Brady <P@draigBrady.com>
27815
27816         syntax-check: detect incorrect boolean macro values in config.h
27817         * modules/maintainer-makefile (configure.ac): Parameterize the location
27818         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27819         The logic is from Eric Blake and the location indicated by Jim Meyering.
27820         Note the more natural CONFIG_HEADER name is prohibited by automake
27821         for backwards compatibility reasons.
27822         * top/maint.mk (sc_Wundef_boolean): New rule.
27823
27824 2010-01-25  Jim Meyering  <meyering@redhat.com>
27825
27826         bootstrap: detect MacOS 10.6's shasum, too
27827         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27828         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27829
27830 2010-01-23  Jim Meyering  <meyering@redhat.com>
27831
27832         xstrtoll: new module
27833         * modules/xstrtoll: New file.
27834         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27835         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27836         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27837         ./configure fails if you use this module and lack "long long".
27838         * modules/xstrtoll-tests: New module.
27839         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27840         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27841         new init.sh-based test framework.
27842
27843 2010-01-24  Bruno Haible  <bruno@clisp.org>
27844
27845         Tests for module 'yn'.
27846         * modules/yn-tests: New file.
27847         * tests/test-yn.c: New file.
27848
27849         Tests for module 'y1'.
27850         * modules/y1-tests: New file.
27851         * tests/test-y1.c: New file.
27852
27853         Tests for module 'y0'.
27854         * modules/y0-tests: New file.
27855         * tests/test-y0.c: New file.
27856
27857         Tests for module 'tanh'.
27858         * modules/tanh-tests: New file.
27859         * tests/test-tanh.c: New file.
27860
27861         Tests for module 'tan'.
27862         * modules/tan-tests: New file.
27863         * tests/test-tan.c: New file.
27864
27865         Tests for module 'sqrt'.
27866         * modules/sqrt-tests: New file.
27867         * tests/test-sqrt.c: New file.
27868
27869         Tests for module 'sinh'.
27870         * modules/sinh-tests: New file.
27871         * tests/test-sinh.c: New file.
27872
27873         Tests for module 'sin'.
27874         * modules/sin-tests: New file.
27875         * tests/test-sin.c: New file.
27876
27877         Tests for module 'rint'.
27878         * modules/rint-tests: New file.
27879         * tests/test-rint.c: New file.
27880
27881         Tests for module 'remainder'.
27882         * modules/remainder-tests: New file.
27883         * tests/test-remainder.c: New file.
27884
27885         Tests for module 'pow'.
27886         * modules/pow-tests: New file.
27887         * tests/test-pow.c: New file.
27888
27889         Tests for module 'nextafter'.
27890         * modules/nextafter-tests: New file.
27891         * tests/test-nextafter.c: New file.
27892
27893         Tests for module 'modf'.
27894         * modules/modf-tests: New file.
27895         * tests/test-modf.c: New file.
27896
27897         Tests for module 'logb'.
27898         * modules/logb-tests: New file.
27899         * tests/test-logb.c: New file.
27900
27901         Tests for module 'log1p'.
27902         * modules/log1p-tests: New file.
27903         * tests/test-log1p.c: New file.
27904
27905         Tests for module 'log10'.
27906         * modules/log10-tests: New file.
27907         * tests/test-log10.c: New file.
27908
27909         Tests for module 'log'.
27910         * modules/log-tests: New file.
27911         * tests/test-log.c: New file.
27912
27913         Tests for module 'lgamma'.
27914         * modules/lgamma-tests: New file.
27915         * tests/test-lgamma.c: New file.
27916
27917         Tests for module 'ldexp'.
27918         * modules/ldexp-tests: New file.
27919         * tests/test-ldexp.c: New file.
27920
27921         Tests for module 'jn'.
27922         * modules/jn-tests: New file.
27923         * tests/test-jn.c: New file.
27924
27925         Tests for module 'j1'.
27926         * modules/j1-tests: New file.
27927         * tests/test-j1.c: New file.
27928
27929         Tests for module 'j0'.
27930         * modules/j0-tests: New file.
27931         * tests/test-j0.c: New file.
27932
27933         Tests for module 'hypot'.
27934         * modules/hypot-tests: New file.
27935         * tests/test-hypot.c: New file.
27936
27937         Tests for module 'fmod'.
27938         * modules/fmod-tests: New file.
27939         * tests/test-fmod.c: New file.
27940
27941         Tests for module 'fabs'.
27942         * modules/fabs-tests: New file.
27943         * tests/test-fabs.c: New file.
27944
27945         Tests for module 'exp'.
27946         * modules/exp-tests: New file.
27947         * tests/test-exp.c: New file.
27948
27949         Tests for module 'erfc'.
27950         * modules/erfc-tests: New file.
27951         * tests/test-erfc.c: New file.
27952
27953         Tests for module 'erf'.
27954         * modules/erf-tests: New file.
27955         * tests/test-erf.c: New file.
27956
27957         Tests for module 'cosh'.
27958         * modules/cosh-tests: New file.
27959         * tests/test-cosh.c: New file.
27960
27961         Tests for module 'cos'.
27962         * modules/cos-tests: New file.
27963         * tests/test-cos.c: New file.
27964
27965         Tests for module 'copysign'.
27966         * modules/copysign-tests: New file.
27967         * tests/test-copysign.c: New file.
27968
27969         Tests for module 'cbrt'.
27970         * modules/cbrt-tests: New file.
27971         * tests/test-cbrt.c: New file.
27972
27973         Tests for module 'atan2'.
27974         * modules/atan2-tests: New file.
27975         * tests/test-atan2.c: New file.
27976
27977         Tests for module 'atan'.
27978         * modules/atan-tests: New file.
27979         * tests/test-atan.c: New file.
27980
27981         Tests for module 'asin'.
27982         * modules/asin-tests: New file.
27983         * tests/test-asin.c: New file.
27984
27985         Tests for module 'acos'.
27986         * modules/acos-tests: New file.
27987         * tests/test-acos.c: New file.
27988
27989 2010-01-24  Bruno Haible  <bruno@clisp.org>
27990
27991         Fix tests for common <math.h> functions.
27992         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27993         code snippet that references the function pointer, rather than merely
27994         calling the function. Substitute the FUNC_LIBM variable.
27995         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27996         * modules/acos (configure.ac): Likewise.
27997         * modules/asin (configure.ac): Likewise.
27998         * modules/atan (configure.ac): Likewise.
27999         * modules/atan2 (configure.ac): Likewise.
28000         * modules/cbrt (configure.ac): Likewise.
28001         * modules/copysign (configure.ac): Likewise.
28002         * modules/cos (configure.ac): Likewise.
28003         * modules/cosh (configure.ac): Likewise.
28004         * modules/erf (configure.ac): Likewise.
28005         * modules/erfc (configure.ac): Likewise.
28006         * modules/exp (configure.ac): Likewise.
28007         * modules/fabs (configure.ac): Likewise.
28008         * modules/fmod (configure.ac): Likewise.
28009         * modules/hypot (configure.ac): Likewise.
28010         * modules/j0 (configure.ac): Likewise.
28011         * modules/j1 (configure.ac): Likewise.
28012         * modules/jn (configure.ac): Likewise.
28013         * modules/ldexp (configure.ac): Likewise.
28014         * modules/lgamma (configure.ac): Likewise.
28015         * modules/log (configure.ac): Likewise.
28016         * modules/log10 (configure.ac): Likewise.
28017         * modules/log1p (configure.ac): Likewise.
28018         * modules/logb (configure.ac): Likewise.
28019         * modules/modf (configure.ac): Likewise.
28020         * modules/nextafter (configure.ac): Likewise.
28021         * modules/pow (configure.ac): Likewise.
28022         * modules/remainder (configure.ac): Likewise.
28023         * modules/rint (configure.ac): Likewise.
28024         * modules/sin (configure.ac): Likewise.
28025         * modules/sinh (configure.ac): Likewise.
28026         * modules/tan (configure.ac): Likewise.
28027         * modules/tanh (configure.ac): Likewise.
28028         * modules/y0 (configure.ac): Likewise.
28029         * modules/y1 (configure.ac): Likewise.
28030         * modules/yn (configure.ac): Likewise.
28031
28032 2010-01-24  Bruno Haible  <bruno@clisp.org>
28033
28034         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28035         * tests/test-acosl.c (x): New variable.
28036         (main): Store argument in x and fetch it from x.
28037         * tests/test-asinl.c (x): New variable.
28038         (main): Store argument in x and fetch it from x.
28039         * tests/test-atanl.c (x): New variable.
28040         (main): Store argument in x and fetch it from x.
28041         * tests/test-cosl.c (x): New variable.
28042         (main): Store argument in x and fetch it from x.
28043         * tests/test-expl.c (x): New variable.
28044         (main): Store argument in x and fetch it from x.
28045         * tests/test-logl.c (x): New variable.
28046         (main): Store argument in x and fetch it from x.
28047         * tests/test-sinl.c (x): New variable.
28048         (main): Store argument in x and fetch it from x.
28049         * tests/test-sqrtl.c (x): New variable.
28050         (main): Store argument in x and fetch it from x.
28051         * tests/test-tanl.c (x): New variable.
28052         (main): Store argument in x and fetch it from x.
28053
28054 2010-01-24  Bruno Haible  <bruno@clisp.org>
28055
28056         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28057         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28058         assignments to the initial TESTS_ENVIRONMENT.
28059         * doc/gnulib.texi (Unit test modules): Document it.
28060         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28061         TESTS_ENVIRONMENT.
28062         * modules/btowc-tests (Makefile.am): Likewise.
28063         * modules/c-stack-tests (Makefile.am): Likewise.
28064         * modules/c-strcase-tests (Makefile.am): Likewise.
28065         * modules/copy-file-tests (Makefile.am): Likewise.
28066         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28067         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28068         * modules/mbrtowc-tests (Makefile.am): Likewise.
28069         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28070         * modules/mbscasestr-tests (Makefile.am): Likewise.
28071         * modules/mbschr-tests (Makefile.am): Likewise.
28072         * modules/mbscspn-tests (Makefile.am): Likewise.
28073         * modules/mbsinit-tests (Makefile.am): Likewise.
28074         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28075         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28076         * modules/mbspbrk-tests (Makefile.am): Likewise.
28077         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28078         * modules/mbsrchr-tests (Makefile.am): Likewise.
28079         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28080         * modules/mbsspn-tests (Makefile.am): Likewise.
28081         * modules/mbsstr-tests (Makefile.am): Likewise.
28082         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28083         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28084         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28085         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28086         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28087         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28088         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28089         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28090         * modules/wcrtomb-tests (Makefile.am): Likewise.
28091         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28092         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28093         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28094         assignments from TESTS_ENVIRONMENT.
28095         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28096         augmentation.
28097         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28098         * modules/atexit-tests (Makefile.am): Likewise.
28099         * modules/binary-io-tests (Makefile.am): Likewise.
28100         * modules/closein-tests (Makefile.am): Likewise.
28101         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28102         * modules/exclude-tests (Makefile.am): Likewise.
28103         * modules/fflush-tests (Makefile.am): Likewise.
28104         * modules/fpending-tests (Makefile.am): Likewise.
28105         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28106         * modules/freadahead-tests (Makefile.am): Likewise.
28107         * modules/freadptr-tests (Makefile.am): Likewise.
28108         * modules/freadseek-tests (Makefile.am): Likewise.
28109         * modules/fseek-tests (Makefile.am): Likewise.
28110         * modules/fseeko-tests (Makefile.am): Likewise.
28111         * modules/ftell-tests (Makefile.am): Likewise.
28112         * modules/ftello-tests (Makefile.am): Likewise.
28113         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28114         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28115         * modules/lseek-tests (Makefile.am): Likewise.
28116         * modules/parse-duration-tests (Makefile.am): Likewise.
28117         * modules/perror-tests (Makefile.am): Likewise.
28118         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28119         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28120         * modules/pipe-tests (Makefile.am): Likewise.
28121         * modules/pread-tests (Makefile.am): Likewise.
28122         * modules/printf-posix-tests (Makefile.am): Likewise.
28123         * modules/select-tests (Makefile.am): Likewise.
28124         * modules/sigpipe-tests (Makefile.am): Likewise.
28125         * modules/tsearch-tests (Makefile.am): Likewise.
28126         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28127         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28128         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28129         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28130         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28131         * modules/version-etc-tests (Makefile.am): Likewise.
28132         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28133         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28134         * modules/xalloc-die-tests (Makefile.am): Likewise.
28135         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28136         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28137         * modules/xstrtol-tests (Makefile.am): Likewise.
28138         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28139         * modules/yesno-tests (Makefile.am): Likewise.
28140         Suggested by Jim Meyering.
28141
28142 2010-01-24  Bruno Haible  <bruno@clisp.org>
28143
28144         More documentation.
28145         * doc/gnulib.texi (Writing modules): New chapter.
28146         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28147         the new chapter.
28148
28149 2010-01-24  Jim Meyering  <meyering@redhat.com>
28150
28151         maint.mk: do not prepend "./" after filtering
28152         * top/maint.mk (_prepend_srcdir_prefix): New variable
28153         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28154         "./" when $(srcdir) is ".".
28155
28156         define STREQ(a,b) consistently, removing useless parentheses
28157         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28158         since the only risk is that "a" or "b" contains an unparenthesized
28159         comma, but if either did that, STREQ would have 3 or more arguments.
28160         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28161         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28162         * lib/hash-triple.c (STREQ): Likewise.
28163         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28164         * lib/getugroups.c (STREQ): Likewise.
28165
28166 2010-01-23  Jim Meyering  <meyering@redhat.com>
28167
28168         maint.mk: fix syntax-check in a non-srcdir build directory
28169         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28170         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28171
28172 2010-01-22  Jim Meyering  <meyering@redhat.com>
28173
28174         userspec: add unit tests
28175         * tests/test-userspec.c: New file.
28176         * modules/userspec-tests: Likewise.
28177
28178 2010-01-21  Jim Meyering  <meyering@redhat.com>
28179
28180         maint.mk: handle source file names containing "." robustly
28181         * top/maint.mk (_dot_escaped_srcdir): Define.
28182         (VC_LIST): Use it in LHS of sed substitution.
28183
28184 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28185
28186         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28187         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28188         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28189         from a non-srcdir build.
28190
28191 2010-01-20  Eric Blake  <ebb9@byu.net>
28192
28193         warn-on-use: use instead of link-warning
28194         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28195         * modules/unistd (Depends-on, Makefile.am): Likewise.
28196         * modules/arpa_inet (Depends-on): Replace link-warning with
28197         warn-on-use.
28198         (Makefile.am): Update rules accordingly.
28199         * modules/ctype (Depends-on, Makefile.am): Likewise.
28200         * modules/dirent (Depends-on, Makefile.am): Likewise.
28201         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28202         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28203         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28204         * modules/locale (Depends-on, Makefile.am): Likewise.
28205         * modules/math (Depends-on, Makefile.am): Likewise.
28206         * modules/search (Depends-on, Makefile.am): Likewise.
28207         * modules/signal (Depends-on, Makefile.am): Likewise.
28208         * modules/spawn (Depends-on, Makefile.am): Likewise.
28209         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28210         * modules/string (Depends-on, Makefile.am): Likewise.
28211         * modules/strings (Depends-on, Makefile.am): Likewise.
28212         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28213         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28214         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28215         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28216         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28217         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28218         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28219         * modules/wchar (Depends-on, Makefile.am): Likewise.
28220         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28221         should be poisoned.
28222         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28223         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28224         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28225         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28226         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28227         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28228         * m4/math_h.m4 (gl_MATH_H): Likewise.
28229         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28230         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28231         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28232         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28233         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28234         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28235         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28236         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28237         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28241         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28243         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28244         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28245         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28246         GL_LINK_WARNING.
28247         * lib/ctype.in.h: Likewise.
28248         * lib/dirent.in.h: Likewise.
28249         * lib/fcntl.in.h: Likewise.
28250         * lib/inttypes.in.h: Likewise.
28251         * lib/langinfo.in.h: Likewise.
28252         * lib/locale.in.h: Likewise.
28253         * lib/math.in.h: Likewise.
28254         * lib/search.in.h: Likewise.
28255         * lib/signal.in.h: Likewise.
28256         * lib/spawn.in.h: Likewise.
28257         * lib/stdio.in.h: Likewise.
28258         * lib/stdlib.in.h: Likewise.
28259         * lib/string.in.h: Likewise.
28260         * lib/strings.in.h: Likewise.
28261         * lib/sys_file.in.h: Likewise.
28262         * lib/sys_ioctl.in.h: Likewise.
28263         * lib/sys_select.in.h: Likewise.
28264         * lib/sys_socket.in.h: Likewise.
28265         * lib/sys_stat.in.h: Likewise.
28266         * lib/sys_times.in.h: Likewise.
28267         * lib/sys_utsname.in.h: Likewise.
28268         * lib/unistd.in.h: Likewise.
28269         * lib/wchar.in.h: Likewise.
28270
28271 2010-01-20  Bruno Haible  <bruno@clisp.org>
28272
28273         Avoid duplicate -lm.
28274         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28275         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28276         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28277         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28278         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28279         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28280         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28281         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28282         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28283         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28284         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28285         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28286         Reported by Paolo Bonzini.
28287
28288 2010-01-19  Bruno Haible  <bruno@clisp.org>
28289
28290         langinfo, nl_langinfo: Relicense under LGPLv2+.
28291         * modules/langinfo (License): Change to LGPLv2+.
28292         * modules/nl_langinfo (License): Likewise.
28293         Patch by David Lutterkort <lutter@redhat.com>.
28294
28295 2010-01-19  Bruno Haible  <bruno@clisp.org>
28296
28297         Avoid compilation error with cc on OSF/1 5.1.
28298         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28299         statement, not before.
28300         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28301
28302 2010-01-18  Bruno Haible  <bruno@clisp.org>
28303
28304         Avoid a link error due to the __printf__ symbol.
28305         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28306         and 2.6.x.
28307         (__format__, __printf__): Remove definitions.
28308         * lib/argp-fmtstream.h: Likewise.
28309         * lib/argp.h: Likewise.
28310         * lib/error.h: Likewise.
28311         * lib/vasnprintf.h: Likewise.
28312         * lib/xprintf.h: Likewise.
28313         * lib/xvasprintf.h: Likewise.
28314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28315
28316 2010-01-18  Bruno Haible  <bruno@clisp.org>
28317
28318         Tests for module 'tanl'.
28319         * modules/tanl-tests: New file.
28320         * tests/test-tanl.c: New file.
28321
28322         Tests for module 'sqrtl'.
28323         * modules/sqrtl-tests: New file.
28324         * tests/test-sqrtl.c: New file.
28325
28326         Tests for module 'sinl'.
28327         * modules/sinl-tests: New file.
28328         * tests/test-sinl.c: New file.
28329
28330         Tests for module 'logl'.
28331         * modules/logl-tests: New file.
28332         * tests/test-logl.c: New file.
28333
28334         Tests for module 'expl'.
28335         * modules/expl-tests: New file.
28336         * tests/test-expl.c: New file.
28337
28338         Tests for module 'cosl'.
28339         * modules/cosl-tests: New file.
28340         * tests/test-cosl.c: New file.
28341
28342         Tests for module 'atanl'.
28343         * modules/atanl-tests: New file.
28344         * tests/test-atanl.c: New file.
28345
28346         Tests for module 'asinl'.
28347         * modules/asinl-tests: New file.
28348         * tests/test-asinl.c: New file.
28349
28350         Tests for module 'acosl'.
28351         * modules/acosl-tests: New file.
28352         * tests/test-acosl.c: New file.
28353
28354         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28355         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28356         tanl): Use the standard gnulib idiom.
28357         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28358         * lib/sinl.c: Likewise.
28359         * lib/tanl.c: Don't include trigl.c.
28360         (kernel_tanl): Make static.
28361         * lib/sincosl.c: Include trigl.h first.
28362         * lib/trigl.c: Likewise.
28363         * m4/acosl.m4: New file.
28364         * m4/asinl.m4: New file.
28365         * m4/atanl.m4: New file.
28366         * m4/cosl.m4: New file.
28367         * m4/expl.m4: New file.
28368         * m4/logl.m4: New file.
28369         * m4/sinl.m4: New file.
28370         * m4/sqrtl.m4: New file.
28371         * m4/tanl.m4: New file.
28372         * m4/mathl.m4: Remove file.
28373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28374         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28375         Don't initialize GNULIB_MATHL.
28376         * modules/acosl: New file.
28377         * modules/asinl: New file.
28378         * modules/atanl: New file.
28379         * modules/cosl: New file.
28380         * modules/expl: New file.
28381         * modules/logl: New file.
28382         * modules/sinl: New file.
28383         * modules/sqrtl: New file.
28384         * modules/tanl: New file.
28385         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28386         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28387         substitute GNULIB_MATHL.
28388         * modules/mathl: Rewritten.
28389         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28390         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28391         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28392         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28393         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28394         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28395         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28396         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28397         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28398
28399 2010-01-18  Bruno Haible  <bruno@clisp.org>
28400
28401         sqrt: Make gl_FUNC_SQRT requirable.
28402         * m4/sqrt.m4: New file.
28403         * modules/sqrt (Files): Add it.
28404         (configure.ac): Invoke gl_FUNC_SQRT.
28405
28406 2010-01-18  Bruno Haible  <bruno@clisp.org>
28407
28408         New modules for common <math.h> functions.
28409         * m4/mathfunc.m4: New file.
28410         * modules/acos: New file.
28411         * modules/asin: New file.
28412         * modules/atan: New file.
28413         * modules/atan2: New file.
28414         * modules/cbrt: New file.
28415         * modules/copysign: New file.
28416         * modules/cos: New file.
28417         * modules/cosh: New file.
28418         * modules/erf: New file.
28419         * modules/erfc: New file.
28420         * modules/exp: New file.
28421         * modules/fabs: New file.
28422         * modules/fmod: New file.
28423         * modules/hypot: New file.
28424         * modules/j0: New file.
28425         * modules/j1: New file.
28426         * modules/jn: New file.
28427         * modules/ldexp: New file.
28428         * modules/lgamma: New file.
28429         * modules/log: New file.
28430         * modules/log10: New file.
28431         * modules/log1p: New file.
28432         * modules/logb: New file.
28433         * modules/modf: New file.
28434         * modules/nextafter: New file.
28435         * modules/pow: New file.
28436         * modules/remainder: New file.
28437         * modules/rint: New file.
28438         * modules/sin: New file.
28439         * modules/sinh: New file.
28440         * modules/sqrt: New file.
28441         * modules/tan: New file.
28442         * modules/tanh: New file.
28443         * modules/y0: New file.
28444         * modules/y1: New file.
28445         * modules/yn: New file.
28446         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28447         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28448         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28449         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28450         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28451         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28452         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28453         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28454         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28455         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28456         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28457         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28458         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28459         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28460         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28461         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28462         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28463         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28464         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28465         * doc/posix-functions/log.texi: Mention the 'log' module.
28466         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28467         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28468         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28469         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28470         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28471         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28472         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28473         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28474         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28475         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28476         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28477         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28478         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28479         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28480         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28481         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28482
28483 2010-01-18  Jim Meyering  <meyering@redhat.com>
28484
28485         ignore-value: relax license to LGPLv2+
28486         * modules/ignore-value (License): Relax to LGPLv2+.
28487
28488         getdate: don't leak when TZ contains two or more '"'s
28489         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28490         double quote in TZ after the first one.
28491
28492         readtokens: do not leak internal token_lengths buffer
28493         * lib/readtokens.c (readtokens): Free the local, lengths,
28494         when the supplied "token_lengths" parameter is NULL.
28495
28496 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28497
28498         Fix a couple of missing LIBTHREAD link failures on AIX.
28499         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28500         $(LIBTHREAD).
28501         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28502
28503         Link test-poll against INET_PTON_LIB.
28504         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28505         for inet_pton on Solaris 10.
28506
28507 2010-01-17  Bruno Haible  <bruno@clisp.org>
28508
28509         unistdio/*-sprintf: Fix typo in module description.
28510         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28511         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28512         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28513         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28514         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28515         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28516         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28518
28519 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28520
28521         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28522         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28523         variables in shell case patterns, for AIX and HP-UX ksh.
28524
28525         Split large sed scripts, for HP-UX sed.
28526         * modules/stdio: Split sed scripts around 50 sed commands,
28527         to avoid HP-UX limit of 99 commands, in the near future.
28528         * modules/string: Likewise.
28529         * modules/unistd: Likewise.
28530
28531         gnulib-tool: avoid writing in the current directory.
28532         * gnulib-tool (func_emit_lib_Makefile_am)
28533         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28534         not in the current directory, so concurrent gnulib-tool
28535         instances do not interfere.
28536
28537 2010-01-16  Jim Meyering  <meyering@redhat.com>
28538
28539         doc: update users.txt
28540         * users.txt: Add grep.
28541         (diffutils, gzip): Update URLs.
28542
28543 2010-01-12  Bruno Haible  <bruno@clisp.org>
28544
28545         posix_spawn: Avoid test failure on Cygwin.
28546         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28547         characters.
28548         Reported by Simon Josefsson.
28549
28550 2010-01-12  Bruno Haible  <bruno@clisp.org>
28551
28552         * tests/test-cond.c (main): When skipping the test, show the reason.
28553
28554 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28555
28556         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28557
28558 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28559
28560         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28561         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28562
28563 2010-01-12  Eric Blake  <ebb9@byu.net>
28564
28565         build: guarantee AS_VAR_IF
28566         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28567         (gl_AS_VAR_IF): Move...
28568         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28569         Reported by Simon Josefsson.
28570
28571 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28572
28573         * lib/stdio.in.h: Fix typo.
28574
28575 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28576
28577         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28578         libgpg-error.
28579
28580 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28581
28582         * tests/test-xalloc-die.sh: Use $EXEEXT.
28583
28584 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28585             Bruno Haible  <bruno@clisp.org>
28586
28587         getlogin, getlogin_r: Avoid test failure.
28588         * tests/test-getlogin.c: Include <stdio.h>.
28589         (main): Skip the test when the function fails because stdin is not a
28590         tty.
28591         * tests/test-getlogin_r.c: Include <stdio.h>.
28592         (main): Skip the test when the function fails because stdin is not a
28593         tty.
28594
28595 2010-01-11  Eric Blake  <ebb9@byu.net>
28596
28597         tests: avoid more large file warnings
28598         * tests/test-fflush.c: Avoid warning about ftell use.
28599         * tests/test-fseek.c: Avoid warning about fseek use.
28600
28601 2010-01-10  Bruno Haible  <bruno@clisp.org>
28602
28603         nproc: Work better on Linux when /proc and /sys are not mounted.
28604         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28605         as lower bound when, on glibc/Linux systems,
28606         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28607         Suggested by Pádraig Brady <P@draigbrady.com>.
28608         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28609
28610         nproc: Refactor.
28611         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28612         extracted from num_processors.
28613         (num_processors): Call it.
28614
28615 2010-01-11  Jim Meyering  <meyering@redhat.com>
28616
28617         utimecmp: avoid new warning from upcoming gcc-4.5.0
28618         * lib/utimecmp.c (BILLION): Define using #define rather than an
28619         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28620
28621 2010-01-11  Eric Blake  <ebb9@byu.net>
28622
28623         math: add portability warnings for classification macros
28624         * modules/math (Depends-on): Add warn-on-use.
28625         (Makefile.am): Provide new substitutions.
28626         * m4/math_h.m4 (gl_MATH_H): Require inline.
28627         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28628         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28629         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28630         implement warnings.
28631
28632         unistd: warn on use of environ without module
28633         * modules/unistd (Depends-on): Add warn-on-use.
28634         (Makefile.am): Provide new substitutions.
28635         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28636         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28637
28638         stdio: warn on suspicious uses
28639         * modules/stdio (Depends-on): Add warn-on-use.
28640         (Makefile.am): Provide new substitutions.
28641         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28642         fseeko.
28643         * lib/stdio.in.h (gets): Always warn on use.
28644         (fseek, ftell): Adjust when warnings are issued, and honor
28645         _GL_NO_LARGE_FILES as a way to silence the warning.
28646         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28647         any warning about large file offsets.
28648         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28649         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28650         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28651         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28652         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28653         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28654         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28655         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28656
28657         warn-on-use: new module
28658         * modules/warn-on-use: New file.
28659         * build-aux/warn-on-use.h: Likewise.
28660         * m4/warn-on-use.m4: Likewise.
28661         * MODULES.html.sh (Support for building): Mention it.
28662
28663 2010-01-10  Bruno Haible  <bruno@clisp.org>
28664
28665         Tests for module 'unistr/u32-strdup'.
28666         * modules/unistr/u32-strdup-tests: New file.
28667         * tests/unistr/test-u32-strdup.c: New file.
28668
28669         Tests for module 'unistr/u16-strdup'.
28670         * modules/unistr/u16-strdup-tests: New file.
28671         * tests/unistr/test-u16-strdup.c: New file.
28672
28673         Tests for module 'unistr/u8-strdup'.
28674         * modules/unistr/u8-strdup-tests: New file.
28675         * tests/unistr/test-u8-strdup.c: New file.
28676         * tests/unistr/test-strdup.h: New file.
28677
28678         Tests for module 'unistr/u32-strncmp'.
28679         * modules/unistr/u32-strncmp-tests: New file.
28680         * tests/unistr/test-u32-strncmp.c: New file.
28681
28682         Tests for module 'unistr/u16-strncmp'.
28683         * modules/unistr/u16-strncmp-tests: New file.
28684         * tests/unistr/test-u16-strncmp.c: New file.
28685
28686         Tests for module 'unistr/u8-strncmp'.
28687         * modules/unistr/u8-strncmp-tests: New file.
28688         * tests/unistr/test-u8-strncmp.c: New file.
28689         * tests/unistr/test-strncmp.h: New file.
28690
28691         Tests for module 'unistr/u32-strcoll'.
28692         * modules/unistr/u32-strcoll-tests: New file.
28693         * tests/unistr/test-u32-strcoll.c: New file.
28694
28695         Tests for module 'unistr/u16-strcoll'.
28696         * modules/unistr/u16-strcoll-tests: New file.
28697         * tests/unistr/test-u16-strcoll.c: New file.
28698
28699         Tests for module 'unistr/u8-strcoll'.
28700         * modules/unistr/u8-strcoll-tests: New file.
28701         * tests/unistr/test-u8-strcoll.c: New file.
28702
28703         Tests for module 'unistr/u32-strcmp'.
28704         * modules/unistr/u32-strcmp-tests: New file.
28705         * tests/unistr/test-u32-strcmp.c: New file.
28706         * tests/unistr/test-u32-strcmp.h: New file.
28707
28708         Tests for module 'unistr/u16-strcmp'.
28709         * modules/unistr/u16-strcmp-tests: New file.
28710         * tests/unistr/test-u16-strcmp.c: New file.
28711         * tests/unistr/test-u16-strcmp.h: New file.
28712
28713         Tests for module 'unistr/u8-strcmp'.
28714         * modules/unistr/u8-strcmp-tests: New file.
28715         * tests/unistr/test-u8-strcmp.c: New file.
28716         * tests/unistr/test-u8-strcmp.h: New file.
28717         * tests/unistr/test-strcmp.h: New file.
28718
28719         Tests for module 'unistr/u32-strncat'.
28720         * modules/unistr/u32-strncat-tests: New file.
28721         * tests/unistr/test-u32-strncat.c: New file.
28722
28723         Tests for module 'unistr/u16-strncat'.
28724         * modules/unistr/u16-strncat-tests: New file.
28725         * tests/unistr/test-u16-strncat.c: New file.
28726
28727         Tests for module 'unistr/u8-strncat'.
28728         * modules/unistr/u8-strncat-tests: New file.
28729         * tests/unistr/test-u8-strncat.c: New file.
28730         * tests/unistr/test-strncat.h: New file.
28731
28732         Tests for module 'unistr/u32-strcat'.
28733         * modules/unistr/u32-strcat-tests: New file.
28734         * tests/unistr/test-u32-strcat.c: New file.
28735
28736         Tests for module 'unistr/u16-strcat'.
28737         * modules/unistr/u16-strcat-tests: New file.
28738         * tests/unistr/test-u16-strcat.c: New file.
28739
28740         Tests for module 'unistr/u8-strcat'.
28741         * modules/unistr/u8-strcat-tests: New file.
28742         * tests/unistr/test-u8-strcat.c: New file.
28743         * tests/unistr/test-strcat.h: New file.
28744
28745         Tests for module 'unistr/u32-stpncpy'.
28746         * modules/unistr/u32-stpncpy-tests: New file.
28747         * tests/unistr/test-u32-stpncpy.c: New file.
28748
28749         Tests for module 'unistr/u16-stpncpy'.
28750         * modules/unistr/u16-stpncpy-tests: New file.
28751         * tests/unistr/test-u16-stpncpy.c: New file.
28752
28753         Tests for module 'unistr/u8-stpncpy'.
28754         * modules/unistr/u8-stpncpy-tests: New file.
28755         * tests/unistr/test-u8-stpncpy.c: New file.
28756         * tests/unistr/test-stpncpy.h: New file.
28757
28758         Tests for module 'unistr/u32-strncpy'.
28759         * modules/unistr/u32-strncpy-tests: New file.
28760         * tests/unistr/test-u32-strncpy.c: New file.
28761
28762         Tests for module 'unistr/u16-strncpy'.
28763         * modules/unistr/u16-strncpy-tests: New file.
28764         * tests/unistr/test-u16-strncpy.c: New file.
28765
28766         Tests for module 'unistr/u8-strncpy'.
28767         * modules/unistr/u8-strncpy-tests: New file.
28768         * tests/unistr/test-u8-strncpy.c: New file.
28769         * tests/unistr/test-strncpy.h: New file.
28770
28771         Tests for module 'unistr/u32-stpcpy'.
28772         * modules/unistr/u32-stpcpy-tests: New file.
28773         * tests/unistr/test-u32-stpcpy.c: New file.
28774
28775         Tests for module 'unistr/u16-stpcpy'.
28776         * modules/unistr/u16-stpcpy-tests: New file.
28777         * tests/unistr/test-u16-stpcpy.c: New file.
28778
28779         Tests for module 'unistr/u8-stpcpy'.
28780         * modules/unistr/u8-stpcpy-tests: New file.
28781         * tests/unistr/test-u8-stpcpy.c: New file.
28782         * tests/unistr/test-stpcpy.h: New file.
28783
28784         Tests for module 'unistr/u32-strcpy'.
28785         * modules/unistr/u32-strcpy-tests: New file.
28786         * tests/unistr/test-u32-strcpy.c: New file.
28787
28788         Tests for module 'unistr/u16-strcpy'.
28789         * modules/unistr/u16-strcpy-tests: New file.
28790         * tests/unistr/test-u16-strcpy.c: New file.
28791
28792         Tests for module 'unistr/u8-strcpy'.
28793         * modules/unistr/u8-strcpy-tests: New file.
28794         * tests/unistr/test-u8-strcpy.c: New file.
28795         * tests/unistr/test-strcpy.h: New file.
28796
28797         Tests for module 'unistr/u32-strnlen'.
28798         * modules/unistr/u32-strnlen-tests: New file.
28799         * tests/unistr/test-u32-strnlen.c: New file.
28800
28801         Tests for module 'unistr/u16-strnlen'.
28802         * modules/unistr/u16-strnlen-tests: New file.
28803         * tests/unistr/test-u16-strnlen.c: New file.
28804
28805         Tests for module 'unistr/u8-strnlen'.
28806         * modules/unistr/u8-strnlen-tests: New file.
28807         * tests/unistr/test-u8-strnlen.c: New file.
28808         * tests/unistr/test-strnlen.h: New file.
28809
28810         Tests for module 'unistr/u32-strlen'.
28811         * modules/unistr/u32-strlen-tests: New file.
28812         * tests/unistr/test-u32-strlen.c: New file.
28813
28814         Tests for module 'unistr/u16-strlen'.
28815         * modules/unistr/u16-strlen-tests: New file.
28816         * tests/unistr/test-u16-strlen.c: New file.
28817
28818         Tests for module 'unistr/u8-strlen'.
28819         * modules/unistr/u8-strlen-tests: New file.
28820         * tests/unistr/test-u8-strlen.c: New file.
28821
28822         Tests for module 'unistr/u32-prev'.
28823         * modules/unistr/u32-prev-tests: New file.
28824         * tests/unistr/test-u32-prev.c: New file.
28825
28826         Tests for module 'unistr/u16-prev'.
28827         * modules/unistr/u16-prev-tests: New file.
28828         * tests/unistr/test-u16-prev.c: New file.
28829
28830         Tests for module 'unistr/u8-prev'.
28831         * modules/unistr/u8-prev-tests: New file.
28832         * tests/unistr/test-u8-prev.c: New file.
28833
28834         Tests for module 'unistr/u32-next'.
28835         * modules/unistr/u32-next-tests: New file.
28836         * tests/unistr/test-u32-next.c: New file.
28837
28838         Tests for module 'unistr/u16-next'.
28839         * modules/unistr/u16-next-tests: New file.
28840         * tests/unistr/test-u16-next.c: New file.
28841
28842         Tests for module 'unistr/u8-next'.
28843         * modules/unistr/u8-next-tests: New file.
28844         * tests/unistr/test-u8-next.c: New file.
28845
28846         Tests for module 'unistr/u32-strmbtouc'.
28847         * modules/unistr/u32-strmbtouc-tests: New file.
28848         * tests/unistr/test-u32-strmbtouc.c: New file.
28849
28850         Tests for module 'unistr/u16-strmbtouc'.
28851         * modules/unistr/u16-strmbtouc-tests: New file.
28852         * tests/unistr/test-u16-strmbtouc.c: New file.
28853
28854         Tests for module 'unistr/u8-strmbtouc'.
28855         * modules/unistr/u8-strmbtouc-tests: New file.
28856         * tests/unistr/test-u8-strmbtouc.c: New file.
28857
28858         Tests for module 'unistr/u32-strmblen'.
28859         * modules/unistr/u32-strmblen-tests: New file.
28860         * tests/unistr/test-u32-strmblen.c: New file.
28861
28862         Tests for module 'unistr/u16-strmblen'.
28863         * modules/unistr/u16-strmblen-tests: New file.
28864         * tests/unistr/test-u16-strmblen.c: New file.
28865
28866         Tests for module 'unistr/u8-strmblen'.
28867         * modules/unistr/u8-strmblen-tests: New file.
28868         * tests/unistr/test-u8-strmblen.c: New file.
28869
28870         Tests for module 'unistr/u32-cpy-alloc'.
28871         * modules/unistr/u32-cpy-alloc-tests: New file.
28872         * tests/unistr/test-u32-cpy-alloc.c: New file.
28873
28874         Tests for module 'unistr/u16-cpy-alloc'.
28875         * modules/unistr/u16-cpy-alloc-tests: New file.
28876         * tests/unistr/test-u16-cpy-alloc.c: New file.
28877
28878         Tests for module 'unistr/u8-cpy-alloc'.
28879         * modules/unistr/u8-cpy-alloc-tests: New file.
28880         * tests/unistr/test-u8-cpy-alloc.c: New file.
28881         * tests/unistr/test-cpy-alloc.h: New file.
28882
28883         Tests for module 'unistr/u32-mbsnlen'.
28884         * modules/unistr/u32-mbsnlen-tests: New file.
28885         * tests/unistr/test-u32-mbsnlen.c: New file.
28886
28887         Tests for module 'unistr/u16-mbsnlen'.
28888         * modules/unistr/u16-mbsnlen-tests: New file.
28889         * tests/unistr/test-u16-mbsnlen.c: New file.
28890
28891         Tests for module 'unistr/u8-mbsnlen'.
28892         * modules/unistr/u8-mbsnlen-tests: New file.
28893         * tests/unistr/test-u8-mbsnlen.c: New file.
28894
28895         Tests for module 'unistr/u32-chr'.
28896         * modules/unistr/u32-chr-tests: New file.
28897         * tests/unistr/test-u32-chr.c: New file.
28898
28899         Tests for module 'unistr/u16-chr'.
28900         * modules/unistr/u16-chr-tests: New file.
28901         * tests/unistr/test-u16-chr.c: New file.
28902
28903         Tests for module 'unistr/u8-chr'.
28904         * modules/unistr/u8-chr-tests: New file.
28905         * tests/unistr/test-u8-chr.c: New file.
28906         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28907
28908         Tests for module 'unistr/u32-cmp2'.
28909         * modules/unistr/u32-cmp2-tests: New file.
28910         * tests/unistr/test-u32-cmp2.c: New file.
28911
28912         Tests for module 'unistr/u16-cmp2'.
28913         * modules/unistr/u16-cmp2-tests: New file.
28914         * tests/unistr/test-u16-cmp2.c: New file.
28915
28916         Tests for module 'unistr/u8-cmp2'.
28917         * modules/unistr/u8-cmp2-tests: New file.
28918         * tests/unistr/test-u8-cmp2.c: New file.
28919         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28920
28921         Tests for module 'unistr/u32-cmp'.
28922         * modules/unistr/u32-cmp-tests: New file.
28923         * tests/unistr/test-u32-cmp.c: New file.
28924
28925         Tests for module 'unistr/u16-cmp'.
28926         * modules/unistr/u16-cmp-tests: New file.
28927         * tests/unistr/test-u16-cmp.c: New file.
28928
28929         Tests for module 'unistr/u8-cmp'.
28930         * modules/unistr/u8-cmp-tests: New file.
28931         * tests/unistr/test-u8-cmp.c: New file.
28932         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28933
28934         Tests for module 'unistr/u32-set'.
28935         * modules/unistr/u32-set-tests: New file.
28936         * tests/unistr/test-u32-set.c: New file.
28937
28938         Tests for module 'unistr/u16-set'.
28939         * modules/unistr/u16-set-tests: New file.
28940         * tests/unistr/test-u16-set.c: New file.
28941
28942         Tests for module 'unistr/u8-set'.
28943         * modules/unistr/u8-set-tests: New file.
28944         * tests/unistr/test-u8-set.c: New file.
28945         * tests/unistr/test-set.h: New file.
28946
28947         Tests for module 'unistr/u32-move'.
28948         * modules/unistr/u32-move-tests: New file.
28949         * tests/unistr/test-u32-move.c: New file.
28950
28951         Tests for module 'unistr/u16-move'.
28952         * modules/unistr/u16-move-tests: New file.
28953         * tests/unistr/test-u16-move.c: New file.
28954
28955         Tests for module 'unistr/u8-move'.
28956         * modules/unistr/u8-move-tests: New file.
28957         * tests/unistr/test-u8-move.c: New file.
28958         * tests/unistr/test-move.h: New file.
28959
28960         Tests for module 'unistr/u32-cpy'.
28961         * modules/unistr/u32-cpy-tests: New file.
28962         * tests/unistr/test-u32-cpy.c: New file.
28963
28964         Tests for module 'unistr/u16-cpy'.
28965         * modules/unistr/u16-cpy-tests: New file.
28966         * tests/unistr/test-u16-cpy.c: New file.
28967
28968         Tests for module 'unistr/u8-cpy'.
28969         * modules/unistr/u8-cpy-tests: New file.
28970         * tests/unistr/test-u8-cpy.c: New file.
28971         * tests/unistr/test-cpy.h: New file.
28972
28973 2010-01-09  Bruno Haible  <bruno@clisp.org>
28974
28975         Tests for module 'unistr/u32-uctomb'.
28976         * modules/unistr/u32-uctomb-tests: New file.
28977         * tests/unistr/test-u32-uctomb.c: New file.
28978
28979         Tests for module 'unistr/u16-uctomb'.
28980         * modules/unistr/u16-uctomb-tests: New file.
28981         * tests/unistr/test-u16-uctomb.c: New file.
28982
28983         Tests for module 'unistr/u8-uctomb'.
28984         * modules/unistr/u8-uctomb-tests: New file.
28985         * tests/unistr/test-u8-uctomb.c: New file.
28986
28987         Tests for module 'unistr/u32-mbtoucr'.
28988         * modules/unistr/u32-mbtoucr-tests: New file.
28989         * tests/unistr/test-u32-mbtoucr.c: New file.
28990
28991         Tests for module 'unistr/u16-mbtoucr'.
28992         * modules/unistr/u16-mbtoucr-tests: New file.
28993         * tests/unistr/test-u16-mbtoucr.c: New file.
28994
28995         Tests for module 'unistr/u8-mbtoucr'.
28996         * modules/unistr/u8-mbtoucr-tests: New file.
28997         * tests/unistr/test-u8-mbtoucr.c: New file.
28998
28999         Tests for module 'unistr/u32-mbtouc'.
29000         * modules/unistr/u32-mbtouc-tests: New file.
29001         * tests/unistr/test-u32-mbtouc.c: New file.
29002
29003         Tests for module 'unistr/u16-mbtouc'.
29004         * modules/unistr/u16-mbtouc-tests: New file.
29005         * tests/unistr/test-u16-mbtouc.c: New file.
29006
29007         Tests for module 'unistr/u8-mbtouc'.
29008         * modules/unistr/u8-mbtouc-tests: New file.
29009         * tests/unistr/test-u8-mbtouc.c: New file.
29010
29011         Tests for module 'unistr/u32-mbtouc-unsafe'.
29012         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29013         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29014         * tests/unistr/test-u32-mbtouc.h: New file.
29015
29016         Tests for module 'unistr/u16-mbtouc-unsafe'.
29017         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29018         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29019         * tests/unistr/test-u16-mbtouc.h: New file.
29020
29021         Tests for module 'unistr/u8-mbtouc-unsafe'.
29022         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29023         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29024         * tests/unistr/test-u8-mbtouc.h: New file.
29025
29026         Tests for module 'unistr/u32-mblen'.
29027         * modules/unistr/u32-mblen-tests: New file.
29028         * tests/unistr/test-u32-mblen.c: New file.
29029
29030         Tests for module 'unistr/u16-mblen'.
29031         * modules/unistr/u16-mblen-tests: New file.
29032         * tests/unistr/test-u16-mblen.c: New file.
29033
29034         Tests for module 'unistr/u8-mblen'.
29035         * modules/unistr/u8-mblen-tests: New file.
29036         * tests/unistr/test-u8-mblen.c: New file.
29037
29038         Tests for module 'unistr/u32-to-u16'.
29039         * modules/unistr/u32-to-u16-tests: New file.
29040         * tests/unistr/test-u32-to-u16.c: New file.
29041
29042         Tests for module 'unistr/u32-to-u8'.
29043         * modules/unistr/u32-to-u8-tests: New file.
29044         * tests/unistr/test-u32-to-u8.c: New file.
29045
29046         Tests for module 'unistr/u16-to-u32'.
29047         * modules/unistr/u16-to-u32-tests: New file.
29048         * tests/unistr/test-u16-to-u32.c: New file.
29049
29050         Tests for module 'unistr/u16-to-u8'.
29051         * modules/unistr/u16-to-u8-tests: New file.
29052         * tests/unistr/test-u16-to-u8.c: New file.
29053
29054         Tests for module 'unistr/u8-to-u32'.
29055         * modules/unistr/u8-to-u32-tests: New file.
29056         * tests/unistr/test-u8-to-u32.c: New file.
29057
29058         Tests for module 'unistr/u8-to-u16'.
29059         * modules/unistr/u8-to-u16-tests: New file.
29060         * tests/unistr/test-u8-to-u16.c: New file.
29061
29062         Tests for module 'unistr/u32-check'.
29063         * modules/unistr/u32-check-tests: New file.
29064         * tests/unistr/test-u32-check.c: New file.
29065
29066         Tests for module 'unistr/u16-check'.
29067         * modules/unistr/u16-check-tests: New file.
29068         * tests/unistr/test-u16-check.c: New file.
29069
29070         Tests for module 'unistr/u8-check'.
29071         * modules/unistr/u8-check-tests: New file.
29072         * tests/unistr/test-u8-check.c: New file.
29073
29074         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29075         (category_equals): New function.
29076         (main): Add more tests.
29077         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29078
29079         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29080
29081 2010-01-10  Bruno Haible  <bruno@clisp.org>
29082
29083         unistr/u*-strcoll: Try harder to distinguish different strings.
29084         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29085         compare s1 and s2 to see if they are different.
29086
29087 2010-01-10  Bruno Haible  <bruno@clisp.org>
29088
29089         unistr/u*-stpncpy: Fix the return value.
29090         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29091         description of the return value consistent with stpncpy in glibc.
29092         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29093         written non-NUL unit.
29094
29095 2010-01-10  Bruno Haible  <bruno@clisp.org>
29096
29097         unistr/u*-next: Add missing dependencies.
29098         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29099         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29100         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29101
29102 2010-01-10  Bruno Haible  <bruno@clisp.org>
29103
29104         unistr/u8-mbsnlen: Fix return value for incomplete character.
29105         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29106         u8_mblen.
29107         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29108         Remove unistr/u8-mblen.
29109         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29110         u16_mblen.
29111         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29112         Remove unistr/u16-mblen.
29113
29114 2010-01-10  Bruno Haible  <bruno@clisp.org>
29115
29116         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29117         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29118         Reported by Brian Gough <bjg@gnu.org> and
29119         Chris Clayton <chris2553@googlemail.com> via
29120         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29121
29122 2010-01-09  Bruno Haible  <bruno@clisp.org>
29123
29124         unistr/u16-to-u32: Reject invalid input.
29125         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29126         u16_mbtouc.
29127         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29128         Remove unistr/u16-mbtouc.
29129
29130         unistr/u16-to-u8: Reject invalid input.
29131         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29132         u16_mbtouc.
29133         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29134         Remove unistr/u16-mbtouc.
29135
29136         unistr/u8-to-u32: Reject invalid input.
29137         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29138         u8_mbtouc.
29139         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29140         Remove unistr/u8-mbtouc.
29141
29142         unistr/u8-to-u16: Reject invalid input.
29143         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29144         u8_mbtouc.
29145         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29146         Remove unistr/u8-mbtouc.
29147
29148 2010-01-09  Bruno Haible  <bruno@clisp.org>
29149
29150         Tests for module 'getlogin'.
29151         * modules/getlogin-tests: New file.
29152         * tests/test-getlogin.c: New file.
29153
29154         New module 'getlogin'.
29155         * lib/unistd.in.h (getlogin): New declaration.
29156         * lib/getlogin.c: New file.
29157         * m4/getlogin.m4: New file.
29158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29159         HAVE_GETLOGIN.
29160         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29161         HAVE_GETLOGIN.
29162         * modules/getlogin: New file.
29163         * doc/posix-functions/getlogin.texi: Mention the new module.
29164         Reported by John W. Eaton <jwe@gnu.org>.
29165
29166 2010-01-09  Bruno Haible  <bruno@clisp.org>
29167
29168         getlogin_r: Support for native Windows.
29169         * lib/getlogin_r.c: Include <windows.h>
29170         (getlogin_r): Implement for native Windows.
29171         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29172         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29173         via John W. Eaton <jwe@gnu.org>.
29174
29175 2010-01-09  Bruno Haible  <bruno@clisp.org>
29176
29177         getlogin_r: Small fixes.
29178         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29179         succeeds.
29180         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29181         before testing whether getlogin_r is declared. No need to set
29182         HAVE_DECL_GETLOGIN_R to 1.
29183         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29184
29185 2010-01-09  Bruno Haible  <bruno@clisp.org>
29186
29187         * lib/unistd.in.h (getlogin_r): Add comment.
29188
29189 2010-01-09  Bruno Haible  <bruno@clisp.org>
29190
29191         Tests for module 'getlogin_r'.
29192         * modules/getlogin_r-tests: New file.
29193         * tests/test-getlogin_r.c: New file.
29194
29195 2010-01-09  Jim Meyering  <meyering@redhat.com>
29196
29197         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29198         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29199         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29200
29201 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29202
29203         * lib/dup2.c (rpl_dup2): Improve comment.
29204
29205 2010-01-08  Eric Blake  <ebb9@byu.net>
29206
29207         maint.mk: allow packages to add makefile @@ exceptions
29208         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29209         (sc_makefile_check): Rename...
29210         (sc_makefile_at_at_check): ...to this, and use hook.
29211
29212         dup2: work around mingw bug
29213         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29214         Reported by Simon Josefsson.
29215
29216 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29217
29218         glob: Fix C++ compilation.
29219         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29220         C++.
29221
29222 2010-01-07  Bruno Haible  <bruno@clisp.org>
29223
29224         Fix indentation of wctype.in.h, broken since 2007-01-06.
29225         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29226
29227 2010-01-07  Bruno Haible  <bruno@clisp.org>
29228
29229         mbslen: Avoid collision with system function.
29230         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29231         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29232         * m4/mbslen.m4: New file.
29233         * modules/mbslen (Files): Add it.
29234         (configure.ac): Invoke gl_MBSLEN.
29235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29236         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29237         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29238         via Ian Beckwith <ianb@erislabs.net>.
29239
29240 2010-01-07  Bruno Haible  <bruno@clisp.org>
29241
29242         dirent: Document the last fix.
29243         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29244
29245 2010-01-07  Bruno Haible  <bruno@clisp.org>
29246
29247         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29248         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29249         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29250         va_list are defined.
29251         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29252         Reported by Eric Blake.
29253
29254 2010-01-07  Bruno Haible  <bruno@clisp.org>
29255
29256         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29257         * modules/xlist (Depends-on): Add 'list',
29258         * modules/xoset (Depends-on): Add 'oset'.
29259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29260
29261 2010-01-07  Bruno Haible  <bruno@clisp.org>
29262
29263         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29264         * doc/posix-functions/strncasecmp.texi: Likewise.
29265
29266 2010-01-07  Bruno Haible  <bruno@clisp.org>
29267
29268         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29269
29270 2010-01-07  John W. Eaton  <jwe@octave.org>
29271
29272         wctype: allow C++ use
29273         * lib/wctype.in.h: Add extern "C" block for C++.
29274
29275 2010-01-06  Eric Blake  <ebb9@byu.net>
29276
29277         maint.mk: detect incorrect GFDL usage
29278         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29279
29280 2010-01-06  Jim Meyering  <meyering@redhat.com>
29281         and Eric Blake  <ebb9@byu.net>
29282
29283         maint.mk: ignore multi-line copyright in NEWS
29284         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29285
29286 2010-01-06  Eric Blake  <ebb9@byu.net>
29287
29288         select: add missing dependency
29289         * modules/select-tests (Depends-on): Move sockets dependency...
29290         * modules/select (Depends-on): ...here.
29291         Reported by Ian Beckwith.
29292
29293         doc: regenerate INSTALL
29294         * doc/INSTALL: Reflect recent autoconf update.
29295         * doc/INSTALL.ISO: Likewise.
29296         * doc/INSTALL.UTF-8: Likewise.
29297
29298         pread: fix compilation on glibc
29299         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29300         Reported by Ralf Wildenhues.
29301
29302         dirent: fix test failure
29303         * lib/dirent.in.h (includes): Guarantee ino_t.
29304         Reported by Ralf Wildenhues.
29305
29306 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29307
29308         linkat, renameat: avoid bad free
29309         * lib/at-func2.c (at_func2): Fix typo.
29310         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29311
29312 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29313
29314         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29315         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29316         to avoid failure of symlink test later.
29317
29318 2010-01-06  Eric Blake  <ebb9@byu.net>
29319
29320         stdio, unistd: guarantee ssize_t
29321         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29322         2008 are exposed when needed.
29323         * lib/stdio.in.h (includes): Likewise.
29324         Reported by Ralf Wildenhues.
29325
29326 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29327
29328         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29329         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29330         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29331
29332 2010-01-06  Jim Meyering  <meyering@redhat.com>
29333
29334         readtokens: this module *does* require xalloc.h
29335         It uses only functions that were omitted by the old syntax-check rule.
29336         * lib/readtokens.c: Include "xalloc.h" once again.
29337         * modules/readtokens (Depends-on): Add xalloc.
29338         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29339
29340 2010-01-05  Eric Blake  <ebb9@byu.net>
29341
29342         maint: support 'make announcement' from a VPATH build
29343         * top/maint.mk (announcement): Look for correct NEWS file.
29344
29345 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29346
29347         utimens (fdutimens): ignore a negative FD, per contract
29348         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29349         when we have a valid file descriptor.  Otherwise, using a brand
29350         new glibc (with just-patched futimens that now fails with EBADF)
29351         would cause this function to fail with ENOSYS.
29352         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29353         See also http://bugzilla.redhat.com/552320.
29354
29355 2010-01-05  Eric Blake  <ebb9@byu.net>
29356
29357         strcase: document what it provides
29358         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29359         gnulib module.
29360         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29361         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29362
29363 2010-01-05  Jim Meyering  <meyering@redhat.com>
29364
29365         maint: remove useless inclusions of "xalloc.h"
29366         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29367         * lib/readtokens.c: Likewise.
29368         * lib/same.c: Likewise.
29369         * modules/getloadavg (Depends-on): Remove xalloc.
29370         * modules/readtokens: Likewise.
29371         * modules/same: Likewise.
29372
29373         maint.mk: include 4 more function names in alloca.h-checking regexp
29374         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29375         regexp.  Before, we would give a false-positive (saying alloca.h
29376         is included unnecessarily) when the only uses involved omitted symbols.
29377
29378         xalloc.h: use consistent formatting
29379         * lib/xalloc.h: Move declarations to start in the first column.
29380
29381 2010-01-05  Eric Blake  <ebb9@byu.net>
29382
29383         mkdir: avoid xalloc
29384         * lib/mkdir.c (includes): Drop unused header.
29385         Reported by John W. Eaton.
29386
29387 2010-01-04  Jim Meyering  <meyering@redhat.com>
29388
29389         nl_langinfo: avoid configure-time syntax error
29390         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29391         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29392         the empty string.  Don't let that provoke a shell syntax error.
29393
29394         regcomp, regexec, fnmatch: avoid array bounds read error
29395         * lib/regcomp.c (build_equiv_class): From glibc:
29396         Use only the low 24 bits of a findidx return value as an index
29397         into the weights array.  Patch by Ulrich Drepper:
29398         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29399         * lib/regexec.c (check_node_accept_bytes): Likewise.
29400         * lib/fnmatch_loop.c (FCT): Likewise.
29401
29402         regcomp: skip collseq lookup when there are no rules
29403         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29404         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29405
29406         regcomp: recognize ill-formed { } expressions
29407         * lib/regcomp.c (parse_dup_op): From glibc:
29408         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29409
29410         regcomp: fix typo in comment
29411         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29412         s/satisfy/satisfies/.
29413
29414         regcomp: sync from glibc: remove dead store
29415         * lib/regcomp.c (duplicate_node_closure): Remove useless
29416         search_duplicated_node call and dead store.
29417
29418         regcomp: sync from glibc; always use nl_langinfo
29419         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29420         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29421         * modules/regex (Depends-on): Add nl_langinfo.
29422
29423 2010-01-04  Eric Blake  <ebb9@byu.net>
29424
29425         fdopendir: fix configure test
29426         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29427
29428 2010-01-01  Bruno Haible  <bruno@clisp.org>
29429
29430         wchar: Remove unused configure check.
29431         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29432
29433 2010-01-01  Eric Blake  <ebb9@byu.net>
29434
29435         headers: make check of system header explicit
29436         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29437         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29438         ourselves.
29439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29441         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29442         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29443         internals.
29444         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29445         missing.
29446         Suggested by Bruno Haible.
29447
29448 2010-01-01  Jim Meyering  <meyering@redhat.com>
29449
29450         ChangeLog: tweak to eliminate unnecessary copyright line
29451         * ChangeLog: Remove a copyright line that was mistakenly updated
29452         by today's update-copyright run.  Reported by Eric Blake.
29453
29454         test-update-copyright: don't let envvar setting cause test failure
29455         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29456
29457 2010-01-01  Bruno Haible  <bruno@clisp.org>
29458
29459         localename: Avoid gcc warning.
29460         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29461         function if it is not used.
29462
29463 2010-01-01  Jim Meyering  <meyering@redhat.com>
29464
29465         update nearly all FSF copyright year lists to include 2010
29466         Use the same procedure as for 2009, outlined in
29467         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29468
29469         version-etc: set COPYRIGHT_YEAR to 2010
29470         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29471
29472 2009-12-31  Eric Blake  <ebb9@byu.net>
29473
29474         doc: correct availability of cygwin 1.5.x getopt
29475         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29476         variables.
29477         * doc/posix-functions/opterr.texi (opterr): Likewise.
29478         * doc/posix-functions/optind.texi (optind): Likewise.
29479         * doc/posix-functions/optopt.texi (optopt): Likewise.
29480         * doc/posix-functions/tzname.texi (tzname): Likewise.
29481
29482         openat: update maintainer
29483         * modules/openat (Maintainer): Add myself.
29484
29485         utimens: avoid shadowing warning
29486         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29487         buffers into one, to avoid shadowing, as well as avoiding a
29488         redundant stat.
29489         Reported by Jim Meyering.
29490
29491         test-dup2: avoid compiler warning
29492         * tests/test-dup2.c (is_inheritable): Only define if used.
29493
29494 2010-01-01  Bruno Haible  <bruno@clisp.org>
29495
29496         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29497         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29498         defined, use wctomb instead of wcrtomb.
29499
29500 2010-01-01  Bruno Haible  <bruno@clisp.org>
29501
29502         iconv: Reject native Solaris iconv.
29503         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29504         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29505
29506 2009-12-31  Bruno Haible  <bruno@clisp.org>
29507
29508         * tests/test-signal.c (main): Remove test of 'SIG'.
29509
29510 2009-12-31  Bruno Haible  <bruno@clisp.org>
29511
29512         spawn: Fix incomplete fix.
29513         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29514         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29515         warnings for GNULIB_POSIXCHECK again.
29516         Reported by Eric Blake.
29517
29518 2009-12-31  Bruno Haible  <bruno@clisp.org>
29519
29520         Avoid namespace pollution on glibc systems.
29521         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29522         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29523         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29524         glibc systems.
29525
29526 2009-12-31  Bruno Haible  <bruno@clisp.org>
29527
29528         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29529         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29530         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29531         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29532         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29533         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29534         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29535
29536 2009-12-31  Bruno Haible  <bruno@clisp.org>
29537
29538         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29539         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29540         afterwards.
29541
29542 2009-12-31  Bruno Haible  <bruno@clisp.org>
29543
29544         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29545         SYS_UTSNAME_H.
29546
29547 2009-12-31  Bruno Haible  <bruno@clisp.org>
29548
29549         spawn: Fix misapplied patch.
29550         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29551         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29552         warnings for GNULIB_POSIXCHECK.
29553
29554 2009-12-31  Bruno Haible  <bruno@clisp.org>
29555
29556         times: Update after sys_times changed.
29557         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29558         * modules/times (Files): Add it.
29559         (configure.ac): Invoke gl_FUNC_TIMES.
29560
29561 2009-12-31  Bruno Haible  <bruno@clisp.org>
29562
29563         Use AC_C_INLINE where necessary.
29564         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29566         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29567         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29568         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29569         * m4/mbiter.m4 (gl_MBITER): Likewise.
29570         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29571         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29572         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29573         * modules/u64 (configure.ac): Likewise.
29574
29575 2009-12-31  Bruno Haible  <bruno@clisp.org>
29576
29577         Use AC_C_INLINE instead of module 'inline' where possible.
29578         * modules/inline (Description): Clarify purpose.
29579         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29580         * modules/count-one-bits (Depends-on): Remove inline.
29581         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29582         * modules/openat (Depends-on): Remove inline.
29583         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29584         instead of depending on module 'inline'.
29585         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29586         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29587         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29588         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29589         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29590         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29591         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29592         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29593         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29594         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29595         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29596         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29597         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29598         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29599         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29600         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29601         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29602         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29603         Likewise.
29604         * modules/unictype/property-ascii-hex-digit (Depends-on,
29605         configure.ac): Likewise.
29606         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29607         configure.ac): Likewise.
29608         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29609         configure.ac): Likewise.
29610         * modules/unictype/property-bidi-block-separator (Depends-on,
29611         configure.ac): Likewise.
29612         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29613         configure.ac): Likewise.
29614         * modules/unictype/property-bidi-common-separator (Depends-on,
29615         configure.ac): Likewise.
29616         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29617         Likewise.
29618         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29619         configure.ac): Likewise.
29620         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29621         configure.ac): Likewise.
29622         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29623         configure.ac): Likewise.
29624         * modules/unictype/property-bidi-european-digit (Depends-on,
29625         configure.ac): Likewise.
29626         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29627         configure.ac): Likewise.
29628         * modules/unictype/property-bidi-left-to-right (Depends-on,
29629         configure.ac): Likewise.
29630         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29631         configure.ac): Likewise.
29632         * modules/unictype/property-bidi-other-neutral (Depends-on,
29633         configure.ac): Likewise.
29634         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29635         Likewise.
29636         * modules/unictype/property-bidi-segment-separator (Depends-on,
29637         configure.ac): Likewise.
29638         * modules/unictype/property-bidi-whitespace (Depends-on,
29639         configure.ac): Likewise.
29640         * modules/unictype/property-combining (Depends-on, configure.ac):
29641         Likewise.
29642         * modules/unictype/property-composite (Depends-on, configure.ac):
29643         Likewise.
29644         * modules/unictype/property-currency-symbol (Depends-on,
29645         configure.ac): Likewise.
29646         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29647         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29648         Likewise.
29649         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29650         configure.ac): Likewise.
29651         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29652         Likewise.
29653         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29654         Likewise.
29655         * modules/unictype/property-extender (Depends-on, configure.ac):
29656         Likewise.
29657         * modules/unictype/property-format-control (Depends-on, configure.ac):
29658         Likewise.
29659         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29660         Likewise.
29661         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29662         Likewise.
29663         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29664         Likewise.
29665         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29666         Likewise.
29667         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29668         Likewise.
29669         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29670         Likewise.
29671         * modules/unictype/property-id-start (Depends-on, configure.ac):
29672         Likewise.
29673         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29674         Likewise.
29675         * modules/unictype/property-ids-binary-operator (Depends-on,
29676         configure.ac): Likewise.
29677         * modules/unictype/property-ids-trinary-operator (Depends-on,
29678         configure.ac): Likewise.
29679         * modules/unictype/property-ignorable-control (Depends-on,
29680         configure.ac): Likewise.
29681         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29682         Likewise.
29683         * modules/unictype/property-join-control (Depends-on, configure.ac):
29684         Likewise.
29685         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29686         Likewise.
29687         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29688         Likewise.
29689         * modules/unictype/property-logical-order-exception (Depends-on,
29690         configure.ac): Likewise.
29691         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29692         Likewise.
29693         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29694         * modules/unictype/property-non-break (Depends-on, configure.ac):
29695         Likewise.
29696         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29697         Likewise.
29698         * modules/unictype/property-numeric (Depends-on, configure.ac):
29699         Likewise.
29700         * modules/unictype/property-other-alphabetic (Depends-on,
29701         configure.ac): Likewise.
29702         * modules/unictype/property-other-default-ignorable-code-point
29703         (Depends-on, configure.ac): Likewise.
29704         * modules/unictype/property-other-grapheme-extend (Depends-on,
29705         configure.ac): Likewise.
29706         * modules/unictype/property-other-id-continue (Depends-on,
29707         configure.ac): Likewise.
29708         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29709         Likewise.
29710         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29711         Likewise.
29712         * modules/unictype/property-other-math (Depends-on, configure.ac):
29713         Likewise.
29714         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29715         Likewise.
29716         * modules/unictype/property-paired-punctuation (Depends-on,
29717         configure.ac): Likewise.
29718         * modules/unictype/property-paragraph-separator (Depends-on,
29719         configure.ac): Likewise.
29720         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29721         Likewise.
29722         * modules/unictype/property-pattern-white-space (Depends-on,
29723         configure.ac): Likewise.
29724         * modules/unictype/property-private-use (Depends-on, configure.ac):
29725         Likewise.
29726         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29727         Likewise.
29728         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29729         Likewise.
29730         * modules/unictype/property-radical (Depends-on, configure.ac):
29731         Likewise.
29732         * modules/unictype/property-sentence-terminal (Depends-on,
29733         configure.ac): Likewise.
29734         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29735         Likewise.
29736         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29737         * modules/unictype/property-terminal-punctuation (Depends-on,
29738         configure.ac): Likewise.
29739         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29740         Likewise.
29741         * modules/unictype/property-unassigned-code-value (Depends-on,
29742         configure.ac): Likewise.
29743         * modules/unictype/property-unified-ideograph (Depends-on,
29744         configure.ac): Likewise.
29745         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29746         Likewise.
29747         * modules/unictype/property-variation-selector (Depends-on,
29748         configure.ac): Likewise.
29749         * modules/unictype/property-white-space (Depends-on, configure.ac):
29750         Likewise.
29751         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29752         Likewise.
29753         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29754         Likewise.
29755         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29756         Likewise.
29757         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29758         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29759         Likewise.
29760
29761 2009-12-31  Bruno Haible  <bruno@clisp.org>
29762
29763         Remove unnecessary AC_C_INLINE invocation.
29764         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29765         since 2009-08-21.
29766
29767 2009-12-31  Jim Meyering  <meyering@redhat.com>
29768
29769         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29770         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29771         With this change, we can all remove the gpg_key_ID = ... definition
29772         from our respective cfg.mk files.
29773
29774         maint.mk: create announcement template in ~/, not in /tmp
29775         * top/maint.mk (emit_upload_commands): Adjust.
29776         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29777         Remove temporary file, .ci-msg.
29778
29779 2009-12-31  Eric Blake  <ebb9@byu.net>
29780
29781         link-warning: always build headers with link warnings
29782         * modules/arpa_inet (Makefile.am): Always build replacement
29783         header.
29784         * modules/ctype (Makefile.am): Likewise.
29785         * modules/dirent (Makefile.am): Likewise.
29786         * modules/inttypes (Makefile.am): Likewise.
29787         * modules/langinfo (Makefile.am): Likewise.
29788         * modules/locale (Makefile.am): Likewise.
29789         * modules/spawn (Makefile.am): Likewise.
29790         * modules/sys_file (Makefile.am): Likewise.
29791         * modules/sys_ioctl (Makefile.am): Likewise.
29792         * modules/sys_select (Makefile.am): Likewise.
29793         * modules/sys_socket (Makefile.am): Likewise.
29794         * modules/sys_times (Makefile.am): Likewise.
29795         * modules/sys_utsname (Makefile.am): Likewise.
29796         * modules/sys_wait (Makefile.am): Likewise.
29797         * modules/wchar (Makefile.am): Likewise.
29798         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29799         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29800         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29801         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29802         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29803         Likewise.
29804         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29805         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29806         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29807         Likewise.
29808         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29809         Likewise.
29810         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29811         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29812         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29814         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29815         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29816         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29817         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29818         (gl_WCHAR_H_DEFAULTS): Likewise.
29819
29820 2009-12-31  Eric Blake  <ebb9@byu.net>
29821
29822         signal, spawn: use link warnings
29823         * lib/signal.in.h (sigset_t): Make unconditional.
29824         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29825         (sigpending, sigprocmask, sigaction): Add link warnings.
29826         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29827         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29828         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29829         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29830         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29831         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29832         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29833         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29834         (posix_spawn_file_actions_destroy)
29835         (posix_spawn_file_actions_addopen)
29836         (posix_spawn_file_actions_addclose)
29837         (posix_spawn_file_actions_adddup2): Likewise.
29838         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29839         * tests/test-signal.c (main): Enhance test.
29840
29841         spawn: improve wrapper support
29842         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29843         (gl_SPAWN_H_DEFAULTS): New defaults.
29844         * modules/spawn (Makefile.am): Substitute them.
29845         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29846         Only declare if missing or broken.
29847
29848         sys_times, sys_utsname: use include_next
29849         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29850         header.
29851         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29852         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29853         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29854         * modules/sys_times (Depends-on): Add include_next.
29855         (Makefile.am): Substitute additional values.
29856         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29857         * lib/sys_times.in.h (includes): Include native header, if
29858         available.
29859         * lib/sys_utsname.in.h (includes): Likewise.
29860         * tests/test-sys_times.c (main): Enhance test.
29861
29862         fdutimensat: revert prior patch
29863         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29864         utimens.h.
29865         Reported by Bruno Haible.
29866
29867 2009-12-30  Eric Blake  <ebb9@byu.net>
29868
29869         sys_wait: drop link-warning dependency
29870         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29871         link-warning efforts.
29872         * lib/sys_wait.in.h: Likewise.
29873
29874         fdutimensat: remove bogus dependency
29875         * modules/fdutimensat (Depends-on): Drop inline.
29876
29877         unistd: fix typo
29878         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29879
29880 2009-12-30  Bruno Haible  <bruno@clisp.org>
29881
29882         Fix compilation error with Solaris cc.
29883         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29884         * lib/unicase/u16-is-invariant.c: Likewise.
29885         * lib/unicase/u32-is-invariant.c: Likewise.
29886         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29887
29888 2009-12-30  Bruno Haible  <bruno@clisp.org>
29889
29890         Fix test crash.
29891         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29892         locales.
29893         Reported by Simon Josefsson <simon@josefsson.org>.
29894
29895 2009-12-30  Bruno Haible  <bruno@clisp.org>
29896
29897         Fix compilation error on most platforms.
29898         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29899         Reported by Simon Josefsson <simon@josefsson.org>
29900         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29901
29902 2009-12-30  Eric Blake  <ebb9@byu.net>
29903
29904         futimens, utimensat: work around ntfs-3g bug
29905         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29906         a ctime bug is present, and expand workaround to cover ntfs-3g.
29907         * lib/utimens.c (fdutimens, lutimens): Likewise.
29908         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29909         (validate_timespec): Adjust return value.
29910         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29911         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29912         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29913
29914 2009-12-29  Eric Blake  <ebb9@byu.net>
29915
29916         link-warning: make usage consistent
29917         * modules/ctype (Depends-on): Add link-warning.
29918         (Makefile.am): Update rules accordingly.
29919         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29920         * modules/locale (Depends-on, Makefile.am): Likewise.
29921         * modules/sys_file (Makefile.am): Likewise.
29922         * modules/getopt-posix (Makefile.am): Delete unused link warning
29923         efforts.
29924         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29925         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29926         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29927         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29928
29929         stdio: remove unused variables
29930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29931         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29932         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29933
29934         tests: test more substitute headers
29935         * modules/ctype-tests: New file.
29936         * modules/dirent-tests: Likewise.
29937         * modules/spawn-tests: Likewise.
29938         * modules/sys_file-tests: Likewise.
29939         * modules/sys_ioctl-tests: Likewise.
29940         * modules/sys_wait-tests: Likewise.
29941         * tests/test-ctype.c: Likewise.
29942         * tests/test-dirent.c: Likewise.
29943         * tests/test-spawn.c: Likewise.
29944         * tests/test-sys_file.c: Likewise.
29945         * tests/test-sys_ioctl.c: Likewise.
29946         * tests/test-sys_wait.c: Likewise.
29947         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29948         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29949         whether or not flock is in use.
29950
29951         tests: remove License section from module
29952         * modules/arpa_inet-tests: Remove unneeded section.
29953         * modules/byteswap-tests: Likewise.
29954         * modules/ceilf-tests: Likewise.
29955         * modules/ceill-tests: Likewise.
29956         * modules/crypto/des-tests: Likewise.
29957         * modules/crypto/gc-arcfour-tests: Likewise.
29958         * modules/crypto/gc-arctwo-tests: Likewise.
29959         * modules/crypto/gc-des-tests: Likewise.
29960         * modules/crypto/gc-hmac-md5-tests: Likewise.
29961         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29962         * modules/crypto/gc-md2-tests: Likewise.
29963         * modules/crypto/gc-md4-tests: Likewise.
29964         * modules/crypto/gc-md5-tests: Likewise.
29965         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29966         * modules/crypto/gc-rijndael-tests: Likewise.
29967         * modules/crypto/gc-sha1-tests: Likewise.
29968         * modules/crypto/gc-tests: Likewise.
29969         * modules/crypto/md2-tests: Likewise.
29970         * modules/crypto/md4-tests: Likewise.
29971         * modules/fcntl-h-tests: Likewise.
29972         * modules/floorf-tests: Likewise.
29973         * modules/floorl-tests: Likewise.
29974         * modules/frexp-nolibm-tests: Likewise.
29975         * modules/frexp-tests: Likewise.
29976         * modules/frexpl-nolibm-tests: Likewise.
29977         * modules/frexpl-tests: Likewise.
29978         * modules/getaddrinfo-tests: Likewise.
29979         * modules/inttypes-tests: Likewise.
29980         * modules/isfinite-tests: Likewise.
29981         * modules/isinf-tests: Likewise.
29982         * modules/ldexpl-tests: Likewise.
29983         * modules/locale-tests: Likewise.
29984         * modules/math-tests: Likewise.
29985         * modules/netdb-tests: Likewise.
29986         * modules/netinet_in-tests: Likewise.
29987         * modules/printf-frexp-tests: Likewise.
29988         * modules/printf-frexpl-tests: Likewise.
29989         * modules/priv-set-tests: Likewise.
29990         * modules/random_r-tests: Likewise.
29991         * modules/round-tests: Likewise.
29992         * modules/roundf-tests: Likewise.
29993         * modules/roundl-tests: Likewise.
29994         * modules/search-tests: Likewise.
29995         * modules/select-tests: Likewise.
29996         * modules/signal-tests: Likewise.
29997         * modules/stdbool-tests: Likewise.
29998         * modules/stddef-tests: Likewise.
29999         * modules/stdint-tests: Likewise.
30000         * modules/stdio-tests: Likewise.
30001         * modules/stdlib-tests: Likewise.
30002         * modules/string-tests: Likewise.
30003         * modules/strings-tests: Likewise.
30004         * modules/sys_select-tests: Likewise.
30005         * modules/sys_socket-tests: Likewise.
30006         * modules/sys_stat-tests: Likewise.
30007         * modules/sys_time-tests: Likewise.
30008         * modules/sys_utsname-tests: Likewise.
30009         * modules/sysexits-tests: Likewise.
30010         * modules/time-tests: Likewise.
30011         * modules/trunc-tests: Likewise.
30012         * modules/truncf-tests: Likewise.
30013         * modules/truncl-tests: Likewise.
30014         * modules/tsearch-tests: Likewise.
30015         * modules/unistd-tests: Likewise.
30016         * modules/wchar-tests: Likewise.
30017         * modules/wctype-tests: Likewise.
30018
30019         tests: fix license on several tests
30020         * tests/test-des.c: Update to GPLv3+.
30021         * tests/test-flock.c: Likewise.
30022         * tests/test-fsync.c: Likewise.
30023         * tests/test-futimens.h: Likewise.
30024         * tests/test-gc-arcfour.c: Likewise.
30025         * tests/test-gc-arctwo.c: Likewise.
30026         * tests/test-gc-des.c: Likewise.
30027         * tests/test-gc-hmac-md5.c: Likewise.
30028         * tests/test-gc-hmac-sha1.c: Likewise.
30029         * tests/test-gc-md2.c: Likewise.
30030         * tests/test-gc-md4.c: Likewise.
30031         * tests/test-gc-md5.c: Likewise.
30032         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30033         * tests/test-gc-rijndael.c: Likewise.
30034         * tests/test-gc-sha1.c: Likewise.
30035         * tests/test-gc.c: Likewise.
30036         * tests/test-getcwd.c: Likewise.
30037         * tests/test-link.c: Likewise.
30038         * tests/test-link.h: Likewise.
30039         * tests/test-lutimens.h: Likewise.
30040         * tests/test-md2.c: Likewise.
30041         * tests/test-md4.c: Likewise.
30042         * tests/test-mkdir.h: Likewise.
30043         * tests/test-rename.c: Likewise.
30044         * tests/test-rename.h: Likewise.
30045         * tests/test-safe-alloc.c: Likewise.
30046         * tests/test-utimens-common.h: Likewise.
30047         * tests/test-utimens.h: Likewise.
30048
30049         maint: sync license texts
30050         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30051         * doc/gpl-3.0.texi: Revert copyright year update.
30052         * doc/lgpl-3.0.texi: Likewise.
30053
30054 2009-12-29  Jim Meyering  <meyering@redhat.com>
30055
30056         update nearly all FSF copyright year lists to include 2009
30057         The files named by the following are exempted:
30058             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30059               test -f "$dst" && { echo "$dst"; continue; }
30060               test -d "$dst" || continue
30061               echo "$dst"/$(basename "$src")
30062             done > exempt
30063             git ls-files tests/unictype >> exempt
30064         In the remaining files, convert to all-interval notation if
30065         - there is already at least one year interval like 2000-2003
30066         - the file is maintained by me
30067         - the file is in lib/uni*/, where that style already prevails
30068         Otherwise, use update-copyright's default.
30069
30070 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30071         and Eric Blake  <ebb9@byu.net>
30072
30073         tests: don't require debug system() to pass
30074         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30075         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30076         * tests/test-unlink.h (test_unlink_func): Likewise.
30077         * tests/test-fstatat.c (main): ...into callers.
30078         * tests/test-lstat.c (main): Likewise.
30079         * tests/test-rmdir.c (main): Likewise.
30080         * tests/test-unlink.c (main): Likewise.
30081         * tests/test-unlinkat.c (main): Likewise.
30082         * tests/test-areadlink-with-size.c (main): Don't require a
30083         debug-only system call to pass, aiding cross-testing to mingw.
30084         * tests/test-areadlink.c (main): Likewise.
30085         * tests/test-areadlinkat-with-size.c (main): Likewise.
30086         * tests/test-areadlinkat.c (main): Likewise.
30087         * tests/test-canonicalize-lgpl.c (main): Likewise.
30088         * tests/test-canonicalize.c (main): Likewise.
30089         * tests/test-chown.c (main): Likewise.
30090         * tests/test-fchownat.c (main): Likewise.
30091         * tests/test-lchown.c (main): Likewise.
30092         * tests/test-fdutimensat.c (main): Likewise.
30093         * tests/test-futimens.c (main): Likewise.
30094         * tests/test-link.c (main): Likewise.
30095         * tests/test-linkat.c (main): Likewise.
30096         * tests/test-mkdir.c (main): Likewise.
30097         * tests/test-mkdirat.c (main): Likewise.
30098         * tests/test-mkfifo.c (main): Likewise.
30099         * tests/test-mkfifoat.c (main): Likewise.
30100         * tests/test-mknod.c (main): Likewise.
30101         * tests/test-readlink.c (main): Likewise.
30102         * tests/test-remove.c (main): Likewise.
30103         * tests/test-rename.c (main): Likewise.
30104         * tests/test-renameat.c (main): Likewise.
30105         * tests/test-symlink.c (main): Likewise.
30106         * tests/test-symlinkat.c (main): Likewise.
30107         * tests/test-utimens.c (main): Likewise.
30108         * tests/test-utimensat.c (main): Likewise.
30109
30110 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30111
30112         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30113         on $(UNUSED_PARAMETER_H) to avoid build failure.
30114
30115 2009-12-28  Jim Meyering  <meyering@redhat.com>
30116
30117         update-copyright: you may specify a max. line length other than 72
30118         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30119
30120         maint: use consistent FSF copyright line syntax
30121         * lib/posixtm.c: Add missing comma in FSF copyright line.
30122         * lib/posixtm.h: Likewise.
30123         * lib/getugroups.c: Add missing ", Inc.".
30124
30125         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30126         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30127         FSF copyright line.  Remove trailing blanks.
30128
30129 2009-12-28  Eric Blake  <ebb9@byu.net>
30130
30131         test-dup2: reduce dependencies
30132         * modules/cloexec (Configure.ac): Set witness.
30133         * modules/dup2-tests (Depends-on): Drop cloexec.
30134         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30135         not present.
30136         Suggested by Bruno Haible.
30137
30138 2009-12-26  Bruno Haible  <bruno@clisp.org>
30139
30140         Remove an unneeded dependency.
30141         * modules/fseterr (Depends-on): Remove dup2.
30142
30143 2009-12-26  Eric Blake  <ebb9@byu.net>
30144
30145         tests: use macros.h in more places
30146         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30147         (ASSERT_STREAM): Provide default of stderr.
30148         * tests/test-dirent-safer.c: Include macros.h, using alternate
30149         stream for assertions.
30150         * tests/test-dup-safer.c: Likewise.
30151         * tests/test-freopen-safer.c: Likewise.
30152         * tests/test-getopt.c: Likewise.
30153         * tests/test-openat-safer.c: Likewise.
30154         * tests/test-pipe.c: Likewise.
30155         * tests/test-popen-safer.c: Likewise.
30156         * modules/dirent-safer-tests (Files): Include macros.h.
30157         * modules/unistd-safer-tests (Files): Likewise.
30158         * modules/freopen-safer-tests (Files): Likewise.
30159         * modules/getopt-posix-tests (Files): Likewise.
30160         * modules/openat-safer-tests (Files): Likewise.
30161         * modules/pipe-tests (Files): Likewise.
30162
30163 2009-12-26  Bruno Haible  <bruno@clisp.org>
30164
30165         javacomp: Portability fix.
30166         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30167         that it also works on Solaris.
30168
30169 2009-12-26  Bruno Haible  <bruno@clisp.org>
30170
30171         localename: Fix storage allocation of gl_locale_name_thread's result.
30172         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30173         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30174         all platforms that have 'uselocale'.
30175         (gl_locale_name_thread_unsafe): New function, extracted from
30176         gl_locale_name_thread.
30177         (gl_locale_name_thread): Call struniq on all platforms that have
30178         'uselocale'.
30179         * tests/test-localename.c (test_locale_name_thread): Check that the
30180         resulting strings are permanently allocated.
30181         * modules/localename-tests (Depends-on): Add strdup.
30182
30183 2009-12-26  Bruno Haible  <bruno@clisp.org>
30184
30185         * tests/test-localename.c (categories): Fill in the strings.
30186
30187 2009-12-26  Jim Meyering  <meyering@redhat.com>
30188
30189         isdir: complete the removal of m4/isdir.m4
30190         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30191
30192         isdir: clean up, since at least grep still uses it
30193         * lib/isdir.c: Include "isdir.h".
30194         (S_ISDIR): Remove now-unneeded definition.
30195         * modules/isdir (Files): Add lib/isdir.h.
30196         * lib/isdir.h: New file, with declaration.
30197         * m4/isdir.m4: Remove file -- unneeded.
30198
30199 2009-12-25  Bruno Haible  <bruno@clisp.org>
30200
30201         selinux-h: Make generated .h files standalone.
30202         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30203         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30204         * lib/se-selinux.in.h: Likewise.
30205         * modules/selinux-h (Depends-on): Add unused-parameter.
30206         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30207         selinux/selinux.h and selinux/context.h.
30208         Suggested by Eric Blake.
30209
30210 2009-12-25  Bruno Haible  <bruno@clisp.org>
30211
30212         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30213         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30214         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30215         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30216         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30217
30218 2009-12-24  Bruno Haible  <bruno@clisp.org>
30219
30220         openat: Fix warning.
30221         * lib/openat-proc.c: Include <unistd.h>.
30222
30223 2009-12-24  Bruno Haible  <bruno@clisp.org>
30224
30225         New module 'unused-parameter'.
30226         * build-aux/unused-parameter.h: New file, extracted from earlier
30227         gnulib-common.m4.
30228         * modules/unused-parameter: New file.
30229         * lib/unistr.h: Include unused-parameter.h.
30230         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30231         _GL_UNUSED.
30232         * modules/unistr/base (Depends-on): Add unused-parameter.
30233
30234 2009-12-24  Bruno Haible  <bruno@clisp.org>
30235
30236         Add missing dependencies to 'extensions' module.
30237         * m4/extensions.m4: Add comment.
30238         * modules/accept4 (Depends-on): Add extensions.
30239         * modules/dup3 (Depends-on): Likewise.
30240         * modules/fcntl (Depends-on): Likewise.
30241         * modules/futimens (Depends-on): Likewise.
30242         * modules/mknod (Depends-on): Likewise.
30243         * modules/pipe2 (Depends-on): Likewise.
30244         * modules/stat-time (Depends-on): Likewise.
30245         * modules/strcasestr-simple (Depends-on): Likewise.
30246         * modules/strsignal (Depends-on): Likewise.
30247         * modules/utimensat (Depends-on): Likewise.
30248         * modules/localcharset (Depends-on): Likewise. Needed because of
30249         gl_FCNTL_O_FLAGS.
30250         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30251         AC_TYPE_MBSTATE_T.
30252         * modules/wcsnrtombs (Depends-on): Likewise.
30253         * modules/wcsrtombs (Depends-on): Likewise.
30254
30255 2009-12-24  Bruno Haible  <bruno@clisp.org>
30256
30257         binary-io: Avoid gcc warning due to SET_BINARY.
30258         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30259         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30260
30261 2009-12-24  Bruno Haible  <bruno@clisp.org>
30262
30263         Avoid future namespace pollution on glibc systems.
30264         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30265         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30266         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30267         glibc systems.
30268
30269 2009-12-24  Bruno Haible  <bruno@clisp.org>
30270
30271         Refactor common macros used in tests.
30272         * tests/macros.h: New file.
30273         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30274         and/or <stdlib.h>, if appropriate.
30275         (ASSERT, SIZEOF): Remove macros.
30276         * tests/test-areadlink-with-size.c: Likewise.
30277         * tests/test-areadlinkat.c: Likewise.
30278         * tests/test-areadlinkat-with-size.c: Likewise.
30279         * tests/test-argmatch.c: Likewise.
30280         * tests/test-argv-iter.c: Likewise.
30281         * tests/test-array-mergesort.c: Likewise.
30282         * tests/test-array_list.c: Likewise.
30283         * tests/test-array_oset.c: Likewise.
30284         * tests/test-avltree_list.c: Likewise.
30285         * tests/test-avltree_oset.c: Likewise.
30286         * tests/test-avltreehash_list.c: Likewise.
30287         * tests/test-base64.c: Likewise.
30288         * tests/test-binary-io.c: Likewise.
30289         * tests/test-bitrotate.c: Likewise.
30290         * tests/test-btowc.c: Likewise.
30291         * tests/test-byteswap.c: Likewise.
30292         * tests/test-c-ctype.c: Likewise.
30293         * tests/test-c-stack.c: Likewise.
30294         * tests/test-c-strcasecmp.c: Likewise.
30295         * tests/test-c-strcasestr.c: Likewise.
30296         * tests/test-c-strncasecmp.c: Likewise.
30297         * tests/test-c-strstr.c: Likewise.
30298         * tests/test-canonicalize-lgpl.c: Likewise.
30299         * tests/test-canonicalize.c: Likewise.
30300         * tests/test-carray_list.c: Likewise.
30301         * tests/test-ceilf1.c: Likewise.
30302         * tests/test-ceilf2.c: Likewise.
30303         * tests/test-ceill.c: Likewise.
30304         * tests/test-chown.c: Likewise.
30305         * tests/test-cloexec.c: Likewise.
30306         * tests/test-copy-acl.c: Likewise.
30307         * tests/test-copy-file.c: Likewise.
30308         * tests/test-count-one-bits.c: Likewise.
30309         * tests/test-dprintf-posix.c: Likewise.
30310         * tests/test-dup2.c: Likewise.
30311         * tests/test-dup3.c: Likewise.
30312         * tests/test-duplocale.c: Likewise.
30313         * tests/test-fbufmode.c: Likewise.
30314         * tests/test-fchdir.c: Likewise.
30315         * tests/test-fchownat.c: Likewise.
30316         * tests/test-fcntl-safer.c: Likewise.
30317         * tests/test-fcntl.c: Likewise.
30318         * tests/test-fdopendir.c: Likewise.
30319         * tests/test-fdutimensat.c: Likewise.
30320         * tests/test-fflush2.c: Likewise.
30321         * tests/test-file-has-acl.c: Likewise.
30322         * tests/test-filevercmp.c: Likewise.
30323         * tests/test-flock.c: Likewise.
30324         * tests/test-floorf1.c: Likewise.
30325         * tests/test-floorf2.c: Likewise.
30326         * tests/test-floorl.c: Likewise.
30327         * tests/test-fnmatch.c: Likewise.
30328         * tests/test-fopen.h: Likewise.
30329         * tests/test-fpending.c: Likewise.
30330         * tests/test-fprintf-posix.c: Likewise.
30331         * tests/test-fpurge.c: Likewise.
30332         * tests/test-freadable.c: Likewise.
30333         * tests/test-freadahead.c: Likewise.
30334         * tests/test-freading.c: Likewise.
30335         * tests/test-freadptr.c: Likewise.
30336         * tests/test-freadptr2.c: Likewise.
30337         * tests/test-freadseek.c: Likewise.
30338         * tests/test-freopen.c: Likewise.
30339         * tests/test-frexp.c: Likewise.
30340         * tests/test-frexpl.c: Likewise.
30341         * tests/test-fseek.c: Likewise.
30342         * tests/test-fseeko.c: Likewise.
30343         * tests/test-fstatat.c: Likewise.
30344         * tests/test-fstrcmp.c: Likewise.
30345         * tests/test-fsync.c: Likewise.
30346         * tests/test-ftell.c: Likewise.
30347         * tests/test-ftello.c: Likewise.
30348         * tests/test-func.c: Likewise.
30349         * tests/test-futimens.c: Likewise.
30350         * tests/test-fwritable.c: Likewise.
30351         * tests/test-fwriting.c: Likewise.
30352         * tests/test-getcwd.c: Likewise.
30353         * tests/test-getdate.c: Likewise.
30354         * tests/test-getdelim.c: Likewise.
30355         * tests/test-getdtablesize.c: Likewise.
30356         * tests/test-getgroups.c: Likewise.
30357         * tests/test-getline.c: Likewise.
30358         * tests/test-getndelim2.c: Likewise.
30359         * tests/test-glob.c: Likewise.
30360         * tests/test-hash.c: Likewise.
30361         * tests/test-i-ring.c: Likewise.
30362         * tests/test-iconv-utf.c: Likewise.
30363         * tests/test-iconv.c: Likewise.
30364         * tests/test-idpriv-drop.c: Likewise.
30365         * tests/test-idpriv-droptemp.c: Likewise.
30366         * tests/test-inet_ntop.c: Likewise.
30367         * tests/test-inet_pton.c: Likewise.
30368         * tests/test-isblank.c: Likewise.
30369         * tests/test-isfinite.c: Likewise.
30370         * tests/test-isinf.c: Likewise.
30371         * tests/test-isnan.c: Likewise.
30372         * tests/test-isnand.h: Likewise.
30373         * tests/test-isnanf.h: Likewise.
30374         * tests/test-isnanl.h: Likewise.
30375         * tests/test-lchown.c: Likewise.
30376         * tests/test-ldexpl.c: Likewise.
30377         * tests/test-link.c: Likewise.
30378         * tests/test-linkat.c: Likewise.
30379         * tests/test-linked_list.c: Likewise.
30380         * tests/test-linkedhash_list.c: Likewise.
30381         * tests/test-localename.c: Likewise.
30382         * tests/test-lseek.c: Likewise.
30383         * tests/test-lstat.c: Likewise.
30384         * tests/test-mbmemcasecmp.c: Likewise.
30385         * tests/test-mbmemcasecoll.c: Likewise.
30386         * tests/test-mbrtowc.c: Likewise.
30387         * tests/test-mbscasecmp.c: Likewise.
30388         * tests/test-mbscasestr1.c: Likewise.
30389         * tests/test-mbscasestr2.c: Likewise.
30390         * tests/test-mbscasestr3.c: Likewise.
30391         * tests/test-mbscasestr4.c: Likewise.
30392         * tests/test-mbschr.c: Likewise.
30393         * tests/test-mbscspn.c: Likewise.
30394         * tests/test-mbsinit.c: Likewise.
30395         * tests/test-mbsncasecmp.c: Likewise.
30396         * tests/test-mbsnrtowcs.c: Likewise.
30397         * tests/test-mbspbrk.c: Likewise.
30398         * tests/test-mbspcasecmp.c: Likewise.
30399         * tests/test-mbsrchr.c: Likewise.
30400         * tests/test-mbsrtowcs.c: Likewise.
30401         * tests/test-mbsspn.c: Likewise.
30402         * tests/test-mbsstr1.c: Likewise.
30403         * tests/test-mbsstr2.c: Likewise.
30404         * tests/test-mbsstr3.c: Likewise.
30405         * tests/test-memchr.c: Likewise.
30406         * tests/test-memchr2.c: Likewise.
30407         * tests/test-memcmp.c: Likewise.
30408         * tests/test-memmem.c: Likewise.
30409         * tests/test-memrchr.c: Likewise.
30410         * tests/test-mkdir.c: Likewise.
30411         * tests/test-mkdirat.c: Likewise.
30412         * tests/test-mkfifo.c: Likewise.
30413         * tests/test-mkfifoat.c: Likewise.
30414         * tests/test-mknod.c: Likewise.
30415         * tests/test-nanosleep.c: Likewise.
30416         * tests/test-nl_langinfo.c: Likewise.
30417         * tests/test-obstack-printf.c: Likewise.
30418         * tests/test-open.c: Likewise.
30419         * tests/test-openat.c: Likewise.
30420         * tests/test-pipe-filter-gi1.c: Likewise.
30421         * tests/test-pipe-filter-gi2-main.c: Likewise.
30422         * tests/test-pipe-filter-ii1.c: Likewise.
30423         * tests/test-pipe-filter-ii2-main.c: Likewise.
30424         * tests/test-pipe2.c: Likewise.
30425         * tests/test-popen.h: Likewise.
30426         * tests/test-posixtm.c: Likewise.
30427         * tests/test-pread.c: Likewise.
30428         * tests/test-printf-frexp.c: Likewise.
30429         * tests/test-printf-frexpl.c: Likewise.
30430         * tests/test-printf-posix.c: Likewise.
30431         * tests/test-priv-set.c: Likewise.
30432         * tests/test-quotearg.c: Likewise.
30433         * tests/test-random_r.c: Likewise.
30434         * tests/test-rawmemchr.c: Likewise.
30435         * tests/test-rbtree_list.c: Likewise.
30436         * tests/test-rbtree_oset.c: Likewise.
30437         * tests/test-rbtreehash_list.c: Likewise.
30438         * tests/test-readlink.c: Likewise.
30439         * tests/test-remove.c: Likewise.
30440         * tests/test-rename.c: Likewise.
30441         * tests/test-renameat.c: Likewise.
30442         * tests/test-rmdir.c: Likewise.
30443         * tests/test-round1.c: Likewise.
30444         * tests/test-roundf1.c: Likewise.
30445         * tests/test-roundl.c: Likewise.
30446         * tests/test-safe-alloc.c: Likewise.
30447         * tests/test-sameacls.c: Likewise.
30448         * tests/test-set-mode-acl.c: Likewise.
30449         * tests/test-setenv.c: Likewise.
30450         * tests/test-sigaction.c: Likewise.
30451         * tests/test-signbit.c: Likewise.
30452         * tests/test-sleep.c: Likewise.
30453         * tests/test-snprintf-posix.c: Likewise.
30454         * tests/test-snprintf.c: Likewise.
30455         * tests/test-sprintf-posix.c: Likewise.
30456         * tests/test-stat-time.c: Likewise.
30457         * tests/test-stat.c: Likewise.
30458         * tests/test-strcasestr.c: Likewise.
30459         * tests/test-strchrnul.c: Likewise.
30460         * tests/test-strerror.c: Likewise.
30461         * tests/test-striconv.c: Likewise.
30462         * tests/test-striconveh.c: Likewise.
30463         * tests/test-striconveha.c: Likewise.
30464         * tests/test-strsignal.c: Likewise.
30465         * tests/test-strstr.c: Likewise.
30466         * tests/test-strtod.c: Likewise.
30467         * tests/test-strverscmp.c: Likewise.
30468         * tests/test-symlink.c: Likewise.
30469         * tests/test-symlinkat.c: Likewise.
30470         * tests/test-trunc1.c: Likewise.
30471         * tests/test-trunc2.c: Likewise.
30472         * tests/test-truncf1.c: Likewise.
30473         * tests/test-truncf2.c: Likewise.
30474         * tests/test-truncl.c: Likewise.
30475         * tests/test-uname.c: Likewise.
30476         * tests/test-unlink.c: Likewise.
30477         * tests/test-unlinkat.c: Likewise.
30478         * tests/test-unsetenv.c: Likewise.
30479         * tests/test-usleep.c: Likewise.
30480         * tests/test-utimens.c: Likewise.
30481         * tests/test-utimensat.c: Likewise.
30482         * tests/test-vasnprintf-posix.c: Likewise.
30483         * tests/test-vasnprintf-posix2.c: Likewise.
30484         * tests/test-vasnprintf.c: Likewise.
30485         * tests/test-vasprintf-posix.c: Likewise.
30486         * tests/test-vasprintf.c: Likewise.
30487         * tests/test-vdprintf-posix.c: Likewise.
30488         * tests/test-vfprintf-posix.c: Likewise.
30489         * tests/test-vprintf-posix.c: Likewise.
30490         * tests/test-vsnprintf-posix.c: Likewise.
30491         * tests/test-vsnprintf.c: Likewise.
30492         * tests/test-vsprintf-posix.c: Likewise.
30493         * tests/test-wcrtomb.c: Likewise.
30494         * tests/test-wcsnrtombs.c: Likewise.
30495         * tests/test-wcsrtombs.c: Likewise.
30496         * tests/test-wctype.c: Likewise.
30497         * tests/test-wcwidth.c: Likewise.
30498         * tests/test-xfprintf-posix.c: Likewise.
30499         * tests/test-xmemdup0.c: Likewise.
30500         * tests/test-xprintf-posix.c: Likewise.
30501         * tests/test-xvasprintf.c: Likewise.
30502         * tests/unicase/test-locale-language.c: Likewise.
30503         * tests/unicase/test-mapping-part1.h: Likewise.
30504         * tests/unicase/test-predicate-part1.h: Likewise.
30505         * tests/unicase/test-u8-casecmp.c: Likewise.
30506         * tests/unicase/test-u8-casecoll.c: Likewise.
30507         * tests/unicase/test-u8-casefold.c: Likewise.
30508         * tests/unicase/test-u8-is-cased.c: Likewise.
30509         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30510         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30511         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30512         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30513         * tests/unicase/test-u8-tolower.c: Likewise.
30514         * tests/unicase/test-u8-totitle.c: Likewise.
30515         * tests/unicase/test-u8-toupper.c: Likewise.
30516         * tests/unicase/test-u16-casecmp.c: Likewise.
30517         * tests/unicase/test-u16-casecoll.c: Likewise.
30518         * tests/unicase/test-u16-casefold.c: Likewise.
30519         * tests/unicase/test-u16-is-cased.c: Likewise.
30520         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30521         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30522         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30523         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30524         * tests/unicase/test-u16-tolower.c: Likewise.
30525         * tests/unicase/test-u16-totitle.c: Likewise.
30526         * tests/unicase/test-u16-toupper.c: Likewise.
30527         * tests/unicase/test-u32-casecmp.c: Likewise.
30528         * tests/unicase/test-u32-casecoll.c: Likewise.
30529         * tests/unicase/test-u32-casefold.c: Likewise.
30530         * tests/unicase/test-u32-is-cased.c: Likewise.
30531         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30532         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30533         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30534         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30535         * tests/unicase/test-u32-tolower.c: Likewise.
30536         * tests/unicase/test-u32-totitle.c: Likewise.
30537         * tests/unicase/test-u32-toupper.c: Likewise.
30538         * tests/unicase/test-ulc-casecmp.c: Likewise.
30539         * tests/unicase/test-ulc-casecoll.c: Likewise.
30540         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30541         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30542         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30543         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30544         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30545         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30546         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30547         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30548         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30549         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30550         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30551         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30552         * tests/unictype/test-bidi_byname.c: Likewise.
30553         * tests/unictype/test-bidi_name.c: Likewise.
30554         * tests/unictype/test-bidi_of.c: Likewise.
30555         * tests/unictype/test-bidi_test.c: Likewise.
30556         * tests/unictype/test-block_list.c: Likewise.
30557         * tests/unictype/test-block_of.c: Likewise.
30558         * tests/unictype/test-block_test.c: Likewise.
30559         * tests/unictype/test-categ_and.c: Likewise.
30560         * tests/unictype/test-categ_and_not.c: Likewise.
30561         * tests/unictype/test-categ_byname.c: Likewise.
30562         * tests/unictype/test-categ_name.c: Likewise.
30563         * tests/unictype/test-categ_none.c: Likewise.
30564         * tests/unictype/test-categ_of.c: Likewise.
30565         * tests/unictype/test-categ_or.c: Likewise.
30566         * tests/unictype/test-categ_test_withtable.c: Likewise.
30567         * tests/unictype/test-combining.c: Likewise.
30568         * tests/unictype/test-decdigit.c: Likewise.
30569         * tests/unictype/test-digit.c: Likewise.
30570         * tests/unictype/test-mirror.c: Likewise.
30571         * tests/unictype/test-numeric.c: Likewise.
30572         * tests/unictype/test-pr_byname.c: Likewise.
30573         * tests/unictype/test-pr_test.c: Likewise.
30574         * tests/unictype/test-predicate-part1.h: Likewise.
30575         * tests/unictype/test-scripts.c: Likewise.
30576         * tests/unictype/test-sy_c_ident.c: Likewise.
30577         * tests/unictype/test-sy_java_ident.c: Likewise.
30578         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30579         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30580         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30581         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30582         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30583         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30584         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30585         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30586         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30587         * tests/uninorm/test-compat-decomposition.c: Likewise.
30588         * tests/uninorm/test-composition.c: Likewise.
30589         * tests/uninorm/test-decomposing-form.c: Likewise.
30590         * tests/uninorm/test-decomposition.c: Likewise.
30591         * tests/uninorm/test-u8-nfc.c: Likewise.
30592         * tests/uninorm/test-u8-nfd.c: Likewise.
30593         * tests/uninorm/test-u8-nfkc.c: Likewise.
30594         * tests/uninorm/test-u8-nfkd.c: Likewise.
30595         * tests/uninorm/test-u8-normcmp.c: Likewise.
30596         * tests/uninorm/test-u8-normcoll.c: Likewise.
30597         * tests/uninorm/test-u16-nfc.c: Likewise.
30598         * tests/uninorm/test-u16-nfd.c: Likewise.
30599         * tests/uninorm/test-u16-nfkc.c: Likewise.
30600         * tests/uninorm/test-u16-nfkd.c: Likewise.
30601         * tests/uninorm/test-u16-normcmp.c: Likewise.
30602         * tests/uninorm/test-u16-normcoll.c: Likewise.
30603         * tests/uninorm/test-u32-nfc.c: Likewise.
30604         * tests/uninorm/test-u32-nfd.c: Likewise.
30605         * tests/uninorm/test-u32-nfkc.c: Likewise.
30606         * tests/uninorm/test-u32-nfkd.c: Likewise.
30607         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30608         * tests/uninorm/test-u32-normcmp.c: Likewise.
30609         * tests/uninorm/test-u32-normcoll.c: Likewise.
30610         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30611         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30612         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30613         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30614         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30615         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30616         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30617         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30618         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30619         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30620         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30621         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30622         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30623         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30624         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30625         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30626         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30627         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30628         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30629         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30630         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30631         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30632         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30633         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30634         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30635         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30636         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30637         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30638         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30639         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30640         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30641         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30642         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30643         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30644         * tests/uniwidth/test-u8-width.c: Likewise.
30645         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30646         * tests/uniwidth/test-u16-width.c: Likewise.
30647         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30648         * tests/uniwidth/test-u32-width.c: Likewise.
30649         * tests/uniwidth/test-uc_width.c: Likewise.
30650         * tests/uniwidth/test-uc_width2.c: Likewise.
30651         * modules/acl-tests (Files): Add tests/macros.h.
30652         * modules/areadlink-tests (Files): Likewise.
30653         * modules/areadlink-with-size-tests (Files): Likewise.
30654         * modules/areadlinkat-tests (Files): Likewise.
30655         * modules/areadlinkat-with-size-tests (Files): Likewise.
30656         * modules/argmatch-tests (Files): Likewise.
30657         * modules/argv-iter-tests (Files): Likewise.
30658         * modules/array-list-tests (Files): Likewise.
30659         * modules/array-mergesort-tests (Files): Likewise.
30660         * modules/array-oset-tests (Files): Likewise.
30661         * modules/avltree-list-tests (Files): Likewise.
30662         * modules/avltree-oset-tests (Files): Likewise.
30663         * modules/avltreehash-list-tests (Files): Likewise.
30664         * modules/base64-tests (Files): Likewise.
30665         * modules/binary-io-tests (Files): Likewise.
30666         * modules/bitrotate-tests (Files): Likewise.
30667         * modules/btowc-tests (Files): Likewise.
30668         * modules/byteswap-tests (Files): Likewise.
30669         * modules/c-ctype-tests (Files): Likewise.
30670         * modules/c-stack-tests (Files): Likewise.
30671         * modules/c-strcase-tests (Files): Likewise.
30672         * modules/c-strcasestr-tests (Files): Likewise.
30673         * modules/c-strstr-tests (Files): Likewise.
30674         * modules/canonicalize-lgpl-tests (Files): Likewise.
30675         * modules/canonicalize-tests (Files): Likewise.
30676         * modules/carray-list-tests (Files): Likewise.
30677         * modules/ceilf-tests (Files): Likewise.
30678         * modules/ceill-tests (Files): Likewise.
30679         * modules/chown-tests (Files): Likewise.
30680         * modules/cloexec-tests (Files): Likewise.
30681         * modules/copy-file-tests (Files): Likewise.
30682         * modules/count-one-bits-tests (Files): Likewise.
30683         * modules/dprintf-posix-tests (Files): Likewise.
30684         * modules/dup2-tests (Files): Likewise.
30685         * modules/dup3-tests (Files): Likewise.
30686         * modules/duplocale-tests (Files): Likewise.
30687         * modules/fbufmode-tests (Files): Likewise.
30688         * modules/fchdir-tests (Files): Likewise.
30689         * modules/fcntl-safer-tests (Files): Likewise.
30690         * modules/fcntl-tests (Files): Likewise.
30691         * modules/fdopendir-tests (Files): Likewise.
30692         * modules/fdutimensat-tests (Files): Likewise.
30693         * modules/fflush-tests (Files): Likewise.
30694         * modules/filevercmp-tests (Files): Likewise.
30695         * modules/flock-tests (Files): Likewise.
30696         * modules/floorf-tests (Files): Likewise.
30697         * modules/floorl-tests (Files): Likewise.
30698         * modules/fnmatch-tests (Files): Likewise.
30699         * modules/fopen-safer-tests (Files): Likewise.
30700         * modules/fopen-tests (Files): Likewise.
30701         * modules/fpending-tests (Files): Likewise.
30702         * modules/fprintf-posix-tests (Files): Likewise.
30703         * modules/fpurge-tests (Files): Likewise.
30704         * modules/freadable-tests (Files): Likewise.
30705         * modules/freadahead-tests (Files): Likewise.
30706         * modules/freading-tests (Files): Likewise.
30707         * modules/freadptr-tests (Files): Likewise.
30708         * modules/freadseek-tests (Files): Likewise.
30709         * modules/freopen-tests (Files): Likewise.
30710         * modules/frexp-nolibm-tests (Files): Likewise.
30711         * modules/frexp-tests (Files): Likewise.
30712         * modules/frexpl-nolibm-tests (Files): Likewise.
30713         * modules/frexpl-tests (Files): Likewise.
30714         * modules/fseek-tests (Files): Likewise.
30715         * modules/fseeko-tests (Files): Likewise.
30716         * modules/fstrcmp-tests (Files): Likewise.
30717         * modules/fsync-tests (Files): Likewise.
30718         * modules/ftell-tests (Files): Likewise.
30719         * modules/ftello-tests (Files): Likewise.
30720         * modules/func-tests (Files): Likewise.
30721         * modules/futimens-tests (Files): Likewise.
30722         * modules/fwritable-tests (Files): Likewise.
30723         * modules/fwriting-tests (Files): Likewise.
30724         * modules/getcwd-tests (Files): Likewise.
30725         * modules/getdate-tests (Files): Likewise.
30726         * modules/getdelim-tests (Files): Likewise.
30727         * modules/getdtablesize-tests (Files): Likewise.
30728         * modules/getgroups-tests (Files): Likewise.
30729         * modules/getline-tests (Files): Likewise.
30730         * modules/getndelim2-tests (Files): Likewise.
30731         * modules/glob-tests (Files): Likewise.
30732         * modules/hash-tests (Files): Likewise.
30733         * modules/i-ring-tests (Files): Likewise.
30734         * modules/iconv-tests (Files): Likewise.
30735         * modules/iconv_open-utf-tests (Files): Likewise.
30736         * modules/idpriv-drop-tests (Files): Likewise.
30737         * modules/idpriv-droptemp-tests (Files): Likewise.
30738         * modules/inet_ntop-tests (Files): Likewise.
30739         * modules/inet_pton-tests (Files): Likewise.
30740         * modules/isblank-tests (Files): Likewise.
30741         * modules/isfinite-tests (Files): Likewise.
30742         * modules/isinf-tests (Files): Likewise.
30743         * modules/isnan-tests (Files): Likewise.
30744         * modules/isnand-nolibm-tests (Files): Likewise.
30745         * modules/isnand-tests (Files): Likewise.
30746         * modules/isnanf-nolibm-tests (Files): Likewise.
30747         * modules/isnanf-tests (Files): Likewise.
30748         * modules/isnanl-nolibm-tests (Files): Likewise.
30749         * modules/isnanl-tests (Files): Likewise.
30750         * modules/lchown-tests (Files): Likewise.
30751         * modules/ldexpl-tests (Files): Likewise.
30752         * modules/link-tests (Files): Likewise.
30753         * modules/linkat-tests (Files): Likewise.
30754         * modules/linked-list-tests (Files): Likewise.
30755         * modules/linkedhash-list-tests (Files): Likewise.
30756         * modules/localename-tests (Files): Likewise.
30757         * modules/lseek-tests (Files): Likewise.
30758         * modules/lstat-tests (Files): Likewise.
30759         * modules/mbmemcasecmp-tests (Files): Likewise.
30760         * modules/mbmemcasecoll-tests (Files): Likewise.
30761         * modules/mbrtowc-tests (Files): Likewise.
30762         * modules/mbscasecmp-tests (Files): Likewise.
30763         * modules/mbscasestr-tests (Files): Likewise.
30764         * modules/mbschr-tests (Files): Likewise.
30765         * modules/mbscspn-tests (Files): Likewise.
30766         * modules/mbsinit-tests (Files): Likewise.
30767         * modules/mbsncasecmp-tests (Files): Likewise.
30768         * modules/mbsnrtowcs-tests (Files): Likewise.
30769         * modules/mbspbrk-tests (Files): Likewise.
30770         * modules/mbspcasecmp-tests (Files): Likewise.
30771         * modules/mbsrchr-tests (Files): Likewise.
30772         * modules/mbsrtowcs-tests (Files): Likewise.
30773         * modules/mbsspn-tests (Files): Likewise.
30774         * modules/mbsstr-tests (Files): Likewise.
30775         * modules/memchr-tests (Files): Likewise.
30776         * modules/memchr2-tests (Files): Likewise.
30777         * modules/memcmp-tests (Files): Likewise.
30778         * modules/memmem-tests (Files): Likewise.
30779         * modules/memrchr-tests (Files): Likewise.
30780         * modules/mkdir-tests (Files): Likewise.
30781         * modules/mkfifo-tests (Files): Likewise.
30782         * modules/mkfifoat-tests (Files): Likewise.
30783         * modules/mknod-tests (Files): Likewise.
30784         * modules/nanosleep-tests (Files): Likewise.
30785         * modules/nl_langinfo-tests (Files): Likewise.
30786         * modules/obstack-printf-tests (Files): Likewise.
30787         * modules/open-tests (Files): Likewise.
30788         * modules/openat-tests (Files): Likewise.
30789         * modules/pipe-filter-gi-tests (Files): Likewise.
30790         * modules/pipe-filter-ii-tests (Files): Likewise.
30791         * modules/pipe2-tests (Files): Likewise.
30792         * modules/popen-safer-tests (Files): Likewise.
30793         * modules/popen-tests (Files): Likewise.
30794         * modules/posixtm-tests (Files): Likewise.
30795         * modules/pread-tests (Files): Likewise.
30796         * modules/printf-frexp-tests (Files): Likewise.
30797         * modules/printf-frexpl-tests (Files): Likewise.
30798         * modules/printf-posix-tests (Files): Likewise.
30799         * modules/priv-set-tests (Files): Likewise.
30800         * modules/quotearg-tests (Files): Likewise.
30801         * modules/random_r-tests (Files): Likewise.
30802         * modules/rawmemchr-tests (Files): Likewise.
30803         * modules/rbtree-list-tests (Files): Likewise.
30804         * modules/rbtree-oset-tests (Files): Likewise.
30805         * modules/rbtreehash-list-tests (Files): Likewise.
30806         * modules/readlink-tests (Files): Likewise.
30807         * modules/remove-tests (Files): Likewise.
30808         * modules/rename-tests (Files): Likewise.
30809         * modules/renameat-tests (Files): Likewise.
30810         * modules/rmdir-tests (Files): Likewise.
30811         * modules/round-tests (Files): Likewise.
30812         * modules/roundf-tests (Files): Likewise.
30813         * modules/roundl-tests (Files): Likewise.
30814         * modules/safe-alloc-tests (Files): Likewise.
30815         * modules/setenv-tests (Files): Likewise.
30816         * modules/sigaction-tests (Files): Likewise.
30817         * modules/signbit-tests (Files): Likewise.
30818         * modules/sleep-tests (Files): Likewise.
30819         * modules/snprintf-posix-tests (Files): Likewise.
30820         * modules/snprintf-tests (Files): Likewise.
30821         * modules/sprintf-posix-tests (Files): Likewise.
30822         * modules/stat-tests (Files): Likewise.
30823         * modules/stat-time-tests (Files): Likewise.
30824         * modules/strcasestr-tests (Files): Likewise.
30825         * modules/strchrnul-tests (Files): Likewise.
30826         * modules/strerror-tests (Files): Likewise.
30827         * modules/striconv-tests (Files): Likewise.
30828         * modules/striconveh-tests (Files): Likewise.
30829         * modules/striconveha-tests (Files): Likewise.
30830         * modules/strsignal-tests (Files): Likewise.
30831         * modules/strstr-tests (Files): Likewise.
30832         * modules/strtod-tests (Files): Likewise.
30833         * modules/strverscmp-tests (Files): Likewise.
30834         * modules/symlink-tests (Files): Likewise.
30835         * modules/symlinkat-tests (Files): Likewise.
30836         * modules/trunc-tests (Files): Likewise.
30837         * modules/truncf-tests (Files): Likewise.
30838         * modules/truncl-tests (Files): Likewise.
30839         * modules/uname-tests (Files): Likewise.
30840         * modules/unicase/cased-tests (Files): Likewise.
30841         * modules/unicase/ignorable-tests (Files): Likewise.
30842         * modules/unicase/locale-language-tests (Files): Likewise.
30843         * modules/unicase/tolower-tests (Files): Likewise.
30844         * modules/unicase/totitle-tests (Files): Likewise.
30845         * modules/unicase/toupper-tests (Files): Likewise.
30846         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30847         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30848         * modules/unicase/u8-casefold-tests (Files): Likewise.
30849         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30850         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30851         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30852         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30853         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30854         * modules/unicase/u8-tolower-tests (Files): Likewise.
30855         * modules/unicase/u8-totitle-tests (Files): Likewise.
30856         * modules/unicase/u8-toupper-tests (Files): Likewise.
30857         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30858         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30859         * modules/unicase/u16-casefold-tests (Files): Likewise.
30860         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30861         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30862         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30863         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30864         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30865         * modules/unicase/u16-tolower-tests (Files): Likewise.
30866         * modules/unicase/u16-totitle-tests (Files): Likewise.
30867         * modules/unicase/u16-toupper-tests (Files): Likewise.
30868         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30869         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30870         * modules/unicase/u32-casefold-tests (Files): Likewise.
30871         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30872         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30873         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30874         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30875         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30876         * modules/unicase/u32-tolower-tests (Files): Likewise.
30877         * modules/unicase/u32-totitle-tests (Files): Likewise.
30878         * modules/unicase/u32-toupper-tests (Files): Likewise.
30879         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30880         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30881         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30882         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30883         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30884         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30885         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30886         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30887         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30888         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30889         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30890         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30891         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30892         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30893         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30894         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30895         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30896         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30897         * modules/unictype/block-list-tests (Files): Likewise.
30898         * modules/unictype/block-of-tests (Files): Likewise.
30899         * modules/unictype/block-test-tests (Files): Likewise.
30900         * modules/unictype/category-C-tests (Files): Likewise.
30901         * modules/unictype/category-Cc-tests (Files): Likewise.
30902         * modules/unictype/category-Cf-tests (Files): Likewise.
30903         * modules/unictype/category-Cn-tests (Files): Likewise.
30904         * modules/unictype/category-Co-tests (Files): Likewise.
30905         * modules/unictype/category-Cs-tests (Files): Likewise.
30906         * modules/unictype/category-L-tests (Files): Likewise.
30907         * modules/unictype/category-Ll-tests (Files): Likewise.
30908         * modules/unictype/category-Lm-tests (Files): Likewise.
30909         * modules/unictype/category-Lo-tests (Files): Likewise.
30910         * modules/unictype/category-Lt-tests (Files): Likewise.
30911         * modules/unictype/category-Lu-tests (Files): Likewise.
30912         * modules/unictype/category-M-tests (Files): Likewise.
30913         * modules/unictype/category-Mc-tests (Files): Likewise.
30914         * modules/unictype/category-Me-tests (Files): Likewise.
30915         * modules/unictype/category-Mn-tests (Files): Likewise.
30916         * modules/unictype/category-N-tests (Files): Likewise.
30917         * modules/unictype/category-Nd-tests (Files): Likewise.
30918         * modules/unictype/category-Nl-tests (Files): Likewise.
30919         * modules/unictype/category-No-tests (Files): Likewise.
30920         * modules/unictype/category-P-tests (Files): Likewise.
30921         * modules/unictype/category-Pc-tests (Files): Likewise.
30922         * modules/unictype/category-Pd-tests (Files): Likewise.
30923         * modules/unictype/category-Pe-tests (Files): Likewise.
30924         * modules/unictype/category-Pf-tests (Files): Likewise.
30925         * modules/unictype/category-Pi-tests (Files): Likewise.
30926         * modules/unictype/category-Po-tests (Files): Likewise.
30927         * modules/unictype/category-Ps-tests (Files): Likewise.
30928         * modules/unictype/category-S-tests (Files): Likewise.
30929         * modules/unictype/category-Sc-tests (Files): Likewise.
30930         * modules/unictype/category-Sk-tests (Files): Likewise.
30931         * modules/unictype/category-Sm-tests (Files): Likewise.
30932         * modules/unictype/category-So-tests (Files): Likewise.
30933         * modules/unictype/category-Z-tests (Files): Likewise.
30934         * modules/unictype/category-Zl-tests (Files): Likewise.
30935         * modules/unictype/category-Zp-tests (Files): Likewise.
30936         * modules/unictype/category-Zs-tests (Files): Likewise.
30937         * modules/unictype/category-and-not-tests (Files): Likewise.
30938         * modules/unictype/category-and-tests (Files): Likewise.
30939         * modules/unictype/category-byname-tests (Files): Likewise.
30940         * modules/unictype/category-name-tests (Files): Likewise.
30941         * modules/unictype/category-none-tests (Files): Likewise.
30942         * modules/unictype/category-of-tests (Files): Likewise.
30943         * modules/unictype/category-or-tests (Files): Likewise.
30944         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30945         * modules/unictype/combining-class-tests (Files): Likewise.
30946         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30947         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30948         * modules/unictype/ctype-blank-tests (Files): Likewise.
30949         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30950         * modules/unictype/ctype-digit-tests (Files): Likewise.
30951         * modules/unictype/ctype-graph-tests (Files): Likewise.
30952         * modules/unictype/ctype-lower-tests (Files): Likewise.
30953         * modules/unictype/ctype-print-tests (Files): Likewise.
30954         * modules/unictype/ctype-punct-tests (Files): Likewise.
30955         * modules/unictype/ctype-space-tests (Files): Likewise.
30956         * modules/unictype/ctype-upper-tests (Files): Likewise.
30957         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30958         * modules/unictype/decimal-digit-tests (Files): Likewise.
30959         * modules/unictype/digit-tests (Files): Likewise.
30960         * modules/unictype/mirror-tests (Files): Likewise.
30961         * modules/unictype/numeric-tests (Files): Likewise.
30962         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30963         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30964         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30965         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30966         Likewise.
30967         * modules/unictype/property-bidi-block-separator-tests (Files):
30968         Likewise.
30969         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30970         Likewise.
30971         * modules/unictype/property-bidi-common-separator-tests (Files):
30972         Likewise.
30973         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30974         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30975         Likewise.
30976         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30977         Likewise.
30978         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30979         Likewise.
30980         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30981         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30982         Likewise.
30983         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30984         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30985         Likewise.
30986         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30987         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30988         * modules/unictype/property-bidi-segment-separator-tests (Files):
30989         Likewise.
30990         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30991         * modules/unictype/property-byname-tests (Files): Likewise.
30992         * modules/unictype/property-combining-tests (Files): Likewise.
30993         * modules/unictype/property-composite-tests (Files): Likewise.
30994         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30995         * modules/unictype/property-dash-tests (Files): Likewise.
30996         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30997         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30998         Likewise.
30999         * modules/unictype/property-deprecated-tests (Files): Likewise.
31000         * modules/unictype/property-diacritic-tests (Files): Likewise.
31001         * modules/unictype/property-extender-tests (Files): Likewise.
31002         * modules/unictype/property-format-control-tests (Files): Likewise.
31003         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31004         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31005         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31006         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31007         * modules/unictype/property-hyphen-tests (Files): Likewise.
31008         * modules/unictype/property-id-continue-tests (Files): Likewise.
31009         * modules/unictype/property-id-start-tests (Files): Likewise.
31010         * modules/unictype/property-ideographic-tests (Files): Likewise.
31011         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31012         * modules/unictype/property-ids-trinary-operator-tests (Files):
31013         Likewise.
31014         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31015         * modules/unictype/property-iso-control-tests (Files): Likewise.
31016         * modules/unictype/property-join-control-tests (Files): Likewise.
31017         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31018         * modules/unictype/property-line-separator-tests (Files): Likewise.
31019         * modules/unictype/property-logical-order-exception-tests (Files):
31020         Likewise.
31021         * modules/unictype/property-lowercase-tests (Files): Likewise.
31022         * modules/unictype/property-math-tests (Files): Likewise.
31023         * modules/unictype/property-non-break-tests (Files): Likewise.
31024         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31025         * modules/unictype/property-numeric-tests (Files): Likewise.
31026         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31027         * modules/unictype/property-other-default-ignorable-code-point-tests
31028         (Files): Likewise.
31029         * modules/unictype/property-other-grapheme-extend-tests (Files):
31030         Likewise.
31031         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31032         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31033         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31034         * modules/unictype/property-other-math-tests (Files): Likewise.
31035         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31036         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31037         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31038         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31039         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31040         * modules/unictype/property-private-use-tests (Files): Likewise.
31041         * modules/unictype/property-punctuation-tests (Files): Likewise.
31042         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31043         * modules/unictype/property-radical-tests (Files): Likewise.
31044         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31045         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31046         * modules/unictype/property-space-tests (Files): Likewise.
31047         * modules/unictype/property-terminal-punctuation-tests (Files):
31048         Likewise.
31049         * modules/unictype/property-test-tests (Files): Likewise.
31050         * modules/unictype/property-titlecase-tests (Files): Likewise.
31051         * modules/unictype/property-unassigned-code-value-tests (Files):
31052         Likewise.
31053         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31054         * modules/unictype/property-uppercase-tests (Files): Likewise.
31055         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31056         * modules/unictype/property-white-space-tests (Files): Likewise.
31057         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31058         * modules/unictype/property-xid-start-tests (Files): Likewise.
31059         * modules/unictype/property-zero-width-tests (Files): Likewise.
31060         * modules/unictype/scripts-tests (Files): Likewise.
31061         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31062         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31063         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31064         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31065         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31066         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31067         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31068         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31069         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31070         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31071         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31072         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31073         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31074         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31075         * modules/uninorm/composition-tests (Files): Likewise.
31076         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31077         * modules/uninorm/decomposition-tests (Files): Likewise.
31078         * modules/uninorm/filter-tests (Files): Likewise.
31079         * modules/uninorm/nfc-tests (Files): Likewise.
31080         * modules/uninorm/nfd-tests (Files): Likewise.
31081         * modules/uninorm/nfkc-tests (Files): Likewise.
31082         * modules/uninorm/nfkd-tests (Files): Likewise.
31083         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31084         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31085         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31086         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31087         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31088         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31089         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31090         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31091         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31092         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31093         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31094         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31095         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31096         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31097         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31098         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31099         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31100         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31101         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31102         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31103         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31104         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31105         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31106         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31107         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31108         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31109         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31110         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31111         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31112         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31113         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31114         * modules/uniwidth/u8-width-tests (Files): Likewise.
31115         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31116         * modules/uniwidth/u16-width-tests (Files): Likewise.
31117         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31118         * modules/uniwidth/u32-width-tests (Files): Likewise.
31119         * modules/uniwidth/width-tests (Files): Likewise.
31120         * modules/unlink-tests (Files): Likewise.
31121         * modules/unsetenv-tests (Files): Likewise.
31122         * modules/usleep-tests (Files): Likewise.
31123         * modules/utimens-tests (Files): Likewise.
31124         * modules/utimensat-tests (Files): Likewise.
31125         * modules/vasnprintf-posix-tests (Files): Likewise.
31126         * modules/vasnprintf-tests (Files): Likewise.
31127         * modules/vasprintf-posix-tests (Files): Likewise.
31128         * modules/vasprintf-tests (Files): Likewise.
31129         * modules/vdprintf-posix-tests (Files): Likewise.
31130         * modules/vfprintf-posix-tests (Files): Likewise.
31131         * modules/vprintf-posix-tests (Files): Likewise.
31132         * modules/vsnprintf-posix-tests (Files): Likewise.
31133         * modules/vsnprintf-tests (Files): Likewise.
31134         * modules/vsprintf-posix-tests (Files): Likewise.
31135         * modules/wcrtomb-tests (Files): Likewise.
31136         * modules/wcsnrtombs-tests (Files): Likewise.
31137         * modules/wcsrtombs-tests (Files): Likewise.
31138         * modules/wctype-tests (Files): Likewise.
31139         * modules/wcwidth-tests (Files): Likewise.
31140         * modules/xmemdup0-tests (Files): Likewise.
31141         * modules/xprintf-posix-tests (Files): Likewise.
31142         * modules/xvasprintf-tests (Files): Likewise.
31143
31144 2009-12-24  Eric Blake  <ebb9@byu.net>
31145
31146         test-nanosleep: fix typo
31147         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31148         patch.
31149         Reported by Bruno Haible.
31150
31151 2009-12-24  Bruno Haible  <bruno@clisp.org>
31152
31153         Reduce namespace pollution on glibc systems.
31154         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31155         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31156         systems.
31157         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31158         <getopt.h> on glibc systems.
31159         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31160         systems.
31161         * lib/fcntl.c: Include <unistd.h> here instead.
31162
31163 2009-12-24  Bruno Haible  <bruno@clisp.org>
31164
31165         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31166
31167 2009-12-24  Eric Blake  <ebb9@byu.net>
31168
31169         tests: add signature checks
31170         * tests/signature.h (SIGNATURE_CHECK): New file.
31171         * modules/atexit-tests (Files): Use it.
31172         * modules/btowc-tests (Files): Likewise.
31173         * modules/canonicalize-lgpl-tests (Files): Likewise.
31174         * modules/ceilf-tests (Files): Likewise.
31175         * modules/ceill-tests (Files): Likewise.
31176         * modules/chown-tests (Files): Likewise.
31177         * modules/dprintf-posix-tests (Files): Likewise.
31178         * modules/dup2-tests (Files): Likewise.
31179         * modules/dup3-tests (Files): Likewise.
31180         * modules/duplocale-tests (Files): Likewise.
31181         * modules/fchdir-tests (Files): Likewise.
31182         * modules/fcntl-tests (Files): Likewise.
31183         * modules/fdopendir-tests (Files): Likewise.
31184         * modules/fflush-tests (Files): Likewise.
31185         * modules/flock-tests (Files): Likewise.
31186         * modules/floorf-tests (Files): Likewise.
31187         * modules/floorl-tests (Files): Likewise.
31188         * modules/fnmatch-tests (Files): Likewise.
31189         * modules/fopen-tests (Files): Likewise.
31190         * modules/fprintf-posix-tests (Files): Likewise.
31191         * modules/freopen-tests (Files): Likewise.
31192         * modules/frexp-nolibm-tests (Files): Likewise.
31193         * modules/frexp-tests (Files): Likewise.
31194         * modules/frexpl-nolibm-tests (Files): Likewise.
31195         * modules/frexpl-tests (Files): Likewise.
31196         * modules/fseek-tests (Files): Likewise.
31197         * modules/fseeko-tests (Files): Likewise.
31198         * modules/fsync-tests (Files): Likewise.
31199         * modules/ftell-tests (Files): Likewise.
31200         * modules/ftello-tests (Files): Likewise.
31201         * modules/futimens-tests (Files): Likewise.
31202         * modules/getaddrinfo-tests (Files): Likewise.
31203         * modules/getcwd-tests (Files): Likewise.
31204         * modules/getdelim-tests (Files): Likewise.
31205         * modules/getdtablesize-tests (Files): Likewise.
31206         * modules/getgroups-tests (Files): Likewise.
31207         * modules/gethostname-tests (Files): Likewise.
31208         * modules/getline-tests (Files): Likewise.
31209         * modules/getopt-posix-tests (Files): Likewise.
31210         * modules/gettimeofday-tests (Files): Likewise.
31211         * modules/glob-tests (Files): Likewise.
31212         * modules/iconv-tests (Files): Likewise.
31213         * modules/inet_ntop-tests (Files): Likewise.
31214         * modules/inet_pton-tests (Files): Likewise.
31215         * modules/isblank-tests (Files): Likewise.
31216         * modules/lchown-tests (Files): Likewise.
31217         * modules/ldexpl-tests (Files): Likewise.
31218         * modules/link-tests (Files): Likewise.
31219         * modules/linkat-tests (Files): Likewise.
31220         * modules/lseek-tests (Files): Likewise.
31221         * modules/lstat-tests (Files): Likewise.
31222         * modules/mbrtowc-tests (Files): Likewise.
31223         * modules/mbsinit-tests (Files): Likewise.
31224         * modules/mbsnrtowcs-tests (Files): Likewise.
31225         * modules/mbsrtowcs-tests (Files): Likewise.
31226         * modules/memchr-tests (Files): Likewise.
31227         * modules/memcmp-tests (Files): Likewise.
31228         * modules/memmem-tests (Files): Likewise.
31229         * modules/memrchr-tests (Files): Likewise.
31230         * modules/mkdir-tests (Files): Likewise.
31231         * modules/mkfifo-tests (Files): Likewise.
31232         * modules/mkfifoat-tests (Files): Likewise.
31233         * modules/mknod-tests (Files): Likewise.
31234         * modules/nanosleep-tests (Files): Likewise.
31235         * modules/nl_langinfo-tests (Files): Likewise.
31236         * modules/obstack-printf-tests (Files): Likewise.
31237         * modules/open-tests (Files): Likewise.
31238         * modules/openat-tests (Files): Likewise.
31239         * modules/perror-tests (Files): Likewise.
31240         * modules/pipe2-tests (Files): Likewise.
31241         * modules/poll-tests (Files): Likewise.
31242         * modules/popen-tests (Files): Likewise.
31243         * modules/posix_spawn-tests (Files): Likewise.
31244         * modules/posix_spawnp-tests (Files): Likewise.
31245         * modules/pread-tests (Files): Likewise.
31246         * modules/printf-posix-tests (Files): Likewise.
31247         * modules/pty-tests (Files): Likewise.
31248         * modules/random_r-tests (Files): Likewise.
31249         * modules/rawmemchr-tests (Files): Likewise.
31250         * modules/readlink-tests (Files): Likewise.
31251         * modules/remove-tests (Files): Likewise.
31252         * modules/rename-tests (Files): Likewise.
31253         * modules/renameat-tests (Files): Likewise.
31254         * modules/rmdir-tests (Files): Likewise.
31255         * modules/round-tests (Files): Likewise.
31256         * modules/roundf-tests (Files): Likewise.
31257         * modules/roundl-tests (Files): Likewise.
31258         * modules/select-tests (Files): Likewise.
31259         * modules/setenv-tests (Files): Likewise.
31260         * modules/sigaction-tests (Files): Likewise.
31261         * modules/sleep-tests (Files): Likewise.
31262         * modules/snprintf-posix-tests (Files): Likewise.
31263         * modules/snprintf-tests (Files): Likewise.
31264         * modules/sprintf-posix-tests (Files): Likewise.
31265         * modules/stat-tests (Files): Likewise.
31266         * modules/strcasestr-tests (Files): Likewise.
31267         * modules/strchrnul-tests (Files): Likewise.
31268         * modules/strerror-tests (Files): Likewise.
31269         * modules/strsignal-tests (Files): Likewise.
31270         * modules/strstr-tests (Files): Likewise.
31271         * modules/strtod-tests (Files): Likewise.
31272         * modules/strverscmp-tests (Files): Likewise.
31273         * modules/symlink-tests (Files): Likewise.
31274         * modules/symlinkat-tests (Files): Likewise.
31275         * modules/times-tests (Files): Likewise.
31276         * modules/trunc-tests (Files): Likewise.
31277         * modules/truncf-tests (Files): Likewise.
31278         * modules/truncl-tests (Files): Likewise.
31279         * modules/tsearch-tests (Files): Likewise.
31280         * modules/uname-tests (Files): Likewise.
31281         * modules/unlink-tests (Files): Likewise.
31282         * modules/unsetenv-tests (Files): Likewise.
31283         * modules/usleep-tests (Files): Likewise.
31284         * modules/utimensat-tests (Files): Likewise.
31285         * modules/vasprintf-tests (Files): Likewise.
31286         * modules/vdprintf-posix-tests (Files): Likewise.
31287         * modules/vfprintf-posix-tests (Files): Likewise.
31288         * modules/vprintf-posix-tests (Files): Likewise.
31289         * modules/vsnprintf-posix-tests (Files): Likewise.
31290         * modules/vsnprintf-tests (Files): Likewise.
31291         * modules/vsprintf-posix-tests (Files): Likewise.
31292         * modules/wcrtomb-tests (Files): Likewise.
31293         * modules/wcsnrtombs-tests (Files): Likewise.
31294         * modules/wcsrtombs-tests (Files): Likewise.
31295         * modules/wcwidth-tests (Files): Likewise.
31296         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31297         * tests/test-isinf.c (isinf): Likewise.
31298         * tests/test-isnan.c (isnan): Likewise.
31299         * tests/test-signbit.c (signbit): Likewise.
31300         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31301         declaration, either as macro or with correct signature.
31302         (select): Ensure function under test is declared with correct
31303         signature in correct header.
31304         * tests/test-atexit.c (atexit): Likewise.
31305         * tests/test-btowc.c (btowc): Likewise.
31306         * tests/test-canonicalize-lgpl.c (realpath)
31307         (canonicalize_file_name): Likewise.
31308         * tests/test-ceilf1.c (ceilf): Likewise.
31309         * tests/test-ceill.c (ceill): Likewise.
31310         * tests/test-chown.c (chown): Likewise.
31311         * tests/test-dprintf-posix.c (dprintf): Likewise.
31312         * tests/test-dup2.c (dup2): Likewise.
31313         * tests/test-dup3.c (dup3): Likewise.
31314         * tests/test-duplocale.c (duplocale): Likewise.
31315         * tests/test-fchdir.c (fchdir): Likewise.
31316         * tests/test-fchownat.c (fchownat): Likewise.
31317         * tests/test-fcntl.c (fcntl): Likewise.
31318         * tests/test-fdopendir.c (fdopendir): Likewise.
31319         * tests/test-fflush.c (fflush): Likewise.
31320         * tests/test-flock.c (flock): Likewise.
31321         * tests/test-floorf1.c (floorf): Likewise.
31322         * tests/test-floorl.c (floorl): Likewise.
31323         * tests/test-fnmatch.c (fnmatch): Likewise.
31324         * tests/test-fopen.c (fopen): Likewise.
31325         * tests/test-fprintf-posix.c (fprintf): Likewise.
31326         * tests/test-freopen.c (freopen): Likewise.
31327         * tests/test-frexp.c (frexp): Likewise.
31328         * tests/test-frexpl.c (frexpl): Likewise.
31329         * tests/test-fseek.c (fseek): Likewise.
31330         * tests/test-fseeko.c (fseeko): Likewise.
31331         * tests/test-fstatat.c (fstatat): Likewise.
31332         * tests/test-fsync.c (fsync): Likewise.
31333         * tests/test-ftell.c (ftell): Likewise.
31334         * tests/test-ftello.c (ftello): Likewise.
31335         * tests/test-futimens.c (futimens): Likewise.
31336         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31337         (gai_strerror): Likewise.
31338         * tests/test-getcwd.c (getcwd): Likewise.
31339         * tests/test-getdelim.c (getdelim): Likewise.
31340         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31341         * tests/test-getgroups.c (getgroups): Likewise.
31342         * tests/test-gethostname.c (gethostname): Likewise.
31343         * tests/test-getline.c (getline): Likewise.
31344         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31345         Likewise.
31346         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31347         * tests/test-glob.c (glob, globfree): Likewise.
31348         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31349         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31350         * tests/test-inet_pton.c (inet_pton): Likewise.
31351         * tests/test-isblank.c (isblank): Likewise.
31352         * tests/test-lchown.c (lchown): Likewise.
31353         * tests/test-ldexpl.c (ldexpl): Likewise.
31354         * tests/test-link.c (link): Likewise.
31355         * tests/test-linkat.c (linkat): Likewise.
31356         * tests/test-lseek.c (lseek): Likewise.
31357         * tests/test-lstat.c (lstat): Likewise.
31358         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31359         * tests/test-mbsinit.c (mbsinit): Likewise.
31360         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31361         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31362         * tests/test-memchr.c (memchr): Likewise.
31363         * tests/test-memcmp.c (memcmp): Likewise.
31364         * tests/test-memmem.c (memmem): Likewise.
31365         * tests/test-memrchr.c (memrchr): Likewise.
31366         * tests/test-mkdir.c (mkdir): Likewise.
31367         * tests/test-mkdirat.c (mkdirat): Likewise.
31368         * tests/test-mkfifo.c (mkfifo): Likewise.
31369         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31370         * tests/test-mknod.c (mknod): Likewise.
31371         * tests/test-nanosleep.c (nanosleep): Likewise.
31372         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31373         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31374         Likewise.
31375         * tests/test-open.c (open): Likewise.
31376         * tests/test-openat.c (openat): Likewise.
31377         * tests/test-perror.c (perror): Likewise.
31378         * tests/test-pipe2.c (pipe2): Likewise.
31379         * tests/test-poll.c (poll): Likewise.
31380         * tests/test-popen.c (popen, pclose): Likewise.
31381         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31382         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31383         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31384         (posix_spawn_file_actions_destroy)
31385         (posix_spawn_file_actions_addclose)
31386         (posix_spawn_file_actions_addopen)
31387         (posix_spawn_file_actions_adddup2): Likewise.
31388         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31389         * tests/test-pread.c (pread): Likewise.
31390         * tests/test-printf-posix.c (printf): Likewise.
31391         * tests/test-pty.c (openpty, forkpty): Likewise.
31392         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31393         (random_r): Likewise.
31394         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31395         * tests/test-readlink.c (readlink): Likewise.
31396         * tests/test-remove.c (remove): Likewise.
31397         * tests/test-rename.c (rename): Likewise.
31398         * tests/test-renameat.c (renameat): Likewise.
31399         * tests/test-rmdir.c (rmdir): Likewise.
31400         * tests/test-round1.c (round): Likewise.
31401         * tests/test-roundf1.c (roundf): Likewise.
31402         * tests/test-roundl.c (roundl): Likewise.
31403         * tests/test-setenv.c (setenv): Likewise.
31404         * tests/test-sigaction.c (sigaction): Likewise.
31405         * tests/test-sleep.c (sleep): Likewise.
31406         * tests/test-snprintf.c (snprintf): Likewise.
31407         * tests/test-sprintf-posix.c (sprintf): Likewise.
31408         * tests/test-stat.c (stat): Likewise.
31409         * tests/test-stpncpy.c (stpncpy): Likewise.
31410         * tests/test-strcasestr.c (strcasestr): Likewise.
31411         * tests/test-strchrnul.c (strchrnul): Likewise.
31412         * tests/test-strerror.c (strerror): Likewise.
31413         * tests/test-strsignal.c (strsignal): Likewise.
31414         * tests/test-strstr.c (strstr): Likewise.
31415         * tests/test-strtod.c (strtod): Likewise.
31416         * tests/test-strverscmp.c (strverscmp): Likewise.
31417         * tests/test-symlink.c (symlink): Likewise.
31418         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31419         * tests/test-times.c (times): Likewise.
31420         * tests/test-trunc1.c (trunc): Likewise.
31421         * tests/test-truncf1.c (truncf): Likewise.
31422         * tests/test-truncl.c (truncl): Likewise.
31423         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31424         Likewise.
31425         * tests/test-uname.c (uname): Likewise.
31426         * tests/test-unlink.c (unlink): Likewise.
31427         * tests/test-unlinkat.c (unlinkat): Likewise.
31428         * tests/test-unsetenv.c (unsetenv): Likewise.
31429         * tests/test-usleep.c (usleep): Likewise.
31430         * tests/test-utimensat.c (utimensat): Likewise.
31431         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31432         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31433         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31434         * tests/test-vprintf-posix.c (vprintf): Likewise.
31435         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31436         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31437         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31438         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31439         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31440         * tests/test-wcwidth.c (wcwidth): Likewise.
31441
31442         build: pull in conditional headers during GNULIB_POSIXCHECK
31443         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31444         definitions from any conditionally-included headers.
31445         * lib/stdlib.in.h (includes): Likewise.
31446         * lib/unistd.in.h (includes): Likewise.
31447
31448 2009-12-24  Bruno Haible  <bruno@clisp.org>
31449
31450         * tests/test-argv-iter.c: Include header file being tested immediately
31451         after config.h.
31452         * tests/test-base64.c: Likewise.
31453         * tests/test-flock.c: Likewise.
31454         * tests/test-fsync.c: Likewise.
31455         * tests/test-getdate.c: Likewise.
31456         * tests/test-getndelim2.c: Likewise.
31457         * tests/test-isfinite.c: Likewise.
31458         * tests/test-isinf.c: Likewise.
31459         * tests/test-strerror.c: Likewise.
31460         * tests/test-strsignal.c: Likewise.
31461
31462 2009-12-23  Eric Blake  <ebb9@byu.net>
31463
31464         unistd: work around cygwin bug
31465         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31466         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31467         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31468
31469 2009-12-23  Bruno Haible  <bruno@clisp.org>
31470
31471         localename: More tests.
31472         * tests/test-localename.c (SIZEOF): New macro.
31473         (categories): New variable.
31474         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31475         test_locale_name_default): Add test w.r.t. thread locale.
31476         (test_locale_name_thread): New function.
31477         (main): Invoke it.
31478
31479         localename: Make aware of thread locale.
31480         * lib/localename.h (gl_locale_name_thread): New declaration.
31481         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31482         behaviour with respect to thread locale.
31483         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31484         <langinfo.h>, glthread/lock.h.
31485         (SIZE_BITS): New macro.
31486         (string_hash): New function.
31487         (struct hash_node): New type.
31488         (HASH_TABLE_SIZE): New macro.
31489         (struniq_hash_table, struniq_lock): New variables.
31490         (struniq): New function.
31491         (gl_locale_name_thread): New function.
31492         (gl_locale_name): Invoke it.
31493         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31494         * modules/localename (Depends-on): Add lock.
31495         Reported by Mike Gran <spk121@yahoo.com>.
31496
31497 2009-12-23  Eric Blake  <ebb9@byu.net>
31498
31499         va-args: new module
31500         * modules/va-args: New file.
31501         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31502         * MODULES.html.sh (Core language properties): Mention it.
31503
31504         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31505         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31506         named alias for __attribute__((__unused__)).
31507         * lib/chown.c: Update client.
31508         * lib/fchmodat.c: Likewise.
31509         * lib/fts.c: Likewise.
31510         * lib/getdate.y: Likewise.
31511         * lib/getgroups.c: Likewise.
31512         * lib/getopt.c: Likewise.
31513         * lib/getugroups.c: Likewise.
31514         * lib/mkdir.c: Likewise.
31515         * lib/mkfifo.c: Likewise.
31516         * lib/mkfifoat.c: Likewise.
31517         * lib/mknod.c: Likewise.
31518         * lib/mknodat.c: Likewise.
31519         * lib/readlink.c: Likewise.
31520         * lib/se-context.in.h: Likewise.
31521         * lib/se-selinux.in.h: Likewise.
31522         * lib/sockets.c: Likewise.
31523         * lib/symlink.c: Likewise.
31524         * lib/symlinkat.c: Likewise.
31525         * lib/unicodeio.c: Likewise.
31526         * lib/unistr.h: Likewise.
31527         * tests/test-areadlink.c: Likewise.
31528         * tests/test-areadlinkat.c: Likewise.
31529         * tests/test-filenamecat.c: Likewise.
31530         * tests/test-fseeko.c: Likewise.
31531         * tests/test-ftello.c: Likewise.
31532         * tests/test-getdate.c: Likewise.
31533         * tests/test-getgroups.c: Likewise.
31534         * tests/test-gethostname.c: Likewise.
31535         * tests/test-quotearg.c: Likewise.
31536         * tests/test-version-etc.c: Likewise.
31537         * tests/test-xalloc-die.c: Likewise.
31538         * tests/test-xfprintf-posix.c: Likewise.
31539         * tests/test-xprintf-posix.c: Likewise.
31540         * tests/test-xvasprintf.c: Likewise.
31541
31542         tests: avoid compiler warnings
31543         * tests/test-fcntl.c (main): Delete unused parameters.
31544         * tests/test-freopen-safer.c (main): Likewise.
31545         * tests/test-xalloc-die.c (main): Mark unused parameters.
31546         * tests/test-fseeko.c (main): Likewise.
31547         * tests/test-ftello.c (main): Likewise.
31548         * tests/test-nanosleep.c (main): Avoid declaration warning.
31549         * tests/test-sleep.c (main): Likewise.
31550         * tests/test-unsetenv.c (main): Silence warning about string
31551         literal.
31552         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31553
31554 2009-12-23  Bruno Haible  <bruno@clisp.org>
31555
31556         * tests/test-localename.c (test_locale_name): New function, extracted
31557         from main. Also test mixed situations.
31558         (test_locale_name_posix, test_locale_name_environ,
31559         test_locale_name_default): New functions.
31560         (main): Invoke them all.
31561         * modules/localename-tests (configure.ac): Test for newlocale.
31562
31563 2009-12-23  Bruno Haible  <bruno@clisp.org>
31564
31565         unistd: Ensure getcwd gets declared before being overridden.
31566         * lib/unistd.in.h: Conditionally include <io.h>.
31567
31568 2009-12-22  Bruno Haible  <bruno@clisp.org>
31569
31570         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31571         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31572         (gl_WCHAR_H): Invoke it.
31573         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31574         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31575         Reported by Karl Berry <karl@freefriends.org>.
31576
31577 2009-12-22  Eric Blake  <ebb9@byu.net>
31578
31579         math, unistd: avoid redundant includes
31580         * lib/math.in.h (isnan): No need to re-include <math.h>.
31581         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31582
31583         getsubopt: work around cygwin bug
31584         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31585         avoid conflicting with system getsubopt.
31586         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31587         bug.
31588
31589         getopt: synchronize from glibc
31590         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31591         parameter order.  Adjust all callers.
31592         (_getopt_internal_r, main): Adjust quoting in error messages.
31593         Drop considerations for outdated POSIX 1003.2 error message.
31594         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31595         callers.
31596         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31597
31598         test-getopt: test stderr behavior
31599         * modules/getopt-posix-tests (Depends-on): Add dup2.
31600         * tests/test-getopt.c (ASSERT): Avoid stderr.
31601         (main): Move stderr to a temporary file.
31602         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31603         Instead, add parameter to inform caller if output occurred.
31604         (test_getopt): Adjust all existing tests to expect silence, and
31605         add new tests of leading ":".
31606         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31607         glibc shortcomings with leading "-:" or "+:" in optstring.
31608         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31609         Likewise.
31610         * doc/posix-functions/getopt.texi (getopt): Likewise.
31611
31612         test-getopt: enhance test
31613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31614         supports optind=0.
31615         * tests/test-getopt.c (OPTIND_MIN): Move...
31616         * tests/test-getopt.h (OPTIND_MIN): ...here.
31617         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31618         Require that optind=0 works, since modern BSD supports it in
31619         addition to optreset, and since coreutils expects it.
31620         (test_getopt_long_only): New test.
31621         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31622         glibc shortcomings with 'W;', and enforcement of optind=0.
31623         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31624         Likewise.
31625
31626 2009-12-21  Bruno Haible  <bruno@clisp.org>
31627
31628         localename: Improvements for MacOS X and Cygwin.
31629         * lib/localename.h (gl_locale_name_environ): New declaration.
31630         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31631         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31632         (gl_locale_name_posix): Invoke it.
31633         (gl_locale_name_default): Add comments. Use Windows native API also on
31634         Cygwin.
31635
31636 2009-12-21  Bruno Haible  <bruno@clisp.org>
31637
31638         Update list of Win32 locale ids.
31639         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31640         (LANG_SAMI): Renamed from LANG_SAAMI.
31641         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31642         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31643         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31644         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31645         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31646         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31647         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31648         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31649         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31650         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31651         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31652         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31653         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31654         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31655         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31656         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31657         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31658         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31659         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31660         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31661         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31662         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31663         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31664         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31665         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31666         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31667         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31668         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31669         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31670         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31671         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31672         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31673         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31674         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31675         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31676         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31677         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31678         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31679         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31680         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31681         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31682         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31683         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31684         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31685         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31686         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31687         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31688         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31689         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31690         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31691         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31692         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31693         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31694         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31695         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31696         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31697         Add more languages and countries for Sami, Sorbian. Add more countries
31698         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31699         for Pashto. Change country for Syriac, Tswana.
31700
31701 2009-12-21  Eric Blake  <ebb9@byu.net>
31702
31703         test-utimens: avoid spurious failure
31704         * tests/test-chown.h (nap): Factor...
31705         * tests/nap.h: ...into new file.
31706         * tests/test-lchown.h (nap): Avoid duplication.
31707         * tests/test-utimens-common.h (nap): Use shared implementation,
31708         necessary on file systems with 1-second resolution.
31709         * modules/chown-tests (Files): Include new file.
31710         * modules/fdutimensat-tests (Files): Likewise.
31711         * modules/futimens-tests (Files): Likewise.
31712         * modules/lchown-tests (Files): Likewise.
31713         * modules/openat-tests (Files): Likewise.
31714         * modules/utimens-tests (Files): Likewise.
31715         * modules/utimensat-tests (Files): Likewise.
31716
31717 2009-12-19  Eric Blake  <ebb9@byu.net>
31718
31719         futimens, utimensat: work around Linux bug
31720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31721         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31722         * lib/utimensat.c (rpl_utimensat): Work around it.
31723         * lib/futimens.c (rpl_futimens): Adjust comment.
31724
31725         utimens: work around Linux ctime bug
31726         * lib/utimens.c (detect_ctime_bug): New helper function.
31727         (update_timespec): Differentiate between workaround needed for
31728         this bug vs. what is needed for systems that lack utimensat.
31729         (fdutimens, lutimens): Work around bug.
31730
31731         utimens: check for ctime update
31732         * tests/test-utimens-common.h (check_ctime): Define.
31733         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31734         * tests/test-futimens.h (test_futimens): Likewise.
31735         * tests/test-lutimens.h (test_lutimens): Likewise.
31736         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31737         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31738
31739 2009-12-19  Bruno Haible  <bruno@clisp.org>
31740
31741         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31742         * tests/test-dprintf-posix2.sh: New file.
31743         * tests/test-dprintf-posix2.c: New file.
31744         * modules/dprintf-posix-tests (Files): Add them.
31745         (configure.ac): Check for getrlimit and setrlimit.
31746         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31747
31748 2009-12-19  Bruno Haible  <bruno@clisp.org>
31749
31750         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31751         * tests/test-fprintf-posix3.sh: New file.
31752         * tests/test-fprintf-posix3.c: New file.
31753         * modules/fprintf-posix-tests (Files): Add them.
31754         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31755
31756 2009-12-19  Eric Blake  <ebb9@byu.net>
31757
31758         dirfd: fix prototype
31759         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31760         * lib/dirfd.c (dirfd): Likewise.
31761
31762         canonicalize: reduce memory usage
31763         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31764         allocation to size.
31765         Reported by Solar Designer <solar@openwall.com>.
31766
31767 2009-12-19  Bruno Haible  <bruno@clisp.org>
31768
31769         New module attribute 'Applicability'.
31770         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31771         * gnulib-tool: New option --extract-applicability.
31772         (func_usage): Document it.
31773         (sed_extract_prog): Recognize it.
31774         (func_get_applicability): New function.
31775         (func_import): Generalize handling of 'link-warning' module.
31776         * modules/link-warning (Applicability): New section.
31777         * modules/arg-nonnull (Applicability): New section.
31778         Repoted by Simon Josefsson <simon@josefsson.org>.
31779
31780 2009-12-19  Bruno Haible  <bruno@clisp.org>
31781
31782         fflush: tweak
31783         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31784         * lib/fseeko.c (rpl_fseeko): Likewise.
31785
31786 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31787
31788         * lib/gl_list.h: Fix typo in comment.
31789
31790 2009-12-16  Eric Blake  <ebb9@byu.net>
31791
31792         fcntl: use to simplify other modules
31793         * modules/cloexec (Depends-on): Add fcntl.
31794         * modules/fchdir (Depends-on): Likewise.
31795         * modules/fd-safer-flag (Depends-on): Likewise.
31796         * modules/unistd-safer (Depends-on): Likewise.
31797         * modules/dup3 (configure.ac): Set module indicator.
31798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31799         missing.
31800         * lib/fchdir.c (_gl_register_dup): Fix comment.
31801         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31802         * lib/dup-safer.c (dup_safer): Likewise.
31803         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31804         * lib/dup3.c (dup3): Likewise.
31805         * tests/test-fchdir.c (main): Enhance test.
31806         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31807
31808         fcntl: port portions of fcntl to mingw
31809         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31810         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31811         replacement for mingw.
31812         * modules/fcntl (Description): Update.
31813         (Depends-on): Add dup2.
31814         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31815         * modules/fcntl-h (Makefile.am): Substitute it.
31816         * lib/fcntl.in.h (fcntl): Update declaration.
31817         (F_DUPFD, F_GETFD): New macros, when needed.
31818         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31819         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31820         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31821         we now guarantee.
31822
31823         fcntl: work around cygwin bug in F_DUPFD
31824         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31825         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31826         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31827         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31828         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31829
31830         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31831         * modules/fcntl (Files): List new files.
31832         (configure.ac): Run a test.
31833         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31834         * lib/fcntl.c (rpl_fcntl): Likewise.
31835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31836         (gl_FCNTL_H): Always replace fcntl.h.
31837         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31838         * lib/fcntl.in.h (fcntl): Declare replacement.
31839         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31840         needed, plus a witness.
31841         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31842         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31843         * tests/test-fcntl.c: New file.
31844         * modules/fcntl-tests: Likewise.
31845
31846         binary-io: avoid potential compilation warning
31847         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31848         directives.
31849
31850         fflush: avoid compilation error on NetBSD
31851         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31852         between off_t and fpos_t, since the latter is sometimes a struct.
31853         * lib/fseeko.c (rpl_fseeko): Likewise.
31854         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31855
31856 2009-12-15  Eric Blake  <ebb9@byu.net>
31857
31858         fcntl-h, stdio, sys_ioctl: fix declarations
31859         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31860         function must not take arguments.
31861         * lib/sys_ioctl.in.h (ioctl): Likewise.
31862         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31863         (open): Add a link warning.
31864
31865 2009-12-15  Jim Meyering  <meyering@redhat.com>
31866
31867         areadlink, areadlink-with-size: relax license to LGPLv2+
31868         * modules/areadlink (License): Relax to LGPLv2+.
31869         * modules/areadlink-with-size (License): Likewise.
31870
31871 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31872             Bruno Haible  <bruno@clisp.org>
31873
31874         *printf: Fix memory leak.
31875         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31876         * lib/vfprintf.c (vfprintf): Likewise.
31877         * lib/dprintf.c (dprintf): Likewise.
31878         * lib/vdprintf.c (vdprintf): Likewise.
31879
31880 2009-12-14  Eric Blake  <ebb9@byu.net>
31881
31882         accept4: adjust module dependencies
31883         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31884
31885         utimens: one more try at avoiding compiler warning
31886         * lib/utimens.c (lutimens): Lower scope of result.
31887
31888 2009-12-13  Bruno Haible  <bruno@clisp.org>
31889
31890         Move the malloc checking from module 'list' to new module 'xlist'.
31891         * modules/xlist: New file.
31892         * lib/gl_xlist.h: New file.
31893         * lib/gl_xlist.c: New file.
31894         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31895         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31896         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31897         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31898         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31899         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31900         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31901         gl_sortedlist_nx_add): New declarations.
31902         (struct gl_list_implementation): Rename and change methods accordingly.
31903         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31904         (gl_list_nx_create): Renamed from gl_list_create.
31905         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31906         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31907         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31908         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31909         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31910         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31911         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31912         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31913         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31914         gl_list_create_empty.
31915         (gl_list_nx_create): Renamed from gl_list_create.
31916         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31917         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31918         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31919         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31920         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31921         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31922         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31923         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31924         * lib/gl_array_list.c: Don't include xalloc.h.
31925         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31926         NULL upon out-of-memory.
31927         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31928         out-of-memory.
31929         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31930         Change return type to 'int'.
31931         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31932         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31933         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31934         upon out-of-memory.
31935         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31936         upon out-of-memory.
31937         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31938         upon out-of-memory.
31939         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31940         upon out-of-memory.
31941         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31942         out-of-memory.
31943         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31944         Update.
31945         (gl_array_list_implementation): Update.
31946         * lib/gl_carray_list.c: Don't include xalloc.h.
31947         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31948         Return NULL upon out-of-memory.
31949         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31950         out-of-memory.
31951         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31952         Change return type to 'int'.
31953         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31954         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31955         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31956         upon out-of-memory.
31957         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31958         upon out-of-memory.
31959         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31960         out-of-memory.
31961         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31962         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31963         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31964         Update.
31965         (gl_carray_list_implementation): Update.
31966         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31967         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31968         gl_linked_create_empty. Return NULL upon out-of-memory.
31969         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31970         out-of-memory.
31971         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31972         Change return type to 'int'. Return -1 upon out-of-memory.
31973         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31974         out-of-memory.
31975         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31976         upon out-of-memory.
31977         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31978         upon out-of-memory.
31979         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31980         NULL upon out-of-memory.
31981         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31982         upon out-of-memory.
31983         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31984         out-of-memory.
31985         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31986         Update.
31987         * lib/gl_linked_list.c: Don't include xalloc.h.
31988         (gl_linked_list_implementation): Update.
31989         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31990         (add_to_bucket): Change return type to 'int'.
31991         (gl_linkedhash_list_implementation): Update.
31992         * lib/gl_anytree_list1.h (free_subtree): New function.
31993         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31994         gl_tree_create_empty. Return NULL upon out-of-memory.
31995         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31996         Change return type to 'int'. Return -1 upon out-of-memory.
31997         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31998         out-of-memory.
31999         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32000         (gl_tree_remove_node): New function, moved here from
32001         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32002         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32003         Update.
32004         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32005         malloc, not xmalloc. Return NULL upon out-of-memory.
32006         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32007         out-of-memory.
32008         (gl_tree_remove_node_from_tree): New function, extracted from
32009         gl_tree_remove_node.
32010         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32011         upon out-of-memory.
32012         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32013         out-of-memory.
32014         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32015         upon out-of-memory.
32016         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32017         upon out-of-memory.
32018         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32019         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32020         not xmalloc. Return NULL upon out-of-memory.
32021         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32022         out-of-memory.
32023         (gl_tree_remove_node_from_tree): New function, extracted from
32024         gl_tree_remove_node.
32025         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32026         upon out-of-memory.
32027         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32028         out-of-memory.
32029         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32030         upon out-of-memory.
32031         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32032         upon out-of-memory.
32033         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32034         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32035         gl_anytree_list1.h before gl_anyavltree_list2.h.
32036         (gl_avltree_list_implementation): Update.
32037         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32038         gl_anytree_list1.h before gl_anyavltree_list2.h.
32039         (gl_rbtree_list_implementation): Update.
32040         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32041         Change return type to 'int'. Return -1 upon out-of-memory. Use
32042         __builtin_expect.
32043         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32044         (gl_avltreehash_list_implementation): Update.
32045         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32046         (gl_rbtreehash_list_implementation): Update.
32047         * modules/array-list (Depends-on): Remove xalloc.
32048         * modules/carray-list (Depends-on): Likewise.
32049         * modules/linked-list (Depends-on): Likewise.
32050         * modules/linkedhash-list (Depends-on): Likewise.
32051         * modules/avltree-list (Depends-on): Likewise.
32052         * modules/rbtree-list (Depends-on): Likewise.
32053         * modules/avltreehash-list (Depends-on): Likewise.
32054         * modules/rbtreehash-list (Depends-on): Likewise.
32055
32056         * modules/xsublist: New file.
32057         * lib/gl_xsublist.h: New file.
32058         * lib/gl_xsublist.c: New file.
32059         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32060         (gl_sublist_nx_create): New declaration.
32061         * lib/gl_sublist.c: Don't include xalloc.h.
32062         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32063         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32064         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32065         Change return type to 'int'. Return -1 upon out-of-memory.
32066         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32067         upon out-of-memory.
32068         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32069         NULL upon out-of-memory.
32070         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32071         upon out-of-memory.
32072         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32073         NULL upon out-of-memory.
32074         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32075         NULL upon out-of-memory.
32076         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32077         upon out-of-memory.
32078         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32079         (gl_sublist_list_implementation): Update.
32080         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32081         upon out-of-memory.
32082         * modules/sublist (Depends-on): Remove xalloc.
32083
32084         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32085         * tests/test-carray_list.c: Likewise.
32086         * tests/test-linked_list.c: Likewise.
32087         * tests/test-linkedhash_list.c: Likewise.
32088         * tests/test-avltree_list.c: Likewise.
32089         * tests/test-rbtree_list.c: Likewise.
32090         * tests/test-avltreehash_list.c: Likewise.
32091         * tests/test-rbtreehash_list.c: Likewise.
32092         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32093         * modules/carray-list-tests (Makefile.am): Likewise.
32094         * modules/linked-list-tests (Makefile.am): Likewise.
32095         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32096         * modules/avltree-list-tests (Makefile.am): Likewise.
32097         * modules/rbtree-list-tests (Makefile.am): Likewise.
32098         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32099         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32100
32101         * NEWS: Mention the changes.
32102
32103         * lib/clean-temp.c: Include gl_xlist.h.
32104         * modules/clean-temp (Depends-on): Add xlist.
32105
32106         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32107         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32108
32109         * tests/test-array_oset.c: Include gl_xlist.h.
32110         * modules/array-oset-tests (Depends-on): Add xlist.
32111
32112         Reported by José E. Marchesi <jemarch@gnu.org>.
32113
32114 2009-12-13  Bruno Haible  <bruno@clisp.org>
32115
32116         Move the malloc checking from module 'oset' to new module 'xoset'.
32117         * modules/xoset: New file.
32118         * lib/gl_xoset.h: New file.
32119         * lib/gl_xoset.c: New file.
32120         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32121         declarations.
32122         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32123         (struct gl_oset_implementation): Rename and change methods accordingly.
32124         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32125         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32126         'int'. Mark as __warn_unused_result__.
32127         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32128         gl_oset_create_empty.
32129         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32130         'int'.
32131         * lib/gl_array_oset.c: Don't include xalloc.h.
32132         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32133         malloc, not xmalloc.
32134         (grow): Change return type to 'int'. Don't call xalloc_die.
32135         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32136         to 'int'.
32137         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32138         'int'.
32139         (gl_array_oset_implementation): Update.
32140         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32141         gl_tree_create_empty.
32142         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32143         'int'.
32144         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32145         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32146         xmalloc.
32147         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32148         not xmalloc.
32149         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32150         xmalloc.
32151         (gl_avltree_oset_implementation): Update.
32152         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32153         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32154         xmalloc.
32155         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32156         not xmalloc.
32157         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32158         xmalloc.
32159         (gl_rbtree_oset_implementation): Update.
32160         * modules/array-oset (Depends-on): Remove xalloc.
32161         * modules/avltree-oset (Depends-on): Likewise.
32162         * modules/rbtree-oset (Depends-on): Likewise.
32163         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32164         * tests/test-avltree_oset.c: Likewise.
32165         * tests/test-rbtree_oset.c: Likewise.
32166         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32167         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32168         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32169         * NEWS: Mention the change.
32170
32171 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32172
32173         maint.mk: allow a project to override release-prep commands
32174         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32175         commands into a new rule.
32176         (release-prep): New rule.
32177         (release-prep-hook): New overridable variable.
32178
32179 2009-12-13  Bruno Haible  <bruno@clisp.org>
32180
32181         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32182
32183 2009-12-13  Jim Meyering  <meyering@redhat.com>
32184
32185         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32186         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32187
32188 2009-12-12  Bruno Haible  <bruno@clisp.org>
32189
32190         duplocale: Tweak.
32191         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32192
32193 2009-12-12  Karl Berry  <karl@gnu.org>
32194
32195         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32196
32197 2009-12-12  Bruno Haible  <bruno@clisp.org>
32198
32199         * m4/po.m4: Undo incorrect untabification.
32200
32201 2009-12-12  Bruno Haible  <bruno@clisp.org>
32202
32203         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32204         * modules/c-strtod (Depends-on): Add locale.
32205         * modules/c-strtold (Depends-on): Likewise.
32206
32207 2009-12-12  Bruno Haible  <bruno@clisp.org>
32208
32209         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32210
32211 2009-12-11  Eric Blake  <ebb9@byu.net>
32212
32213         setenv: relax requirement in light of POSIX ruling
32214         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32215         not NULL.
32216         * tests/test-setenv.c (main): Relax test.
32217         * tests/test-unsetenv.c (main): Likewise.
32218         * doc/posix-functions/setenv.texi (setenv): Document this.
32219         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32220
32221 2009-12-11  Bruno Haible  <bruno@clisp.org>
32222
32223         New module 'fd-safer-flag'.
32224         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32225         * lib/dup-safer.c (dup_safer_flag): Remove function.
32226         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32227         * lib/fd-safer.c (fd_safer_flag): Remove function.
32228         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32229         * modules/cloexec (configure.ac): Drop indicator macro.
32230         * modules/fd-safer-flag: New file.
32231         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32232         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32233         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32234
32235 2009-12-11  Bruno Haible  <bruno@clisp.org>
32236
32237         Tests for module 'nl_langinfo'.
32238         * modules/nl_langinfo-tests: New file.
32239         * tests/test-nl_langinfo.sh: New file.
32240         * tests/test-nl_langinfo.c: New file.
32241
32242         New module 'nl_langinfo'.
32243         * lib/nl_langinfo.c: New file.
32244         * m4/nl_langinfo.m4: New file.
32245         * modules/nl_langinfo: New file.
32246         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32247
32248 2009-12-11  Bruno Haible  <bruno@clisp.org>
32249
32250         Tests for module 'langinfo'.
32251         * modules/langinfo-tests: New file.
32252         * tests/test-langinfo.c: New file.
32253
32254         New module 'langinfo'.
32255         * lib/langinfo.in.h: New file.
32256         * m4/langinfo_h.m4: New file.
32257         * modules/langinfo: New file.
32258         * doc/posix-headers/langinfo.texi: Mention the new module.
32259
32260 2009-12-11  Bruno Haible  <bruno@clisp.org>
32261
32262         * lib/config.charset: Untabify.
32263
32264 2009-12-11  Bruno Haible  <bruno@clisp.org>
32265
32266         * modules/unistd-safer (configure.ac): Drop indicator macro.
32267
32268 2009-12-11  Bruno Haible  <bruno@clisp.org>
32269
32270         Move pipe2-safer code to its own file.
32271         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32272         * lib/pipe-safer.c (pipe2_safer): Remove function.
32273         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32274         (Makefile.am): Add it to lib_SOURCES.
32275
32276 2009-12-10  Bruno Haible  <bruno@clisp.org>
32277
32278         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32279
32280 2009-12-10  Bruno Haible  <bruno@clisp.org>
32281
32282         Declare which arguments expect non-NULL values, for GCC and clang.
32283         * build-aux/arg-nonnull.h: New file.
32284         * modules/arg-nonnull: New file.
32285         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32286         (inet_ntop, inet_pton): Use it.
32287         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32288         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32289         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32290         (open, openat): Use it.
32291         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32292         (fnmatch): Use it.
32293         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32294         (getopt, getopt_long, getopt_long_only): Use it.
32295         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32296         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32297         Use it.
32298         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32299         (iconv_open): Use it.
32300         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32301         (strtoimax, strtoumax): Use it.
32302         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32303         (duplocale): Use it.
32304         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32305         (frexp, frexpl): Use it.
32306         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32307         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32308         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32309         (tsearch, tfind, tdelete, twalk): Use it.
32310         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32311         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32312         sigpending): Use it.
32313         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32314         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32315         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32316         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32317         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32318         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32319         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32320         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32321         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32322         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32323         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32324         Use it.
32325         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32326         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32327         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32328         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32329         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32330         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32331         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32332         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32333         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32334         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32335         strtoull, unsetenv): Use it.
32336         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32337         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32338         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32339         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32340         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32341         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32342         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32343         (strcasecmp, strncasecmp): Use it.
32344         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32345         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32346         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32347         rpl_setsockopt): Use it.
32348         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32349         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32350         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32351         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32352         (gettimeofday): Use it.
32353         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32354         (times): Use it.
32355         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32356         (uname): Use it.
32357         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32358         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32359         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32360         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32361         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32362         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32363         unlinkat, write): Use it.
32364         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32365         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32366         * lib/argv-iter.h: Include arg-nonnull.h.
32367         (_ATTRIBUTE_NONNULL_): Remove macro.
32368         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32369         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32370         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32371         optimization.
32372         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32373         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32374         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32375         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32376         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32377         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32378         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32379         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32380         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32381         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32382         * modules/dirent (Depends-on): Add arg-nonnull.
32383         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32384         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32385         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32386         * modules/fnmatch (Depends-on): Add arg-nonnull.
32387         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32388         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32389         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32390         * modules/glob (Depends-on): Add arg-nonnull.
32391         (Makefile.am): Insert arg-nonnull.h into glob.h.
32392         * modules/iconv_open (Depends-on): Add arg-nonnull.
32393         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32394         * modules/inttypes (Depends-on): Add arg-nonnull.
32395         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32396         * modules/locale (Depends-on): Add arg-nonnull.
32397         (Makefile.am): Insert arg-nonnull.h into locale.h.
32398         * modules/math (Depends-on): Add arg-nonnull.
32399         (Makefile.am): Insert arg-nonnull.h into math.h.
32400         * modules/netdb (Depends-on): Add arg-nonnull.
32401         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32402         * modules/search (Depends-on): Add arg-nonnull.
32403         (Makefile.am): Insert arg-nonnull.h into search.h.
32404         * modules/signal (Depends-on): Add arg-nonnull.
32405         (Makefile.am): Insert arg-nonnull.h into signal.h.
32406         * modules/spawn (Depends-on): Add arg-nonnull.
32407         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32408         * modules/stdio (Depends-on): Add arg-nonnull.
32409         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32410         * modules/stdlib (Depends-on): Add arg-nonnull.
32411         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32412         * modules/string (Depends-on): Add arg-nonnull.
32413         (Makefile.am): Insert arg-nonnull.h into string.h.
32414         * modules/strings (Depends-on): Add arg-nonnull.
32415         (Makefile.am): Insert arg-nonnull.h into strings.h.
32416         * modules/sys_socket (Depends-on): Add arg-nonnull.
32417         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32418         * modules/sys_stat (Depends-on): Add arg-nonnull.
32419         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32420         * modules/sys_time (Depends-on): Add arg-nonnull.
32421         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32422         * modules/sys_times (Depends-on): Add arg-nonnull.
32423         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32424         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32425         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32426         * modules/time (Depends-on): Add arg-nonnull.
32427         (Makefile.am): Insert arg-nonnull.h into time.h.
32428         * modules/unistd (Depends-on): Add arg-nonnull.
32429         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32430         * modules/wchar (Depends-on): Add arg-nonnull.
32431         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32432         * modules/argv-iter (Depends-on): Add arg-nonnull.
32433         * tests/test-canonicalize.c (null_ptr): New function.
32434         (main): Use it.
32435         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32436         (main): Use it.
32437         * tests/test-memmem.c (null_ptr): New function.
32438         (main): Use it.
32439         Reported by Jim Meyering.
32440
32441 2009-12-10  Bruno Haible  <bruno@clisp.org>
32442
32443         Use spaces for indentation, not tabs.
32444         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32445         * m4/*.m4: Untabify.
32446         * build-aux/*.h: Untabify.
32447         * tests/**/*.[hc]: Untabify.
32448         * README: New section "Indent with spaces, not TABs", based on
32449         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32450         * NEWS: Mention the change.
32451
32452 2009-12-10  Bruno Haible  <bruno@clisp.org>
32453
32454         pty test: Fix link error.
32455         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32456         test_pty_LDADD.
32457
32458 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32459
32460         * modules/pty: New file.
32461         * modules/pty-tests: New file.
32462         * m4/pty.m4: New file.
32463         * tests/test-pty.c: New file.
32464         * doc/glibc-headers/pty.texi: Modified.
32465         * doc/glibc-functions/forkpty.texi: Modified.
32466         * doc/glibc-functions/openpty.texi: Modified.
32467
32468 2009-12-10  Bruno Haible  <bruno@clisp.org>
32469
32470         Avoid syntax error in C++ mode.
32471         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32472
32473 2009-12-10  Bruno Haible  <bruno@clisp.org>
32474
32475         Use sed with option -e.
32476         * gnulib-tool (func_version, func_emit_copyright_notice,
32477         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32478         option -e to sed.
32479         * modules/link-warning (Makefile.am): Likewise.
32480
32481 2009-12-10  Jim Meyering  <meyering@redhat.com>
32482
32483         mgetgroups: do not write bytes beyond end of malloc'd buffer
32484         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32485         username, we call getgroups with a one-element-shorter buffer,
32486         but still told it the length was original, max_n_groups.
32487
32488 2009-12-09  Eric Blake  <ebb9@byu.net>
32489
32490         cloexec: relax license
32491         * modules/cloexec (Maintainer): Add myself.
32492         (License): Use LGPL, not GPL.
32493
32494         link-warning: optimize generation
32495         * modules/link-warning (Makefile.am): Reduce process usage.
32496
32497 2009-12-09  Bruno Haible  <bruno@clisp.org>
32498
32499         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32500         workaround was added on 2009-11-17.
32501
32502 2009-12-09  Jim Meyering  <meyering@redhat.com>
32503             Bruno Haible  <bruno@clisp.org>
32504
32505         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32506         * modules/link-warning (Makefile.am): Make the comment-removing sed
32507         command more robust in the face of bootstrap-prepended comment lines.
32508
32509 2009-12-09  Bruno Haible  <bruno@clisp.org>
32510
32511         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32512         most one group.
32513
32514 2009-12-09  Simon Josefsson <simon@josefsson.org>
32515             Bruno Haible  <bruno@clisp.org>
32516
32517         * build-aux/link-warning.h: Add copyright notice.
32518         * modules/link-warning (Makefile.am): Generate link-warning.h from
32519         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32520         * NEWS: Mention change in link-warning module.
32521         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32522         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32523         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32524         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32525         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32526         * modules/math (Makefile.am): Add dependency to math.h.
32527         * modules/search (Makefile.am): Add dependency to search.h.
32528         * modules/signal (Makefile.am): Add dependency to signal.h.
32529         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32530         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32531         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32532         * modules/string (Makefile.am): Add dependency to string.h.
32533         * modules/strings (Makefile.am): Add dependency to strings.h.
32534         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32535         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32536         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32537         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32538         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32539         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32540         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32541         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32542         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32543
32544 2009-12-09  Bruno Haible  <bruno@clisp.org>
32545
32546         fchdir: Optimize away rpl_fstat when possible.
32547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32548         REPLACE_OPEN_DIRECTORY.
32549         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32550
32551 2009-12-09  Bruno Haible  <bruno@clisp.org>
32552
32553         * lib/fchdir.c: Update comment.
32554
32555 2009-12-09  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32558
32559 2009-12-08  Eric Blake  <ebb9@byu.net>
32560
32561         fchdir: avoid memory leak on re-registration.
32562         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32563
32564 2009-12-08  Jim Meyering  <meyering@redhat.com>
32565
32566         init.sh: avoid Solaris 10 /bin/sh portability problem
32567         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32568         sourced script:
32569           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32570           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32571           bar
32572         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32573         and two tests used that idiom.
32574         * tests/init.sh: Update suggested usage comments.
32575         (path_prepend_): New function, to be used in place
32576         of the --src-path=DIR option.
32577         (setup_): Move PATH-prepending code into path_prepend_.
32578         * tests/test-pread.sh: Adapt to new usage.
32579         * tests/test-xalloc-die.sh: Likewise.
32580
32581 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32582
32583         * doc/gnulib.texi (Glibc pty.h): Add.
32584         * doc/glibc-functions/forkpty.texi: Add.
32585         * doc/glibc-functions/openpty.texi: Add.
32586         Suggested by Bruno Haible.
32587
32588 2009-12-08  Eric Blake  <ebb9@byu.net>
32589
32590         fchdir: fix logic bugs
32591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32592         * tests/test-fchdir.c (main): Enhance test.
32593         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32594         is in use.
32595
32596         dup2: fix logic bugs
32597         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32598         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32599         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32600         exists.
32601         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32602
32603 2009-12-07  Eric Blake  <ebb9@byu.net>
32604
32605         unlink: fix m4 detection
32606         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32607
32608         unistd-safer: add unit test
32609         * modules/unistd-safer-tests: New file.
32610         * tests/test-dup-safer.c: Likewise.
32611         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32612         * tests/test-dup2.c (setmode): Likewise.
32613         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32614
32615         cloexec: preserve text vs. binary across dup_cloexec
32616         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32617         mode.
32618         * modules/dup2-tests (Depends-on): Add binary-io.
32619         * modules/cloexec-tests (Depends-on): Likewise.
32620         * tests/test-dup2.c (setmode, is_mode): New helpers.
32621         (main): Add tests that translation mode is preserved.
32622         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32623         Reported by Bruno Haible.
32624
32625         mgetgroups: reduce duplicate listings
32626         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32627         resulting array.
32628         * tests/test-chown.h (test_chown): Simplify client.
32629         * tests/test-lchown.h (test_lchown): Likewise.
32630
32631 2009-12-06  Bruno Haible  <bruno@clisp.org>
32632
32633         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32634         value.
32635
32636 2009-12-06  Bruno Haible  <bruno@clisp.org>
32637
32638         * lib/progname.c: Include stdio.h, stdlib.h.
32639         (set_program_name): Reject a NULL argument.
32640
32641 2009-12-05  Eric Blake  <ebb9@byu.net>
32642
32643         pipe2-safer: new module
32644         * modules/pipe2-safer: New file.
32645         * lib/unistd-safer.h (pipe2_safer): New prototype.
32646         * lib/unistd--.h (pipe2): New wrapper.
32647         * lib/pipe-safer.c (pipe2_safer): New function.
32648         * modules/pipe (Depends-on): Add pipe2-safer.
32649         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32650
32651         stdlib-safer: preserve cloexec flag for mkostemp[s]
32652         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32653         fd_safer_flag.
32654
32655         unistd-safer: allow preservation of cloexec status via flag
32656         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32657         prototypes.
32658         * lib/dup-safer.c (dup_safer_flag): New function.
32659         * lib/fd-safer.c (fd_safer_flag): Likewise.
32660         * modules/cloexec (configure.ac): Set witness.
32661
32662         test-dup2: enhance test
32663         * modules/dup2-tests (Depends-on): Add cloexec.
32664         * tests/test-dup2.c (main): Enhance test.
32665
32666         cloexec: add dup_cloexec
32667         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32668         header and comments.
32669         * lib/cloexec.c (set_cloexec_flag): Add comments.
32670         (dup_cloexec): New function, with mingw implementation borrowed
32671         from...
32672         * lib/w32spawn.h (dup_noinherit): ...here.
32673         * modules/execute (Depends-on): Add cloexec.
32674         * modules/pipe (Depends-on): Likewise.
32675         * modules/cloexec (Depends-on): Add dup2.
32676         * modules/cloexec-tests (Files): New file.
32677         * tests/test-cloexec.c: Likewise.
32678
32679         test-xalloc-die: fix test for mingw
32680         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32681         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32682         directory and .exe suffix off argv[0] output.
32683
32684         test-fseeko: fix test for mingw
32685         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32686         than undefining fseek, so test will pass on mingw.
32687
32688 2009-12-05  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/progname.h (set_program_name): Clarify specification.
32691         * lib/progname.c (set_program_name): Likewise.
32692         Reported by Jim Meyering.
32693
32694 2009-12-05  Jim Meyering  <meyering@redhat.com>
32695
32696         maint.mk: backslash-escape parens in default regexp
32697         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32698         backslash-escape the literal parentheses.
32699
32700         maint.mk: news-date-check: use grep -E
32701         * top/maint.mk (today): Define a Make variable, not a...
32702         (news-date-check): ...shell variable.
32703         (news-date-regexp): Use the Make variable.
32704         Use grep's -E option.  Change the failing diagnostic to mention
32705         the variable, $(news-date-regexp).
32706
32707 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32708
32709         maintainer-makefile: allow customization of NEWS entry format
32710         * top/maint.mk (news-date-regexp): New overridable variable.
32711         (news-date-check): Use it.
32712
32713 2009-12-04  Eric Blake  <ebb9@byu.net>
32714
32715         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32716         * lib/mgetgroups.h (xgetgroups): New prototype.
32717         * lib/mgetgroups.c (xgetgroups): New wrapper.
32718         (mgetgroups): Handle ENOSYS.
32719         * modules/mgetgroups (Depends-on): Add realloc.
32720         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32721
32722         mgetgroups: avoid argument promotion issues with -1
32723         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32724         for invalid gid_t.
32725         * tests/test-chown.h (getegid, test_chown): Likewise.
32726         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32727
32728 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32729
32730         exclude: Fix header file problems.
32731         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32732
32733 2009-12-01  Jim Meyering  <meyering@redhat.com>
32734
32735         fts: fts_open: do not let an empty string cause immediate failure
32736         This is required in support of GNU rm, for which the command
32737         "rm A '' B" must process and remove both A and B, in spite of
32738         the empty string argument.
32739         * lib/fts.c (fts_open): Do not let the presence of an empty string
32740         cause fts_open to fail immediately.  Most fts-using tools must be
32741         able to process all arguments, in order, and can be expected to
32742         diagnose such arguments themselves.
32743
32744 2009-11-30  Eric Blake  <ebb9@byu.net>
32745
32746         utimens: fix compilation error
32747         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32748         Declare variable at right scope.
32749
32750 2009-11-29  Jim Meyering  <meyering@redhat.com>
32751
32752         bootstrap: handle perl-5.11's changed --version output
32753         * build-aux/bootstrap (get_version): Handle perl separately,
32754         since perl-5.11's --version output is different.
32755
32756 2009-11-28  Jim Meyering  <meyering@redhat.com>
32757
32758         userspec: depend on the inttostr module, too
32759         * modules/userspec (Depends-on): Add inttostr.
32760
32761         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32762         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32763         number of MAXUID when it evaluates to (uid_t) -1.
32764         Likewise for group ID.  Reported by Matt McCutchen in
32765         <http://savannah.gnu.org/bugs/?28113>
32766
32767         userspec: reformat to use spaces, not TABs
32768         * lib/userspec.c: Expand TABs to spaces.
32769         Add Emacs' "indent-tabs-mode: nil" hint.
32770
32771 2009-11-27  Eric Blake  <ebb9@byu.net>
32772
32773         getopt-gnu: flush out another BSD bug
32774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32775         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32776         flush out BSD bug.
32777         * tests/test-getopt.h (test_getopt): End lists with NULL.
32778         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32779         (test_getopt_long_posix): Enhance test.
32780         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32781         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32782         getopt-gnu.
32783         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32784         Likewise.
32785
32786 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32787
32788         * modules/idpriv-droptemp-tests (Notice): Fix text.
32789
32790 2009-11-27  Jim Meyering  <meyering@redhat.com>
32791
32792         test-xalloc-die: avoid spurious failure due to libtool argv difference
32793         In a libtool-enabled project, this test would fail due to a difference
32794         in the emitted program name, e.g.,
32795         -test-xalloc-die: memory exhausted
32796         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32797         Use program to avoid that.
32798         * modules/xalloc-die-tests (Depends-on): Add progname.
32799         * tests/test-xalloc-die.c: Include progname.h".
32800         (program_name): Remove decl.
32801         (main): Call set_program_name.
32802         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32803
32804 2009-11-26  Richard Jones  <rjones@redhat.com>
32805
32806         w32sock: leave win32 error in place.
32807         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32808
32809 2009-11-26  Eric Blake  <ebb9@byu.net>
32810
32811         init.sh: suggest to use skip_ and fail_ functions in comments
32812         * tests/init.sh: Add a sentence.
32813
32814 2009-11-25  Bruno Haible  <bruno@clisp.org>
32815
32816         init.sh: add documentation in comments
32817         * tests/init.sh: Add some developer and user documentation.
32818
32819 2009-11-26  Jim Meyering  <meyering@redhat.com>
32820
32821         init.sh: accommodate even those who specify bogus srcdir manually
32822         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32823         configure-time tests to be sanitized, so that there is no need to
32824         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32825         (with no double quotes) suffices.  However, since tests may be
32826         invoked manually, and since you may explicitly set srcdir to the
32827         name of a directory containing spaces, do quote its uses here.
32828         * tests/test-pread.sh: Likewise.
32829         Suggested by Bruno Haible.
32830
32831         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32832         * tests/test-pread.sh: Write no data into the pipe, because
32833         test-pread actually reads none.  This avoids a diagnostic,
32834         "bash: echo: write error: Broken pipe", that arises in the unusual
32835         event something is ignoring SIGPIPE, and might be interpreted
32836         as some sort of failure.  Reported by Bruno Haible.
32837
32838 2009-11-25  Jim Meyering  <meyering@redhat.com>
32839
32840         test-pread: cover failure with ESPIPE and EINVAL
32841         * tests/test-pread.c (main): Test for failure, too.
32842         * tests/test-pread.sh: Invoke with stdin on a pipe.
32843         Suggested by Eric Blake.
32844
32845         pread: improvement and fix
32846         * modules/pread (Depends-on): Depend on lseek, for portability to
32847         e.g., mingw.  Suggested by Eric Blake.
32848         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32849
32850         unistd.in.h: correct declaration of pread
32851         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32852         Reported by Richard W.M. Jones.
32853
32854         test-pread.sh: distribute the test script
32855         * modules/pread-tests (Files): Include test-pread.sh.
32856
32857         test-pread.sh: clean up
32858         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32859         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32860         That is unnecessary, since it's always ".".
32861         Suggestion from Eric Blake.
32862
32863         test-pread.sh: make executable
32864         * tests/test-pread.sh: Set executable bit.
32865         Reported by Eric Blake.
32866
32867         correct typo in test-pread.sh
32868         * tests/test-pread.sh: Add #! line.
32869
32870         test pread
32871         * tests/test-pread.c: New file.
32872         * tests/test-pread.sh: Likewise.
32873         * modules/pread-tests: Likewise.
32874
32875         pread: new module
32876         * modules/pread: New file.
32877         * lib/unistd.in.h (pread): Define/declare.
32878         * lib/pread.c (pread): New file.
32879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32880         * modules/unistd (Makefile.am): Substitute witnesses.
32881         * doc/posix-functions/pread.texi (pread): Update.
32882         * MODULES.html.sh: Add pread.
32883
32884 2009-11-25  Jim Meyering  <meyering@redhat.com>
32885
32886         tests/init.sh: new file to be used via most *.sh tests
32887         * tests/init.sh: New file.
32888
32889 2009-11-25  Eric Blake  <ebb9@byu.net>
32890
32891         utimens: work around older Linux failure with symlinks
32892         * lib/utimens.c (lutimensat_works_really): New variable.
32893         (fdutimens, lutimens): Use it to manage kernels that support
32894         nanosecond times on files, but not on symlinks.
32895         Reported by Ondřej Vašík.
32896
32897         utimes: fix configure grammar
32898         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32899
32900 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32901
32902         regex: Fix fastmap for multibyte character ranges.
32903         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32904         characters when a multibyte character range is included.
32905
32906 2009-11-22  Andy Wingo  <wingo@pobox.com>
32907
32908         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32909         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32910
32911 2009-11-24  Bruno Haible  <bruno@clisp.org>
32912
32913         doc: Most *_l functions exist in MacOS X 10.5.
32914         * doc/posix-functions/duplocale.texi: Update platforms list.
32915         * doc/posix-functions/freelocale.texi: Likewise.
32916         * doc/posix-functions/newlocale.texi: Likewise.
32917         * doc/posix-functions/uselocale.texi: Likewise.
32918         * doc/posix-functions/isalnum_l.texi: Likewise.
32919         * doc/posix-functions/isalpha_l.texi: Likewise.
32920         * doc/posix-functions/isblank_l.texi: Likewise.
32921         * doc/posix-functions/iscntrl_l.texi: Likewise.
32922         * doc/posix-functions/isdigit_l.texi: Likewise.
32923         * doc/posix-functions/isgraph_l.texi: Likewise.
32924         * doc/posix-functions/islower_l.texi: Likewise.
32925         * doc/posix-functions/isprint_l.texi: Likewise.
32926         * doc/posix-functions/ispunct_l.texi: Likewise.
32927         * doc/posix-functions/isspace_l.texi: Likewise.
32928         * doc/posix-functions/isupper_l.texi: Likewise.
32929         * doc/posix-functions/iswalnum_l.texi: Likewise.
32930         * doc/posix-functions/iswalpha_l.texi: Likewise.
32931         * doc/posix-functions/iswblank_l.texi: Likewise.
32932         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32933         * doc/posix-functions/iswctype_l.texi: Likewise.
32934         * doc/posix-functions/iswdigit_l.texi: Likewise.
32935         * doc/posix-functions/iswgraph_l.texi: Likewise.
32936         * doc/posix-functions/iswlower_l.texi: Likewise.
32937         * doc/posix-functions/iswprint_l.texi: Likewise.
32938         * doc/posix-functions/iswpunct_l.texi: Likewise.
32939         * doc/posix-functions/iswspace_l.texi: Likewise.
32940         * doc/posix-functions/iswupper_l.texi: Likewise.
32941         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32942         * doc/posix-functions/isxdigit_l.texi: Likewise.
32943         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32944         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32945         * doc/posix-functions/strcoll_l.texi: Likewise.
32946         * doc/posix-functions/strfmon_l.texi: Likewise.
32947         * doc/posix-functions/strftime_l.texi: Likewise.
32948         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32949         * doc/posix-functions/strxfrm_l.texi: Likewise.
32950         * doc/posix-functions/tolower_l.texi: Likewise.
32951         * doc/posix-functions/toupper_l.texi: Likewise.
32952         * doc/posix-functions/towctrans_l.texi: Likewise.
32953         * doc/posix-functions/towlower_l.texi: Likewise.
32954         * doc/posix-functions/towupper_l.texi: Likewise.
32955         * doc/posix-functions/wcscoll_l.texi: Likewise.
32956         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32957         * doc/posix-functions/wctrans_l.texi: Likewise.
32958         * doc/posix-functions/wctype_l.texi: Likewise.
32959         * doc/glibc-functions/strptime_l.texi: Likewise.
32960         * doc/glibc-functions/strtod_l.texi: Likewise.
32961         * doc/glibc-functions/strtof_l.texi: Likewise.
32962         * doc/glibc-functions/strtol_l.texi: Likewise.
32963         * doc/glibc-functions/strtold_l.texi: Likewise.
32964         * doc/glibc-functions/strtoll_l.texi: Likewise.
32965         * doc/glibc-functions/strtoul_l.texi: Likewise.
32966         * doc/glibc-functions/strtoull_l.texi: Likewise.
32967         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32968         * doc/glibc-functions/wcstod_l.texi: Likewise.
32969         * doc/glibc-functions/wcstof_l.texi: Likewise.
32970         * doc/glibc-functions/wcstol_l.texi: Likewise.
32971         * doc/glibc-functions/wcstold_l.texi: Likewise.
32972         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32973         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32974         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32975
32976 2009-11-24  Bruno Haible  <bruno@clisp.org>
32977
32978         duplocale: Fix logic bug.
32979         * lib/duplocale.c: Don't include <langinfo.h>.
32980         (_NL_LOCALE_NAME): Remove macro.
32981         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32982         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32983
32984 2009-11-23  Jim Meyering  <meyering@redhat.com>
32985
32986         test-update-copyright: don't hard-code /usr/bin/perl
32987         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32988         perl to print the current year.  Gilles Espinasse reported that
32989         the replaced use of perl was hard-coded as /usr/bin/perl.
32990
32991 2009-11-23  Bruno Haible  <bruno@clisp.org>
32992
32993         duplocale: Add support for glibc 2.3.x.
32994         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32995
32996 2009-11-22  Bruno Haible  <bruno@clisp.org>
32997
32998         vasnprintf: Tiny optimization.
32999         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33000         MacOS X.
33001
33002 2009-11-22  Bruno Haible  <bruno@clisp.org>
33003
33004         Tests for module 'duplocale'.
33005         * modules/duplocale-tests: New file.
33006         * tests/test-duplocale.c: New file.
33007
33008         New module 'duplocale'.
33009         * m4/duplocale.m4: New file.
33010         * lib/locale.in.h (duplocale): New declaration.
33011         * lib/duplocale.c: New file.
33012         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33013         gl_LOCALE_H_DEFAULTS): New macros.
33014         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33015         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33016         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33017         REPLACE_DUPLOCALE.
33018         * modules/duplocale: New file.
33019         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33020
33021 2009-11-22  Bruno Haible  <bruno@clisp.org>
33022
33023         * modules/locale-tests (configure.ac): Test for newlocale function.
33024         * tests/test-locale.c: When the system has extended locale functions,
33025         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33026
33027         locale: Make locale_t available when possible.
33028         * lib/locale.in.h: Include <xlocale.h> when it exists.
33029         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33030         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33031         * modules/locale (Depends-on): Add extensions.
33032         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33033         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33034
33035 2009-11-22  Bruno Haible  <bruno@clisp.org>
33036
33037         Add comments.
33038         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33039         invocation.
33040         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33041         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33042         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33043
33044 2009-11-22  Bruno Haible  <bruno@clisp.org>
33045
33046         error: account for the possibility of freopen (stdout).
33047         * lib/error.c: Include <unistd.h>.
33048         (flush_stdout): New function, extracted from error and error_at_line.
33049         Determine stdout's fd dynamically.
33050         (error, error_at_line): Invoke flush_stdout.
33051         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33052         * modules/error (Depends-on): Add unistd.
33053
33054 2009-11-22  Bruno Haible  <bruno@clisp.org>
33055
33056         diffseq: Add comment.
33057         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33058
33059 2009-11-22  Jim Meyering  <meyering@redhat.com>
33060
33061         c-stack: avoid defining an unused static function
33062         * lib/c-stack.c (find_stack_direction): Do not define this function
33063         when it will not be used.
33064
33065         diffseq: avoid spurious gcc warnings
33066         * lib/diffseq.h (IF_LINT2): Define.
33067         (compareseq): Use it to initialize two members of "part".
33068         This avoids two used-uninitialized warnings.
33069
33070 2009-11-21  Jim Meyering  <meyering@redhat.com>
33071
33072         c-stack: avoid "ignoring return value of `write'" warning
33073         * lib/c-stack.c: Include "ignore-value.h".
33074         (die): Explicitly ignore each write return value.
33075         * modules/c-stack (Depends-on): Add ignore-value.
33076
33077 2009-11-21  Bruno Haible  <bruno@clisp.org>
33078
33079         diffseq: reduce scope of variable 'best'.
33080         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33081         variable, earlier used for two different purposes.
33082
33083 2009-11-21  Jim Meyering  <meyering@redhat.com>
33084
33085         diffseq: remove useless assignment to "best"
33086         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33087         assignment.  At that point "best" is already guaranteed to be zero.
33088
33089 2009-11-20  Eric Blake  <ebb9@byu.net>
33090
33091         build: mention ftp redirector in release announcements
33092         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33093         values that used to come from cfg.mk; mention FTP redirect URL.
33094         * build-aux/announce-gen: Mention the mirror list.
33095         Suggested by Karl Berry.
33096
33097         nanosleep: improve port to mingw
33098         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33100         LIB_NANOSLEEP, but only when needed.
33101         * modules/select (Link): Document LIBSOCKET.
33102         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33103         enough.
33104
33105         nanosleep: work around cygwin bug
33106         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33107         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33108         bug.
33109         (getnow): Delete, not needed.
33110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33111         LIB_CLOCK_GETTIME.
33112         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33113         clock-time, gettime.
33114         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33115         bug.
33116         * modules/nanosleep-tests: New test.
33117         * tests/test-nanosleep.c: New file.
33118
33119         sleep: work around cygwin bug
33120         * lib/sleep.c (rpl_sleep): Work around the bug.
33121         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33122         (gl_PREREQ_SLEEP): Delete unused macro.
33123         * modules/sleep (Depends-on): Add verify.
33124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33125         * modules/unistd (Makefile.am): Substitute witness.
33126         * lib/unistd.in.h (sleep): Update prototype.
33127         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33128         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33129         * modules/sleep-tests (Depends-on): Check for alarm.
33130
33131 2009-11-20  Jim Meyering  <meyering@redhat.com>
33132
33133         maint.mk: improve sc_prohibit_magic_number_exit
33134         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33135         so it does not match uses like System.exit(1).
33136         Add comments showing how to correct all offenders.
33137
33138 2009-11-19  Eric Blake  <ebb9@byu.net>
33139
33140         xalloc-die-tests: add missing library
33141         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33142
33143         test-xvasprintf: silence compiler warnings
33144         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33145         empty string from gcc.
33146
33147 2009-11-19  Jim Meyering  <meyering@redhat.com>
33148
33149         xfreopen: new module, from coreutils
33150         * modules/xfreopen: New module.
33151         * lib/xfreopen.c: New file.
33152         * lib/xfreopen.h: New file.
33153         * MODULES.html.sh (File stream based Input/Output"): Add it.
33154
33155 2009-11-19  Eric Blake  <ebb9@byu.net>
33156
33157         manywarnings: depend on warnings
33158         * modules/manywarnings (Depends-on): Add warnings.
33159
33160         build: avoid compiler warnings
33161         * lib/select.c (rpl_select): Delete unused variable.
33162         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33163
33164 2009-11-18  Eric Blake  <ebb9@byu.net>
33165
33166         tests: avoid false negative with --with-packager
33167         * tests/test-version-etc.sh: Discard packager information.
33168         * tests/test-argp-version-etc-1.sh: Likewise.
33169         Reported by Mike Frysinger.
33170
33171         utimens: fix regression on Solaris
33172         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33173         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33174         can only change fd timestamps via futimesat.  Instead, use an
33175         additional witness macro to avoid BSD bug.
33176         Reported by Jim Meyering.
33177
33178 2009-11-17  Eric Blake  <ebb9@byu.net>
33179
33180         usleep: use it to simplify tests
33181         * modules/stat-time-tests (Depends-on): Add usleep.
33182         (configure.ac): Drop usleep check.
33183         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33184         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33185         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33186         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33187         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33188         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33189         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33190         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33191         Likewise.
33192         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33193         * tests/test-lchown.h (nap): Likewise.
33194         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33195         * tests/test-stat-time.c (nap): Likewise.
33196         * tests/test-utimens-common.h (nap): Update comments.
33197
33198         usleep: new module
33199         * modules/usleep: New file.
33200         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33201         * lib/usleep.c (usleep): Likewise.
33202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33203         * modules/unistd (Makefile.am): Substitute witnesses.
33204         * lib/unistd.in.h (usleep): Add declaration.
33205         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33206         * MODULES.html.sh (Date and time): Likewise.
33207         * modules/usleep-tests (Depends-on): New test.
33208         * tests/test-usleep.c: New file.
33209
33210         chown: work around OpenBSD bug
33211         * lib/chown.c (rpl_chown): Work around the bug.
33212         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33213         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33214         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33215         * modules/chown (Depends-on): Add stdbool.
33216         * modules/lchown (Depends-on): Likewise.
33217         * doc/posix-functions/chown.texi (chown): Document the bug.
33218         * doc/posix-functions/lchown.texi (lchown): Likewise.
33219         * tests/test-lchown.h (test_chown): Relax test.
33220
33221         mkstemp: avoid conflict with C++ keyword template
33222         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33223         * lib/mkostemp.c (mkostemp): Likewise.
33224         * lib/mkostemps.c (mkostemps): Likewise.
33225         * lib/mkstemp.c (mkstemp): Likewise.
33226         * lib/mkstemps.c (mkstemps): Likewise.
33227
33228         xalloc-die-tests: optimize
33229         * tests/test-xalloc-die.sh: Reduce number of processes.
33230
33231 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33232
33233         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33234         patch from ludo@gnu.org (Ludovic Courtès).
33235
33236 2009-11-17  Jim Meyering  <meyering@redhat.com>
33237
33238         version-etc: use proper license string
33239         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33240         * modules/version-etc-fsf: Likewise.
33241
33242 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33243
33244         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33245         printed to stdout.  Deal with EOL differences.
33246
33247 2009-11-17  Eric Blake  <ebb9@byu.net>
33248
33249         unsetenv: work around Solaris bug
33250         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33251         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33252         Reported by Jim Meyering.
33253
33254         vasnprintf: avoid compiler warnings
33255         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33256         variables.
33257         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33258
33259 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33260
33261         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33262         settings since xalloc-die is no longer the self test,
33263         xalloc-die.sh is.
33264
33265 2009-11-17  Jim Meyering  <meyering@redhat.com>
33266
33267         test-xalloc-die.sh: make the code agree with the commit log
33268         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33269         at the end, just in case you happen to have a test-xalloc-die
33270         program in some other PATH directory.
33271
33272         test-xalloc-die.sh: fix a portability bug
33273         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33274         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33275         Otherwise, argv[0] (as often seen in diagnostics) would be too
33276         system-dependent, sometimes with, and sometimes without the leading "./".
33277
33278         version-etc-fsf: relax license to LGPLv3+
33279         * modules/version-etc-fsf (License): Relax license.
33280
33281 2009-11-16  Eric Blake  <ebb9@byu.net>
33282
33283         xalloc-die-tests: avoid printing null pointer
33284         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33285         shell script.
33286         * tests/test-xalloc-die.c (program_name): Declare.
33287         * tests/test-xalloc-die.sh (tmpfiles): New file.
33288
33289         setenv, unsetenv: work around various bugs
33290         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33291         (setenv) [HAVE_SETENV]: Work around bugs.
33292         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33293         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33294         for bugs.
33295         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33296         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33298         * modules/stdlib (Makefile.am): Update substitutions.
33299         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33300         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33301         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33302         * modules/setenv-tests: New test.
33303         * modules/unsetenv-tests: Likewise.
33304         * tests/test-setenv.c: New file.
33305         * tests/test-unsetenv.c: Likewise.
33306
33307 2009-11-16  Jim Meyering  <meyering@redhat.com>
33308
33309         version-etc: relax license to LGPLv3+
33310         * modules/version-etc (License): Relax license.
33311
33312         better AC_REQUIRE expanded-before-required-warning avoidance
33313         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33314         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33315         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33316         which is no longer needed.
33317
33318 2009-11-16  Eric Blake  <ebb9@byu.net>
33319
33320         test-freading: clean up temporary file
33321         * tests/test-freading.c (main): Remove file on success, and use
33322         ASSERT more liberally.
33323         Reported by Jim Meyering.
33324
33325 2009-11-16  Jim Meyering  <meyering@redhat.com>
33326
33327         avoid new AC_REQUIRE expanded-before-required warnings
33328         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33329         merely using it.
33330         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33331         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33332
33333 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33334
33335         * tests/test-xalloc-die.c: New file.
33336         * modules/xalloc-die-tests: New file.
33337         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33338         XFAIL_TESTS so it can be appended by modules.
33339
33340 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33341
33342         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33343         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33344
33345 2009-11-14  Eric Blake  <ebb9@byu.net>
33346
33347         fnmatch: avoid compiler warning
33348         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33349         to silence compiler warning about mismatch signedness in ?:.
33350         Reported by Robert Millan.
33351
33352         intprops: add double-inclusion guard
33353         * lib/intprops.h: Allow idempotent includes.
33354         Suggested by Bruce Korb.
33355
33356         openat: detect Solaris fchownat bug
33357         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33358         penalizing glibc chownat when only lchownat is broken.
33359         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33360         trailing slash bugs.
33361         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33362         * modules/openat-tests (Files): Include more files.
33363         (Depends-on): Add mgetgroups, sleep, stat-time.
33364         (configure.ac): Add additional checks.
33365         (Makefile.am): Build new test.
33366         * tests/test-fchownat.c: New file.
33367
33368         lchown: detect Solaris and FreeBSD bug
33369         * lib/lchown.c (rpl_lchown): Work around bug.
33370         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33372         * modules/unistd (Makefile.am): Populate it.
33373         * lib/unistd.in.h (lchown): Update declaration.
33374         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33375         * modules/lchown-tests: New file.
33376         * tests/test-lchown.h (test_lchown): Likewise.
33377         * tests/test-lchown.c (main): Likewise.
33378
33379         chown: detect Solaris and FreeBSD bug
33380         * lib/chown.c (rpl_chown): Work around bug.
33381         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33382         (gl_PREREQ_CHOWN): Delete.
33383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33384         * modules/unistd (Makefile.am): Populate it.
33385         * lib/unistd.in.h (chown): Update declaration.
33386         * lib/lchown.c (chown): Update client.
33387         * modules/lchown (Depends-on): Add lstat.
33388         * doc/posix-functions/chown.texi (chown): Document the bug.
33389         * doc/posix-functions/getgroups.texi (getgroups): Document
33390         getgroups pitfall.
33391         * modules/chown-tests: New file.
33392         * tests/test-chown.h (test_chown): Likewise.
33393         * tests/test-chown.c (main): Likewise.
33394
33395 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33396
33397         gnulib-tool: correctly detect absence of m4 directories
33398         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33399
33400 2009-11-14  Jim Meyering  <meyering@redhat.com>
33401
33402         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33403         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33404
33405 2009-11-14  John W. Eaton  <jwe@gnu.org>
33406
33407         strftime.h: wrap funtion declaration in extern "C" block
33408         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33409
33410 2009-11-13  Eric Blake  <ebb9@byu.net>
33411
33412         getgroups: avoid compiler warning
33413         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33414
33415         getgroups: work around FreeBSD bug
33416         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33417         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33418         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33419         * tests/test-getgroups.c (main): Fix buffer overrun.
33420
33421         getgroups: avoid compilation failure
33422         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33423         * modules/getgroups (Depends-on): Add stdint.
33424
33425 2009-11-13  Jim Meyering  <meyering@redhat.com>
33426
33427         test-getgroups: avoid compilation failure
33428         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33429
33430 2009-11-13  Eric Blake  <ebb9@byu.net>
33431
33432         mgetgroups: new module, taken from coreutils
33433         * modules/mgetgroups: New file.
33434         * lib/mgetgroups.h: Likewise.
33435         * lib/mgetgroups.c (mgetgroups): Likewise.
33436         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33437         * MODULES.html.sh (Users and groups): Mention it.
33438
33439         getgroups: don't expose GETGROUPS_T to user
33440         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33441         an element at a time if GETGROUPS_T is wrong size.
33442         * lib/getugroups.h (getugroups): Change signature.
33443         * lib/unistd.in.h (getgroups): Likewise.
33444         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33445         signature needs fixing.
33446         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33447         AC_TYPE_GETGROUPS.
33448         * modules/group-member (Depends-on): Add getgroups.
33449         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33450         (group_member): Rely on getgroups replacement.
33451         * lib/getugroups.c (getugroups): Use gid_t.
33452         * tests/test-getgroups.c (main): Likewise.
33453         * NEWS: Mention the signature change.
33454         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33455         problem with signature.
33456         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33457         GETGROUPS_T is still useful for setgroups.
33458
33459         getgroups, getugroups: provide stubs for mingw
33460         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33461         * lib/getugroups.c (getugroups): Likewise.
33462         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33463         function.  Modernize replacement scheme.
33464         (gl_PREREQ_GETGROUPS): Delete.
33465         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33466         * modules/getgroups (configure.ac): Declare witness.
33467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33468         * modules/unistd (Depends-on): Substitute witness.
33469         * lib/unistd.in.h (getgroups): Declare replacement.
33470
33471         getgroups: avoid calling exit
33472         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33473         drop xalloc.
33474         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33475         dependencies.
33476         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33477         exiting, in the rare case of malloc failure.
33478
33479         getgroups: fix logic error
33480         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33481         has more than 20 groups.
33482         * modules/getgroups-tests: New test.
33483         * tests/test-getgroups.c: New file.
33484
33485 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33486
33487         * tests/test-base64.c: Improve.
33488
33489 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33490
33491         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33492         Blake <ebb9@byu.net>.
33493
33494 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33495
33496         * tests/test-xvasprintf.c: Add %s%s related checks.
33497
33498 2009-11-12  Eric Blake  <ebb9@byu.net>
33499
33500         version-etc: match standards.texi style
33501         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33502         and use <> only for URLs.
33503
33504 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33505
33506         fts: do not fail on a submount during traversal
33507         * lib/fts.c (fts_build): Read the stat info again after opening
33508         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33509         Original report at http://bugzilla.redhat.com/501848.
33510
33511 2009-11-12  Jim Meyering  <meyering@redhat.com>
33512
33513         bootstrap: sync from coreutils
33514         * build-aux/bootstrap (bootstrap_epilogue): New function.
33515         Use git_modules_config in one more place.  This make bootstrap's
33516         --gnulib-srcdir option more useful for testing.
33517
33518         bootstrap: generalize autoheader check
33519         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33520         AC_CONFIG_HEADERS.
33521
33522 2009-11-11  Eric Blake  <ebb9@byu.net>
33523
33524         mkfifoat: use new modules for Solaris and BSD bugs
33525         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33526         * lib/mkfifoat.c (mknodat): Split...
33527         * lib/mknodat.c (mknodat): ...into new file.
33528         * modules/mkfifoat (Files): Ship new file.
33529         (Depends-on): Add mkfifo, mknod.
33530         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33531         (Depends-on): Add symlink.
33532         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33533         redundant with test_mkfifo.h.
33534         (do_mkfifoat, do_mknodat): New helpers.
33535
33536         mknod: new module
33537         * modules/mknod: New file.
33538         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33539         * lib/mknod.c (mknod): Likewise.
33540         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33541         defaults.
33542         * modules/sys_stat (Makefile.am): Substitute them.
33543         * lib/sys_stat.in.h (mknod): Declare replacement.
33544         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33545         Document it.
33546         * doc/posix-functions/mknod.texi (mknod): Likewise.
33547         * modules/mknod-tests: New test.
33548         * tests/test-mknod.c: Likewise.
33549
33550         mkfifo: new module
33551         * modules/mkfifo: New file.
33552         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33553         * lib/mkfifo.c (mkfifo): Likewise.
33554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33555         defaults.
33556         * modules/sys_stat (Makefile.am): Substitute them.
33557         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33558         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33559         Document it.
33560         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33561         * modules/mkfifo-tests: New test.
33562         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33563         from test-mkfifoat.c.
33564         * tests/test-mkfifo.c: New file.
33565
33566         readlink: detect FreeBSD bug
33567         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33568         slash on symlink.
33569         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33570         * tests/test-readlink.h (test_readlink): Enhance test.
33571
33572         symlink: detect FreeBSD bug
33573         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33574         slash on symlink.
33575         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33576         * tests/test-symlink.h (test_symlink): Enhance test.
33577
33578 2009-11-10  Eric Blake  <ebb9@byu.net>
33579
33580         link: detect FreeBSD bug
33581         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33582         symlink.
33583         * doc/posix-functions/link.texi (link): Document the bug.
33584         * tests/test-link.h (test_link): Enhance test.
33585         * tests/test-linkat.c (main): Update caller.
33586
33587         unlink, remove: detect FreeBSD bug
33588         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33589         slash on symlink.
33590         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33591         * doc/posix-functions/remove.texi (remove): Likewise.
33592         * tests/test-unlink.h (test_unlink): Enhance test.
33593         * tests/test-remove.c (main): Likewise.
33594
33595 2009-11-09  Eric Blake  <ebb9@byu.net>
33596
33597         rename: detect FreeBSD bug
33598         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33599         slash on symlink.
33600         * modules/renameat-tests (Depends-on): Add filenamecat.
33601         * tests/test-rename.h (test_rename): Allow one more errno.
33602         * tests/test-renameat.c (main): Likewise.
33603         * doc/posix-functions/rename.texi (rename): Document the bug.
33604
33605         open: detect FreeBSD bug
33606         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33607         symlink.
33608         * doc/posix-functions/open.texi (open): Document the bug.
33609         * doc/posix-functions/utimes.texi (utimes): Likewise.
33610         * tests/test-open.h (test_open): Add parameters, and test symlink
33611         handling.
33612         * tests/test-open.c (main): Adjust caller.
33613         * tests/test-fcntl-safer.c (main): Likewise.
33614         * modules/open-tests (Depends-on): Add stdbool, symlink.
33615         * modules/fcntl-safer-tests (Depends-on): Likewise.
33616         * tests/test-openat.c (main): Add test-open tests.
33617
33618         stat: detect FreeBSD bug
33619         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33620         symlink.
33621         * doc/posix-functions/stat.texi (stat): Document the bug.
33622         * tests/test-stat.h (test_stat_func): Add argument.
33623         * tests/test-stat.c (main): Adjust caller.
33624         * tests/test-fstatat.c (main): Likewise.
33625         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33626         Reported by Jim Meyering.
33627
33628 2009-11-09  James Youngman  <jay@gnu.org>
33629
33630         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33631         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33632
33633 2009-11-08  Jim Meyering  <meyering@redhat.com>
33634
33635         utimens: remove invalid futimesat call
33636         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33637         It used the file descriptor of the target file as the DIR_FD
33638         parameter and NULL as the file name.  That caused failure with
33639         errno == EFAULT on FreeBSD-8.0-rc2
33640
33641 2009-11-07  Eric Blake  <ebb9@byu.net>
33642
33643         fflush, freadseek: use fseeko, not fseek
33644         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33645         (clear_ungetc_buffer): Avoid potential problems on large files.
33646         * lib/freadseek.c (freadseek): Likewise.
33647         * modules/freadseek (Depends-on): Add fseeko.
33648         * modules/fseek (configure.ac): Set a witness.
33649         * tests/test-fflush.c (main): Use fseeko.
33650         * tests/test-fpurge.c (fseek): Disable link warning.
33651         * tests/test-freadable.c (fseek): Likewise.
33652         * tests/test-freading.c (fseek): Likewise.
33653         * tests/test-fseeko.c (fseek): Likewise.
33654         * tests/test-ftell.c (fseek): Likewise.
33655         * tests/test-ftello.c (fseek): Likewise.
33656         * tests/test-fwritable.c (fseek): Likewise.
33657         * tests/test-fwriting.c (fseek): Likewise.
33658
33659 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33660
33661         * modules/memchr (Depends-on): Drop getpagesize dependency.
33662
33663 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33664
33665         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33666         Reported by Ludovic Courtès.
33667         * build-aux/pmccabe2html: Improve example usage.
33668         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33669
33670 2009-11-06  Jim Meyering  <meyering@redhat.com>
33671
33672         do-release-commit-and-tag: New module.
33673         Automate the release-commit and tag process.
33674         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33675         * modules/do-release-commit-and-tag: New file.
33676         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33677
33678 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33679
33680         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33681         because test-select.c uses inet_pton.
33682
33683 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33684
33685         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33686         GETADDRINFO_LIB.  Bump serial number.
33687         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33688         Suggested by Eric Blake <ebb9@byu.net>.
33689
33690 2009-11-05  Eric Blake  <ebb9@byu.net>
33691
33692         strtod: detect darwin bug
33693         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33694         Reported by Leo Davis.
33695
33696         freopen-safer: new module
33697         * modules/freopen-safer: New module.
33698         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33699         * lib/freopen-safer.c (freopen_safer): New file.
33700         * lib/stdio-safer.h (freopen_safer): New declaration.
33701         * lib/stdio--.h (freopen): New override.
33702         * MODULES.html.sh (File stream based Input/Output): Mention it.
33703         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33704         freopen-safer module.
33705         * doc/posix-functions/stderr.texi (stderr): Likewise.
33706         * doc/posix-functions/stdin.texi (stdin): Likewise.
33707         * doc/posix-functions/stdout.texi (stdout): Likewise.
33708         * modules/freopen-safer-tests: New test.
33709         * tests/test-reopen-safer.c: New file.
33710
33711 2009-11-05  Jim Meyering  <meyering@redhat.com>
33712
33713         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33714         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33715
33716 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33717
33718         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33719
33720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33721
33722         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33723
33724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33725
33726         Fix link error.
33727         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33728         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33729
33730 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33731
33732         * tests/test-func.c: Also test value of __func__.
33733
33734 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33735
33736         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33737         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33738
33739 2009-11-05  Bruno Haible  <bruno@clisp.org>
33740
33741         Fix link error.
33742         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33743         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33744         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33745
33746 2009-11-05  Bruno Haible  <bruno@clisp.org>
33747
33748         Tests for module 'inet_pton'.
33749         * modules/inet_pton-tests: New file.
33750         * tests/test-inet_pton.c: New file.
33751
33752 2009-11-05  Bruno Haible  <bruno@clisp.org>
33753
33754         Tests for module 'inet_ntop'.
33755         * modules/inet_ntop-tests: New file.
33756         * tests/test-inet_ntop.c: New file.
33757
33758 2009-11-04  Eric Blake  <ebb9@byu.net>
33759
33760         stdlib-safer: wrap all mkstemp variants
33761         * modules/mkostemp (configure.ac): Set witness.
33762         * modules/mkostemps (configure.ac): Likewise.
33763         * modules/mkstemps (configure.ac): Likewise.
33764         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33765         (mkstemps_safer): Wrap more functions.
33766         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33767         wrapping.
33768         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33769         (mkstemps_safer): Implement the wrappers.
33770
33771         mkstemps, mkostemps: new modules
33772         * modules/mkostemps: New module.
33773         * modules/mkstemps: Likewise.
33774         * lib/mkostemps.c (mkostemps): New file.
33775         * lib/mkstemps.c (mkstemps): Likewise.
33776         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33777         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33779         * modules/stdlib (Makefile.am): Substitute them.
33780         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33781         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33782         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33783         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33784         * MODULES.html.sh (File system functions): Mention them.
33785
33786         tempname: resync from glibc
33787         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33788         same values for __GT_FILE as glibc.  Abort even when assertions
33789         are disabled.
33790         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33791         match its value otherwise.  Allow idempotent inclusion.
33792         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33793         * lib/mkostemp.c (mkostemp): Likewise.
33794         * lib/mkstemp.c (mkstemp): Likewise.
33795         * lib/tmpfile.c (tmpfile): Likewise.
33796         * NEWS: Document this.
33797
33798         utimens: fix use of futimens on older Linux
33799         * lib/utimens.c (fdutimens): Use updated, rather than original,
33800         timespec to avoid bug in older Linux kernel.
33801         Reported by Simon Josefsson.
33802
33803 2009-11-04  Bruno Haible  <bruno@clisp.org>
33804
33805         Make num_processors more flexible and consistent.
33806         * lib/nproc.h (enum nproc_query): New type.
33807         (num_processors): Add a 'query' argument.
33808         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33809         (num_processors): Add a 'query' argument. Test the value of the
33810         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33811         mingw, count the number of CPUs available for the current process.
33812         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33813         Check for sched_getaffinity and sched_getaffinity_np.
33814         * modules/nproc (Depends-on): Add c-ctype, extensions.
33815         * NEWS: Mention the change.
33816
33817 2009-11-03  Bruno Haible  <bruno@clisp.org>
33818
33819         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33820
33821 2009-11-03  Jim Meyering  <meyering@redhat.com>
33822
33823         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33824         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33825         if it is defined.
33826
33827 2009-11-02  Eric Blake  <ebb9@byu.net>
33828
33829         mktime, timegm: share common declaration
33830         * lib/mktime-internal.h: New file.
33831         * lib/mktime.c: Use it rather than open-coding a declaration.
33832         * lib/timegm.c: Likewise.
33833         * modules/mktime (Files): Ship it.
33834         * modules/timegm (Files): Likewise.
33835         Suggested by Bruno Haible.
33836
33837         test-update-copyright: update test to match script changes
33838         * tests/test-update-copyright.sh: Avoid hard-coding perl
33839         location.  Don't update *.bak created by earlier runs.
33840
33841 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33842             Simon Josefsson  <simon@josefsson.org>
33843             Bruno Haible  <bruno@clisp.org>
33844
33845         Fix link error on Solaris 8.
33846         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33847         also in libnsl. Define also INET_PTON_LIB.
33848         * modules/inet_pton (Link): New section.
33849
33850 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33851             Bruno Haible  <bruno@clisp.org>
33852
33853         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33854         * modules/inet_ntop (Link): New section.
33855         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33856
33857 2009-11-02  Eric Blake  <ebb9@byu.net>
33858
33859         maint: avoid compiler warnings in m4 macros
33860         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33861         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33862
33863 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33864
33865         * m4/pmccabe2html.m4: Remove file.
33866         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33867         function.  Change maintainer.
33868         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33869         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33870         Courtès).
33871
33872 2009-10-31  Eric Blake  <ebb9@byu.net>
33873
33874         fseeko: fix m4 regression
33875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33876         regression from 2009-10-27.
33877         Reported by Ralf Wildenhues.
33878
33879 2009-10-31  Jim Meyering  <meyering@redhat.com>
33880
33881         inttostr: aesthetics and improved (compile-time) safety
33882         Define inttype_is_signed rather than inttype_is_unsigned,
33883         since the sole use is via "#if inttype_is_signed".
33884         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33885         inttype_is_unsigned.
33886         * lib/offtostr.c (inttype_is_signed): Likewise.
33887         * lib/uinttostr.c (inttype_is_signed): Likewise.
33888         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33889         * lib/inttostr.c (inttostr): Use verify to cross-check the
33890         inttype_is_signed value and the signedness of the actual type.
33891         * modules/inttostr (Depends-on): Add verify.
33892
33893 2009-10-30  Eric Blake  <ebb9@byu.net>
33894
33895         build: avoid compiler warnings
33896         * lib/fchmodat.c (lchmod): Mark unused variables.
33897         * lib/getopt.c (_getopt_initialize): Likewise.
33898         * lib/mktime.c (__mktime_internal): Provide prototype.
33899         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33900         older gcc that do not understand #pragma GCC diagnostic.
33901         * lib/uinttostr.c (inttype_is_unsigned): Define.
33902         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33903
33904 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33905
33906         stat: fix compilation on AIX
33907         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33908         only see struct stat64.
33909
33910 2009-10-30  Eric Blake  <ebb9@byu.net>
33911
33912         exclude: make more robust
33913         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33914         rather than masking a coding bug.
33915         Suggested by Bruno Haible.
33916
33917 2009-10-30  Jim Meyering  <meyering@redhat.com>
33918
33919         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33920         Rather than putting #!/usr/bin/perl on the first line,
33921         start with a variant of what's recommended by "man perlrun" that
33922         invokes the first "perl" program from your shell's search path.
33923         * build-aux/gitlog-to-changelog: Replace #!... as above.
33924         Add a "Local Variables" perl mode setting.
33925         Prompted by a patch from Ludovic Courtès.
33926         Improved by Eric Blake.
33927         * build-aux/useless-if-before-free: Likewise.
33928         * build-aux/announce-gen: Likewise.
33929         * build-aux/update-copyright: Likewise.
33930
33931 2009-10-29  Eric Blake  <ebb9@byu.net>
33932
33933         filenamecat-lgpl: adjust clients
33934         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33935         filenamecat.
33936         * modules/renameat (Depends-on): Likewise.
33937
33938         filenamecat: split into filenamecat-lgpl
33939         * modules/filenamecat-lgpl: New module.
33940         * modules/filenamecat (Files): Move library-safe files into
33941         filenamecat-lgpl.
33942         (Depends-on): Add filenamecat-lgpl.
33943         (configure.ac): Declare witness.
33944         * lib/filenamecat.h (file_name_concat): Only declare when using
33945         GPL module.
33946         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33947         Move...
33948         * lib/filenamecat-lgpl.c: ...into new file.
33949         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33950         (gl_FILE_NAME_CONCAT): Use it.
33951         * MODULES.html.sh (File system functions): Mention new module.
33952
33953         argp: avoid memory leak
33954         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33955         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33956         base_name, since the latter malloc()s and can call exit().
33957         Leak introduced 2006-07-03.
33958
33959         dirname-lgpl: adjust clients that don't need full dirname
33960         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33961         * modules/filenamecat (Depends-on): Likewise.
33962         * modules/linkat (Depends-on): Likewise.
33963         * modules/mkancesdirs (Depends-on): Likewise.
33964         * modules/mkdir (Depends-on): Likewise.
33965         * modules/openat (Depends-on): Likewise.
33966         * modules/savewd (Depends-on): Likewise.
33967         * modules/rename (Depends-on): Likewise.
33968         (License): Relax license.
33969         * modules/mkdir-tests (Depends-on): Drop progname.
33970         (Makefile.am): Delete unneeded LDADD.
33971         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33972
33973         dirname: split into dirname-lgpl
33974         * modules/dirname-lgpl: New module.
33975         * modules/dirname (Files): Move library-safe files into
33976         dirname-lgpl.
33977         (Depends-on): Add dirname-lgpl.
33978         (configure.ac): Declare witness.
33979         * modules/double-slash-root (License): Relax license.
33980         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33981         module.
33982         * lib/dirname.c (dir_len, mdir_name): Move...
33983         * lib/dirname-lgpl.c: ...into new file.
33984         * lib/basename.c (last_component, base_len): Move...
33985         * lib/basename-lgpl.c: ...into new file.
33986         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33987         (gl_DIRNAME): Use it.
33988         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33989         Mention new module.
33990         * modules/dirname-tests (Depends-on): Add progname.
33991         * tests/test-dirname.c (program_name): Delete.
33992
33993         mkdir: make safe for libraries
33994         * modules/mkdir (Depends-on): Drop xalloc.
33995         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33996         exit.
33997
33998         tests: avoid some compiler warnings
33999         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34000         literals.
34001         * tests/test-memchr.c (main): Avoid type mismatch.
34002         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34003         * tests/test-base64.c (main): Likewise.
34004         * tests/test-getdelim.c (main): Likewise.
34005         * tests/test-gethostname.c (main): Likewise.
34006         * tests/test-getline.c (main): Likewise.
34007         * tests/test-netinet_in.c (main): Likewise.
34008         * tests/test-select.c (open_server_socket, main): Likewise.
34009         * tests/test-select-stdin.c (main): Likewise.
34010         * tests/test-sockets.c (main): Likewise.
34011         * tests/test-strsignal.c (main): Likewise.
34012         * tests/test-sys_select.c (main): Likewise.
34013         * tests/test-sys_socket.c (main): Likewise.
34014         * tests/test-u64.c (main): Likewise.
34015         * tests/test-xfprintf-posix.c (main): Likewise.
34016         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34017
34018         sockets: avoid compiler warning
34019         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34020
34021         maint: detect usage(1) and other suspicious exits
34022         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34023
34024 2009-10-29  Jim Meyering  <meyering@redhat.com>
34025
34026         timespec: long-to-int truncation could make timespec_cmp malfunction
34027         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34028         a multiple of 2^32 nanoseconds as no difference.
34029
34030 2009-10-28  Jim Meyering  <meyering@redhat.com>
34031
34032         fprintftime: wrap macro code argument in "do {...} while(0)"
34033         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34034         cpy macro must be a statement that can be followed by a semicolon.
34035         Now that the else clause contains a comment and is hence longer
34036         than one line, I require curly braces.  That in turn requires
34037         that we wrap this code block in the standard do...while(0).
34038
34039         fprintftime: remove stray semicolon from previous change
34040         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34041
34042         fprintftime: avoid a warning about ignored fwrite return value
34043         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34044         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34045         that is unsafe.
34046         * modules/fprintftime (Depends-on): Add ignore-value.
34047
34048         exclude: avoid an unwarranted warning
34049         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34050
34051 2009-10-27  Eric Blake  <ebb9@byu.net>
34052
34053         fseek: avoid compilation failure when fflush is replaced
34054         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34055         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34056         module is in use.
34057         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34058         module is not in use; since REPLACE_FSEEK worked otherwise.
34059         (GNULIB_FTELLO): Likewise for ftell.
34060         Reported by Ian Beckwith and others.
34061
34062 2009-10-27  Bruno Haible  <bruno@clisp.org>
34063
34064         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34065         Reported by Jim Meyering.
34066
34067 2009-10-27  Jim Meyering  <jim@meyering.net>
34068             Bruno Haible  <bruno@clisp.org>
34069
34070         Avoid warning despite dropping the return value of fwrite.
34071         * lib/unicodeio.c: Include ignore-value.h.
34072         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34073         * modules/unicodeio (Depends-on): Add ignore-value.
34074
34075 2009-10-26  Eric Blake  <ebb9@byu.net>
34076
34077         areadlinkat: fix fallback path
34078         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34079         pointer and zero.
34080
34081 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34082
34083         Use a better IO block size for modern systems
34084         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34085         * lib/md2.c: Likewise.
34086         * lib/md4.c: Likewise.
34087         * lib/md5.c: Likewise.
34088         * lib/sha1.c: Likewise.
34089         * lib/sha256.c: Likewise.
34090         * lib/sha512.c: Likewise.
34091
34092 2009-10-22  Eric Blake  <ebb9@byu.net>
34093
34094         tests: avoid several compiler warnings
34095         * tests/test-getcwd.c (main): Avoid buffer underflow.
34096         * tests/test-getdate.c (main): String literals are not safe with
34097         putenv, so use setenv.  Declare unused argument.
34098         * modules/getdate-tests (Depends-on): Add setenv.
34099         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34100         problems with string literals in char *.
34101         * tests/test-hash.c (main): Avoid shadowing declaration.
34102         (insert_new): Treat string literals as char const *.
34103         * tests/test-getopt.h (test_getopt): Likewise.
34104         (getopt_loop): Alter types to minimize casting elsewhere.
34105         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34106         (test_getopt_long_posix): Likewise.
34107         (do_getopt_long): Add wrapper to minimize casting.
34108         * tests/test-atexit.c (clear_temp_file): Use void.
34109         * tests/test-areadlink-with-size.c (main): Declare unused
34110         arguments.
34111         * tests/test-areadlink.c (main): Likewise.
34112         * tests/test-areadlinkat-with-size.c (main): Likewise.
34113         * tests/test-areadlinkat.c (main): Likewise.
34114         * tests/test-canonicalize-lgpl.c (main): Likewise.
34115         * tests/test-canonicalize.c (main): Likewise.
34116         * tests/test-dirent-safer.c (main): Likewise.
34117         * tests/test-dirname.c (main): Likewise.
34118         * tests/test-dup2.c (main): Likewise.
34119         * tests/test-fchdir.c (main): Likewise.
34120         * tests/test-fcntl-h.c (main): Likewise.
34121         * tests/test-fcntl-safer.c (main): Likewise.
34122         * tests/test-fdopendir.c (main): Likewise.
34123         * tests/test-fdutimensat.c (main): Likewise.
34124         * tests/test-fflush.c (main): Likewise.
34125         * tests/test-filenamecat.c (main): Likewise.
34126         * tests/test-filevercmp.c (main): Likewise.
34127         * tests/test-fopen-safer.c (main): Likewise.
34128         * tests/test-fopen.c (main): Likewise.
34129         * tests/test-fpending.c (main): Likewise.
34130         * tests/test-fpurge.c (main): Likewise.
34131         * tests/test-freading.c (main): Likewise.
34132         * tests/test-fstatat.c (main): Likewise.
34133         * tests/test-fsync.c (main): Likewise.
34134         * tests/test-futimens.c (main): Likewise.
34135         * tests/test-getndelim2.c (main): Likewise.
34136         * tests/test-gettimeofday.c (main): Likewise.
34137         * tests/test-getopt.c (main): Likewise.
34138         * tests/test-i-ring.c (main): Likewise.
34139         * tests/test-inttypes.c (main): Likewise.
34140         * tests/test-link.c (main): Likewise.
34141         * tests/test-lstat.c (main): Likewise.
34142         * tests/test-math.c (main): Likewise.
34143         * tests/test-md5.c (main): Likewise.
34144         * tests/test-memchr2.c (main): Likewise.
34145         * tests/test-memrchr.c (main): Likewise.
34146         * tests/test-mkdir.c (main): Likewise.
34147         * tests/test-mkdirat.c (main): Likewise.
34148         * tests/test-mkfifoat.c (main): Likewise.
34149         * tests/test-open.c (main): Likewise.
34150         * tests/test-openat-safer.c (main): Likewise.
34151         * tests/test-openat.c (main): Likewise.
34152         * tests/test-quotearg.c (main): Likewise.
34153         * tests/test-rawmemchr.c (main): Likewise.
34154         * tests/test-readlink.c (main): Likewise.
34155         * tests/test-remove.c (main): Likewise.
34156         * tests/test-rename.c (main): Likewise.
34157         * tests/test-renameat.c (main): Likewise.
34158         * tests/test-rmdir.c (main): Likewise.
34159         * tests/test-sha1.c (main): Likewise.
34160         * tests/test-signal.c (main): Likewise.
34161         * tests/test-sigaction.c (main): Likewise.
34162         * tests/test-stat.c (main): Likewise.
34163         * tests/test-stat-time.c (main): Likewise.
34164         * tests/test-stddef.c (main): Likewise.
34165         * tests/test-stdint.c (main): Likewise.
34166         * tests/test-stdio.c (main): Likewise.
34167         * tests/test-stdlib.c (main): Likewise.
34168         * tests/test-strchrnul.c (main): Likewise.
34169         * tests/test-strerror.c (main): Likewise.
34170         * tests/test-string.c (main): Likewise.
34171         * tests/test-strtod.c (main): Likewise.
34172         * tests/test-strverscmp.c (main): Likewise.
34173         * tests/test-symlink.c (main): Likewise.
34174         * tests/test-symlinkat.c (main): Likewise.
34175         * tests/test-sys_stat.c (main): Likewise.
34176         * tests/test-sys_time.c (main): Likewise.
34177         * tests/test-time.c (main): Likewise.
34178         * tests/test-unistd.c (main): Likewise.
34179         * tests/test-unlink.c (main): Likewise.
34180         * tests/test-unlinkat.c (main): Likewise.
34181         * tests/test-utimens.c (main): Likewise.
34182         * tests/test-utimensat.c (main): Likewise.
34183         * tests/test-version-etc.c (main): Likewise.
34184         * tests/test-wchar.c (main): Likewise.
34185         * tests/test-wctype.c (main): Likewise.
34186         * tests/test-xprintf-posix.c (main): Likewise.
34187         * tests/test-posixtm.c (main): Likewise.
34188         (STREQ): Delete unused macro.
34189         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34190         shadowed variables.
34191         * tests/test-memchr.c (main): Likewise.
34192
34193 2009-10-21  Eric Blake  <ebb9@byu.net>
34194
34195         areadlinkat: avoid failure on older glibc
34196         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34197         rather than mis-comparing 0 against FUNC_RESULT of char*.
34198
34199 2009-10-21  Bruno Haible  <bruno@clisp.org>
34200
34201         * modules/stpncpy (License): Relicense under LGPLv2+.
34202         Reported by David Lutterkort <lutter@redhat.com>.
34203
34204 2009-10-20  Eric Blake  <ebb9@byu.net>
34205
34206         utimensat: work around Solaris 9 bug
34207         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34208         has trailing slash bugs.
34209         * tests/test-lutimens.h (test_lutimens): Enhance test.
34210         * tests/test-utimens.h (test_utimens): Likewise.
34211         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34212         * doc/posix-functions/utimes.texi (utimes): Likewise.
34213         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34214         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34215         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34216         * doc/posix-functions/futimens.texi (futimens): Likewise.
34217
34218         fdutimensat: new module
34219         * modules/fdutimensat: New file.
34220         * lib/fdutimensat.c (fdutimensat): Likewise.
34221         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34222         * MODULES.html.sh (File system functions): Mention module.
34223         * modules/fdutimensat-tests: New test.
34224         * tests/test-fdutimensat.c: Likewise.
34225
34226         doc: regenerate INSTALL
34227         * doc/INSTALL: Reflect recent autoconf update.
34228         * doc/INSTALL.ISO: Likewise.
34229         * doc/INSTALL.UTF-8: Likewise.
34230
34231 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34232
34233         acl: warn if ACL support is not detected
34234         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34235
34236 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34237
34238         * lib/nproc.h: Add extern "C" block for C++.
34239
34240 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34241             Bruno Haible  <bruno@clisp.org>
34242
34243         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34244         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34245         * doc/posix-functions/isalpha.texi: Likewise.
34246         * doc/posix-functions/isblank.texi: Likewise.
34247         * doc/posix-functions/iscntrl.texi: Likewise.
34248         * doc/posix-functions/isdigit.texi: Likewise.
34249         * doc/posix-functions/isgraph.texi: Likewise.
34250         * doc/posix-functions/islower.texi: Likewise.
34251         * doc/posix-functions/isprint.texi: Likewise.
34252         * doc/posix-functions/ispunct.texi: Likewise.
34253         * doc/posix-functions/isspace.texi: Likewise.
34254         * doc/posix-functions/isupper.texi: Likewise.
34255         * doc/posix-functions/isxdigit.texi: Likewise.
34256
34257 2009-10-18  Bruno Haible  <bruno@clisp.org>
34258
34259         Tests for module 'isblank'.
34260         * modules/isblank-tests: New file.
34261         * tests/test-isblank.c: New file.
34262
34263         New module 'isblank'.
34264         * lib/isblank.c: New file.
34265         * m4/isblank.m4: New file.
34266         * modules/isblank: New file.
34267         * doc/posix-functions/isblank.texi: Mention the new module.
34268
34269 2009-10-18  Bruno Haible  <bruno@clisp.org>
34270
34271         New module 'ctype'.
34272         * lib/ctype.in.h: New file.
34273         * m4/ctype.m4: New file.
34274         * modules/ctype: New file.
34275         * doc/posix-headers/ctype.texi: Mention the new module.
34276
34277 2009-10-18  Jim Meyering  <meyering@redhat.com>
34278
34279         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34280         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34281         right after its initialization, rather than farther down.
34282         Keeping these in close proximity makes it easier to ensure
34283         that each such variable is initialized.  E.g.,
34284
34285             LIB_CLOCK_GETTIME=
34286             AC_SUBST([LIB_CLOCK_GETTIME])
34287
34288         This change also increments these serial numbers.
34289         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34290         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34292
34293 2009-10-18  Bruno Haible  <bruno@clisp.org>
34294
34295         Don't let environment variables perturb build.
34296         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34297         (gl_PREREQ_GETHRXTIME): ... not here.
34298
34299 2009-10-18  Bruno Haible  <bruno@clisp.org>
34300
34301         Avoid symlink attack in localcharset module.
34302         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34303         (O_NOFOLLOW): Define fallback.
34304         (get_charset_aliases): Don't open the file if it is a symbolic link.
34305         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34306         gl_FCNTL_H.
34307         (gl_FCNTL_H): Require it.
34308         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34309         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34310         Reported by Fergal Glynn <fglynn@veracode.com>.
34311
34312 2009-10-18  Bruno Haible  <bruno@clisp.org>
34313
34314         Implement nproc for mingw.
34315         * lib/nproc.c: Include <windows.h>
34316         (num_processors): On native Windows platforms, try GetSystemInfo.
34317
34318 2009-10-18  Bruno Haible  <bruno@clisp.org>
34319
34320         Implement nproc for IRIX.
34321         * lib/nproc.c: Include <sys/sysmp.h>.
34322         (num_processors): On IRIX systems, try sysmp.
34323         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34324
34325 2009-10-18  Bruno Haible  <bruno@clisp.org>
34326
34327         Implement nproc for HP-UX.
34328         * lib/nproc.c: Include <sys/pstat.h>
34329         (num_processors): On HP-UX systems, try pstat_getdynamic.
34330         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34331         pstat_getdynamic.
34332
34333 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34334             Bruno Haible  <bruno@clisp.org>
34335
34336         Implement nproc for NetBSD, OpenBSD.
34337         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34338         (ARRAY_SIZE): New macro.
34339         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34340         * m4/nproc.m4: New file.
34341         * modules/nproc (Files): Add m4/nproc.m4.
34342         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34343         (Makefile.am): Instead, augment lib_SOURCES.
34344
34345 2009-10-18  Bruno Haible  <bruno@clisp.org>
34346
34347         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34348         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34349         sys/param.h.
34350
34351 2009-10-16  Eric Blake  <ebb9@byu.net>
34352
34353         utimensat: new module
34354         * modules/utimensat: New file.
34355         * lib/utimensat.c (utimensat): Likewise.
34356         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34357         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34358         so we can work around Linux bugs.
34359         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34360         * modules/sys_stat (Makefile.am): Substitute them.
34361         * lib/sys_stat.in.h (utimensat): Declare it.
34362         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34363         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34364         * modules/utimensat-tests: New test.
34365         * tests/test-utimensat.c: Likewise.
34366
34367         utimens: let lutimens work on non-symlinks
34368         * lib/utimens.c (lutimens): Fall back to utimens rather than
34369         failing with ENOSYS, when file is not a symlink.
34370         (utimens): Reduce redirection.
34371         * tests/test-lutimens.h (test_lutimens): Update test to cover
34372         non-symlinks.
34373         * tests/test-utimens.h (test_utimens): Update test to cover
34374         symlinks.
34375         * tests/test-utimens.c (main): Update caller.
34376
34377         utimens: cache whether utimensat syscall works
34378         * lib/utimens.c (utimensat_works_really): New cache variable.
34379         (fdutimens, lutimens): Use it to avoid failing syscall.
34380
34381         test-stat-time, test-utimens: improve portability
34382         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34383         ext4 on alpha, and for cygwin.
34384         * tests/test-utimens-common.h: New file.
34385         (nap): Factor delays into single function.
34386         * tests/test-lutimens.h (test_lutimens): Use new header.
34387         * tests/test-futimens.h (test_futimens): Likewise.
34388         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34389         timestamps to occur from same machine, as was done previously for
34390         test_utimens.
34391         * modules/utimens-tests (Files): Ship new file.
34392         * modules/futimens-tests (Files): Likewise.
34393         Reported in part by Jim Meyering.
34394
34395         sys_stat: sort replacement declarations
34396         * lib/sys_stat.in.h: Sort declarations.
34397         * lib/futimens.c (futimens): Fix typo.
34398
34399 2009-10-15  Jim Meyering  <meyering@redhat.com>
34400
34401         don't let environment settings perturb build
34402         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34403         could cause a configure-time and/or build-time malfunction.
34404         Typically, a configure-time function-in-library test is performed
34405         via code like this:
34406
34407           LIB_VAR=
34408           AC_SUBST([LIB_VAR])
34409           prefix_saved_LIBS=$LIBS
34410             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34411                        [test "$ac_cv_search_FUNC" = "none required" ||
34412                         LIB_VAR=$ac_cv_search_FUNC])
34413           LIBS=$prefix_saved_LIBS
34414
34415         However, in each of the files affected by this change, the LIB_VAR=
34416         initialization was omitted.  Thus, when set in the environment, its
34417         value would propagate into generated Makefiles when FUNC is not found
34418         in LIB_NAME.
34419         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34420         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34422
34423 2009-10-14  Eric Blake  <ebb9@byu.net>
34424
34425         fchdir: avoid infinite recursion in mingw
34426         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34427         recursing.
34428
34429         test-stat-time: port to mingw
34430         * tests/test-stat-time.c (force_unlink): Return a value.
34431         (test_ctime) [W32]: Fix compilation error.
34432         (nap): Don't call usleep with too large an argument.  Use
34433         force_unlink.
34434         * doc/pastposix-functions/usleep.texi (usleep): Document the
34435         portability issue.
34436
34437 2009-10-13  Jim Meyering  <meyering@redhat.com>
34438
34439         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34440         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34441         * modules/pipe-filter-ii: Likewise.
34442         * modules/sys_socket-tests: Likewise.
34443         * modules/tsearch-tests: Likewise.
34444         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34445         (check): Depend on it.
34446
34447 2009-10-12  Eric Blake  <ebb9@byu.net>
34448
34449         utimens-tests: port to NFS file systems
34450         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34451         comparisons to avoid spurious failures from timestamp drift
34452         between NFS machines.
34453
34454 2009-10-12  Eric Blake  <ebb9@byu.net>
34455
34456         stat-time-tests: minor cleanups
34457         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34458         * tests/test-stat-time.c (nap): Separate assignment from call.
34459         Suggested by Paolo Bonzini and Bruno Haible.
34460
34461         sys_stat: guarantee struct timespec
34462         * lib/sys_stat.in.h (includes): Always include <time.h>
34463         * modules/sys_stat (Depends-on): Add time.
34464         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34465         mode_t permission values.
34466         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34467         get at subsecond timestamps.
34468
34469 2009-10-10  Eric Blake  <ebb9@byu.net>
34470
34471         futimens: new module
34472         * modules/futimens: New file.
34473         * lib/futimens.c (futimens): Likewise.
34474         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34475         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34476         we can work around Linux bugs.
34477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34478         * modules/sys_stat (Makefile.am): Substitute them.
34479         * lib/sys_stat.in.h (futimens): Declare it.
34480         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34481         * doc/posix-functions/futimens.texi (futimens): Likewise.
34482         * modules/futimens-tests: New test.
34483         * tests/test-futimens.c: Likewise.
34484
34485         utimens: introduce fdutimens
34486         * lib/utimens.h (fdutimens): New prototype.
34487         * lib/utimens.c (gl_futimens): Move guts...
34488         (fdutimens): ...to new interface.
34489         * tests/test-utimens.c (do_fdutimens): Use it.
34490
34491         utimens: add UTIME_NOW and UTIME_OMIT support
34492         * lib/utimens.c (validate_timespec, update_timespec): New helper
34493         functions.
34494         (gl_futimens, lutimens): Use them.
34495         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34496         stdbool, sys_stat.
34497         (Link): Mention resulting library dependency.
34498         * modules/utimecmp (Link): Likewise.
34499         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34500         (Makefile.am): Pick up library dependency.
34501         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34502         definition.
34503         * tests/test-sys_stat.c: Test the definitions.
34504         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34505         * NEWS: Document library dependency.
34506
34507         utimecmp: support symlink timestamps
34508         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34509         hashing when possible.  Use pathconf when available.
34510         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34511         * modules/utimecmp (Depends-on): Add lstat.
34512
34513         utimens: add lutimens interface
34514         * lib/utimens.c (lutimens): New function.
34515         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34516         * lib/utimens.h (lutimens): Declare new interface.
34517         * tests/test-utimens.c (main): Enhance test.
34518         * tests/test-lutimens.h (test_lutimens): New file.
34519         * modules/utimens-tests (Files): Distribute it.
34520         (Depends-on): Add symlink.
34521         (configure.ac): Check for usleep.
34522
34523         utimens: validate futimens usage
34524         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34525         fewer syscalls on failure later on.  Avoid compiler warning on
34526         mingw.
34527         * modules/utimens (Depends-on): Add dup2.
34528
34529         utimens: add test
34530         * modules/utimens-tests: New test.
34531         * tests/test-utimens.h: New file.
34532         * tests/test-futimens.h: Likewise.
34533         * tests/test-utimens.c: Likewise.
34534
34535         doc: mention timestamp portability issues
34536         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34537         instead.
34538         * doc/posix-functions/utime.texi (utime): Likewise.
34539         * doc/posix-functions/utimes.texi (utimes): Likewise.
34540         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34541         instead.
34542         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34543         module.
34544         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34545         Mention weakness with symlink timestamps.
34546         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34547         to utimensat/futimens instead.
34548         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34549
34550         test-dup2: enhance test
34551         * tests/test-dup2.c (main): Also check AT_FDCWD.
34552
34553         test-stat-time: avoid more spurious failures
34554         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34555         xfs; and avoid race if the two timestamps cross quantization edge.
34556
34557         relocatable: prefer 'file system' over 'filesystem'
34558         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34559         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34560         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34561         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34562         * lib/relocatable.c (compute_curr_prefix): Likewise.
34563
34564 2009-10-10  Jim Meyering  <meyering@redhat.com>
34565
34566         stat-time-tests: check for the usleep function
34567         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34568
34569 2009-10-10  Bruno Haible  <bruno@clisp.org>
34570
34571         * modules/xnanosleep: Put the Link section after the Include section.
34572
34573 2009-10-09  Eric Blake  <ebb9@byu.net>
34574
34575         dup2: work around FreeBSD 6.1 bug
34576         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34577         * doc/posix-functions/dup2.texi (dup2): Document it.
34578         Reported by Nelson H. F. Beebe and Jim Meyering.
34579
34580         test-stat-time: port to buggy NFS clients
34581         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34582         (test_ctime): Also skip test if mtime and ctime are skewed.
34583
34584         maint: prefer 'file system' over 'filesystem'
34585         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34586         * doc/posix-functions/lstat.texi (lstat): Likewise.
34587         * lib/file-has-acl.c (file_has_acl): Likewise.
34588         * lib/fwriteerror.c [TEST]: Likewise.
34589         * tests/test-areadlink.h (test_areadlink): Likewise.
34590         * tests/test-areadlinkat-with-size.c (main): Likewise.
34591         * tests/test-areadlinkat.c (main): Likewise.
34592         * tests/test-canonicalize-lgpl.c (main): Likewise.
34593         * tests/test-canonicalize.c (main): Likewise.
34594         * tests/test-fstatat.c (main): Likewise.
34595         * tests/test-linkat.c (main): Likewise.
34596         * tests/test-lstat.h (test_lstat_func): Likewise.
34597         * tests/test-mkdir.h (test_mkdir): Likewise.
34598         * tests/test-readlink.h (test_readlink): Likewise.
34599         * tests/test-remove.c (main): Likewise.
34600         * tests/test-rename.h (test_rename): Likewise.
34601         * tests/test-renameat.c (main): Likewise.
34602         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34603         * tests/test-symlink.h (test_symlink): Likewise.
34604         * tests/test-symlinkat.c (main): Likewise.
34605         * tests/test-unlink.h (test_unlink_func): Likewise.
34606         * tests/test-unlinkat.c (main): Likewise.
34607
34608         maint: make realtime library usage explicit
34609         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34610         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34611         * modules/settime (Link): Likewise.
34612         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34613
34614         test-stat-time: speed up execution
34615         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34616         warning on mingw.
34617         (nap): New helper function.
34618         (prepare_test): Use it to reduce sleep time.
34619         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34620         execution.
34621         * modules/stat-time-tests (configure.ac): Check for usleep.
34622
34623 2009-10-09  Jim Meyering  <meyering@redhat.com>
34624
34625         selinux-h: always use getfilecon wrappers
34626         * lib/getfilecon.c: New file.
34627         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34628         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34629         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34630         (fgetfilecon): Provide a stub.
34631         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34632         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34633         file unconditionally.
34634         When <selinux/selinux.h> is found, arrange to use wrappers.
34635         * modules/selinux-h (Files): Add getfilecon.c.
34636         (Makefile.am): Substitute include-next-related bits
34637         into the now-always-generated selinux/selinux.h file.
34638         * doc/glibc-functions/lgetfilecon.texi: New file.
34639         * doc/glibc-functions/fgetfilecon.texi: New file.
34640         * doc/glibc-functions/getfilecon.texi: New file.
34641         * doc/glibc-functions/getfilecon-desc.texi: New file.
34642         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34643         which to pull in the new files.
34644         * MODULES.html.sh (Misc): Add selinux-h.
34645
34646 2009-10-08  Jim Meyering  <meyering@redhat.com>
34647
34648         unistd: fix comment typo
34649         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34650
34651 2009-10-08  Eric Blake  <ebb9@byu.net>
34652
34653         areadlink: use SIZE_MAX consistently
34654         * modules/areadlink (Depends-on): Add stdint.
34655         * modules/areadlink-with-size (Depends-on): Likewise.
34656         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34657         gives NULL; drop sys/types, since unistd gives size_t; and add
34658         stdint for SIZE_MAX.
34659         (SIZE_MAX): Rely on headers.
34660         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34661         and add stdint.
34662         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34663         (SIZE_MAX): Likewise.
34664         (INITIAL_BUF_SIZE): Turn into enum.
34665         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34666
34667 2009-10-08  Jim Meyering  <meyering@redhat.com>
34668
34669         areadlinkat: avoid compilation failure
34670         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34671         Fix typo in comment.
34672
34673 2009-10-07  Eric Blake  <ebb9@byu.net>
34674
34675         areadlinkat-with-size: new module
34676         * modules/areadlinkat-with-size: New module.
34677         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34678         * lib/areadlink.h (areadlinkat): Declare it.
34679         * MODULES.html.sh (File system functions): Mention it.
34680         * modules/areadlinkat-with-size-tests: New test.
34681         * tests/test-areadlinkat-with-size.c: New file.
34682
34683         xreadlinkat: new module
34684         * modules/xreadlinkat: New module.
34685         * lib/xreadlinkat.c (xreadlinkat): New file.
34686         * lib/xreadlink.h (xreadlinkat): Declare it.
34687         * MODULES.html.sh (File system functions): Mention it.
34688
34689         areadlinkat: new module
34690         * lib/at-func.c (FUNC_FAIL): New define.
34691         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34692         * modules/areadlinkat: New module.
34693         * lib/linkat.c (areadlinkat): Move...
34694         * lib/areadlinkat.c (areadlinkat): ...to new file.
34695         * lib/areadlink.h (areadlinkat): Declare it.
34696         * modules/linkat (Depends-on): Add areadlinkat.
34697         * MODULES.html.sh (File system functions): Mention it.
34698         * modules/areadlinkat-tests: New test.
34699         * tests/test-areadlinkat.c: New file.
34700
34701         areadlink, areadlink-with-size: add tests
34702         * modules/areadlink-tests: New test.
34703         * modules/areadlink-with-size-tests: Likewise.
34704         * tests/test-areadlink.h: New file.
34705         * tests/test-areadlink.c: Likewise.
34706         * tests/test-areadlink-with-size.c: Likewise.
34707
34708         maint: minor cleanups
34709         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34710         _UNUSED_PARAMETER_ instead.
34711         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34712         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34713         * modules/linkat-tests (Files): Distribute test-link.h.
34714
34715         openat, utimens: whitespace cleanup
34716         * lib/openat.c: Prefer space throughout, rather than mix of 8
34717         spaces vs. tabs.
34718         * lib/at-func.c: Likewise.
34719         * lib/utimens.c: Likewise.
34720
34721         openat: avoid using wrong fd
34722         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34723         working directory chooses same fd.
34724         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34725
34726         mkdir, mkdirat: fix cygwin 1.5.x bug
34727         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34728         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34729         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34730         bug.
34731         (gl_PREREQ_MKDIR): Delete unused macro.
34732         * modules/mkdir (Files): Track file rename.
34733         (configure.ac): Update macro name.
34734         * modules/openat (Depends-on): Add mkdir.
34735         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34736
34737         mkdir, mkdirat: add tests
34738         * modules/mkdir-tests: New test.
34739         * tests/test-mkdir.h: New file.
34740         * tests/test-mkdir.c: Likewise.
34741         * tests/test-mkdirat.c: Likewise.
34742         * modules/openat-tests (Files): Add new files.
34743         (Makefile.am): Run new test.
34744
34745 2009-10-06  Eric Blake  <ebb9@byu.net>
34746
34747         doc: tweak *at function documentation
34748         * doc/posix-functions/faccessat.texi (faccessat): Mention
34749         known issue with replacement.
34750         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34751         * doc/posix-functions/linkat.texi (linkat): Likewise.
34752         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34753         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34754         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34755         * doc/posix-functions/renameat.texi (renameat): Likewise.
34756         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34757
34758         openat: fix GNU/Hurd bug in unlinkat
34759         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34760         broken.
34761         * doc/posix-functions/unlink.texi (unlink): Document this.
34762         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34763
34764         fdopendir: fix GNU/Hurd bug
34765         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34766         allowing non-directory fds.
34767         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34768         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34769         * modules/dirent (Makefile.am): Substitute it.
34770         * lib/dirent.in.h (fdopendir): Declare replacement.
34771         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34772         * tests/test-fdopendir.c (main): Test something other than
34773         /dev/null, since on Hurd that behaves like a directory.
34774
34775         test-symlink: port to GNU/Hurd
34776         * tests/test-symlink.h (test_symlink): Relax expected errno.
34777
34778         doc: tweak more cygwin information
34779         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34780         now compatible with glibc.
34781         * doc/posix-functions/getopt.texi (getopt): Likewise.
34782
34783         getopt-gnu: add another test
34784         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34785         guarantee behavior relied on by m4.
34786         * tests/test-getopt.c (main): Use it.
34787         * modules/getopt-posix-tests (Depends-on): Add setenv.
34788         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34789
34790         getopt: fix compilation on darwin
34791         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34792         include.
34793         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34794         Reported by Ludovic Courtès.
34795
34796 2009-10-06  Bruno Haible  <bruno@clisp.org>
34797
34798         * modules/size_max (Description): Discourage its use.
34799         Reported by Simon Josefsson.
34800
34801 2009-10-06  Jim Meyering  <meyering@redhat.com>
34802
34803         linkat: avoid compilation failure
34804         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34805
34806 2009-10-05  Eric Blake  <ebb9@byu.net>
34807
34808         linkat: support Linux 2.6.17
34809         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34810         linkat on Linux, but allow cache variable override.
34811         * lib/linkat.c (rpl_linkat): Define override.
34812         * modules/linkat (Depends-on): Add symlinkat.
34813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34814         * modules/unistd (Makefile.am): Substitute it.
34815         * lib/unistd.in.h (linkat): Declare replacement.
34816         Reported by Pádraig Brady.
34817
34818         quotearg: port test to systems with C.UTF-8 locale
34819         * tests/test-quotearg.c (struct result_strings): Add another
34820         member, differentiating between C.ASCII and C.UTF-8 handling.
34821         (compare_strings): Add parameter.
34822         (main): Adjust all callers.
34823
34824         getopt: avoid clash with FreeBSD _getopt_internal
34825         * lib/getopt.in.h (_getopt_internal): Override the name.
34826         * lib/getopt_int.h (includes): Pick up any overrides.
34827         Reported by Reuben Thomas.
34828
34829         hash: allow C89 compilation
34830         * lib/hash.c (check_tuning): Move declaration before statement.
34831         Reported by Reuben Thomas.
34832
34833 2009-10-05  Karl Berry  <karl@gnu.org>
34834
34835         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34836
34837 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34838             Bruno Haible  <bruno@clisp.org>
34839
34840         * lib/uname.c (uname): Use a table-driven algorithm to compute
34841         Windows NT versions.
34842
34843 2009-10-04  Bruno Haible  <bruno@clisp.org>
34844
34845         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34846         program_invocation_short_name.
34847         * modules/progname (configure.ac): Test for presence of
34848         program_invocation_short_name.
34849         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34850
34851 2009-10-04  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/progname.c (set_program_name): Fix comment.
34854         Reported by Jim Meyering.
34855
34856 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34857             Bruno Haible  <bruno@clisp.org>
34858
34859         * lib/uname.c: Include <string.h>.
34860         (uname): Do only one call to GetVersionEx in the common case.
34861
34862 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34863             Bruno Haible  <bruno@clisp.org>
34864
34865         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34866         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34867         (uname): Add support for Windows CE and various non-x86 CPU types.
34868
34869 2009-10-03  Bruno Haible  <bruno@clisp.org>
34870
34871         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34872         invocation to tests/configure.ac.
34873         Reported by Ian Beckwith <ianb@erislabs.net>.
34874
34875 2009-10-02  Eric Blake  <ebb9@byu.net>
34876
34877         fchdir: avoid compiler warning
34878         * lib/fchdir.c (canonicalize_file_name)
34879         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34880
34881         test-open: support mingw errno values
34882         * tests/test-open.h (test_open): Relax test.
34883         * tests/test-fopen.h (test_fopen): Likewise.
34884         * tests/test-openat-safer.c (main): Likewise.
34885
34886         open: fix opening directory on mingw
34887         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34888
34889         test-open: on GNU/Hurd, /dev/null is a directory
34890         * tests/test-fopen.h (main): Rename...
34891         (test_fopen): ...to this.  Use a guaranteed non-directory when
34892         confirming open behavior on trailing slash.
34893         * tests/test-openat-safer.c (main): Likewise.
34894         * tests/test-open.h (main): Likewise....
34895         (test_open): ...to this.
34896         * tests/test-fopen.c (main): Adjust caller.
34897         * tests/test-fopen-safer.c (main): Likewise.
34898         * tests/test-open.c (main): Likewise.
34899         * tests/test-fcntl-safer.c (main): Likewise.
34900         Reported by Samuel Thibault.
34901
34902         rename, fchdir: don't ignore chdir failure
34903         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34904         * lib/rename.c (rpl_rename) [W32]: Likewise.
34905         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34906         an empty destination directory if source cannot be renamed,
34907         although there is still possibility for failure.
34908         * doc/posix-functions/rename.texi (rename): Document the race.
34909         Reported by Jim Meyering.
34910
34911         maint: cleanup whitespace in recent commits
34912         * lib/rename.c (rpl_rename): Remove tabs.
34913         * tests/test-link.h (test_link): Likewise.
34914         * lib/fchdir.c (get_name): Likewise.
34915         Reported by Jim Meyering.
34916
34917 2009-10-02  Ben Pfaff  <blp@gnu.org>
34918
34919         relocatable-prog-wrapper: Add missing dependency on
34920         double-slash-root.
34921         * modules/relocatable-prog-wrapper: Add dependency.
34922         Reported by Ian Beckwith <ianb@erislabs.net>.
34923
34924 2009-10-02  Eric Blake  <ebb9@byu.net>
34925
34926         renameat: fix Solaris bugs
34927         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34928         needed fixing.
34929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34930         * modules/stdio (Makefile.am): Substitute it.
34931         * lib/stdio.in.h (renameat): Declare replacement.
34932         * lib/renameat.c (rpl_renameat): Implement fix.
34933
34934         renameat: new module
34935         * modules/renameat: New file.
34936         * lib/renameat.c (renameat): Likewise.
34937         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34939         * modules/stdio (Makefile.am): Substitute them.
34940         * lib/stdio.in.h (renameat): Declare it.
34941         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34942         * doc/posix-functions/renameat.texi (renameat): Likewise.
34943         * modules/renameat-tests: New test.
34944         * tests/test-renameat.c: Likewise.
34945
34946         rename: fix mingw bugs
34947         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34948         directory overwrite bugs.
34949
34950         rename: fix another cygwin 1.5 bug
34951         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34952         checks.
34953         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34954         unnecessary cygwin workarounds.  Also work around bug with moving
34955         full directory onto an empty one.
34956         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34957
34958         rename-dest-slash: merge into rename module
34959         * modules/rename-dest-slash (Status): Mark obsolete.
34960         (Depends-on): Add rename.
34961         (Files): Let rename do it all.
34962         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34963         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34964         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34965         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34966         * lib/rename.c (rpl_rename): Update comments.
34967
34968         rename: fix cygwin 1.5.x bugs
34969         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34970         * lib/rename.c (rpl_rename): Work around them.
34971         * modules/rename (Depends-on): Add same-inode.
34972
34973         rename: fix Solaris 10 bug
34974         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34975         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34976         was the only bug.
34977
34978         rename: fix Solaris 9 bug
34979         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34980         on non-directory.  Avoid calling exit.
34981         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34982         strdup.
34983         * modules/rename-tests (Depends-on): Drop lstat.
34984         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34985         (gl_PREREQ_RENAME): Delete unused macro.
34986
34987         rename-dest-slash: fix NetBSD bug
34988         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34989         links.
34990         * modules/rename-dest-slash (Depends-on): Add same-inode.
34991
34992         rename-tests: new test, exposes several platform bugs
34993         * modules/rename-tests: New file.
34994         * tests/test-rename.h: Likewise.
34995         * tests/test-rename.c: Likewise.
34996         * doc/posix-functions/rename.texi (rename): Improve documentation,
34997         including bugs that will eventually be fixed in gnulib.
34998
34999 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35000
35001         * lib/uname.c: Include <stdlib.h>
35002         (uname): Assume version info is available.
35003
35004 2009-10-02  Jim Meyering  <meyering@redhat.com>
35005
35006         gnu-web-doc-update: correct --help output
35007         * build-aux/gnu-web-doc-update: Make --help output relevant.
35008
35009         gnu-web-doc-update: add standard options
35010         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35011
35012         gnu-web-doc-update: New module.
35013         Use this script to automatically update the on-line web documentation
35014         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35015         * modules/gnu-web-doc-update: New file, from coreutils.
35016         * build-aux/gnu-web-doc-update: New script.
35017
35018 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35019
35020         link: LoadLibrary is not needed.
35021         * lib/link.c: Use GetModuleHandle.
35022
35023 2009-10-01  Eric Blake  <ebb9@byu.net>
35024
35025         getopt: bump serial number
35026         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35027         change.
35028
35029         tests: tighten link, rmdir, and remove tests
35030         * tests/test-link.h (includes): No need to use <config.h> here.
35031         Clean up if directory hard link was created, otherwise test for
35032         trailing '.'.
35033         * tests/test-linkat.c (main): Simplify.
35034         * tests/test-remove.c (main): Enhance test for trailing '.'.
35035         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35036
35037 2009-10-01  Jim Meyering  <meyering@redhat.com>
35038
35039         maint.mk: requiring "make major" was annoying, for a "minor" release.
35040         What is intended is "stable", to contrast with alpha and beta,
35041         so require "make stable", not "make major".
35042         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35043         (get_tool_versions): Likewise.
35044         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35045
35046 2009-09-30  Ben Pfaff  <blp@gnu.org>
35047
35048         Fix broken build of replacement for Windows tmpfile().
35049         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35050         flags argument added along with the 'mkostemp' module.
35051
35052 2009-09-28  Bruno Haible  <bruno@clisp.org>
35053
35054         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35055         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35056         to 'remove_elt'.
35057         (gl_list_remove): Update.
35058         * lib/gl_list.c (gl_list_remove): Update.
35059         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35060         to 'remove_elt'.
35061         (gl_oset_remove): Update.
35062         * lib/gl_list.c (gl_oset_remove): Update.
35063         Reported by Eric Blake.
35064
35065 2009-09-28  Eric Blake  <ebb9@byu.net>
35066
35067         doc: mention yet more cygwin 1.7 status
35068         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35069         cygwin.
35070         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35071         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35072
35073         argp: fix test failure
35074         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35075         that are not upper-case.  Pass correct range to tolower.
35076
35077 2009-09-27  Jim Meyering  <meyering@redhat.com>
35078
35079         test-yesno: work around sparc-dash here-document infelicity
35080         Without this change, the literal \177 byte in a here document
35081         would make dash 0.5.5.1-3 access uninitialized memory.
35082         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35083         Instead, use a marker, "@", and filter through tr to create the desired
35084         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35085
35086 2009-09-27  Bruno Haible  <bruno@clisp.org>
35087
35088         Disable untested support for new flavours of ACLs on AIX.
35089         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35090         progress.
35091         * lib/set-mode-acl.c (qset_acl): Likewise.
35092
35093 2008-12-07  Bruno Haible  <bruno@clisp.org>
35094
35095         Add support for new flavours of ACLs on AIX. (Untested.)
35096         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35097         (file_has_acl): Add support for newer AIX.
35098         * lib/set-mode-acl.c (qset_acl): Likewise.
35099         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35100         Rainer Tammer <tammer@tammer.net>.
35101
35102 2009-09-26  Eric Blake  <ebb9@byu.net>
35103
35104         argp: fix compilation of getopt
35105         * lib/getopt.in.h (includes): Use different guard than glibc.
35106         Reported by Sergey Poznyakoff.
35107
35108         doc: mention more cygwin 1.7 status
35109         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35110         bug.
35111         * doc/posix-functions/execl.texi (execl): Likewise.
35112         * doc/posix-functions/execle.texi (execle): Likewise.
35113         * doc/posix-functions/execlp.texi (execlp): Likewise.
35114         * doc/posix-functions/execv.texi (execv): Likewise.
35115         * doc/posix-functions/execve.texi (execve): Likewise.
35116         * doc/posix-functions/execvp.texi (execvp): Likewise.
35117         * doc/glibc-functions/canonicalize_file_name.texi
35118         (canonicalize_file_name): Cygwin 1.7 now provides this.
35119         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35120         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35121         on AT_SYMLINK_NOFOLLOW.
35122
35123 2009-09-24  Eric Blake  <ebb9@byu.net>
35124
35125         test-linkat: make test more robust
35126         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35127
35128         getopt: fix inclusion guards for cygwin
35129         * modules/getopt-posix (Depends-on): Add include-next.
35130         (Makefile.am): Substitute more items in replacement header.
35131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35132         <getopt.h>.
35133         * lib/getopt.in.h (includes): Use split inclusion guard, and
35134         prefer <getopt.h> over include <unistd.h> when one is present.
35135         (option): Also override name of 'struct option'.
35136
35137         same-inode: revert prior change; it is not yet ready
35138         * NEWS: Undo mention of this change.
35139         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35140         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35141         * lib/cycle-check.c (cycle_check): Likewise.
35142         * lib/same.c (same_name): Likewise.
35143         * lib/at-func2.c (at_func2): Likewise.
35144
35145 2009-09-23  Eric Blake  <ebb9@byu.net>
35146
35147         linkat: new module
35148         * modules/linkat: New file.
35149         * lib/at-func2.c (at_func2): Likewise.
35150         * lib/linkat.c (linkat): Likewise.
35151         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35152         * lib/openat-priv.h (at_func2): Add declaration.
35153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35154         * modules/unistd (Makefile.am): Substitute them.
35155         * lib/unistd.in.h (linkat): Declare it.
35156         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35157         * doc/posix-functions/linkat.texi (linkat): Likewise.
35158         * doc/posix-functions/link.texi (link): Tweak wording.
35159         * tests/test-link.c (main): Move guts...
35160         * tests/test-link.h (test_link): ...into new file.
35161         * modules/linkat-tests: New test.
35162         * tests/test-linkat.c: Likewise.
35163         * modules/link-tests (Files): Ship new file.
35164         (Depends-on): Add stdbool.
35165
35166         dirname: add library-safe mdir_name
35167         * lib/dirname.h (mdir_name): New prototype.
35168         * lib/dirname.c (dir_name): Move guts...
35169         (mdir_name): ...to new function that avoids xalloc_die.
35170
35171         fchdir: another mingw fix
35172         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35173         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35174         on mingw (where it has not yet been ported), and make it optional
35175         elsewhere.
35176         (_gl_register_fd): Use it.
35177
35178         same-inode: make SAME_INODE tri-state, to port to mingw
35179         * NEWS: Mention this change.
35180         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35181         st_ino always being 0.
35182         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35183         * lib/cycle-check.c (cycle_check): Likewise.
35184         * lib/same.c (same_name): Likewise.
35185
35186         lstat: avoid mingw compilation error
35187         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35188         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35189         lstat ourselves.
35190         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35191         was adequate.
35192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35193         the checks for lstat.
35194         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35195
35196         link: fix test failure on Solaris 9
35197         * lib/link.c (rpl_link): Don't assume link will catch bogus
35198         trailing slash on source.
35199
35200         test-symlinkat: enhance test
35201         * tests/test-readlink.c (main): Move guts...
35202         * tests/test-readlink.h (test_readlink): ...into new file.
35203         * tests/test-symlink.c (main): Move guts...
35204         * tests/test-symlink.h (test_symlink): ...into new file.
35205         * tests/test-symlinkat.c (main): Use new files for further
35206         coverage.
35207         (do_symlink, do_readlink): New helper functions.
35208         * modules/symlink-tests (Files): Ship new file.
35209         (Depends-on): Add stdbool.
35210         * modules/readlink-tests (Files): Ship new file.
35211         (Depends-on): Add stdbool.
35212         * modules/symlinkat-tests (Files): Use new files.
35213
35214 2009-09-23  Eric Blake  <ebb9@byu.net>
35215
35216         readlink: document portability issue with symlink length
35217         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35218         systems have bogus st_size on symlinks, and mention the
35219         areadlink-with-size module.
35220         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35221         * doc/posix-functions/readlink.texi (readlink): Mention the
35222         areadlink module, and ERANGE failure.
35223         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35224         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35225
35226         readlink: fix Solaris 9 bug with trailing slash
35227         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35228         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35229         * doc/posix-functions/readlink.texi (readlink): Document this.
35230         * modules/readlink-tests: New test.
35231         * tests/test-readlink.c: Likewise.
35232
35233         readlink: fix cygwin 1.5.x bug with return type
35234         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35235         * lib/unistd.in.h (readlink): Use ssize_t.
35236         * lib/readlink.c (readlink): Likewise.
35237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35238         * modules/unistd (Makefile.am): Substitute it.
35239         * lib/unistd.in.h (readlink): Declare replacement.
35240         * doc/posix-functions/readlink.texi (readlink): Document this.
35241
35242         symlink: use throughout gnulib
35243         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35244         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35245         symlink is not used.
35246         * modules/symlinkat (Depends-on): Add symlink.
35247         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35248         * modules/canonicalize-tests (Depends-on): Likewise.
35249         * modules/lstat-tests (Depends-on): Likewise.
35250         * modules/openat-tests (Depends-on): Likewise.
35251         * modules/remove-tests (Depends-on): Likewise.
35252         * modules/rmdir-tests (Depends-on): Likewise.
35253         * modules/unlink-tests (Depends-on): Likewise.
35254         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35255         * tests/test-canonicalize.c (symlink): Likewise.
35256         * tests/test-fstatat.c (symlink): Likewise.
35257         * tests/test-lstat.c (symlink): Likewise.
35258         * tests/test-remove.c (symlink): Likewise.
35259         * tests/test-rmdir.c (symlink): Likewise.
35260         * tests/test-unlink.c (symlink): Likewise.
35261         * tests/test-unlinkat.c (symlink): Likewise.
35262
35263         symlink: new module, for Solaris 9 bug
35264         * modules/symlink: New file.
35265         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35266         * lib/symlink.c: Likewise.
35267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35268         * modules/unistd (Makefile.am): Substitute them.
35269         * lib/unistd.in.h (symlink): Declare replacement.
35270         * MODULES.html.sh (File system functions): Mention it.
35271         * doc/posix-functions/symlink.texi (symlink): Likewise.
35272         * modules/symlink-tests: New test.
35273         * tests/test-symlink.c: Likewise.
35274
35275 2009-09-23  Bruno Haible  <bruno@clisp.org>
35276
35277         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35278         when needed.
35279         Test case: gnulib-tool --import --with-tests atexit inttypes.
35280         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35281
35282 2009-09-23  Bruno Haible  <bruno@clisp.org>
35283
35284         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35285         subcommand, not in a subshell.
35286
35287 2009-09-22  Eric Blake  <ebb9@byu.net>
35288
35289         unistd: sort replacement declarations
35290         * lib/unistd.in.h: Sort declarations.
35291
35292         open, openat: minor optimization
35293         * lib/open.c (open): If open succeeded, len is non-zero.
35294         * lib/openat.c (rpl_openat): Likewise.
35295
35296         link-follow: ensure correct result
35297         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35298         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35299         distinguish between possible failures.
35300
35301 2009-09-21  Eric Blake  <ebb9@byu.net>
35302
35303         fts: avoid compiler warning
35304         * lib/fts.c (dirent_inode_sort_may_be_useful)
35305         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35306
35307 2009-09-19  Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/progreloc.c (canonicalize_file_name): New declaration.
35310
35311 2009-09-19  Eric Blake  <ebb9@byu.net>
35312
35313         link: fix quoting
35314         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35315
35316         openat: fix openat bugs on Solaris 9
35317         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35318         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35319         * modules/openat (Depends-on): Add open.
35320         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35321         * modules/fcntl-h (Makefile.am): Substitute it.
35322         * lib/fcntl.in.h (openat): Declare replacement.
35323         * doc/posix-functions/openat.texi (openat): Document this.
35324
35325         openat: move fstatat and unlinkat into correct files
35326         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35327         compiled.
35328         * lib/openat.c (fstatat, unlinkat): Move...
35329         * lib/fstatat.c (fstatat): ...into correct files.
35330         * lib/unlinkat.c (unlinkat): Likewise.
35331
35332         openat: fix unlinkat bugs on Solaris 9
35333         * lib/unlinkat.c (unlinkat): New file.
35334         * modules/openat (Depends-on): Add unlink.
35335         (Files): Distribute it.
35336         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35337         trailing slash behavior is broken.
35338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35339         * modules/unistd (Makefile.am): Substitute it.
35340         * lib/unistd.in.h (unlinkat): Declare replacement.
35341         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35342
35343         openat: fix fstatat bugs on Solaris 9
35344         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35345         stat.
35346         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35347
35348         test-unlinkat: enhance test, to expose Solaris 9 bug
35349         * tests/test-unlink.c (main): Factor guts...
35350         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35351         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35352         * tests/test-rmdir.c (main): Adjust caller.
35353         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35354         (unlinker): New helper function.
35355         (rmdirat): Enhance check.
35356         * modules/rmdir-tests (Depends-on): Add stdbool.
35357         * modules/unlink-tests (Depends-on): Likewise.
35358         (Files): Add test-unlink.h.
35359         * modules/openat-tests (Files): Likewise.
35360         (Depends-on): Add unlinkdir.
35361
35362         test-fstatat: new test, to expose Solaris 9 bugs
35363         * tests/test-stat.c (main): Factor guts...
35364         * tests/test-stat.h (test_stat_func): ...into new file.
35365         * tests/test-lstat.c (main): Factor guts...
35366         * tests/test-lstat.h (test_lstat_func): ...into new file.
35367         * tests/test-fstatat.c: New file.
35368         * modules/stat-tests (Files): Add test-stat.h.
35369         * modules/lstat-tests (Files): Add test-lstat.h.
35370         (Depends-on): Add stdbool.
35371         * modules/openat-tests (Depends-on): Add pathmax.
35372         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35373         (Makefile.am): Run new test.
35374
35375         remove: new module, for mingw and Solaris 9 bugs
35376         * modules/remove: New file.
35377         * lib/remove.c: Likewise.
35378         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35380         * modules/stdio (Makefile.am): Use them.
35381         * lib/stdio.in.h (remove): Declare replacement.
35382         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35383         * doc/posix-functions/remove.texi (remove): Likewise.
35384         * modules/remove-tests: New test.
35385         * tests/test-remove.c: Likewise.
35386
35387         unlink: new module, for Solaris 9 bug
35388         * modules/unlink: New file.
35389         * lib/unlink.c: Likewise.
35390         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35392         * modules/unistd (Makefile.am): Use them.
35393         * lib/unistd.in.h (stat): Declare replacement.
35394         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35395         * doc/posix-functions/unlink.texi (unlink): Likewise.
35396         * modules/unlink-tests: New test.
35397         * tests/test-unlink.c: Likewise.
35398
35399         lstat: fix Solaris 9 bug
35400         * lib/lstat.c (lstat): Also check for trailing slash on
35401         non-symlink, non-directories.  Use stat module to simplify logic.
35402         * doc/posix-functions/lstat.texi (lstat): Document it.
35403         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35404         (configure.ac): Check for symlink.
35405         * tests/test-lstat.c (main): Add more tests.
35406
35407         stat: add as dependency to other modules
35408         * modules/chown (Depends-on): Add stat.
35409         * modules/euidaccess (Depends-on): Likewise.
35410         * modules/fchdir (Depends-on): Likewise.
35411         * modules/isdir (Depends-on): Likewise.
35412         * modules/link (Depends-on): Likewise.
35413         * modules/lstat (Depends-on): Likewise.
35414         * modules/mkdir-p (Depends-on): Likewise.
35415         * modules/modechange (Depends-on): Likewise.
35416         * modules/open (Depends-on): Likewise.
35417         * modules/readlink (Depends-on): Likewise.
35418         * modules/same (Depends-on): Likewise.
35419
35420         stat: fix Solaris 9 bug
35421         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35422         slash.
35423         * lib/stat.c (rpl_stat): Work around it.
35424         * doc/posix-functions/stat.texi (stat): Update documentation.
35425
35426         stat: new module, for mingw bug
35427         * modules/stat: New file.
35428         * lib/stat.c: Likewise.
35429         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35431         * modules/sys_stat (Makefile.am): Use them.
35432         * lib/sys_stat.in.h (stat): Declare replacement.
35433         * lib/openat.c (fstatat): Deal with lstat and stat being function
35434         macros.
35435         * modules/openat (Depends-on): Add inline.
35436         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35437         * doc/posix-functions/stat.texi (stat): Likewise.
35438         * modules/stat-tests: New test.
35439         * tests/test-stat.c: Likewise.
35440
35441 2009-09-19  Jim Meyering  <meyering@redhat.com>
35442
35443         syntax-check: detect unnecessary inclusion of canonicalize.h
35444         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35445
35446 2009-09-19  Eric Blake  <ebb9@byu.net>
35447
35448         canonicalize-lgpl: adjust clients to use correct header
35449         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35450         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35451         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35452         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35453         * lib/progreloc.c (includes): Likewise.
35454
35455 2009-09-19  Jim Meyering  <meyering@redhat.com>
35456
35457         test-posixtm.c: correct a comment
35458         * tests/test-posixtm.c: Correct first-line comment.
35459         Spotted by Eric Blake.
35460
35461 2009-09-16  Jim Meyering  <meyering@redhat.com>
35462
35463         posixtm-tests: make T const-correct; add a test case
35464         * tests/test-posixtm.c (T): Declare const.
35465         Add a test for -(2^31+1).
35466         Remove useless can-succeed-only-in-2002 test.
35467
35468         posixtm-tests: adjust the sole failing test
35469         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35470         expected output matches what mktime now produces.  Cross-checked via
35471         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35472
35473         posixtm: move #ifdef'd tests into a new module
35474         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35475         * tests/test-posixtm.c: ... this new file.
35476         * modules/posixtm-tests: New module.
35477
35478 2009-09-19  Eric Blake  <ebb9@byu.net>
35479
35480         openat: simplify use of at-func.c
35481         * lib/at-func.c (includes): Include prerequisites here, to
35482         simplify requirements on client files.
35483         * lib/openat-priv.h: Add double-inclusion guard.
35484         * lib/faccessat.c (includes): Simplify.
35485         * lib/fchmodat.c (includes): Likewise.
35486         * lib/fchownat.c (includes): Likewise.
35487         * lib/mkdirat.c (includes): Likewise.
35488         * lib/mkfifoat.c (includes): Likewise.
35489         * lib/symlinkat.c (includes): Likewise.
35490
35491         openat: allow return of fd 0
35492         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35493         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35494         unistd-safer.
35495         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35496         <fcntl.h>; this module does not leak fds.
35497         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35498         must be allowed to return 0, leaving openat_safer to add the
35499         safety.
35500         (openat_permissive): Avoid writing to just-opened fd 2 if
35501         restoring the current directory fails.
35502         * lib/openat-die.c (openat_restore_fail): Add comment.
35503         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35504         (save_cwd): Guarantee safe fd, but without use of open_safer.
35505         * tests/test-openat.c: New test.
35506         * modules/openat-tests (Files, Makefile.am): Distribute and build
35507         new file.
35508
35509         relocatable-prog-wrapper: fix build
35510         * modules/relocatable-prog-wrapper (Files): Update name of
35511         canonicalize m4 file, broken on 2009-09-17.
35512         Reported by emad hajjar <aleppos@hotmail.com>.
35513
35514 2009-09-19  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35517         * lib/safe-alloc.c: Likewise.
35518         Reported by Ian Beckwith <ianb@erislabs.net>.
35519
35520 2009-09-18  Bruno Haible  <bruno@clisp.org>
35521
35522         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35523         Reported by <erobles@sensacd.com.mx>.
35524
35525 2009-09-17  Eric Blake  <ebb9@byu.net>
35526
35527         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35528         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35529         slashes when checking if last component is missing.
35530         * tests/test-canonicalize.c (main): Test this.
35531
35532         canonicalize, canonicalize-lgpl: honor // if distinct from /
35533         * modules/canonicalize (Files): Add double-slash-root.m4.
35534         * modules/canonicalize-lgpl (Files): Likewise.
35535         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35536         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35537         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35538         fallback definition.
35539         (canonicalize_filename_mode): Use it to protect //.
35540         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35541         (__realpath): Likewise.
35542         * tests/test-canonicalize.c (main): Test this.
35543         * tests/test-canonicalize-lgpl.c (main): Likewise.
35544         * modules/canonicalize-tests (Depends-on): Add same-inode.
35545         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35546
35547         canonicalize-lgpl: fix glibc bug with trailing slash
35548         * m4/canonicalize-lgpl.m4: Move contents...
35549         * m4/canonicalize.m4: ...here.
35550         (gl_CANONICALIZE_LGPL): Factor realpath check...
35551         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35552         glibc 2.3.5 bug, fixed 2005-04-27.
35553         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35554         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35555         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35556         * modules/canonicalize-lgpl (Files): Manage file rename.
35557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35558         * modules/stdlib (Makefile.am): Substitute witness.
35559         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35560         is needed.
35561         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35562         replacement is required.
35563         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35564         * doc/glibc-functions/canonicalize_file_name.texi
35565         (canonicalize_file_name): Document this.
35566         * doc/posix-functions/realpath.texi (realpath): Likewise.
35567
35568         canonicalize-lgpl: reject non-directory with trailing slash
35569         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35570         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35571         catches failures in glibc 2.3.5.
35572         * tests/test-canonicalize.c (main): Likewise.
35573
35574         canonicalize-lgpl: use native realpath if it works
35575         * lib/canonicalize-lgpl.c (realpath): Guard with
35576         FUNC_REALPATH_WORKS.
35577         * lib/stdlib.in.h (realpath): Make declaration optional based on
35578         HAVE_REALPATH.
35579         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35580         native realpath works.
35581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35582         * modules/stdlib (Makefile.am): Substitute witness.
35583
35584         canonicalize, canonicalize-lgpl: use <stdlib.h>
35585         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35586         (Include): Mention <stdlib.h>.
35587         (configure.ac): Mention functions we provide.
35588         * modules/canonicalize (configure.ac): Likewise.
35589         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35590         realpath if canonicalize_file_name is missing.
35591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35592         * modules/stdlib (Makefile.am): Substitute witnesses.
35593         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35594         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35595         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35596         * NEWS: Document this.
35597         * doc/glibc-functions/canonicalize_file_name.texi
35598         (canonicalize_file_name): Likewise.
35599         * doc/posix-functions/realpath.texi (realpath): Likewise.
35600         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35601
35602         test-canonicalize: consolidate into single C program
35603         * tests/test-canonicalize.sh: Delete; move setup into...
35604         * tests/test-canonicalize.c (main): ...the program, making it
35605         easier to run in debugger.  Add some tests.
35606         * modules/canonicalize-tests (Files): Remove unused file.
35607         (Depends-on): Add progname.
35608         (configure.ac, Makefile.am): Simplify.
35609
35610         test-canonicalize-lgpl: consolidate into single C program
35611         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35612         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35613         easier to run in debugger.  Add some tests.
35614         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35615         (configure.ac, Makefile.am): Simplify.
35616
35617         canonicalize: avoid resolvepath
35618         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35619         unnecessary checks.
35620         * lib/canonicalize.c (includes): Simplify.
35621         (canonicalize_file_name): Drop resolvepath implementation.
35622         * modules/canonicalize (Depends-on): Drop filenamecat.
35623
35624         canonicalize: don't lose errno
35625         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35626         over calls to free.
35627
35628         canonicalize: simplify errno handling
35629         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35630         assignment.
35631
35632         canonicalize, canonicalize-lgpl: update module dependencies
35633         * modules/canonicalize (Depends-on): Add extensions, lstat,
35634         pathmax, stdlib.
35635         (Files): Drop pathmax.h.
35636         (configure.ac): Adjust macro name.
35637         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35638         lstat, stdlib, sys_stat.
35639         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35640         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35641         extensions.
35642         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35643         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35644         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35645         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35646         declaration, if available.
35647         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35648         we can rely on the readlink module.
35649         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35650         (includes): Use <unistd.h> unconditionally.
35651
35652 2009-09-17  Eric Blake  <ebb9@byu.net>
35653
35654         maint: make Include sections of modules consistent
35655         * modules/alloca: Use only header name; no need to list #include.
35656         * modules/alloca-opt: Likewise.
35657         * modules/arpa_inet: Likewise.
35658         * modules/canon-host: Likewise.
35659         * modules/configmake: Likewise.
35660         * modules/dirent: Likewise.
35661         * modules/eealloc: Likewise.
35662         * modules/environ: Likewise.
35663         * modules/fchdir: Likewise.
35664         * modules/fcntl: Likewise.
35665         * modules/fcntl-h: Likewise.
35666         * modules/gethrxtime: Likewise.
35667         * modules/gettime: Likewise.
35668         * modules/ignore-value: Likewise.
35669         * modules/inet_ntop: Likewise.
35670         * modules/inet_pton: Likewise.
35671         * modules/inttypes: Likewise.
35672         * modules/isnand-nolibm: Likewise.
35673         * modules/isnanf-nolibm: Likewise.
35674         * modules/mbchar: Likewise.
35675         * modules/mbfile: Likewise.
35676         * modules/mbiter: Likewise.
35677         * modules/mbuiter: Likewise.
35678         * modules/netdb: Likewise.
35679         * modules/netinet_in: Likewise.
35680         * modules/nproc: Likewise.
35681         * modules/pagealign_alloc: Likewise.
35682         * modules/poll: Likewise.
35683         * modules/printf-frexp: Likewise.
35684         * modules/pthread: Likewise.
35685         * modules/putenv: Likewise.
35686         * modules/random_r: Likewise.
35687         * modules/relocatable-prog: Likewise.
35688         * modules/search: Likewise.
35689         * modules/select: Likewise.
35690         * modules/selinux-h: Likewise.
35691         * modules/settime: Likewise.
35692         * modules/signal: Likewise.
35693         * modules/size_max: Likewise.
35694         * modules/socklen: Likewise.
35695         * modules/ssize_t: Likewise.
35696         * modules/stdarg: Likewise.
35697         * modules/stdbool: Likewise.
35698         * modules/stddef: Likewise.
35699         * modules/stdint: Likewise.
35700         * modules/stdio: Likewise.
35701         * modules/stdlib: Likewise.
35702         * modules/string: Likewise.
35703         * modules/strings: Likewise.
35704         * modules/sys_file: Likewise.
35705         * modules/sys_ioctl: Likewise.
35706         * modules/sys_select: Likewise.
35707         * modules/sys_socket: Likewise.
35708         * modules/sys_stat: Likewise.
35709         * modules/sys_time: Likewise.
35710         * modules/sys_times: Likewise.
35711         * modules/sys_utsname: Likewise.
35712         * modules/sys_wait: Likewise.
35713         * modules/sysexits: Likewise.
35714         * modules/time: Likewise.
35715         * modules/times: Likewise.
35716         * modules/tmpfile: Likewise.
35717         * modules/trim: Likewise.
35718         * modules/unistd: Likewise.
35719         * modules/wchar: Likewise.
35720         * modules/wctype: Likewise.
35721
35722 2009-09-17  Bruno Haible  <bruno@clisp.org>
35723
35724         Make getdate.y compile on QNX and NetBSD 5 / i386.
35725         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35726         TIME_T_FITS_IN_LONG_INT.
35727         * lib/getdate.y (long_time_t): New type.
35728         (relative_time): Change type of 'seconds' field to long_time_t.
35729         (get_date): Update types of local variables. Check against overflow
35730         during conversion from long_time_t to time_t.
35731         Reported by Matt Kraai <kraai@ftbfs.org>
35732         and Hasso Tepper <hasso@netbsd.org>.
35733
35734 2009-09-17  Bruno Haible  <bruno@clisp.org>
35735
35736         * modules/COPYING: Update copyright years.
35737         * modules/README: Likeiwse.
35738         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35739         Reported by Ian Beckwith <ianb@erislabs.net>.
35740
35741 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35742
35743         * users.txt: Update references for gnuit package.
35744
35745 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35746
35747         * m4/getdelim.m4: Fix typo in copyright line.
35748
35749 2009-09-17  Bruno Haible  <bruno@clisp.org>
35750
35751         * lib/atoll.c: Use the standard header with GPL copyright.
35752         * lib/argz.in.h: Likewise.
35753         * lib/glob.c: Likewise.
35754         * lib/glob-libc.h: Likewise.
35755         * lib/random_r.c: Likewise.
35756         * lib/siglist.h: Likewise.
35757         * lib/strsignal.c: Likewise.
35758         Reported by Ian Beckwith <ianb@erislabs.net>.
35759
35760 2009-09-17  Eric Blake  <ebb9@byu.net>
35761
35762         rmdir: ensure correct dependency order
35763         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35764
35765 2009-09-17  Bruno Haible  <bruno@clisp.org>
35766
35767         Disable assertion that fails on NetBSD 5 / i386.
35768         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35769         Reported by Sam Steingold <sds@gnu.org>
35770         and Hasso Tepper <hasso@netbsd.org>.
35771
35772 2009-09-16  Eric Blake  <ebb9@byu.net>
35773
35774         unlinkdir: port to mingw
35775         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35776         on which no one can unlink a directory.
35777
35778         stdlib: sort witness names
35779         * modules/stdlib (Makefile.am): Sort replacements.
35780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35781         * lib/stdlib.in.h: Likewise.
35782
35783         parse-duration-tests: avoid link failure
35784         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35785         LIBINTL.
35786         Reported by Tom G. Christensen.
35787
35788         openat-tests: ensure unlinkat behaves like rmdir
35789         * tests/test-rmdir.c (main): Factor guts...
35790         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35791         * modules/rmdir-tests (Files): Ship new file.
35792         * modules/openat-tests: New test.
35793         * tests/test-unlinkat.c: Likewise.
35794
35795         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35796         * modules/rmdir-errno (Status, Notice): Now obsolete.
35797
35798         rmdir: work around cygwin 1.5.x and mingw bugs
35799         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35800         * lib/rmdir.c (rmdir): Work around it.
35801         * modules/rmdir (Status, Notice): No longer obsolete.
35802         (Files): Add dos.m4.
35803         (Depends-on): Add unistd.
35804         (configure.ac): Set witnesses.
35805         (License): Relax to LGPLv2+.
35806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35807         * modules/unistd (Makefile.am): Substitute witnesses.
35808         * lib/unistd.in.h (rmdir): Declare replacement.
35809         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35810         * modules/rmdir-tests: New tests.
35811         * tests/test-rmdir.c: Likewise.
35812
35813 2009-09-15  Eric Blake  <ebb9@byu.net>
35814
35815         fchdir: improve use of replacement functions
35816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35818         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35819         REPLACE_CLOSEDIR.
35820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35821         * modules/sys_stat (Makefile.am): Substitute correct witness.
35822         * modules/dirent (Makefile.am): Likewise.
35823         * modules/unistd (Makefile.am): Likewise.
35824         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35825         * lib/unistd.in.h (dup): Likewise.
35826         * lib/sys_stat.in.h (fstat): Likewise.
35827
35828         maint: ignore gnulib-tool temp files
35829         * .gitignore: Ignore files created during gnulib-tool --test.
35830
35831 2009-09-13  Jim Meyering  <meyering@redhat.com>
35832
35833         posixtm: don't reject a time that specify "60" as the number of seconds
35834         * lib/posixtm.c (posixtime): The code to reject invalid dates
35835         would also reject a time specified with the .60 suffix.
35836         But POSIX allows that, in order to accommodate leap seconds.
35837         So don't reject it.
35838         (main): Adjust tests accordingly.
35839         * modules/posixtm (Depends-on): Add stpcpy.
35840
35841 2009-09-11  Jim Meyering  <meyering@redhat.com>
35842
35843         announce-gen: include [$release_type] in emitted Subject:
35844         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35845         e.g., [stable] in the emitted Subject: line.
35846
35847 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35848
35849         Remove obsolete macros from several modules.
35850         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35851         obsolete Autoconf macros with their modern counterparts.
35852         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35853         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35855         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35856         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35857         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35859         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35860         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35861         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35862         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35863         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35864         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35865         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35866         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35867         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35868         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35869         * m4/time_r.m4 (gl_TIME_R): Likewise.
35870         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35871         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35872         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35873
35874         Fix copyright header in build-aux scripts.
35875         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35876         recommendation.
35877         * build-aux/ncftpput-ftp: Likewise.
35878         * build-aux/update-copyright: Likewise.
35879
35880 2009-09-09  Eric Blake  <ebb9@byu.net>
35881
35882         test-link: allow Linux choice of errno
35883         * tests/test-link.c (main): Relax test for alternate error.
35884
35885         strndup: fix improper m4 caching
35886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35887         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35888         (gl_PREREQ_STRNDUP): Delete.
35889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35890         * modules/string (Makefile.am): Substitute it.
35891         * lib/string.in.h (strndup): Modernize prototype.
35892
35893         getcwd: port to mingw
35894         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35895         different from the POSIX assumptions made throughout the getcwd
35896         module; fortunately, the mingw getcwd does not need replacement.
35897         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35898         * modules/getcwd-tests: New test.
35899         * tests/test-getcwd.c: Likewise.
35900
35901         link: fix platform bugs
35902         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35903         * lib/link.c (link): Work around them.  Fix related mingw bug.
35904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35905         * modules/unistd (Makefile.am): Substitute it.
35906         * lib/unistd.in.h (link): Declare replacement.
35907         * doc/posix-functions/link.texi (link): Document this.
35908         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35909
35910         test-link: consolidate into single C program, test more cases
35911         * tests/test-link.sh: Delete.
35912         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35913         at least Cygwin and Solaris.
35914         * modules/link-tests (Files): Remove unused file.
35915         (Depends-on): Add errno, sys_stat.
35916         (Makefile.am): Simplify.
35917
35918 2009-09-08  Bruno Haible  <bruno@clisp.org>
35919
35920         Work around towlower, towupper bug on mingw.
35921         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35922         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35923         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35924         * doc/posix-functions/towupper.texi: Likewise.
35925         Reported by Eric Blake.
35926
35927 2009-09-08  Jim Meyering  <meyering@redhat.com>
35928
35929         build: don't try to run autoheader if we don't use it
35930         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35931         is not used in configure.ac.
35932
35933 2009-09-08  Eric Blake  <ebb9@byu.net>
35934
35935         euidaccess: fix compilation error
35936         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35937
35938         rawmemchr: relax license
35939         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35940         okay.
35941         Reported by Jim Meyering.
35942
35943         mkfifoat: new module
35944         * modules/mkfifoat: New file.
35945         * lib/mkfifoat.c: Likewise.
35946         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35947         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35948         * modules/sys_stat (Makefile.am): Use them.
35949         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35950         * MODULES.html.sh (File system functions): Mention module.
35951         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35952         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35953         * modules/mkfifoat-tests: New test.
35954         * tests/test-mkfifoat.c: Likewise.
35955
35956         strchrnul: relax license
35957         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35958         okay.
35959         Reported by Jim Meyering.
35960
35961 2009-09-08  Eric Blake  <ebb9@byu.net>
35962
35963         fstatat: fix compilation on Solaris
35964         * lib/fstatat.c (includes): Add fcntl.h.
35965         Reported by Pádraig Brady.
35966
35967 2009-09-07  Eric Blake  <ebb9@byu.net>
35968
35969         rename: modernize replacement
35970         * modules/rename (Depends-on): Add stdio.
35971         (configure.ac): Declare witness.
35972         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35973         stdio take care of replacement.
35974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35975         * modules/stdio (Makefile.am): Substitute them.
35976         * lib/stdio.in.h (rename): Declare replacement.
35977         * lib/rename.c (includes): Allow cross-compilation to non-windows
35978         machines.
35979         * doc/posix-functions/rename.texi (rename): Improve
35980         documentation.
35981
35982         stdio: sort witness names
35983         * modules/stdio (Makefile.am): Sort replacements.
35984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35985         * lib/stdio.in.h: Likewise.
35986
35987         getcwd: minor cleanups
35988         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35989         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35990
35991         openat: provide more convenience names
35992         * modules/faccessat (configure.ac): Add C witness.
35993         * lib/unistd.in.h (readlinkat): Fix typo.
35994         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35995         convenience wrappers.
35996         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35997         wrappers in syntax checks.
35998
35999 2009-09-06  Eric Blake  <ebb9@byu.net>
36000
36001         doc: fix comments in recent patches
36002         * lib/faccessat.c: Mention correct function.
36003         * lib/fchmodat.c: Likewise.
36004         * lib/fchownat.c: Likewise.
36005         * lib/symlinkat.c: Likewise.
36006         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36007         constants.
36008
36009         faccessat, symlinkat: continue cleanup of previous patch
36010         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36011         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36012         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36014         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36015         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36016         set.
36017
36018 2009-09-06  Bruno Haible  <bruno@clisp.org>
36019
36020         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36021         (fstatat): Declare if GNULIB_FSTATAT is set.
36022         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36023         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36024         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36025         * modules/fcntl-h (Files): Remove m4/openat.m4.
36026         * modules/sys_stat (Files): Remove m4/openat.m4.
36027         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36028         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36029         * modules/unistd (Files): Remove m4/openat.m4.
36030         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36031         GNULIB_OPENAT.
36032         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36033         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36035         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36036         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36037         gl_OPENAT_DEFAULTS.
36038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36039         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36040         Don't require gl_OPENAT_DEFAULTS.
36041         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36042         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36043         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36044         (gl_OPENAT_DEFAULTS): Remove macro.
36045
36046 2009-09-06  Bruno Haible  <bruno@clisp.org>
36047
36048         * modules/openat (configure.ac): Remove unneeded witness.
36049
36050 2009-09-06  Bruno Haible  <bruno@clisp.org>
36051
36052         Set errno to ENOSYS when a function is entirely unsupported.
36053         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36054         EOPNOTSUPP.
36055         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36056         * modules/chown (Depends-on): Remove errno.
36057
36058 2009-09-06  Bruno Haible  <bruno@clisp.org>
36059
36060         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36061
36062 2009-09-06  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36065
36066 2009-09-06  Ben Pfaff  <blp@gnu.org>
36067             Bruno Haible  <bruno@clisp.org>
36068
36069         Work around a glibc bug in strtok_r.
36070         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36071         Undefine if UNDEFINE_STRTOK_R is set.
36072         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36074         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36075         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36076         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36077         UNDEFINE_STRTOK_R.
36078         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36079
36080 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36081
36082         exclude: minor fix
36083         * lib/exclude.c: Include wctype.h
36084
36085 2009-09-06  Akim Demaille  <demaille@gostai.com>
36086
36087         bootstrap: improve error message
36088         * build-aux/bootstrap (find_tool): Upon failure, report the list
36089         of candidates.
36090         Honor the initial value of the envvar.
36091
36092 2009-09-05  Eric Blake  <ebb9@byu.net>
36093
36094         symlinkat: new module
36095         * modules/symlinkat: New file.
36096         * lib/symlinkat.c: Likewise.
36097         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36099         * modules/unistd (Makefile.am): Use them.
36100         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36101         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36102         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36103         * MODULES.html.sh (File system functions): Mention module.
36104         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36105         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36106         * modules/symlinkat-tests: New test.
36107         * tests/test-symlinkat.c: Likewise.
36108
36109         test-openat-safer: add more checks
36110         * tests/test-openat-safer.c (main): Check more code paths.
36111
36112 2009-09-05  Jim Meyering  <meyering@redhat.com>
36113
36114         syntax-check: detect unnecessary inclusion of openat.h
36115         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36116
36117 2009-09-05  Bruno Haible  <bruno@clisp.org>
36118
36119         Support towlower, towupper.
36120         * doc/posix-functions/towlower.texi: Mention module wctype.
36121         * doc/posix-functions/towupper.texi: Likewise.
36122         * lib/wctype.in.h (towlower, towupper): New functions.
36123         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36124         (ASSERT): New macro.
36125         (e): New variable.
36126         (main): Test also towlower, towupper. Test WEOF argument.
36127         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36128
36129 2009-09-05  Bruno Haible  <bruno@clisp.org>
36130
36131         Fix conversion behaviour when the input is invalid.
36132         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36133         mark occurring in first pass of indirect conversion.
36134         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36135         input.
36136         Found by clang's static analyzer.
36137
36138 2009-09-05  Bruno Haible  <bruno@clisp.org>
36139
36140         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36141         where direct conversion is possible.
36142
36143 2009-09-04  Eric Blake  <ebb9@byu.net>
36144
36145         openat: fail with ENOENT on empty name
36146         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36147         buffer.
36148
36149         link-follow: fix logic bug in prior patch
36150         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36151         reversed sense of yes and no in prior patch.  Avoid confusing
36152         compilation failure with desired semantics.
36153
36154         link-follow: accomodate mingw and cross-compilation
36155         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36156         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36157         cross-compilation results to -1, to make linkat easier to
36158         implement when cross-compiling.  Trivially support mingw.
36159         * modules/link-follow (configure.ac): Call new name.
36160         * NEWS: Mention this.
36161
36162 2009-09-03  Eric Blake  <ebb9@byu.net>
36163
36164         faccessat: compile replacement
36165         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36166         needed.
36167
36168         fts: fix compilation error
36169         * lib/fts.c (includes): Re-add "openat.h", for
36170         openat_needs_fchdir.
36171
36172         faccessat: new module
36173         * modules/faccessat: New file.
36174         * lib/faccessat.c: Likewise.
36175         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36177         * modules/unistd (Makefile.am): Use it.
36178         * lib/unistd.in.h (faccessat): Declare it.
36179         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36180         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36181         * MODULES.html.sh (File system functions): Mention it.
36182         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36183         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36184
36185         euidaccess: prefer POSIX over non-standard implementation
36186         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36187         * lib/euidaccess.c (euidaccess): Use it if available.
36188
36189         openat: make template easier to use
36190         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36191         AT_FUNC_F2 to be undefined.
36192         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36193         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36194         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36195         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36196         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36197         Likewise.
36198         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36199         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36200         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36201         Likewise.
36202
36203         openat: declare in POSIX headers
36204         * NEWS: Mention this.
36205         * modules/openat (configure.ac): Declare witnesses.
36206         (Depends-on): Add fcntl-h, sys_stat, unistd.
36207         (Include): Mention correct headers.
36208         * modules/fcntl-h (Depends-on): Add link-warning.
36209         (Files): Add openat.m4.
36210         (Makefile.am): Substitute witnesses.
36211         * modules/sys_stat (Files, Makefile.am): Likewise.
36212         * modules/unistd (Files, Makefile.am): Likewise.
36213         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36214         (gl_OPENAT_DEFAULTS): New macro.
36215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36217         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36218         (SYS_STAT_H): Remove unused variable.
36219         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36220         * lib/fcntl--.h (includes): Remove unneeded header.
36221         * lib/openat-safer.c (includes): Likewise.
36222         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36223         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36224         appropriate headers.
36225         (__OPENAT_PREFIX): Delete.
36226         * lib/fcntl.in.h (openat): Provide declaration.
36227         (AT_FDCWD): Fix Solaris bug.
36228         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36229         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36230         * lib/fchmodat.c (includes):  Adjust to find declaration.
36231         * lib/fchownat.c (includes): Likewise.
36232         * lib/mkdirat.c (includes): Likewise.
36233         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36234         still visible.
36235
36236 2009-09-02  Eric Blake  <ebb9@byu.net>
36237
36238         errno: use consistently
36239         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36240         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36241         * lib/canonicalize.c (ELOOP): Likewise.
36242         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36243         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36244         * lib/lchown.c (EOPNOTSUPP): Likewise.
36245         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36246         * lib/savewd.c (ESTALE): Likewise.
36247         * lib/settime.c (ENOSYS): Likewise.
36248         * lib/utimens.c (ENOSYS): Likewise.
36249         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36250         * lib/chdir-safer.c (ELOOP): Likewise.
36251         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36252         * modules/c-stack (Depends-on): Add errno.
36253         * modules/canonicalize (Depends-on): Likewise.
36254         * modules/chdir-safer (Depends-on): Likewise.
36255         * modules/fdopendir (Depends-on): Likewise.
36256         * modules/inet_ntop (Depends-on): Likewise.
36257         * modules/inet_pton (Depends-on): Likewise.
36258         * modules/lchown (Depends-on): Likewise.
36259         * modules/openat (Depends-on): Likewise.
36260         * modules/savewd (Depends-on): Likewise.
36261         * modules/settime (Depends-on): Likewise.
36262         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36263
36264         fts: avoid leaking fds
36265         * modules/fts (Depends-on): Add cloexec.
36266         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36267         flag.
36268
36269         fts: make directory fds more robust
36270         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36271         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36272
36273         backupfile, chdir-long, fts, savedir: make safer
36274         * lib/backupfile.c (includes): Use "dirent--.h", since
36275         numbered_backup can write to stderr during readdir.
36276         * lib/savedir.c (includes): Likewise.
36277         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36278         emulation can write to stderr on failure.
36279         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36280         * lib/getcwd.c: Document why opendir_safer is unused.
36281         * lib/glob.c: Likewise.
36282         * lib/scandir.c: Likewise.
36283         * lib/openat-proc.c: Likewise, for open_safer.
36284         * modules/backupfile (Depends-on): Add dirent-safer.
36285         * modules/savedir (Depends-on): Likewise.
36286         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36287         * modules/chdir-long (Depends-on): Add openat-safer.
36288
36289         openat-safer: new module
36290         * modules/openat-safer: New file.
36291         * lib/openat-safer.c: Likewise.
36292         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36293         * lib/fcntl-safer.h (openat_safer): Declare.
36294         * lib/fcntl--.h (openat): Override.
36295         * MODULES.html.sh (File descriptor based I/O): Mention it.
36296         * lib/openat.h: Add double-inclusion guards.
36297         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36298         "fcntl--.h", so we can implement openat.
36299         * modules/openat-safer-tests: New test.
36300         * tests/test-openat-safer.c: New file.
36301
36302         dirent-safer: new module
36303         * modules/dirent-safer: New file.
36304         * lib/dirent--.h: Likewise.
36305         * lib/dirent-safer.h: Likewise.
36306         * lib/opendir-safer.c: Likewise.
36307         * m4/dirent-safer.m4: Likewise.
36308         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36309         * modules/dirent-safer-tests: New test.
36310         * tests/test-dirent-safer.c: New file.
36311         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36312
36313         fdopendir: optimize on mingw
36314         * lib/unistd.in.h (_gl_directory_name): New prototype.
36315         * lib/fchdir.c (_gl_directory_name): Implement it.
36316         (fchdir): Use it to simplify implementation.
36317         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36318         fchdir, when available, to avoid calling [f]chdir().
36319
36320         fdopendir: split into its own module
36321         * lib/openat.c (fdopendir): Move...
36322         * lib/fdopendir.c: ...into new file.
36323         * modules/fdopendir: New module.
36324         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36325         * modules/openat (Depends-on): Add fdopendir.
36326         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36327         fdopendir here.
36328         * modules/savedir (Depends-on): Only need fdopendir, not full
36329         openat.
36330         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36331         * lib/openat.h (fdopendir): Drop prototype.
36332         * lib/dirent.in.h (fdopendir): Provide prototype.
36333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36334         * modules/dirent (Makefile.am): Substitute them.
36335         * MODULES.html.sh (File system functions): Mention it.
36336         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36337         * modules/fdopendir-tests: New file.
36338         * tests/test-fdopendir.c: Likewise.
36339
36340         fchdir: use more consistent macro convention
36341         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36342         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36343         REPLACE_FCHDIR, rather than relying on config.h macros.
36344         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36345         inside a single make-time REPLACE_FCHDIR block, rather than using
36346         the config.h FCHDIR_REPLACEMENT.
36347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36348         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36349         Manage fstat replacement.
36350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36351         REPLACE_FCHDIR.
36352         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36353         (Makefile.am): Substitute REPLACE_FCHDIR.
36354         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36355         FCHDIR_REPLACEMENT.
36356         * lib/dup-safer.c (dup_safer): Likewise.
36357         * lib/dup2.c (rpl_dup2): Likewise.
36358         * lib/dup3.c (rpl_dup3): Likewise.
36359         * lib/open.c (rpl_open): Likewise.
36360
36361         fchdir: simplify error handling, and support dup3
36362         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36363         stdbool, malloc-posix, realloc-posix.
36364         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36365         (ensure_dirs_slot): Return false on allocation failure.
36366         (rpl_dup2): Delete.
36367         (_gl_register_dup): New function.
36368         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36369         (_gl_register_fd): Close fd on allocation failure.
36370         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36371         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36372         prototype.
36373         (rpl_dup2_fchdir): Delete prototype.
36374         * lib/open.c (open): Update caller.
36375         * lib/dup2.c (dup2): Track fchdir metadata.
36376         * lib/dup3.c (dup3): Likewise.
36377         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36379
36380 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36381
36382         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36383         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36384         don't pass arguments to AC_OUTPUT.
36385
36386 2009-09-02  Bruno Haible  <bruno@clisp.org>
36387
36388         * modules/mkdtemp (License): Relicense under LGPLv2+.
36389         Reported by Paolo Bonzini.
36390
36391 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36392
36393         Replace uses of obsolete autoconf macros in Jim's modules.
36394         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36395         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36396         can evoke a warning from autoconf when run with -Wobsolete
36397         enabled.  They were declared obsolete for good reasons (see
36398         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36399         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36400         should not continue using the deprecated macros.
36401         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36402         obsolete Autoconf macros with modern counterparts.
36403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36404         * m4/dos.m4 (gl_AC_DOS): Likewise.
36405         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36406         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36407         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36408         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36409         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36410         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36411         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36412         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36413         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36414         Likewise.
36415         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36416         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36417         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36418         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36419         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36420         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36421
36422 2009-09-01  Eric Blake  <ebb9@byu.net>
36423
36424         fchdir: fix off-by-one bug in previous patch
36425         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36426         (_gl_unregister_fd): Delete useless if.
36427
36428 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36429
36430         maint.mk: sort the list of syntax-check rules
36431         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36432         easier to get a sense of progress when the rules are run sequentially
36433         and take a long time.
36434
36435 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36436
36437         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36438         * modules/netinet_in: Likewise.
36439         * modules/sys_file: Likewise.
36440         * modules/sys_ioctl: Likewise.
36441         * modules/sys_select: Likewise.
36442         * modules/sys_socket: Likewise.
36443         * modules/sys_stat: Likewise.
36444         * modules/sys_time: Likewise.
36445         * modules/sys_times: Likewise.
36446         * modules/sys_utsname: Likewise.
36447         * modules/sys_wait: Likewise.
36448
36449 2009-09-01  Jim Meyering  <meyering@redhat.com>
36450
36451         fts: help ensure that return values are not ignored
36452         * lib/fts_.h (__GNUC_PREREQ): Define.
36453         (__attribute_warn_unused_result__): Define.
36454         (fts_children, fts_close, fts_open, fts_read): Declare with
36455         __attribute_warn_unused_result__.
36456
36457         fts: fts_close now fails also when closing a dir file descriptor fails
36458         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36459         and propagate to caller, along with errno.
36460
36461         announce-gen: correct formatting in --help output
36462         * build-aux/announce-gen (usage): Move the one-line description in
36463         --help output "up", to where it belongs, just after Usage:.
36464
36465 2009-08-31  Eric Blake  <ebb9@byu.net>
36466
36467         fchdir: port to mingw
36468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36469         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36470         opened, then use a substitute.
36471         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36472         replacement.
36473         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36474         (_gl_register_fd): No need to check stat if open already filters
36475         all directories.
36476         (fchdir): Fix error condition to match POSIX.
36477         * modules/fchdir (Depends-on): Add sys_stat.
36478         * doc/posix-functions/open.texi (open): Document the limitation.
36479         * modules/fchdir-tests: New file.
36480         * tests/test-fchdir.c: Likewise.
36481
36482         canonicalize: allow cross-testing from cygwin to mingw
36483         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36484         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36485         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36486         Likewise.
36487         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36488         target does not support symlinks.
36489         * tests/test-canonicalize-lgpl.sh: Likewise.
36490
36491         chown: avoid compilation warning on mingw
36492         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36493         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36494         mingw.
36495         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36496         * modules/chown (Depends-on): Add errno.
36497
36498 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36499
36500         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36501         command.
36502
36503 2009-08-31  Jim Meyering  <meyering@redhat.com>
36504
36505         canonicalize: remove useless initialization
36506         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36507         initialization of local, "end".
36508
36509 2009-08-30  Bruno Haible  <bruno@clisp.org>
36510
36511         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36512         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36513         ENOSYS.
36514
36515 2009-08-30  Bruno Haible  <bruno@clisp.org>
36516
36517         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36518         /usr/xpg4/bin/tr when it exists.
36519         * tests/test-pipe-filter-gi1.sh: Likewise.
36520
36521 2009-08-30  Bruno Haible  <bruno@clisp.org>
36522
36523         Work around deficient /usr/bin/id program on Solaris.
36524         * tests/test-file-has-acl.sh (ID): New variable.
36525         * tests/test-set-mode-acl.sh (ID): Likewise.
36526         * tests/test-copy-acl.sh (ID): Likewise.
36527         * tests/test-copy-file.sh (ID): Likewise.
36528
36529 2009-08-30  Bruno Haible  <bruno@clisp.org>
36530
36531         New module 'xstriconveh'.
36532         * lib/xstriconveh.h: New file.
36533         * lib/xstriconveh.c: New file.
36534         * modules/xstriconveh: New file.
36535
36536 2009-08-30  Bruno Haible  <bruno@clisp.org>
36537
36538         Make it easier to use mem_cd_iconveh.
36539         * lib/striconveh.h (iconveh_t): New type.
36540         (iconveh_open, iconveh_close): New declarations.
36541         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36542         with a single 'const iconveh_t *' argument.
36543         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36544         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36545         with a single 'const iconveh_t *' argument.
36546         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36547         * tests/test-striconveh.c (main): Update.
36548         * NEWS: Mention the change.
36549
36550 2009-08-30  Bruno Haible  <bruno@clisp.org>
36551
36552         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36553         problem.
36554
36555 2009-08-30  Bruno Haible  <bruno@clisp.org>
36556
36557         Work around iconv_open problem on Solaris.
36558         * lib/iconv_open-solaris.gperf: New file.
36559         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36560         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36561         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36562         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36563         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36564         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36565
36566 2009-08-29  Jim Meyering  <meyering@redhat.com>
36567
36568         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36569         * top/maint.mk (cvs-check): Remove target; it was just an alias
36570         to the better-named vc-diff-check.
36571         (maintainer-distcheck): Remove rule.  It was used only from
36572         the (alpha/beta/major) target, and all of its commands but one
36573         were coreutils-specific.
36574         (vc-dist): Remove rule.
36575         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36576         Run vc-diff-check, not vc-dist.
36577         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36578
36579 2009-08-27  Bruno Haible  <bruno@clisp.org>
36580
36581         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36582         of 0.
36583
36584 2009-08-27  Bruno Haible  <bruno@clisp.org>
36585
36586         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36587         compilers.
36588         * doc/func.texi: Document the SunPRO C bug.
36589
36590 2009-08-27  Bruno Haible  <bruno@clisp.org>
36591
36592         Fix link error on Solaris.
36593         * tests/test-parse-duration.c (xstrdup): Remove function.
36594
36595 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36596
36597         ignore-value: handle pointer types, too
36598         * lib/ignore-value.h (__attribute__): Remove definition.
36599         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36600         of a more concise and more-often effective "(void) i" statement.
36601         (ignore_ptr): New function to suppress warnings from functions that
36602         return pointers, and to make it explicit that one function doesn't
36603         handle all cases.
36604
36605 2009-08-25  Bruno Haible  <bruno@clisp.org>
36606
36607         dup2: work around a Linux bug.
36608         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36609         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36610         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36611         Reported by Simon Josefsson.
36612
36613 2009-08-25  Jim Meyering  <meyering@redhat.com>
36614
36615         libguestfs uses gnulib
36616         * users.txt: Add libguestfs.
36617
36618 2009-08-24  Eric Blake  <ebb9@byu.net>
36619
36620         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36621         * lib/pipe2.c (includes): Add binary-io.h.
36622         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36623
36624 2009-08-24  Bruno Haible  <bruno@clisp.org>
36625
36626         Tolerate declared but missing accept4 syscall.
36627         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36628         available.
36629         * lib/sys_socket.in.h (accept4): If the function is already present,
36630         override it.
36631         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36632         * modules/accept4 (Makefile.am): Compile accept4.c always.
36633         Reported by Paolo Bonzini and Eric Blake.
36634
36635 2009-08-23  Bruno Haible  <bruno@clisp.org>
36636
36637         New module 'accept4'.
36638         * lib/sys_socket.in.h (accept4): New declaration.
36639         * lib/accept4.c: New file.
36640         * m4/accept4.m4: New file.
36641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36642         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36643         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36644         HAVE_ACCEPT4.
36645         * modules/accept4: New file.
36646         * doc/glibc-functions/accept4.texi: Mention the new module.
36647
36648 2009-08-24  Jim Meyering  <meyering@redhat.com>
36649
36650         progname: also set global program_invocation_name, when possible
36651         Before this change, a libtool-enabled program that calls glibc's
36652         error function would report the program name as
36653         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36654         * modules/progname (configure.ac): Check for a declaration of
36655         program_invocation_name.
36656         * lib/progname.c:  Include <errno.h>.
36657         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36658         Set program_invocation_name.
36659
36660 2009-08-23  Bruno Haible  <bruno@clisp.org>
36661
36662         * lib/dup3.c: Include <string.h>.
36663
36664 2009-08-23  Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36667         * lib/pipe2.c (pipe2): Likewise.
36668         Suggested by Eric Blake.
36669
36670 2009-08-23  Bruno Haible  <bruno@clisp.org>
36671
36672         Tolerate declared but missing dup3 syscall.
36673         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36674         * lib/unistd.in.h (dup3): If the function is already present,
36675         override it.
36676         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36677         * modules/dup3 (Makefile.am): Compile dup3.c always.
36678         Reported by Paolo Bonzini.
36679
36680 2009-08-23  Bruno Haible  <bruno@clisp.org>
36681
36682         Tolerate declared but missing pipe2 syscall.
36683         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36684         available.
36685         * lib/unistd.in.h (pipe2): If the function is already present,
36686         override it.
36687         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36688         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36689         Reported by Paolo Bonzini.
36690
36691 2009-08-23  Bruno Haible  <bruno@clisp.org>
36692
36693         * lib/pipe2.c (pipe2): Move #ifs inside function.
36694
36695 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36696
36697         quotearg: document limitations of quote_these_too
36698         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36699         those limitations are created.
36700         * lib/quotearg.h (set_char_quoting): Document that digits and
36701         letters that are special after backslash are not permitted.
36702         (quotearg_char): Cross-reference set_char_quoting documentation.
36703
36704 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36705
36706         quotearg: implement custom_quoting_style
36707         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36708         right_quote fields.
36709         (set_custom_quoting): New public function.
36710         (quotearg_buffer_restyled): Add left_quote and right_quote
36711         arguments, handle them very much like locale quoting, and update
36712         all uses.
36713         (quotearg_n_custom): New public function.
36714         (quotearg_n_custom_mem): New public function.
36715         (quotearg_custom): New public function.
36716         (quotearg_custom_mem): New public function.
36717         * lib/quotearg.h: Prototype and document new public functions.
36718         (enum quoting_style): For escape_quoting_style and
36719         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36720         ignored even though they're otherwise like c_quoting_style.
36721         Add custom_quoting_style member and document with comparison to
36722         clocale_quoting_style.
36723         * tests/test-quotearg.c (custom_quotes): New array.
36724         (custom_results): New array.
36725         (main): Extend to test custom quoting.
36726
36727 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36728
36729         quotearg: fix right quote escaping when it's in quote_these_too
36730         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36731         quote, be sure to prepend only one backslash.
36732         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36733         (main): Test it.
36734
36735 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36736
36737         quotearg-tests: test escaping of embedded locale quotes
36738         * tests/test-quotearg.c (struct result_strings): Add member for
36739         new input.
36740         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36741         (inputs): Add new input.
36742         (results_g): Add expected results.
36743         (flag_results): Likewise.
36744         (locale_results): Likewise.
36745         (compare_strings): Check those.
36746
36747 2009-08-23  Bruno Haible  <bruno@clisp.org>
36748
36749         Tests for module 'dup3'.
36750         * modules/dup3-tests: New file.
36751         * tests/test-dup3.c: New file.
36752
36753         New module 'dup3'.
36754         * lib/unistd.in.h (dup3): New declaration.
36755         * lib/dup3.c: New file.
36756         * m4/dup3.m4: New file.
36757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36758         HAVE_DUP3.
36759         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36760         * modules/dup3: New file.
36761         * doc/glibc-functions/dup3.texi: Mention the new module.
36762
36763 2009-08-23  Bruno Haible  <bruno@clisp.org>
36764
36765         Tweak the dup2 test.
36766         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36767         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36768         the test file is still empty. Fix argument order of lseek.
36769
36770 2009-08-23  Bruno Haible  <bruno@clisp.org>
36771
36772         Avoid test link errors when the modules getopt-gnu, gettext are used.
36773         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36775
36776 2009-08-23  Bruno Haible  <bruno@clisp.org>
36777
36778         Fix getdtablesize() on mingw.
36779         * lib/getdtablesize.c (getdtablesize): Implement differently.
36780         * lib/unistd.in.h (getdtablesize): Improve comment.
36781
36782 2009-08-23  Bruno Haible  <bruno@clisp.org>
36783
36784         New module 'mkostemp'.
36785         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36786         * lib/stdlib.in.h (mksotemp): New declaration.
36787         * lib/mkostemp.c: New file, from glibc with modifications.
36788         * lib/tempname.h (GT_FILE): Remove outdated comment.
36789         (gen_tempname): Add flags argument.
36790         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36791         (__GT_FILE): Map to 1.
36792         (small_open, large_open): Remove macros.
36793         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36794         * lib/mkstemp.c (mkstemp): Update.
36795         * lib/mkdtemp.c (mkdtemp): Likewise.
36796         * m4/mkostemp.m4: New file.
36797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36798         HAVE_MKOSTEMP.
36799         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36800         HAVE_MKOSTEMP.
36801         * modules/mkostemp: New file, based on modules/mkstemp.
36802         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36803         * NEWS: Mention the change.
36804
36805 2009-08-23  Bruno Haible  <bruno@clisp.org>
36806
36807         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36808         Reported by Eric Blake.
36809
36810 2009-08-23  Bruno Haible  <bruno@clisp.org>
36811
36812         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36813         Reported by Eric Blake.
36814
36815 2009-08-23  Bruno Haible  <bruno@clisp.org>
36816
36817         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36818         * modules/pipe2 (Depends-on): Likewise.
36819
36820 2009-08-23  Eric Blake  <ebb9@byu.net>
36821
36822         fcntl-h: add O_TTY_INIT support
36823         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36824         * tests/test-fcntl-h.c (o): Test it.
36825         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36826
36827         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36828         * modules/fcntl: Move <fcntl.h> header replacement...
36829         * modules/fcntl-h: ...to new name, so as not to collide with
36830         like-named function.
36831         * tests/test-fcntl.c: Rename...
36832         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36833         * modules/fcntl-tests: Rename...
36834         * modules/fcntl-h-tests: ...to this.  Update test file name.
36835         * modules/chdir-long (Depends-on): Update clients.
36836         * modules/chdir-safer (Depends-on): Likewise.
36837         * modules/fcntl-safer (Depends-on): Likewise.
36838         * modules/fts (Depends-on): Likewise.
36839         * modules/mkancesdirs (Depends-on): Likewise.
36840         * modules/mkdir-p (Depends-on): Likewise.
36841         * modules/open (Depends-on): Likewise.
36842         * modules/savewd (Depends-on): Likewise.
36843         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36844         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36845
36846 2009-08-22  Bruno Haible  <bruno@clisp.org>
36847
36848         * modules/binary-io (License): Relicense under LGPL.
36849         * modules/pipe2 (License): Likewise.
36850
36851 2009-08-22  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36854         return value.
36855         * lib/pipe-filter-gi.c (filter_init): Likewise.
36856         Reported by Eric Blake.
36857
36858 2009-08-22  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36861         * modules/pipe (Depends-on): Add pipe2.
36862
36863 2009-08-22  Bruno Haible  <bruno@clisp.org>
36864
36865         Tests for module 'pipe2'.
36866         * modules/pipe2-tests: New file.
36867         * tests/test-pipe2.c: New file.
36868
36869         New module 'pipe2'.
36870         * lib/unistd.in.h (pipe2): New declaration.
36871         * lib/pipe2.c: New file.
36872         * m4/pipe2.m4: New file.
36873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36874         HAVE_PIPE2.
36875         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36876         * modules/pipe2: New file.
36877         * doc/glibc-functions/pipe2.texi: Mention the new module.
36878
36879 2009-08-22  Bruno Haible  <bruno@clisp.org>
36880
36881         Reference some new glibc functions.
36882         * doc/glibc-functions/accept4.texi: New file.
36883         * doc/glibc-functions/dup3.texi: New file.
36884         * doc/glibc-functions/mkostemp.texi: New file.
36885         * doc/glibc-functions/pipe2.texi: New file.
36886         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36887         (Glibc sys/socket.h): Refer to accept4.
36888         (Glibc unistd.h): Refer to dup3, pipe2.
36889         Reported by Eric Blake.
36890
36891 2009-08-22  Jim Meyering  <meyering@redhat.com>
36892             Bruno Haible  <bruno@clisp.org>
36893
36894         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36895         This makes it so packages using automake-1.11's silent-rules option
36896         can print e.g., a single "GEN    configmake.h" line, rather than
36897         the 30+ statements that perform the job.  If you want to see the
36898         actual commands, you can still run "make V=1".
36899         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36900         so that make output is abbreviated when those variables are defined
36901         appropriately.
36902         * modules/argz: Likewise.
36903         * modules/arpa_inet: Likewise.
36904         * modules/byteswap: Likewise.
36905         * modules/configmake: Likewise.
36906         * modules/dirent: Likewise.
36907         * modules/errno: Likewise.
36908         * modules/fcntl: Likewise.
36909         * modules/float: Likewise.
36910         * modules/fnmatch: Likewise.
36911         * modules/getopt-posix: Likewise.
36912         * modules/glob: Likewise.
36913         * modules/iconv_open: Likewise.
36914         * modules/inttypes: Likewise.
36915         * modules/localcharset: Likewise.
36916         * modules/locale: Likewise.
36917         * modules/math: Likewise.
36918         * modules/netdb: Likewise.
36919         * modules/netinet_in: Likewise.
36920         * modules/poll: Likewise.
36921         * modules/posix_spawnp-tests: Likewise.
36922         * modules/sched: Likewise.
36923         * modules/search: Likewise.
36924         * modules/selinux-h: Likewise.
36925         * modules/signal: Likewise.
36926         * modules/spawn: Likewise.
36927         * modules/stdarg: Likewise.
36928         * modules/stdbool: Likewise.
36929         * modules/stddef: Likewise.
36930         * modules/stdint: Likewise.
36931         * modules/stdio: Likewise.
36932         * modules/stdlib: Likewise.
36933         * modules/string: Likewise.
36934         * modules/strings: Likewise.
36935         * modules/sys_file: Likewise.
36936         * modules/sys_ioctl: Likewise.
36937         * modules/sys_select: Likewise.
36938         * modules/sys_socket: Likewise.
36939         * modules/sys_stat: Likewise.
36940         * modules/sys_time: Likewise.
36941         * modules/sys_times: Likewise.
36942         * modules/sys_utsname: Likewise.
36943         * modules/sys_wait: Likewise.
36944         * modules/sysexits: Likewise.
36945         * modules/time: Likewise.
36946         * modules/unistd: Likewise.
36947         * modules/wchar: Likewise.
36948         * modules/wctype: Likewise.
36949
36950 2009-08-22  Jim Meyering  <meyering@redhat.com>
36951
36952         announce-gen: detect write failure
36953         * build-aux/announce-gen: Add Coda at end.
36954         Remove equivalent-but-more-verbose block at top.
36955
36956 2009-08-19  Akim Demaille  <demaille@gostai.com>
36957
36958         bootstrap: --help to stdout.
36959         * bootstrap (usage): Don't send --help to stderr.
36960         Use a here doc instead of a long string.
36961
36962 2009-08-21  Eric Blake  <ebb9@byu.net>
36963
36964         test-popen-safer: split from test-popen
36965         * tests/test-popen.c (main): Move...
36966         * tests/test-popen.h: ...into new file.
36967         * tests/test-popen-safer2.c: New file.
36968         * modules/popen-tests (Files): Add test-popen.h.
36969         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36970         Suggested by Bruno Haible.
36971
36972         test-fcntl-safer: split from test-open
36973         * tests/test-open.c (main): Move...
36974         * tests/test-open.h: ...into new file.
36975         * tests/test-fcntl-safer.c: New file.
36976         * modules/open-tests (Files): Add test-open.h.
36977         * modules/fcntl-safer-tests: New file.
36978         Suggested by Bruno Haible.
36979
36980         test-fopen-safer: split from test-fopen
36981         * tests/test-fopen.c (main): Move...
36982         * tests/test-fopen.h: ...into new file.
36983         * tests/test-fopen-safer.c: New file.
36984         * modules/fopen-tests (Files): Add test-fopen.h.
36985         * modules/fopen-safer-tests: New file.
36986         Suggested by Bruno Haible.
36987
36988 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36989
36990         popen-safer: test O_CLOEXEC at run-time.
36991         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36992
36993 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36994
36995         fcntl: move more flags to the header
36996         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36997         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36998         * lib/fcntl.in.h: Do both things here.
36999
37000 2009-08-21  Jim Meyering  <meyering@redhat.com>
37001
37002         consistently remove $@-t before redirecting to it
37003         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37004         * modules/alloca-opt: Likewise.
37005         * modules/byteswap: Likewise.
37006         * modules/fnmatch: Likewise.
37007         * modules/getopt-posix: Likewise.
37008         * modules/glob: Likewise.
37009         * modules/poll: Likewise.
37010         * modules/posix_spawnp-tests: Likewise.
37011         * modules/sys_socket: Likewise.
37012         * modules/sysexits: Likewise.
37013
37014 2009-08-21  Eric Blake  <ebb9@byu.net>
37015
37016         popen: simplify access to original popen
37017         * lib/popen.c (rpl_popen): No need to worry about popen being a
37018         macro.
37019         Reported by Bruno Haible.
37020
37021 2009-08-20  Eric Blake  <ebb9@byu.net>
37022
37023         build: avoid some compiler warnings
37024         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37025         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37026         type.
37027         (new_exclude_segment, excluded_file_pattern_p)
37028         (excluded_file_name_p): Reduce scope.
37029         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37030         old-style declaration.
37031
37032 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37033
37034         * tests/test-exclude1.sh: Handle Windows EOL.
37035         * tests/test-exclude2.sh: Likewise.
37036         * tests/test-exclude3.sh: Likewise.
37037         * tests/test-exclude4.sh: Likewise.
37038         * tests/test-exclude5.sh: Likewise.
37039         * tests/test-exclude6.sh: Likewise.
37040         * tests/test-exclude7.sh: Likewise.
37041
37042 2009-08-19  Akim Demaille  <demaille@gostai.com>
37043
37044         bootstrap: find sha1sum when named gsha1sum.
37045         * bootstrap (find_tool): New.
37046         ($SHA1SUM): New.
37047         Use it.
37048
37049 2009-08-20  Jim Meyering  <meyering@redhat.com>
37050
37051         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37052         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37053         expression that converts "." in a file name to "\." in the resulting
37054         regexp.  Start with a dummy statement, so that prior shell variable
37055         definitions are expanded portably.  Reported by Simon Josefsson.
37056
37057 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37058
37059         Fix polling for writeability of a screen buffer.
37060         * lib/poll.c: Distinguish input and screen buffers for the
37061         Win32 implementation.
37062         * lib/select.c: Likewise.
37063
37064 2009-08-19  Eric Blake  <ebb9@byu.net>
37065
37066         popen-safer: prevent popen from clobbering std descriptors
37067         * modules/popen-safer: New file.
37068         * lib/popen-safer.c: Likewise.
37069         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37070         * lib/stdio--.h (popen): Provide override.
37071         * lib/stdio-safer.h (popen_safer): Provide declaration.
37072         * tests/test-popen.c (includes): Partially test this.
37073         * modules/popen-safer-tests: New file, for more tests.
37074         * tests/test-popen-safer.c: Likewise.
37075         * MODULES.html.sh (file stream based Input/Output): Mention it.
37076
37077         tests: test some of the *-safer modules
37078         * modules/fopen-safer (Depends-on): Add fopen.
37079         * modules/fcntl-safer (Depends-on): Add fcntl.
37080         * modules/stdlib-safer (Depends-on): Add stdlib.
37081         (configure.ac): Set indicator.
37082         * modules/unistd-safer (configure.ac): Likewise.
37083         * modules/tmpfile-safer (configure.ac): Likewise.
37084         (Depends-on): Add tmpfile.
37085         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37086         active.
37087         * tests/test-fopen.c (includes): Test safer versions when they are
37088         in use.
37089         * tests/test-open.c (includes): Likewise.
37090
37091         popen: fix cygwin 1.5 bug when stdin closed
37092         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37093         * modules/popen: New file.
37094         * modules/popen-tests: Likewise.
37095         * tests/test-popen.c: Likewise.
37096         * m4/popen.m4: Likewise.
37097         * lib/popen.c: Likewise.
37098         * lib/stdio.in.h (popen): New declaration.
37099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37100         * modules/stdio (Makefile.am): Likewise.
37101         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37102
37103 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37104
37105         maint.mk: give full control over update-copyright exclusions
37106         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37107         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37108         (update-copyright): Don't force inclusion of top-level
37109         ChangeLog.  Don't force exclusion of all COPYING files, but make
37110         them the default exclusion instead.
37111
37112 2009-08-16  Bruno Haible  <bruno@clisp.org>
37113
37114         Fix test failures on Solaris 10.
37115         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37116         tests when Solaris iconv() is used.
37117         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37118         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37119         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37120         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37121         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37122
37123 2009-08-16  Bruno Haible  <bruno@clisp.org>
37124
37125         Fix test failures on Solaris 10.
37126         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37127         'tr' program and pass it as first argument.
37128         * tests/test-pipe-filter-gi1.sh: Likewise.
37129         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37130         program as first argument.
37131         * tests/test-pipe-filter-gi1.c (main): Likewise.
37132
37133 2009-08-16  Eric Blake  <ebb9@byu.net>
37134
37135         fpurge: fix previous commits
37136         * modules/fpurge (Makefile.am): Make replacement conditional,
37137         partially reverting 2007-04-29 change; missed in previous
37138         attempt.
37139         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37140         is missing.
37141
37142 2009-08-16  Bruno Haible  <bruno@clisp.org>
37143
37144         Clarify fpurge's effect on the file position.
37145         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37146         * tests/test-fpurge.c (main): Make a second pass for checking the file
37147         position.
37148
37149 2009-08-16  Bruno Haible  <bruno@clisp.org>
37150
37151         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37152         declaration of fpurge is missing.
37153         * tests/test-fpurge.c (main): Check that the file has not more contents
37154         than expected. Close the file before removing it.
37155
37156 2009-08-15  Eric Blake  <ebb9@byu.net>
37157
37158         fpurge: don't wrap working cygwin implementation
37159         * lib/fpurge.c (fpurge): Fix comment typo.
37160         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37161         1.7 to avoid replacement.
37162         * tests/test-fpurge.c (main): Enhance test.
37163
37164 2009-08-15  Eric Blake  <ebb9@byu.net>
37165         and Jim Meyering  <meyering@redhat.com>
37166
37167         test-update-copyright: skip if perl is insufficient
37168         * tests/test-update-copyright.sh: Failure to run maintainer tool
37169         should not cause testsuite failure on cygwin 1.5.
37170
37171 2009-08-14  Eric Blake  <ebb9@byu.net>
37172
37173         doc: mention more functions added in cygwin 1.7.0
37174         * doc/posix-headers/limits.texi (limits.h): Update for recent
37175         cygwin additions.
37176         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37177         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37178         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37179         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37180         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37181
37182 2009-08-14  Eric Blake  <ebb9@byu.net>
37183
37184         maint.mk: simplify update-copyright rule
37185         * top/maint.mk (update-copyright-local): Delete, and document how
37186         to do it in cfg.mk instead.
37187         (update-copyright-exclude-regexp): Delete, and document how to do
37188         it in .x-update-copyright instead.
37189         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37190         exclude ChangeLog.
37191
37192 2009-08-14  Bruno Haible  <bruno@clisp.org>
37193
37194         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37195
37196 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37197
37198         maint.mk: support update-copyright-env
37199         * top/maint.mk (update-copyright-env): Define place-holder.
37200         (update-copyright): Expand $(update-copyright-env) before
37201         invoking update-copyright.
37202
37203 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37204
37205         update-copyright: implement forced reformatting
37206         * build-aux/update-copyright: Implement and document
37207         UPDATE_COPYRIGHT_FORCE.
37208         * tests/test-update-copyright.sh: Test it.
37209
37210 2009-08-14  Eric Blake  <ebb9@byu.net>
37211         and Bruno Haible  <bruno@clisp.org>
37212
37213         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37214         * tests/test-locale.c: Revert previous patch related to NULL.
37215         * tests/test-stdio.c: Likewise.
37216         * tests/test-stdlib.c: Likewise.
37217         * tests/test-string.c: Likewise.
37218         * tests/test-unistd.c: Likewise.
37219         * modules/time-tests (Depends-on): Add verify.
37220         * modules/wchar-tests (Depends-on): Likewise.
37221         * tests/test-time.c: Test for NULL compliance.
37222         * tests/test-wchar.c: Likewise.
37223         * modules/locale (Depends-on): Add stddef.
37224         * modules/stdio (Depends-on): Likewise.
37225         * modules/stdlib (Depends-on): Likewise.
37226         * modules/string (Depends-on): Likewise.
37227         * modules/time (Depends-on): Likewise.
37228         * modules/unistd (Depends-on): Likewise.
37229         * modules/wchar (Depends-on): Likewise.
37230         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37231         * lib/stdlib.in.h (includes): Likewise.
37232         * lib/string.in.h (includes): Likewise.
37233         * lib/time.in.h (includes): Likewise.
37234         * lib/unistd.in.h (includes): Likewise.
37235         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37236         replaced.
37237         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37238         * m4/stddef_h.m4: New file.
37239         * modules/stddef: Likewise.
37240         * lib/stddef.in.h: Likewise.
37241         * modules/stddef-tests: Likewise.
37242         * tests/test-stddef.c: Likewise.
37243         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37244         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37245         * doc/posix-headers/locale.texi (locale.h): Likewise.
37246         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37247         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37248         * doc/posix-headers/string.texi (string.h): Likewise.
37249         * doc/posix-headers/time.texi (time.h): Likewise.
37250         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37251         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37252
37253 2009-08-14  Eric Blake  <ebb9@byu.net>
37254
37255         doc: improve git diff of texinfo files
37256         * .gitattributes: Add rule for *.texi files, with hint on how to
37257         use it.
37258         Copied from m4, and based on a report by Bruno Haible.
37259
37260 2009-08-14  Bruno Haible  <bruno@clisp.org>
37261
37262         Disable multithread support by default on Cygwin 1.5.x for real.
37263         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37264
37265 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37266
37267         update-copyright: much ado about intervals
37268         * build-aux/update-copyright: Implement and document
37269         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37270         of copyright year intervals.
37271         Also, document UPDATE_COPYRIGHT_YEAR.
37272         * tests/test-update-copyright.sh: Test it.
37273
37274         update-copyright: convert 2-digit to 4-digit years
37275         * build-aux/update-copyright: Implement and document.
37276         * tests/test-update-copyright.sh: Update.
37277
37278 2009-08-14  Jim Meyering  <meyering@redhat.com>
37279
37280         test-exclude: avoid coreutils "make check" failure
37281         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37282         just as in test-argmatch.c.
37283
37284 2009-08-13  Eric Blake  <ebb9@byu.net>
37285
37286         test-dup2: fix bad assumption
37287         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37288         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37289
37290         test-version-etc: fix CRLF portability issue
37291         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37292         recognize \r.
37293         * tests/test-argp-version-etc-1.sh: Likewise.
37294
37295         getopt: update client modules
37296         * modules/argp (Depends-on): Use getopt-gnu.
37297         * modules/git-merge-changelog (Depends-on): Likewise.
37298         * modules/long-options (Depends-on): Likewise.
37299         * modules/xstrtol (Depends-on): Likewise.
37300
37301 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37302
37303         * tests/test-version-etc.sh: Don't fail on different
37304         project/version.  Don't fail on CRLF differences.  Rewrite to use
37305         multiple -e instead of multiple sed forks, suggested by Eric Blake
37306         <ebb9@byu.net>.
37307         * tests/test-argp-version-etc-1.sh: Likewise.
37308
37309 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37310
37311         * tests/test-version-etc.sh: Don't fail on different
37312         project/version.
37313
37314 2009-08-12  Bruno Haible  <bruno@clisp.org>
37315
37316         Tests for modules 'getopt-posix', 'getopt-gnu'.
37317         * modules/getopt-posix-tests: New file.
37318         * tests/test-getopt.c: New file.
37319         * tests/test-getopt.h: New file.
37320         * tests/test-getopt_long.h: New file.
37321
37322         New modules 'getopt-posix', 'getopt-gnu'.
37323         * modules/getopt-gnu: New file, renamed from modules/getopt.
37324         * modules/getopt-posix: New file.
37325         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37326         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37327         (gl_GETOPT): Remove macro.
37328         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37329         Disable the test against BSD systems that declare optreset. Test
37330         against mingw bug. Test against lack of support of optional arguments
37331         on many platforms.
37332         * doc/glibc-headers/getopt.texi: Update module name and list of
37333         relevant platforms.
37334         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37335         'getopt-gnu' and more portability problems.
37336         * NEWS: Mention the changes.
37337
37338 2009-08-12  Bruno Haible  <bruno@clisp.org>
37339
37340         Ensure that optarg etc. get declared by <unistd.h>.
37341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37342         AC_USE_SYSTEM_EXTENSIONS.
37343         * modules/getopt (Depends-on): Add 'extensions'.
37344
37345 2009-08-12  Bruno Haible  <bruno@clisp.org>
37346
37347         Avoid test link errors.
37348         * modules/pipe-filter-ii-tests (Makefile.am): Define
37349         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37350         * modules/pipe-filter-gi-tests (Makefile.am): Define
37351         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37353
37354 2009-08-12  Bruno Haible  <bruno@clisp.org>
37355
37356         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37357         gl_GETOPT_SUBSTITUTE before.
37358         (gl_GETOPT): Use it.
37359         * m4/argp.m4 (gl_ARGP): Update.
37360         Reported by Sergey Poznyakoff.
37361
37362         * m4/getopt.m4: Reorder macros.
37363         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37364         (gl_GETOPT_SUBSTITUTE): Remove macro.
37365
37366 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37367
37368         Minor improvement in gitlog-to-changelog
37369
37370         * build-aux/gitlog-to-changelog: New option `--format' makes
37371         output format string configurable.
37372
37373 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37374
37375         Optimize exclude: use hash tables for non-wildcard patterns.
37376
37377         * lib/exclude.c: Include hash.h and mbuiter.h
37378         (struct exclude_pattern, exclude_segment): New data types.
37379         (struct exclude): Rewrite.
37380         (fnmatch_pattern_has_wildcards): New function.
37381         (new_exclude_segment, free_exclude_segment): New functions.
37382         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37383         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37384         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37385         * modules/exclude: Depend on hash and mbuiter.
37386
37387         * modules/exclude-tests: New file.
37388         * tests/test-exclude.c: New file.
37389         * tests/test-exclude1.sh: New file.
37390         * tests/test-exclude2.sh: New file.
37391         * tests/test-exclude3.sh: New file.
37392         * tests/test-exclude4.sh: New file.
37393         * tests/test-exclude5.sh: New file.
37394         * tests/test-exclude6.sh: New file.
37395         * tests/test-exclude7.sh: New file.
37396
37397 2009-08-12  Bruno Haible  <bruno@clisp.org>
37398
37399         Ensure that getopt() gets declared by <unistd.h>.
37400         * lib/unistd.in.h: Conditionally include getopt.h.
37401         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37402         Set GNULIB_UNISTD_H_GETOPT.
37403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37404         GNULIB_UNISTD_H_GETOPT.
37405         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37406
37407 2009-08-12  Bruno Haible  <bruno@clisp.org>
37408
37409         Clarify logic.
37410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37411         gl_replace_getopt instead of GETOPT_H.
37412
37413 2009-08-12  Bruno Haible  <bruno@clisp.org>
37414
37415         * m4/getopt.m4: Add comments.
37416
37417 2009-08-12  Bruno Haible  <bruno@clisp.org>
37418
37419         Disable multithread support by default on Cygwin 1.5.x.
37420         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37421         set gl_use_threads=no if not specified otherwise.
37422
37423 2009-08-11  Bruno Haible  <bruno@clisp.org>
37424
37425         Avoid compilation error on NetBSD 5.0.
37426         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37427         * tests/test-stdio.c: Likewise.
37428         * tests/test-stdlib.c: Likewise.
37429         * tests/test-string.c: Likewise.
37430         * tests/test-unistd.c: Likewise.
37431         Reported by Greg Troxel <gdt@ir.bbn.com>
37432         at <https://savannah.gnu.org/support/?106973>.
37433
37434 2009-08-11  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/dup2-tests (Depends-on): Remove close.
37437
37438         Undo 2009-07-19 commit.
37439         * modules/acl-tests (Depends-on): Remove close.
37440         * modules/binary-io-tests (Depends-on): Likewise.
37441         * modules/closein-tests (Depends-on): Likewise.
37442         * modules/flock-tests (Depends-on): Likewise.
37443         * modules/fsync-tests (Depends-on): Likewise.
37444         * modules/lseek-tests (Depends-on): Likewise.
37445         * modules/pipe-tests (Depends-on): Likewise.
37446         * modules/posix_spawn-tests (Depends-on): Likewise.
37447         * modules/posix_spawnp-tests (Depends-on): Likewise.
37448         * modules/stat-time-tests (Depends-on): Likewise.
37449         * modules/yesno-tests (Depends-on): Likewise.
37450
37451 2009-08-10  Bruno Haible  <bruno@clisp.org>
37452
37453         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37454
37455 2009-08-10  Bruno Haible  <bruno@clisp.org>
37456
37457         Fix a gcc warning.
37458         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37459
37460 2009-08-10  Bruno Haible  <bruno@clisp.org>
37461
37462         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37463         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37464         not only the first time.
37465         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37466         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37467         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37468         is 1, not only the the first time.
37469
37470 2009-08-10  Bruno Haible  <bruno@clisp.org>
37471
37472         Make it possible to use module 'gethostname' without module 'close'.
37473         * lib/unistd.in.h (close): Evoke a link error only if
37474         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37476         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37477         * modules/unistd (Makefile.am): Substitute
37478         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37479         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37480         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37481         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37482         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37483         * modules/sys_ioctl (Makefile.am): Substitute
37484         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37485         * modules/socket (configure.ac): On native Windows, set
37486         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37487         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37488         Reported by Sam Steingold <sds@gnu.org>.
37489
37490 2009-08-10  Bruno Haible  <bruno@clisp.org>
37491
37492         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37493         * modules/ioctl (configure.ac): Likewise.
37494
37495 2009-08-10  Bruno Haible  <bruno@clisp.org>
37496
37497         Avoid collision between gnulib wrapper and libintl wrapper.
37498         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37499         already defined in intl/printf.c.
37500         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37501         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37502
37503 2009-08-09  Bruno Haible  <bruno@clisp.org>
37504
37505         Make <sys/select.h> really self-contained, also on Solaris 10.
37506         * lib/sys_select.in.h: Include <string.h>.
37507         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37508         Solaris 10 problem.
37509         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37510         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37511         Reported by Jim Meyering.
37512
37513 2009-08-09  Bruno Haible  <bruno@clisp.org>
37514
37515         Avoid warnings from 'aclocal' that are due to a use of macro name
37516         AM_XGETTEXT_OPTION that is not defined in automake.
37517         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37518         automake.
37519         * modules/error (configure.ac): Likewise.
37520         * modules/propername (configure.ac): Likewise.
37521         * modules/vasprintf (configure.ac): Likewise.
37522         * modules/verror (configure.ac): Likewise.
37523         * modules/xprintf (configure.ac): Likewise.
37524         * modules/xvasprintf (configure.ac): Likewise.
37525
37526 2009-08-08  Bruno Haible  <bruno@clisp.org>
37527
37528         Avoid compilation error in C++ mode.
37529         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37530         Reported by Sam Steingold <sds@gnu.org>.
37531
37532 2009-08-08  Bruno Haible  <bruno@clisp.org>
37533
37534         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37535         for the various Unix platforms.
37536         * doc/posix-headers/limits.texi: Update platforms list regarding
37537         HOST_NAME_MAX.
37538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37539
37540 2009-08-07  Jim Meyering  <meyering@redhat.com>
37541
37542         selinux-at: fix typo in a comment
37543         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37544         Spotted by Paolo Bonzini.
37545
37546         selinux-at: remove redundant m4 code, add documentation
37547         * modules/selinux-at (configure.ac): Remove redundant code.
37548         LIB_SELINUX is already set via the dependent module, selinux-h.
37549         (Include): Add quotes around selinux-at.h.
37550         * lib/selinux-at.h: Add documentation.
37551         Reported by Bruno Haible in
37552         http://marc.info/?l=gnulib-bug&m=124958988300749
37553
37554 2009-08-07  Bruno Haible  <bruno@clisp.org>
37555
37556         Avoid link error on MacOS X 10.3 and 10.4.
37557         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37558         on non-ELF systems.
37559         * lib/argp-pv.c (argp_program_version): Likewise.
37560         Reported by Simon Josefsson.
37561
37562 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37563
37564         * tests/test-version-etc.sh: Use $EXEEXT.
37565
37566 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37567
37568         update-copyright: update documentation to point to maint.mk
37569         * build-aux/update-copyright: Here.
37570
37571 2009-08-06  Jim Meyering  <meyering@redhat.com>
37572
37573         maint.mk: support update-copyright-local
37574         * top/maint.mk (update-copyright-local): Define place-holder.
37575         (update-copyright): Depend on $(update-copyright-local).
37576
37577 2009-08-06  Jim Meyering  <meyering@redhat.com>
37578
37579         selinux-at: new module
37580         Initially written for coreutils, this module will soon be
37581         used by findutils, too.
37582         * MODULES.html.sh [Misc]: Add selinux-at.
37583         * lib/selinux-at.h: New file, from coreutils.
37584         * lib/selinux-at.c: Likewise.
37585         * modules/selinux-at: Likewise.
37586         (License): Change from LGPL to GPL, since it depends
37587         on the GPL'd openat module.
37588
37589         doc: update README
37590         * README: Remove references to cogito.
37591         Remove cvs-repo-updating instructions from 2007.
37592         Don't imply that CVS is better if you have limited disk space.
37593
37594 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37595
37596         update-copyright: support C-style comments
37597         * build-aux/update-copyright: Implement and document.
37598         * tests/test-update-copyright.sh: Test.
37599
37600 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37601
37602         update-copyright: support omitted "(C)"
37603         * build-aux/update-copyright: Implement and document.  Also,
37604         allow variable whitespace before "(C)".
37605         * tests/test-update-copyright.sh: Test.
37606
37607 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37608
37609         update-copyright: don't trip on non-FSF copyright statements
37610         * build-aux/update-copyright: Fix so that the first correctly
37611         formatted FSF copyright statement is recognized no matter what
37612         appears before it.  Update documentation.
37613         * tests/test-update-copyright.sh: Test that.
37614
37615 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37616
37617         update-copyright: clean up code a little
37618         * build-aux/update-copyright: Append "_re" to the name of any
37619         variable holding a regular expression.
37620         Replace "old" and "new" with "stmt" in variable names.
37621         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37622         handled correctly.
37623         Format code more consistently.
37624
37625 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37626
37627         update-copyright-tests: improve portability
37628         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37629         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37630
37631 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37632
37633         update-copyright: support @copyright{} and &copy;
37634         * build-aux/update-copyright: Implement and document.
37635         * tests/test-update-copyright.sh: Test.
37636
37637 2009-08-04  Jim Meyering  <meyering@redhat.com>
37638
37639         update-copyright-tests: correctly test EOL=\r\n handling
37640         * tests/test-update-copyright.sh: Put \r at the end of some lines
37641         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37642
37643         maint.mk: make update-copyright exclusion list more configurable
37644         * top/maint.mk (update-copyright): Default to excluding COPYING,
37645         but allow an override, in case someone does want to update that file.
37646
37647         maint.mk: don't update copyright date in COPYING
37648         * top/maint.mk (update-copyright): Exclude COPYING.
37649
37650         maint.mk: add a copyright-updating rule
37651         * top/maint.mk (update-copyright): New rule.
37652         Derived from coreutils/Makefile.am.
37653
37654         update-copyright: rename some variables
37655         * build-aux/update-copyright: Rename a few variables for clarity.
37656         Tweak syntax.  List Joel E. Denny as coauthor.
37657
37658 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37659
37660         update-copyright: fix bug for 2-digit last year and add tests
37661         * build-aux/update-copyright: Fix bug.
37662         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37663         specified.
37664         * modules/update-copyright-tests: New
37665         * tests/test-update-copyright.sh: New.
37666
37667 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37668
37669         update-copyright: handle leading tabs in line prefix
37670         * build-aux/update-copyright: Count leading tabs as 8 spaces
37671         when computing margin.  This helps with the formatting of
37672         ChangeLogs, for example.
37673         Fix documentation a little.
37674
37675 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37676
37677         update-copyright: support EOL=\r\n
37678         * build-aux/update-copyright: Implement that.
37679
37680 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37681
37682         update-copyright: automatically format copyright statements
37683         * build-aux/update-copyright: Implement that.
37684         Also, be a little more predictable and safer by always failing
37685         when the full copyright format is not perfectly recognized as an
37686         unbroken whole.  Discussed at
37687         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37688         Rewrite documentation.
37689
37690 2009-08-03  Bruno Haible  <bruno@clisp.org>
37691
37692         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37693
37694 2009-08-02  Bruno Haible  <bruno@clisp.org>
37695
37696         Tests for module 'uname'.
37697         * modules/uname-tests: New file.
37698         * tests/test-uname.c: New file.
37699
37700         New module 'uname'.
37701         * lib/uname.c: New file.
37702         * m4/uname.m4: New file.
37703         * modules/uname: New file.
37704         * doc/posix-functions/uname.texi: Mention the new module.
37705
37706 2009-08-02  Bruno Haible  <bruno@clisp.org>
37707
37708         Tests for module 'sys_utsname'.
37709         * modules/sys_utsname-tests: New file.
37710         * tests/test-sys_utsname.c: New file.
37711
37712         New module 'sys_utsname'.
37713         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37714         * m4/sys_utsname_h.m4: New file.
37715         * modules/sys_utsname: New file.
37716         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37717
37718 2009-08-02  Bruno Haible  <bruno@clisp.org>
37719
37720         Implicitly initialize the sockets library.
37721         * lib/gethostname.c: Include sockets.h.
37722         (rpl_gethostname): Invoke gl_sockets_startup.
37723         * lib/socket.c: Include sockets.h.
37724         (rpl_socket): Invoke gl_sockets_startup.
37725         * modules/gethostname (Depends-on): Add sockets.
37726         * modules/socket (Depends-on): Likewise.
37727         * tests/test-poll.c: Don't include sockets.h.
37728         (main): Don't invoke gl_sockets_startup.
37729         * tests/test-select.c: Don't include sockets.h.
37730         (main): Don't invoke gl_sockets_startup.
37731
37732 2009-08-02  Bruno Haible  <bruno@clisp.org>
37733
37734         Allow multiple calls to gl_sockets_startup.
37735         * lib/sockets.c (initialized_sockets_version): New variable.
37736         (gl_sockets_startup): Do nothing if already called for this or a higher
37737         version.
37738         (gl_sockets_cleanup): Reset initialized_sockets_version.
37739
37740 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37741
37742         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37743         different project/version.
37744
37745 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37746             Bruno Haible  <bruno@clisp.org>
37747
37748         Tests for module 'pipe-filter-gi'.
37749         * modules/pipe-filter-gi-tests: New file.
37750         * tests/test-pipe-filter-gi1.sh: New file.
37751         * tests/test-pipe-filter-gi1.c: New file.
37752         * tests/test-pipe-filter-gi2.sh: New file.
37753         * tests/test-pipe-filter-gi2-main.c: New file.
37754         * tests/test-pipe-filter-gi2-child.c: New file.
37755
37756         New module 'pipe-filter-gi'.
37757         * lib/pipe-filter-gi.c: New file.
37758         * modules/pipe-filter-gi: New file.
37759
37760 2009-08-02  Bruno Haible  <bruno@clisp.org>
37761             Paolo Bonzini  <bonzini@gnu.org>
37762
37763         Tests for module 'pipe-filter-ii'.
37764         * modules/pipe-filter-ii-tests: New file.
37765         * tests/test-pipe-filter-ii1.sh: New file.
37766         * tests/test-pipe-filter-ii1.c: New file.
37767         * tests/test-pipe-filter-ii2.sh: New file.
37768         * tests/test-pipe-filter-ii2-main.c: New file.
37769         * tests/test-pipe-filter-ii2-child.c: New file.
37770
37771         New module 'pipe-filter-ii'.
37772         * lib/pipe-filter.h: New file.
37773         * lib/pipe-filter-ii.c: New file.
37774         * lib/pipe-filter-aux.h: New file.
37775         * modules/pipe-filter-ii: New file.
37776
37777 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37778
37779         * lib/gc-libgcrypt.c: Change copyright to FSF.
37780         * lib/gc-gnulib.c: Likewise.
37781
37782 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37783
37784         * lib/gethostname.c: Include limits.h.
37785
37786 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37787             Bruno Haible  <bruno@clisp.org>
37788
37789         Ensure HOST_NAME_MAX as part of the gethostname module.
37790         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37791         define also HOST_NAME_MAX.
37792         * tests/test-gethostname.c: Include <limits.h>.
37793         (main): Check also HOST_NAME_MAX.
37794         * doc/posix-headers/limits.texi: Document the mingw problem.
37795
37796 2009-08-02  Bruno Haible  <bruno@clisp.org>
37797
37798         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37799         Add comments.
37800
37801 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37802
37803         * lib/gethostname.c: Add Windows wrapper.
37804         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37805         * modules/gethostname: Depend on sys_socket & errno, for also
37806         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37807         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37808
37809 2009-07-31  Jim Meyering  <meyering@redhat.com>
37810
37811         getloadavg: fix symbol name in comment
37812         * lib/getloadavg.c: Correct a typo I introduced when adding
37813         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37814         Matt Kraai spotted the problem.
37815
37816 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37817
37818         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37819         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37820         code also if ! defined N_NAME_POINTER.
37821         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37822         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37823         but the n_name member is a 12-byte array.
37824
37825 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37826
37827         update-copyright: generalize comment handling
37828         * build-aux/update-copyright: Handle copyright statements
37829         within more comment styles.
37830         Document usage.
37831         Report any file with an external copyright holder or parse failure.
37832
37833 2009-07-29  Jim Meyering  <meyering@redhat.com>
37834
37835         mktime: correct setting of REPLACE_MKTIME
37836         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37837
37838         update-copyright: new module
37839         * modules/update-copyright: New file.
37840         * build-aux/update-copyright: New file.
37841         * MODULES.html.sh (maint+release support): Add update-copyright.
37842
37843 2009-07-27  Bruno Haible  <bruno@clisp.org>
37844
37845         Fix compilation error when <ctime> is used and mktime is replaced.
37846         * lib/time.in.h (mktime): New declaration.
37847         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37848         REPLACE_MKTIME instead of defining mktime in config.h.
37849         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37850         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37851         Reported by Ross McFarland <rwmcfa1@neces.com>.
37852
37853 2009-07-27  Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37856         Reported by Matt Kraai <mkraai@beckman.com>.
37857
37858 2009-07-25  Jim Meyering  <meyering@redhat.com>
37859
37860         maint.mk: avoid warnings about missing files
37861         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37862         diagnostic when .prev-version does not exist.
37863         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37864         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37865         nonexistent cfg.mk.
37866         Suggestions from Simon Josefsson.
37867
37868 2009-07-25  Bruno Haible  <bruno@clisp.org>
37869
37870         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37871         defined as macros. Needed on QNX 6.4.1.
37872         Reported by Matt Kraai <mkraai@beckman.com>.
37873
37874 2009-07-23  Jim Meyering  <meyering@redhat.com>
37875
37876         maint.mk: invoke "make dist" with a working value of XZ_OPT
37877         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37878
37879 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37880
37881         Make fseeko.c compile on QNX.
37882         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37883
37884 2009-07-22  Peter Simons  <simons@cryp.to>
37885
37886         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37887         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37888         * lib/md4.h: Likewise.
37889         * lib/md5.h: Likewise.
37890         * lib/sha1.h: Likewise.
37891         * lib/sha256.h: Likewise.
37892         * lib/sha512.h: Likewise.
37893
37894         tests-sha1: don't assign literal string to 'char *' variable
37895         * tests/test-sha1.c (main): Declare locals with "const" to match
37896         attributes of the right hand side.
37897
37898 2009-07-21  Eric Blake  <ebb9@byu.net>
37899
37900         dup2: fix more mingw problems
37901         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37902         fd to itself.
37903         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37904         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37905         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37906         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37907         care of mingw bugs.
37908
37909 2009-07-21  Jim Meyering  <meyering@redhat.com>
37910
37911         vc-list-files: avoid failure when /bin/sh is dash
37912         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37913         On some Debian based systems, /bin/sh is a symlink to dash, and running
37914         this command would omit the "/" following each 'tests' prefix:
37915           dash -x build-aux/vc-list-files -C . tests
37916         That is because bash and dash work differently:
37917           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37918           bash ok
37919           dash odd
37920
37921 2009-07-21  Eric Blake  <ebb9@byu.net>
37922
37923         dup2-tests: test previous patch
37924         * modules/dup2-tests: New file.
37925         * tests/test-dup2.c: Likewise.
37926         * tests/test-open.c (main): Avoid unspecified behavior.
37927         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37928         test.
37929
37930         dup2: work around mingw and cygwin 1.5 bug
37931         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37933         * modules/unistd (Makefile.am): Substitute it.
37934         * lib/unistd.in.h (dup2): Declare the replacement.
37935         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37936         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37937         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37938         * modules/execute (Depends-on): Add dup2.
37939         * modules/fseterr (Depends-on): Likewise.
37940         * modules/pipe (Depends-on): Likewise.
37941         * modules/posix_spawn-internal (Depends-on): Likewise.
37942
37943 2009-07-21  Bruno Haible  <bruno@clisp.org>
37944
37945         * modules/.gitattributes: New file.
37946
37947 2009-07-20  Bruno Haible  <bruno@clisp.org>
37948
37949         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37950         (main): Use it.
37951
37952 2009-07-20  Eric Blake  <ebb9@byu.net>
37953
37954         test-pipe: make a bit more robust.
37955         * tests/test-pipe.c (myerr): Allow error messages regardless of
37956         what we do to stderr.
37957         (test_pipe): Rearrange to avoid deadlock.
37958         (child_main): Try a larger read, to ensure we avoided deadlock.
37959         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37960         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37961         if misused.
37962
37963 2009-07-19  Jim Meyering  <meyering@redhat.com>
37964
37965         fts: avoid false-positive cycle-detection
37966         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37967         for each new command line argument.
37968
37969 2009-07-19  Bruno Haible  <bruno@clisp.org>
37970
37971         Fix build error on mingw with the modules sys_select and unistd.
37972         * modules/acl-tests (Depends-on): Add close.
37973         * modules/binary-io-tests (Depends-on): Likewise.
37974         * modules/closein-tests (Depends-on): Likewise.
37975         * modules/flock-tests (Depends-on): Likewise.
37976         * modules/fsync-tests (Depends-on): Likewise.
37977         * modules/lseek-tests (Depends-on): Likewise.
37978         * modules/pipe-tests (Depends-on): Likewise.
37979         * modules/posix_spawn-tests (Depends-on): Likewise.
37980         * modules/posix_spawnp-tests (Depends-on): Likewise.
37981         * modules/stat-time-tests (Depends-on): Likewise.
37982         * modules/yesno-tests (Depends-on): Likewise.
37983
37984 2009-07-19  Bruno Haible  <bruno@clisp.org>
37985
37986         Unify conditionals.
37987         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37988         macros, not at the compiler macros.
37989         * lib/pipe.c: Likewise.
37990         * lib/execute.c: Likewise.
37991         * lib/spawni.c: Likewise.
37992
37993 2009-07-19  Bruno Haible  <bruno@clisp.org>
37994
37995         Fix handling of closed stdin/stdout/stderr on mingw.
37996         * lib/w32spawn.h: Include unistd.h.
37997         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37998         file descriptor with O_NOINHERIT flag.
37999         (fd_safer_noinherit): New function, based on fd-safer.c.
38000         (dup_safer_noinherit): New function, based on dup-safer.c.
38001         (undup_safer_noinherit): New function.
38002         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38003         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38004         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38005         instead of fd_safer.
38006         * tests/test-pipe.c: Include <windows.h>.
38007         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38008         result.
38009
38010         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38011         from main.
38012         (test_pipe): Pass an extra argument for disambiguation.
38013         (main): Invoke parent_main or child_main.
38014
38015         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38016         consistently.
38017
38018 2009-07-18  Eric Blake  <ebb9@byu.net>
38019
38020         test-pipe: fix mingw build
38021         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38022
38023 2009-07-18  Bruno Haible  <bruno@clisp.org>
38024
38025         * modules/pipe-tests (Makefile.am): Fix typo.
38026
38027 2009-07-18  Eric Blake  <ebb9@byu.net>
38028
38029         error: fix mingw build
38030         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38031         Reported by Bruno Haible.
38032
38033         error: avoid undefined use of stdout
38034         * lib/error.c (error, error_at_line): Check that fd 1 is open
38035         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38036         is handling faults and the close_stdout module wants to report the
38037         detection of closed stdout as an error.
38038
38039 2009-07-17  Eric Blake  <ebb9@byu.net>
38040
38041         pipe: be robust in face of closed fds
38042         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38043         should cause child to misbehave.
38044         * modules/pipe-tests: New module.
38045         * tests/test-pipe.c: New file.
38046         * tests/test-pipe.sh: New file.
38047         Reported by Akim Demaille.
38048
38049 2009-07-14  Bruno Haible  <bruno@clisp.org>
38050
38051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38052         Reported by anonymous kc.
38053
38054 2009-07-07  Jim Meyering  <meyering@redhat.com>
38055
38056         maint.mk: don't look for translatable strings in *.m4 or *.mk
38057         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38058         when searching for translatable strings.
38059
38060 2009-07-05  Jim Meyering  <meyering@redhat.com>
38061
38062         remove superfluous parentheses in STREQ definition
38063         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38064         * lib/getugroups.c (STREQ): Likewise.
38065         * lib/fnmatch.c (STREQ): Likewise.
38066         Spotted by Bruno Haible.
38067
38068 2009-07-04  Jim Meyering  <meyering@redhat.com>
38069
38070         argv-iter: new module
38071         * MODULES.html.sh: Add argv-iter.
38072         * lib/argv-iter.c, lib/argv-iter.h: New files.
38073         * modules/argv-iter: New file.
38074         * modules/argv-iter-tests: New file.
38075         * tests/test-argv-iter.c: Test it.
38076
38077 2009-07-04  Bruno Haible  <bruno@clisp.org>
38078
38079         Fix assertion.
38080         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38081         contains more exact copies of a given entry than file2, leave the extra
38082         copies unpaired rather than aborting.
38083         Reported by Eric Blake.
38084
38085 2009-07-02  Bruno Haible  <bruno@clisp.org>
38086
38087         Speedup git-merge-changelog for git cherry-pick.
38088         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38089         (entries_mapping_get): New function, extracted from compute_mapping.
38090         (entries_mapping_reverse_get): New function.
38091         (compute_mapping): Add a 'full' argument. Return the result in a
38092         'struct entries_mapping'.
38093         (main): Update. Access the mappings through entries_mapping_get.
38094         Reported by Eric Blake.
38095
38096 2009-07-02  Bruno Haible  <bruno@clisp.org>
38097
38098         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38099         best_i.
38100
38101 2009-07-02  Bruno Haible  <bruno@clisp.org>
38102
38103         Speed up approximate search for matching ChangeLog entries.
38104         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38105         argument. Call fstrcmp_bounded instead of fstrcmp.
38106         (compute_mapping, try_split_merged_entry, main): Update callers.
38107
38108 2009-07-02  Bruno Haible  <bruno@clisp.org>
38109
38110         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38111
38112 2009-06-30  Bruno Haible  <bruno@clisp.org>
38113
38114         Reduce the number of uc_is_cased calls.
38115         * lib/unicase.h (casing_suffix_context_t): Add
38116         'first_char_except_ignorable' field.
38117         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38118         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38119         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38120         Update initializer.
38121         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38122         case-ignorable characters.
38123         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38124         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38125         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38126         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38127         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38128
38129 2009-06-30  Bruno Haible  <bruno@clisp.org>
38130
38131         Tests for module 'unicase/ignorable'.
38132         * modules/unicase/ignorable-tests: New file.
38133         * tests/unicase/test-ignorable.c: New file, generated by
38134         gen-uni-tables.
38135
38136         Tests for module 'unicase/cased'.
38137         * modules/unicase/cased-tests: New file.
38138         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38139         * tests/unicase/test-predicate-part1.h: New file, derived from
38140         tests/unictype/test-predicate-part1.h.
38141         * tests/unicase/test-predicate-part2.h: New file, same as
38142         tests/unictype/test-predicate-part2.h.
38143
38144         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38145         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38146         (output_casing_properties): New function.
38147         (main): Call it.
38148         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38149         * lib/unicase/cased.c: Include unictype/bitmap.h.
38150         (uc_is_cased): Define through a bitmap lookup.
38151         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38152         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38153         (uc_is_case_ignorable): Define through a bitmap lookup.
38154         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38155         lib/unictype/bitmap.h.
38156         (Depends-on): Add inline. Clean up.
38157         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38158         lib/unictype/bitmap.h.
38159         (Depends-on): Add inline. Clean up.
38160         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38161         recognition.
38162         * tests/unicase/test-u16-tolower.c (main): Likewise.
38163         * tests/unicase/test-u32-tolower.c (main): Likewise.
38164
38165 2009-06-30  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38168         * lib/unicase/u16-casemap.c: Likewise.
38169         * lib/unicase/u32-casemap.c: Likewise.
38170
38171 2009-06-29  Bruno Haible  <bruno@clisp.org>
38172
38173         Define u32_casefold as a wrapper around u32_ct_casefold.
38174         * lib/unicase/u32-casefold.c: Update.
38175         * modules/unicase/u32-casefold (Depends-on): Add
38176         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38177         unicase/empty-suffix-context. Clean up.
38178
38179         Define u16_casefold as a wrapper around u16_ct_casefold.
38180         * lib/unicase/u16-casefold.c: Update.
38181         * modules/unicase/u16-casefold (Depends-on): Add
38182         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38183         unicase/empty-suffix-context. Clean up.
38184
38185         Define u8_casefold as a wrapper around u8_ct_casefold.
38186         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38187         * lib/unicase/u8-casefold.c: Update.
38188         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38189         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38190
38191         Define u32_totitle as a wrapper around u32_ct_totitle.
38192         * lib/unicase/u32-totitle.c: Update.
38193         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38194         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38195
38196         Define u16_totitle as a wrapper around u16_ct_totitle.
38197         * lib/unicase/u16-totitle.c: Update.
38198         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38199         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38200
38201         Define u8_totitle as a wrapper around u8_ct_totitle.
38202         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38203         functions.
38204         (FUNC): Delegate to U_CT_TOTITLE.
38205         * lib/unicase/u8-totitle.c: Update.
38206         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38207         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38208
38209         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38210         invocation.
38211         * modules/unicase/u32-tolower (Depends-on): Add
38212         unicase/empty-prefix-context, unicase/empty-suffix-context.
38213
38214         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38215         invocation.
38216         * modules/unicase/u16-tolower (Depends-on): Add
38217         unicase/empty-prefix-context, unicase/empty-suffix-context.
38218
38219         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38220         * modules/unicase/u8-tolower (Depends-on): Add
38221         unicase/empty-prefix-context, unicase/empty-suffix-context.
38222
38223         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38224         invocation.
38225         * modules/unicase/u32-toupper (Depends-on): Add
38226         unicase/empty-prefix-context, unicase/empty-suffix-context.
38227
38228         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38229         invocation.
38230         * modules/unicase/u16-toupper (Depends-on): Add
38231         unicase/empty-prefix-context, unicase/empty-suffix-context.
38232
38233         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38234         * modules/unicase/u8-toupper (Depends-on): Add
38235         unicase/empty-prefix-context, unicase/empty-suffix-context.
38236
38237         New module 'unicase/u32-ct-casefold'.
38238         * lib/unicase/u32-ct-casefold.c: New file.
38239         * modules/unicase/u32-ct-casefold: New file.
38240
38241         New module 'unicase/u16-ct-casefold'.
38242         * lib/unicase/u16-ct-casefold.c: New file.
38243         * modules/unicase/u16-ct-casefold: New file.
38244
38245         New module 'unicase/u8-ct-casefold'.
38246         * lib/unicase/u8-ct-casefold.c: New file.
38247         * lib/unicase/u-ct-casefold.h: New file, derived from
38248         lib/unicase/u-casefold.h.
38249         * modules/unicase/u8-ct-casefold: New file.
38250
38251         New module 'unicase/u32-ct-totitle'.
38252         * lib/unicase/u32-ct-totitle.c: New file.
38253         * modules/unicase/u32-ct-totitle: New file.
38254
38255         New module 'unicase/u16-ct-totitle'.
38256         * lib/unicase/u16-ct-totitle.c: New file.
38257         * modules/unicase/u16-ct-totitle: New file.
38258
38259         New module 'unicase/u8-ct-totitle'.
38260         * lib/unicase/u8-ct-totitle.c: New file.
38261         * lib/unicase/u-ct-totitle.h: New file, derived from
38262         lib/unicase/u-totitle.h.
38263         * modules/unicase/u8-ct-totitle: New file.
38264
38265         New module 'unicase/u32-ct-tolower'.
38266         * lib/unicase/u32-ct-tolower.c: New file.
38267         * modules/unicase/u32-ct-tolower: New file.
38268
38269         New module 'unicase/u16-ct-tolower'.
38270         * lib/unicase/u16-ct-tolower.c: New file.
38271         * modules/unicase/u16-ct-tolower: New file.
38272
38273         New module 'unicase/u8-ct-tolower'.
38274         * lib/unicase/u8-ct-tolower.c: New file.
38275         * modules/unicase/u8-ct-tolower: New file.
38276
38277         New module 'unicase/u32-ct-toupper'.
38278         * lib/unicase/u32-ct-toupper.c: New file.
38279         * modules/unicase/u32-ct-toupper: New file.
38280
38281         New module 'unicase/u16-ct-toupper'.
38282         * lib/unicase/u16-ct-toupper.c: New file.
38283         * modules/unicase/u16-ct-toupper: New file.
38284
38285         New module 'unicase/u8-ct-toupper'.
38286         * lib/unicase/u8-ct-toupper.c: New file.
38287         * modules/unicase/u8-ct-toupper: New file.
38288
38289         Add context arguments to u*_casemap functions.
38290         * lib/unicase/unicasemap.h: Include unicase.h.
38291         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38292         suffix_context arguments.
38293         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38294         functions.
38295         (FUNC): Add prefix_context and suffix_context arguments. Use
38296         uc_is_cased and uc_is_case_ignorable.
38297         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38298         * lib/unicase/u16-casemap.c: Likewise.
38299         * lib/unicase/u32-casemap.c: Likewise.
38300         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38301         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38302         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38303         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38304         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38305         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38306
38307         New module 'unicase/u32-suffix-context'.
38308         * lib/unicase/u32-suffix-context.c: New file.
38309         * modules/unicase/u32-suffix-context: New file.
38310
38311         New module 'unicase/u16-suffix-context'.
38312         * lib/unicase/u16-suffix-context.c: New file.
38313         * modules/unicase/u16-suffix-context: New file.
38314
38315         New module 'unicase/u8-suffix-context'.
38316         * lib/unicase/u8-suffix-context.c: New file.
38317         * lib/unicase/u-suffix-context.h: New file.
38318         * modules/unicase/u8-suffix-context: New file.
38319
38320         New module 'unicase/empty-suffix-context'.
38321         * lib/unicase/empty-suffix-context.c: New file.
38322         * modules/unicase/empty-suffix-context: New file.
38323
38324         New module 'unicase/u32-prefix-context'.
38325         * lib/unicase/u32-prefix-context.c: New file.
38326         * modules/unicase/u32-prefix-context: New file.
38327
38328         New module 'unicase/u16-prefix-context'.
38329         * lib/unicase/u16-prefix-context.c: New file.
38330         * modules/unicase/u16-prefix-context: New file.
38331
38332         New module 'unicase/u8-prefix-context'.
38333         * lib/unicase/u8-prefix-context.c: New file.
38334         * lib/unicase/u-prefix-context.h: New file.
38335         * lib/unicase/context.h: New file.
38336         * modules/unicase/u8-prefix-context: New file.
38337
38338         New module 'unicase/empty-prefix-context'.
38339         * lib/unicase/empty-prefix-context.c: New file.
38340         * modules/unicase/empty-prefix-context: New file.
38341
38342         New module 'unicase/ignorable'.
38343         * lib/unicase/ignorable.c: New file.
38344         * modules/unicase/ignorable: New file.
38345
38346         New module 'unicase/cased'.
38347         * lib/unicase/caseprop.h: New file.
38348         * lib/unicase/cased.c: New file.
38349         * modules/unicase/cased: New file.
38350
38351         New functions for case mapping of substrings.
38352         * lib/unicase.h (casing_prefix_context_t): New type.
38353         (unicase_empty_prefix_context): New variable.
38354         (u8_casing_prefix_context, u16_casing_prefix_context,
38355         u32_casing_prefix_context, u8_casing_prefixes_context,
38356         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38357         declarations.
38358         (casing_suffix_context_t): New type.
38359         (unicase_empty_suffix_context): New variable.
38360         (u8_casing_suffix_context, u16_casing_suffix_context,
38361         u32_casing_suffix_context, u8_casing_suffixes_context,
38362         u16_casing_suffixes_context, u32_casing_suffixes_context,
38363         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38364         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38365         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38366         declarations.
38367
38368 2009-06-28  Jim Meyering  <meyering@redhat.com>
38369
38370         boostrap: indent only with spaces
38371         * build-aux/bootstrap: Indent only with spaces, never TABs.
38372
38373         bootstrap: split long lines
38374         * build-aux/bootstrap: Keep line length < 80.
38375
38376         bootstrap: sync from coreutils
38377         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38378         just as autoreconf does.  Verify a list of prerequisite
38379         package-name,version-number pairs if defined in bootstrap.conf.
38380         Refer to README-prereq, if prerequisites are not satisfied.
38381
38382 2009-06-27  Eric Blake  <ebb9@byu.net>
38383
38384         tests: add test for bogus NULL definition
38385         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38386         * tests/test-stdlib.c: Likewise.
38387         * tests/test-string.c: Likewise.
38388         * tests/test-locale.c: Likewise.
38389         * tests/test-unistd.c: Likewise.
38390         * modules/stdio-tests (Depends-on): Add verify.
38391         * modules/stdlib-tests (Depends-on): Likewise.
38392         * modules/string-tests (Depends-on): Likewise.
38393         * modules/locale-tests (Depends-on): Likewise.
38394         * modules/unistd-tests (Depends-on): Likewise.
38395
38396 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38397
38398         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38399         self-explaining comment.
38400         * m4/selinux-selinux-h: Update serial.
38401         (gl_LIBSELINUX): New macro, adding a warning for missing development
38402         packages to code extracted from...
38403         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38404         Add warning for missing development packages here, too.
38405
38406 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38407
38408         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38409
38410 2009-06-25  Eric Blake  <ebb9@byu.net>
38411
38412         version-etc: fix regression
38413         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38414         gcc.
38415         (version_etc): Use it, to catch bugs with trailing NULL.
38416         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38417         (version_etc_va): Fix logic bug.
38418         * modules/version-etc-tests: Add test.
38419         * tests/test-version-etc.c: New file.
38420         * tests/test-version-etc.sh: Likewise.
38421
38422 2009-06-25  Sam Steingold  <sds@gnu.org>
38423
38424         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38425         mbtowc declaration.
38426
38427 2009-06-25  Eric Blake  <ebb9@byu.net>
38428
38429         fpurge: migrate into <stdio.h>
38430         * lib/fpurge.h: Delete...
38431         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38432         * lib/fpurge.c (fpurge): Change declaring header.
38433         * modules/fpurge (Files): Drop deleted file.
38434         (Depends-on): Add stdio.
38435         (configure.ac): Set witness.
38436         * modules/stdio (Makefile.am): Support fpurge macros.
38437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38438         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38439         * lib/fflush.c: Update client.
38440         * tests/test-fpurge.c: Likewise.
38441         * NEWS: Mention the change.
38442
38443 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38444
38445         * lib/argp-version-etc.c (program_authors): Add const
38446         qualifier.
38447         * lib/version-etc.c: Fix typos in the comments.
38448         * modules/argp-version-etc: Depends on version-etc.
38449
38450 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38451
38452         argp-version-etc: new module.
38453
38454         * lib/argp-version-etc.c: New file.
38455         * lib/argp-version-etc.h: New file.
38456         * modules/argp-version-etc: New file.
38457         * modules/argp-version-etc-tests: New file.
38458         * tests/test-argp-version-etc.c: New test.
38459         * tests/test-argp-version-etc-1.sh: New test.
38460
38461 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38462
38463         Provide additional interfaces and documentation for version-etc
38464         module.
38465
38466         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38467         interfaces.
38468         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38469         prototypes.
38470
38471 2009-06-24  Bruno Haible  <bruno@clisp.org>
38472
38473         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38474         HAVE_LIB${NAME} macro.
38475         Reported by Sam Steingold <sds@gnu.org>.
38476
38477 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38478
38479         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38480         needed.
38481
38482 2009-06-21  Bruno Haible  <bruno@clisp.org>
38483
38484         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38485         work.
38486         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38487         together with LIB${NAME}, LTLIB${NAME}.
38488         Reported by Sam Steingold <sds@gnu.org>.
38489
38490 2009-06-20  Jim Meyering  <meyering@redhat.com>
38491
38492         tests: make sc_require_test_exit_idiom more generic
38493         * top/maint.mk (Exit_witness_file): New overridable variable.
38494         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38495         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38496
38497 2009-06-19  Jim Meyering  <meyering@redhat.com>
38498
38499         hash: reverse order of src/dst parameters in an internal interface
38500         * lib/hash.c (transfer_entries): Reverse order of parameters to
38501         put DST before SRC.  Adjust callers.
38502
38503         tests: test-hash: avoid wholesale duplication
38504         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38505         Instead, use a loop and add a single conditional.
38506
38507         tests: test-hash: allow seed selection via a command line argument
38508         * tests/test-hash.c (get_seed): New function.
38509         (main): Use it.
38510
38511 2009-06-19  Eric Blake  <ebb9@byu.net>
38512
38513         hash: avoid memory leak on allocation failure
38514         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38515         failure.  Factor repeated algorithm...
38516         (transfer_entries): ...into new helper routine.
38517         (hash_delete): React to hash_rehash return value.
38518
38519         hash: reduce memory pressure in hash_rehash no-op case
38520         * lib/hash.c (next_prime): Avoid overflow.
38521         (hash_initialize): Factor bucket size computation...
38522         (compute_bucket_size): ...into new helper function.
38523         (hash_rehash): Use new function and open coding to reduce memory
38524         pressure, and avoid a memory leak in USE_OBSTACK code.
38525         Reported by Jim Meyering.
38526
38527 2009-06-18  Eric Blake  <ebb9@byu.net>
38528
38529         hash: make rotation more obvious
38530         * modules/hash (Depends-on): Add bitrotate and stdint.
38531         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38532         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38533         (SIZE_MAX): Rely on headers for definition.
38534         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38535         (raw_hasher): Use rotr_sz.
38536         Suggested by Jim Meyering.
38537
38538         hash: fix memory leak in last patch
38539         * lib/hash.c (hash_rehash): Avoid memory leak.
38540
38541         hash: avoid no-op rehashing
38542         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38543
38544         hash: provide default callback functions
38545         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38546         (hash_initialize): Use them as defaults.
38547         * tests/test-hash.c (main): Test this.
38548
38549         hash: minor optimization
38550         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38551         when possible.
38552         (hash_initialize): Document this promise.
38553         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38554         * tests/test-hash.c (hash_compare_strings): Test this.
38555
38556 2009-06-18  Bruno Haible  <bruno@clisp.org>
38557
38558         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38559         going to be replaced anyway.
38560
38561 2009-06-18  Bruno Haible  <bruno@clisp.org>
38562
38563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38564         in one place.
38565         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38566         be replaced anyway.
38567
38568 2009-06-18  Eric Blake  <ebb9@byu.net>
38569
38570         hash: check for resize before insertion
38571         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38572         threshold before insertion, so that a pathological hash_rehash
38573         that fills every bucket can still trigger another rehash.
38574
38575 2009-06-18  Jim Meyering  <meyering@redhat.com>
38576
38577         hash-tests: add a loop around the small tests
38578         * tests/test-hash.c (main): Repeat small tests with selected
38579         small initial table sizes.
38580
38581 2009-06-17  Eric Blake  <ebb9@byu.net>
38582
38583         hash: minor cleanups
38584         * lib/hash.h (hash_entry): Make opaque, by moving...
38585         * lib/hash.c (hash_entry): ...here.
38586         (hash_insert): Clarify restrictions on what can be inserted.
38587         (hash_get_next): Clarify when it is safe to remove an element
38588         during traversal.
38589         (check_tuning): Skip verification when tuning is known safe.
38590         (hash_initialize): Clarify restrictions on tuning.
38591
38592 2009-06-17  Jim Meyering  <jim@meyering.net>
38593         and Eric Blake  <ebb9@byu.net>
38594
38595         hash-tests: new module
38596         * modules/hash-tests: New file.
38597         * tests/test-hash.c: New file.
38598
38599 2009-06-17  Eric Blake  <ebb9@byu.net>
38600
38601         strstr-simple: document new module
38602         * MODULES.html.sh: Document new module.
38603
38604         strstr, strcasestr: replace on platforms with broken memchr
38605         * modules/strstr: Split into...
38606         * modules/strstr-simple: ...new module that does not care about
38607         performance, but does care about glibc bug.
38608         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38609         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38610         if platform memchr is broken, per Debian bug 521737.
38611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38612         memchr.
38613         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38614         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38615         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38616         * modules/mountlist (Depends-on): Add strstr-simple.
38617         * modules/gen-uni-tables (Depends-on): Likewise.
38618         * modules/argz (Depends-on): Add strstr.
38619
38620 2009-06-17  Bruno Haible  <bruno@clisp.org>
38621
38622         * modules/posix_spawn-internal (Depends-on): Add errno.
38623
38624 2009-06-17  Bruno Haible  <bruno@clisp.org>
38625
38626         Define missing ESTALE on Interix 3.5.
38627         * lib/errno.in.h (ESTALE): Assign a value if missing.
38628         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38629         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38630         missing.
38631         * doc/posix-headers/errno.texi: Mention the Interix bug.
38632         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38633
38634 2009-06-15  Eric Blake  <ebb9@byu.net>
38635
38636         memchr, memchr2: add valgrind exception
38637         * lib/memchr.valgrind: New file.
38638         * lib/memchr2.valgrind: New file.
38639         * modules/memchr (Files): Distribute valgrind file.
38640         * modules/memchr2 (Files): Likewise.
38641
38642         docs: memchr is no longer obsolete
38643         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38644         * lib/string.in.h (memchr): Simplify logic.
38645
38646 2009-06-14  Jim Meyering  <meyering@redhat.com>
38647
38648         link-follow: fix the "checking..." message to not mention trailing slash
38649         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38650         never considered trailing slashes.
38651
38652 2009-06-14  Bruno Haible  <bruno@clisp.org>
38653
38654         * m4/memchr.m4: Mention also the bug on IA-64.
38655         * doc/posix-functions/memchr.texi: Likewise.
38656
38657 2009-06-12  Eric Blake  <ebb9@byu.net>
38658
38659         memchr: detect broken x86_64 and alpha implementations
38660         * modules/memchr-tests (Depends-on): Move mmap detection...
38661         * modules/memchr (Depends-on): ...here.
38662         (configure.ac): Set indicator.
38663         * lib/string.in.h (memchr): Declare replacement.
38664         * modules/string (Makefile.am): Trigger replacement.
38665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38666         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38667         bugs.
38668         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38669         * modules/getpagesize (License): Relax license.
38670
38671 2009-06-11  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/idpriv.h: Add more references.
38674
38675 2009-06-08  Bruno Haible  <bruno@clisp.org>
38676
38677         Tests for module 'idpriv-droptemp'.
38678         * modules/idpriv-droptemp-tests: New file.
38679         * tests/test-idpriv-droptemp.sh: New file.
38680         * tests/test-idpriv-droptemp.su.sh: New file.
38681         * tests/test-idpriv-droptemp.c: New file.
38682
38683         New module 'idpriv-droptemp'.
38684         * lib/idpriv-droptemp.c: New file.
38685         * modules/idpriv-droptemp: New file.
38686
38687 2009-06-08  Bruno Haible  <bruno@clisp.org>
38688
38689         Tests for module 'idpriv-drop'.
38690         * modules/idpriv-drop-tests: New file.
38691         * tests/test-idpriv-drop.sh: New file.
38692         * tests/test-idpriv-drop.su.sh: New file.
38693         * tests/test-idpriv-drop.c: New file.
38694
38695         New module 'idpriv-drop'.
38696         * lib/idpriv.h: New file.
38697         * lib-idpriv-drop.c: New file.
38698         * m4/idpriv.m4: New file.
38699         * modules/idpriv-drop: New file.
38700
38701 2009-06-08  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38704         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38705         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38706         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38707         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38708         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38709         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38710
38711 2009-06-08  Eric Blake  <ebb9@byu.net>
38712
38713         test-strstr: use memory fence, when possible
38714         * tests/test-strstr.c (main): Use memory fence, in order to be
38715         more likely to trigger Debian bug 521737.
38716         * modules/strstr-tests (Files): Pull in additional files.
38717
38718         memchr: no longer obsolete, for wider field testing
38719         * modules/memchr (Status, Notice): Delete, this module is no
38720         longer obsolete.
38721         * modules/vasnprintf (Depends-on): Add memchr.
38722
38723 2009-06-07  Jim Meyering  <meyering@redhat.com>
38724
38725         hash: declare some functions with the warn_unused_result attribute
38726         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38727
38728 2009-06-07  Bruno Haible  <bruno@clisp.org>
38729
38730         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38731         Reported by Eric Blake.
38732
38733 2009-06-06  Eric Blake  <ebb9@byu.net>
38734
38735         test-alignof: fix typo with long double
38736         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38737         compiler error.
38738
38739 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38740
38741         Escape non-texinfo { and }s.
38742         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38743         markup error.
38744
38745 2009-06-04  Jim Meyering  <meyering@redhat.com>
38746
38747         gitlog-to-changelog: don't infloop on an empty commit log
38748         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38749         Reported by Boris Petersen <transacid@centerim.org>.
38750
38751 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38752
38753         version-etc: extend for packagers
38754         Add three new configure options, intended for packagers:
38755           --with-packager="packager name"
38756           --with-packager-version="packager-specific version"
38757           --with-packager-bug-reports="packager bug reporting"
38758         An example with coreutils:
38759           $ ./configure \
38760             --with-packager=Gentoo \
38761             --with-packager-bug-report=http://bugs.gentoo.org/ \
38762             --with-packager-version="patchset 1.6"
38763           $ ./src/ls --version | head -n2
38764           ls (GNU coreutils) 7.1-dirty
38765           Packaged by Gentoo (patchset 1.6)
38766         Note that the bug reporting info via --help doesn't show up because
38767         coreutils uses its own custom emit_bug_reporting_address() implementation
38768         in src/system.h.  If it didn't, it'd look like:
38769           $ ./src/ls --help | tail -n4
38770           Report bugs to <bug-coreutils@gnu.org>.
38771           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38772           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38773           General help using GNU software: <http://www.gnu.org/gethelp/>.
38774         * lib/version-etc.c: Print new information, if provided.
38775         * m4/version-etc.m4: New file.
38776         * modules/version-etc (Files): Add m4/version-etc.m4.
38777         (configure.ac): Add gl_VERSION_ETC.
38778
38779 2009-05-31  Bruno Haible  <bruno@clisp.org>
38780
38781         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38782         and 'int64_t'.
38783         * modules/alignof-tests (Dependencies): Add stdint.
38784         Reported by Eric Blake.
38785
38786 2009-05-31  Bruno Haible  <bruno@clisp.org>
38787
38788         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38789         restriction due to compiler bugs.
38790         Reported by Eric Blake.
38791
38792 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38793             Bruno Haible  <bruno@clisp.org>
38794
38795         Fix test-alignof failure.
38796         * lib/alignof.h (alignof_slot): New macro.
38797         (alignof_type): New macro, with the same semantics as the previous
38798         'alignof'.
38799         (alignof): Alias to alignof_slot.
38800         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38801         check that the results are usable as constant expressions.
38802
38803 2009-05-31  Bruno Haible  <bruno@clisp.org>
38804
38805         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38806         * tests/test-memchr.c (main): Check that memchr does not read past the
38807         first occurrence of the byte.
38808         * tests/test-strstr.c (main): Update comment.
38809         Suggested by Eric Blake.
38810
38811 2009-05-30  Bruno Haible  <bruno@clisp.org>
38812
38813         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38814         detail how to use dumpbin.
38815         Reported by David Byron <dbyron@dbyron.com>.
38816
38817 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38818
38819         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38820
38821 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38822
38823         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38824
38825 2009-05-28  Bruno Haible  <bruno@clisp.org>
38826
38827         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38828         build-aux/ files.
38829
38830 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38831
38832         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38833
38834 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38835
38836         * gnulib-tool (sed_transform_main_lib_file)
38837         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38838         regexps.
38839
38840 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38841
38842         * tests/test-strstr.c: Add another self-test.
38843         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38844         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38845
38846 2009-05-23  Bruno Haible  <bruno@clisp.org>
38847
38848         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38849         change.
38850
38851 2009-05-21  Bruno Haible  <bruno@clisp.org>
38852
38853         Simplify use of mode_t varargs.
38854         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38855         uses 'mode_t' or 'int'.
38856         * lib/openat.c (openat): Likewise.
38857         * lib/open-safer.c (open_safer): Likewise.
38858         * m4/mode_t.m4: New file.
38859         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38860         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38861         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38862         * modules/open (Files): Add m4/mode_t.m4.
38863         * modules/openat (Files): Likewise.
38864         * modules/fcntl-safer (Files): Likewise.
38865         Suggested by Eric Blake.
38866
38867 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38868
38869         * doc/glibc-functions/fallocate.texi: New file.
38870         * doc/gnulib.texi: Include it.
38871
38872 2009-05-21  Eric Blake  <ebb9@byu.net>
38873             Bruno Haible  <bruno@clisp.org>
38874
38875         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38876         invocations.
38877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38878
38879 2009-05-21  Eric Blake  <ebb9@byu.net>
38880             Bruno Haible  <bruno@clisp.org>
38881
38882         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38883         include_next. Fix of 2008-11-20 commit.
38884         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38885         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38886         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38887         NEXT_MATH_H.
38888         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38889         instead of NEXT_MATH_H.
38890
38891 2009-05-21  Bruno Haible  <bruno@clisp.org>
38892
38893         Avoid redefinition warnings for SIZE_MAX.
38894         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38895         Reported by Simon Josefsson.
38896
38897 2009-05-21  Bruno Haible  <bruno@clisp.org>
38898
38899         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38900         AC_CACHE_VAL.
38901
38902 2009-05-20  Bruno Haible  <bruno@clisp.org>
38903
38904         Make zeroptr.h work on mingw.
38905         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38906         mprotect.
38907         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38908         * modules/memchr2-tests (configure.ac): Likewise.
38909         * modules/memcmp-tests (configure.ac): Likewise.
38910         * modules/memmem-tests (configure.ac): Likewise.
38911         * modules/memrchr-tests (configure.ac): Likewise.
38912         Reported by Simon Josefsson.
38913
38914 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38915
38916         * tests/test-glob.c: Include string.h for strcmp prototype.
38917
38918 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38919
38920         * modules/getdelim (Depends-on): Add explicit stdint, although it
38921         was implicitly already pulled in via realloc-posix.
38922         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38923
38924 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38925
38926         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38927         G. Christensen" <tgc@jupiterrise.com>.
38928         * m4/sys_socket_h.m4: Check for sa_family_t.
38929         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38930         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38931         * tests/test-sys_socket.c: Check that sa_family_t works.
38932
38933 2009-05-18  Eric Blake  <ebb9@byu.net>
38934
38935         maint.mk: allow gnulib_dir in VPATH build
38936         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38937
38938 2009-05-15  Jim Meyering  <meyering@redhat.com>
38939
38940         maint.mk: Give gnulib_dir a default definition.
38941         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38942         Thus, most packages no longer need to specify this variable in cfg.mk
38943
38944 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38945
38946         rename.m4: fix typos that would make non-mingw cross-configure fail
38947         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38948
38949 2009-05-13  Eric Blake  <ebb9@byu.net>
38950
38951         mmap-anon: avoid out-of-order autoconf expansion
38952         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38953         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38954         * modules/memchr-tests (Depends-on): Add extensions.
38955         * modules/memchr2-tests (Depends-on): Add extensions.
38956         * modules/memcmp-tests (Depends-on): Add extensions.
38957         * modules/memmem-tests (Depends-on): Add extensions.
38958         * modules/memrchr-tests (Depends-on): Add extensions.
38959
38960 2009-05-13  Bruno Haible  <bruno@clisp.org>
38961
38962         Make some tests ISO C 99 compliant.
38963         * tests/zerosize-ptr.h: New file.
38964         * tests/test-memchr.c: Include zerosize-ptr.h.
38965         (main): Use a zero-size object pointer instead of NULL.
38966         * tests/test-memchr2.c: Include zerosize-ptr.h.
38967         (main): Use a zero-size object pointer instead of NULL.
38968         * tests/test-memcmp.c: Include zerosize-ptr.h.
38969         (main): Use a zero-size object pointer instead of NULL.
38970         * tests/test-memmem.c: Include zerosize-ptr.h.
38971         (main): Use a zero-size object pointer instead of NULL.
38972         * tests/test-memrchr.c: Include zerosize-ptr.h.
38973         (main): Use a zero-size object pointer instead of NULL.
38974         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38975         m4/mmap-anon.m4.
38976         (Depends-on): Add getpagesize.
38977         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38978         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38979         m4/mmap-anon.m4.
38980         (Depends-on): Add getpagesize.
38981         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38982         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38983         m4/mmap-anon.m4.
38984         (Depends-on): Add getpagesize.
38985         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38986         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38987         m4/mmap-anon.m4.
38988         (Depends-on): Add getpagesize.
38989         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38990         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38991         m4/mmap-anon.m4.
38992         (Depends-on): Add getpagesize.
38993         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38994
38995 2009-05-12  Bruno Haible  <bruno@clisp.org>
38996
38997         Tests for module 'alignof'.
38998         * modules/alignof-tests: New file.
38999         * tests/test-alignof.c: New file.
39000
39001 2009-05-12  Bruno Haible  <bruno@clisp.org>
39002
39003         Fix alignof macro.
39004         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39005         vendor compilers that are always correct.
39006
39007 2009-05-12  Bruno Haible  <bruno@clisp.org>
39008
39009         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39010         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39011         not whether its fully works.
39012
39013 2009-05-12  Bruno Haible  <bruno@clisp.org>
39014
39015         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39016
39017 2009-05-12  Jim Meyering  <meyering@redhat.com>
39018
39019         * top/maint.mk: Adjust backslash alignment.
39020
39021 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39022
39023         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39024
39025 2009-05-11  Eric Blake  <ebb9@byu.net>
39026
39027         argp: avoid undefined behavior
39028         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39029         macros.
39030
39031 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39032
39033         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39034         user.name to prevent git commit from complaining.
39035
39036 2009-05-10  Bruno Haible  <bruno@clisp.org>
39037
39038         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39039         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39040         it rewrites every file name only once.
39041         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39042
39043 2009-05-08  Bruno Haible  <bruno@clisp.org>
39044
39045         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39046         instead of 'max'.
39047
39048 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39049
39050         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39051         sockaddr_storage test.
39052
39053 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39054
39055         * modules/sys_socket (Makefile.am): Substitute
39056         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39057         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39058         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39059         * tests/test-sys_socket.c: Check sockaddr_storage.
39060
39061 2009-05-08  Bruno Haible  <bruno@clisp.org>
39062
39063         New module 'alignof'.
39064         * lib/alignof.h: New file.
39065         * modules/alignof: New file.
39066
39067 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39068             Bruno Haible  <bruno@clisp.org>
39069
39070         Fix test-file-has-acl on FreeBSD.
39071         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39072         mask is implicitly added.
39073         * tests/test-file-has-acl.c: Include <signal.h>.
39074         (main): Terminate the test after 5 seconds.
39075         * modules/acl-tests (configure.ac): Check for alarm function.
39076
39077 2009-05-04  Bruno Haible  <bruno@clisp.org>
39078
39079         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39080         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39081         * modules/errno (configure.ac): Drop AC_REQUIRE.
39082         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39083         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39084
39085 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39086
39087         * modules/glob-tests: New module.
39088         * tests/test-glob.c: Add.
39089
39090 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39091
39092         * modules/fnmatch-tests: New module.
39093         * tests/test-fnmatch.c: Add.
39094
39095 2009-05-04  Eric Blake  <ebb9@byu.net>
39096
39097         maint: make the new no-submodule-changes rule VPATH-safe
39098         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39099
39100 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39101             Bruno Haible  <bruno@clisp.org>
39102
39103         acl: Fix infinite loop on FreeBSD.
39104         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39105         of return value from acl_get_entry.
39106         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39107         Likewise.
39108
39109 2009-05-03  Bruno Haible  <bruno@clisp.org>
39110
39111         * lib/acl-internal.h (acl_entries): Clarify return value.
39112         * lib/acl_entries.c (acl_entries): Likewise.
39113
39114 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39115
39116         Bug fix in acl module.
39117         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39118
39119 2009-05-03  Bruno Haible  <bruno@clisp.org>
39120
39121         Create gperf-generated file in the source dir, not in the build dir.
39122         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39123         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39124         * modules/unicase/locale-language (unicase/locale-languages.h):
39125         Likewise.
39126         * modules/unicase/special-casing (unicase/special-casing-table.h):
39127         Likewise.
39128         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39129         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39130         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39131         Reported by Ralf Wildenhues.
39132
39133 2009-05-03  Bruno Haible  <bruno@clisp.org>
39134
39135         * modules/fnmatch (Description, configure.ac): Taken from
39136         fnmatch-posix.
39137         * modules/fnmatch-posix: Turn into a symbolic reference to the
39138         'fnmatch' module, and deprecate.
39139         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39140
39141 2009-05-03  Bruno Haible  <bruno@clisp.org>
39142
39143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39144         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39145         Reported by Ralf Wildenhues.
39146
39147 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39148
39149         * m4/fnmatch.m4: Fix fnmatch re-define.
39150
39151 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39152
39153         priv-set: new module and tests; adapt write-any-file
39154         * lib/priv-set.c: New file.
39155         * lib/priv-set.h: New file.
39156         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39157         * lib/write-any-file.c: Simplify by using priv-set module.
39158         * m4/priv-set.m4: New file.
39159         * modules/priv-set: New file.
39160         * modules/unlinkdir: Add dependency on priv-set module.
39161         * modules/write-any-file: Likewise.
39162
39163         Tests for module 'priv-set'.
39164         * modules/priv-set-tests: New file.
39165         * tests/test-priv-set.c: New file.
39166
39167 2009-05-03  Jim Meyering  <meyering@redhat.com>
39168             Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39171         use the converted UTF-8 variant of the name instead.
39172
39173 2009-05-03  Jim Meyering  <meyering@redhat.com>
39174
39175         tests: tighten some getdate tests
39176         * tests/test-getdate.c (main): Tighten tests: require equality,
39177         not just greater than.  Set TZ envvar to UTC0.
39178
39179 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39180
39181         getdate: correctly interpret "next monday" when run on a Monday
39182         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39183         that e.g., "next tues" (when run on a tuesday) results in a date
39184         that is one week in the future, and not today's date.
39185         I.e., add a week when the wday is the same as the current one.
39186         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39187         and earlier by Martin Bernreuther and Jan Minář.
39188         * tests/test-getdate.c (main): Check that "next DAY" is always in
39189         the future and that "last DAY" is always in the past.
39190
39191 2009-05-02  Jim Meyering  <meyering@redhat.com>
39192
39193         build: ensure that a release build fails when a submodule is unclean
39194         * top/maint.mk (no-submodule-changes): New rule.
39195         (alpha beta major): Depend on it.
39196
39197 2009-05-02  Bruno Haible  <bruno@clisp.org>
39198
39199         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39200         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39201         shell variable gl_fnmatch_required to detect which variant is
39202         requested.
39203         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39204         gl_FUNC_FNMATCH_POSIX.
39205         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39206         exclude fnmatch-posix.
39207
39208 2009-05-02  Bruno Haible  <bruno@clisp.org>
39209
39210         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39211         * modules/mbsrtowcs (License): Change to LGPLv2+.
39212         * modules/strnlen1 (License): Likewise.
39213         Reported by Simon Josefsson.
39214
39215 2009-05-02  Bruno Haible  <bruno@clisp.org>
39216
39217         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39218         "cross".
39219         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39220         gnulib-tool was called with option --source-base=lib.
39221
39222 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39223
39224         Use automake *-local hooks without commands, for extensibility.
39225         * modules/localcharset (Makefile.am): Rename install-exec-local
39226         rule to install-exec-localcharset, and make it a prerequisite of
39227         install-exec-local.  Likewise, rename the uninstall-local rule to
39228         uninstall-localcharset, and make it a prerequisite of the former.
39229
39230 2009-05-01  Bruno Haible  <bruno@clisp.org>
39231
39232         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39233         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39234         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39236         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39237         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39238         m4/locale-zh.m4, m4/codeset.m4.
39239
39240         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39241         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39242         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39243         m4/locale-zh.m4.
39244
39245         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39246         REPLACE_WCRTOMB if mbstate_t must be replaced.
39247         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39248         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39249
39250 2009-05-01  Bruno Haible  <bruno@clisp.org>
39251
39252         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39253         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39254         dngettext, dcngettext, textdomain, bindtextdomain,
39255         bind_textdomain_codeset): Undefine before redefining.
39256
39257 2009-04-30  Bruno Haible  <bruno@clisp.org>
39258
39259         Fix bug introduced on 2009-04-25.
39260         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39261         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39262         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39263         is defined.
39264         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39265         is defined.
39266         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39267         is defined.
39268         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39269
39270 2009-04-28  Bruno Haible  <bruno@clisp.org>
39271
39272         Comment tweaks.
39273         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39274         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39275         * lib/unicase.h (u*_casexfrm): Likewise.
39276         Reported by Paolo Bonzini.
39277
39278 2009-04-28  Bruno Haible  <bruno@clisp.org>
39279
39280         Fix a compilation error.
39281         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39282         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39283         Reported by Jim Meyering.
39284
39285 2009-04-27  Bruno Haible  <bruno@clisp.org>
39286
39287         New module 'libunistring'.
39288         * modules/libunistring: New file.
39289         * m4/libunistring.m4: New file.
39290         * MODULES.html.sh (Unicode string functions): Add it.
39291
39292 2009-04-27  Eric Blake  <ebb9@byu.net>
39293
39294         maint.mk: allow package-specific header to provide <config.h>
39295         * top/maint.mk (sc_require_config_h): New variable.
39296         (sc_require_config_h, sc_require_config_h_first): Use it.
39297
39298 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39299
39300         * top/maint.mk (sc_avoid_if_before_free): Except
39301         useless-if-before-free script.
39302
39303 2009-04-27  Eric Blake  <ebb9@byu.net>
39304
39305         maintainer-makefile: depend on all required helper scripts
39306         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39307         useless-if-before-free.
39308         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39309         version, rather than assuming gnulib checkout is available.
39310         Reported by Simen Josefsson.
39311
39312 2009-04-26  Bruno Haible  <bruno@clisp.org>
39313
39314         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39315         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39316         "../" or "..".
39317
39318 2009-04-26  Bruno Haible  <bruno@clisp.org>
39319
39320         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39321         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39322         AC_LIB_HAVE_LINKFLAGS.
39323
39324 2009-04-26  Bruno Haible  <bruno@clisp.org>
39325
39326         Simplify calling convention of u*_conv_from_encoding.
39327         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39328         u32_conv_from_encoding): Expect a resultbuf argument and return the
39329         result directly as a pointer.
39330         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39331         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39332         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39333         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39334         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39335         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39336         Update.
39337         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39338         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39339         * lib/vasnprintf.c (VASNPRINTF): Update.
39340         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39341         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39342         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39343         * NEWS: Mention the change.
39344
39345 2009-04-26  Bruno Haible  <bruno@clisp.org>
39346
39347         Simplify calling convention of u*_conv_to_encoding.
39348         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39349         u32_conv_to_encoding): Expect a resultbuf argument and return the
39350         result directly as a pointer.
39351         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39352         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39353         freeing scaled_offsets if mem_iconveha failed.
39354         * lib/unicase/u-casexfrm.h (FUNC): Update.
39355         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39356         * lib/vasnprintf.c (VASNPRINTF): Update.
39357         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39358         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39359         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39360         * NEWS: Mention the change.
39361
39362 2009-04-26  Bruno Haible  <bruno@clisp.org>
39363
39364         Avoid test failures on AIX and OSF/1.
39365         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39366         malloc(0).
39367         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39368         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39369         Likewise.
39370         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39371         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39372         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39373         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39374         * doc/posix-functions/malloc.texi: Document the portability problem
39375         related to malloc(0).
39376
39377 2009-04-26  Bruno Haible  <bruno@clisp.org>
39378
39379         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39380         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39381         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39382
39383 2009-04-25  Bruno Haible  <bruno@clisp.org>
39384
39385         Avoid link error when creating a namespace clean library.
39386         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39387         as macro with arguments if already defined as an alias.
39388         * lib/signbitf.c (gl_signbitf): Don't undefine.
39389         * lib/signbitd.c (gl_signbitd): Don't undefine.
39390         * lib/signbitl.c (gl_signbitl): Don't undefine.
39391
39392 2009-04-25  Jim Meyering  <meyering@redhat.com>
39393
39394         vc-list-files: fix another quoting bug
39395         * build-aux/vc-list-files: Avoid sed backslash expansion
39396         of pathological directory names.
39397
39398 2009-04-25  Eric Blake  <ebb9@byu.net>
39399
39400         vc-list-files: fix shell quoting error
39401         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39402         timestamp.
39403
39404 2009-04-25  Jim Meyering  <meyering@redhat.com>
39405
39406         vc-list-files: restore lost functionality with subdir argument
39407         * build-aux/vc-list-files: When given a non-"." sub-directory
39408         argument, substitute the $dir/ prefix back onto each resulting name.
39409         Otherwise, coreutils' root_tests check would fail.
39410
39411 2009-04-24  Eric Blake  <ebb9@byu.net>
39412
39413         vc-list-files: ignore git symlinks
39414         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39415         than ls-files, to ignore git symlinks.
39416
39417         maint.mk: import improvements from m4
39418         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39419         (move_if_change): Delete unused macro.
39420         (news-date-check, vc-diff-check): Support VPATH builds.
39421         (announcement): Likewise.  Split --bootstrap-tools list...
39422         (boostrap-tools): ...into separate list, which can be overridden
39423         in cfg.mk.
39424         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39425         requiring dependency on useless-if-before-free module.
39426         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39427         Support VPATH builds.
39428
39429 2009-04-24  Jim Meyering  <meyering@redhat.com>
39430
39431         maint.mk: remove coreutils-specific rules and variables
39432         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39433         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39434         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39435
39436         maint.mk: remove obsolete rule
39437         * top/maint.mk (rel-check): Remove rule.
39438         (WGET, WGETFLAGS): Remove now-unused variables.
39439
39440 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39441
39442         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39443         consistency.
39444
39445         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39446         '$(PATH_SEPARATOR)' instead of ':'.
39447
39448 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39449
39450         * lib/getopt1.c (main): Use 'const' for static array.
39451
39452 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39453
39454         * top/maint.mk: Sync with coreutils.
39455         * NEWS: Explain incompatibilities.
39456
39457 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39458             Bruno Haible  <bruno@clisp.org>
39459
39460         Fix cross-compilation results.
39461         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39462         statement, as third argument of AC_TRY_RUN.
39463         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39464         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39465         Likewise.
39466         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39467         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39468         Likewise.
39469         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39470         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39471         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39472
39473 2009-04-20  Bruno Haible  <bruno@clisp.org>
39474
39475         Avoid test failure on mingw.
39476         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39477
39478 2009-04-20  Bruno Haible  <bruno@clisp.org>
39479
39480         Avoid compilation error on mingw.
39481         * modules/localename-tests (Depends-on): Add locale.
39482
39483 2009-04-19  Bruno Haible  <bruno@clisp.org>
39484
39485         Support for building a shared library on Windows platforms.
39486         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39487         (main): Test the presence of UNINORM_NFC here.
39488         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39489         (main): Test the presence of UNINORM_NFD here.
39490         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39491         (main): Test the presence of UNINORM_NFKC here.
39492         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39493         (main): Test the presence of UNINORM_NFKD here.
39494
39495 2009-04-19  Bruno Haible  <bruno@clisp.org>
39496
39497         Avoid a compiler warning.
39498         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39499         Change type of variable 'sequence'.
39500
39501 2009-04-19  Bruno Haible  <bruno@clisp.org>
39502
39503         * modules/configmake (Makefile.am): When the contents of configmake.h
39504         does not change, arrange to preserve its modification time.
39505
39506 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39507
39508         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39509         gettext domain.
39510
39511 2009-04-16  Jim Meyering  <meyering@redhat.com>
39512
39513         useless-if-before-free: improve conversion code
39514         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39515         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39516
39517 2009-04-14  Bruno Haible  <bruno@clisp.org>
39518
39519         * modules/fcntl (Depends-on): Add extensions.
39520         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39521
39522 2009-04-12  Ben Pfaff  <blp@gnu.org>
39523
39524         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39525         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39526
39527 2009-03-20  Ben Pfaff  <blp@gnu.org>
39528
39529         Make rename replace existing destinations on Windows.
39530         * m4/rename.m4: Add test for Mingw.
39531         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39532         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39533         * doc/posix-functions/rename.texi: Document.
39534
39535 2009-04-10  Bruno Haible  <bruno@clisp.org>
39536
39537         New include file "iconveh.h".
39538         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39539         * lib/striconveh.h: Include it.
39540         (enum iconv_ilseq_handler): Remove definition.
39541         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39542         striconveh.h.
39543         * lib/striconveha.c: Include striconveh.h.
39544         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39545         * modules/striconveh (Files): Add lib/iconveh.h.
39546         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39547         lib/striconveh.h.
39548
39549 2009-04-10  Bruno Haible  <bruno@clisp.org>
39550
39551         * lib/uniconv.h: Update comment.
39552
39553 2009-04-10  Bruno Haible  <bruno@clisp.org>
39554
39555         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39556         always.
39557         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39558         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39559         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39560         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39561         "unistring-notinline.h", so that the function gets defined always.
39562         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39563         * lib/unistr/u8-uctomb.c: Likewise.
39564         * lib/unistr/u16-mbtouc.c: Likewise.
39565         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39566         * lib/unistr/u16-uctomb.c: Likewise.
39567         * lib/unistr/u32-mbtouc.c: Likewise.
39568         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39569         * lib/unistr/u32-uctomb.c: Likewise.
39570
39571 2009-04-10  Bruno Haible  <bruno@clisp.org>
39572
39573         Mark 'utime' obsolete.
39574         * modules/utime (Status, Notice): New sections.
39575         Suggested by Jim Meyering.
39576
39577         Fix cross-compile guess for utime test.
39578         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39579         autoconf.
39580         * doc/posix-functions/utime.texi: Give more precisions.
39581         Reported by Jan <ipif@ymail.com>.
39582
39583 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39584
39585         filevercmp: correct today's change
39586         * lib/filevercmp.c: Also handle coreutils' test inputs.
39587         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39588
39589         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39590         for reporting it.
39591         * lib/filevercmp.c: Special handle for "", "." and "..".
39592         * tests/test-filevercmp.c: Enlarge the set suite.
39593
39594 2009-04-07  Jim Meyering  <meyering@redhat.com>
39595
39596         useless-if-before-free: show how to remove braced useless free, too
39597         * build-aux/useless-if-before-free: still only in a comment, though.
39598
39599 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39600
39601         maint.mk: import changes to syntax-check macros from coreutils
39602         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39603         Use them in the relevant macros.
39604
39605 2009-04-06  Bruno Haible  <bruno@clisp.org>
39606
39607         Fix unportable use of bit-fields.
39608         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39609         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39610         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39611
39612 2009-04-06  Bruno Haible  <bruno@clisp.org>
39613
39614         Avoid test failures on AIX and OSF/1.
39615         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39616         that malloc(0) = NULL.
39617         * tests/unicase/test-u8-tolower.c (check): Likewise.
39618         * tests/unicase/test-u8-totitle.c (check): Likewise.
39619         * tests/unicase/test-u8-toupper.c (check): Likewise.
39620         * tests/unicase/test-u16-casefold.c (check): Likewise.
39621         * tests/unicase/test-u16-tolower.c (check): Likewise.
39622         * tests/unicase/test-u16-totitle.c (check): Likewise.
39623         * tests/unicase/test-u16-toupper.c (check): Likewise.
39624         * tests/unicase/test-u32-casefold.c (check): Likewise.
39625         * tests/unicase/test-u32-tolower.c (check): Likewise.
39626         * tests/unicase/test-u32-totitle.c (check): Likewise.
39627         * tests/unicase/test-u32-toupper.c (check): Likewise.
39628         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39629         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39630         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39631         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39632         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39633         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39634         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39635         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39636         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39637         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39638         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39639         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39640
39641 2009-04-05  Bruno Haible  <bruno@clisp.org>
39642
39643         Work around an autoconf limitation.
39644         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39645         comment line if it would be longer than 3 KB.
39646
39647 2009-04-05  Bruno Haible  <bruno@clisp.org>
39648
39649         Avoid test failure with libiconv-1.13.
39650         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39651         of the expected test results.
39652
39653 2009-04-05  Bruno Haible  <bruno@clisp.org>
39654
39655         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39656         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39657         that it should be installed.
39658
39659 2009-04-05  Bruno Haible  <bruno@clisp.org>
39660
39661         * gnulib-tool: New option --copy-file.
39662         (func_usage): Document it.
39663         (func_dest_tmpfilename): Moved out of func_import.
39664         (func_add_file, func_update_file): New functions, extracted from
39665         func_import.
39666         (func_import): Update.
39667
39668 2009-04-05  Karl Berry  <karl@gnu.org>
39669
39670         * README: prominently mention gnulib-tool.
39671         Rearrange sections so getting the code is near the top.
39672
39673 2009-04-05  Bruno Haible  <bruno@clisp.org>
39674
39675         * lib/unicase.h: Mention u*_cmp2.
39676         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39677         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39678         * lib/unicase/ulc-casecmp.c: Likewise.
39679         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39680         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39681         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39682         unistr/u8-cmp.
39683         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39684         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39685         unistr/u16-cmp.
39686         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39687         unistr/u32-cmp.
39688
39689         * lib/uninorm.h: Mention u*_cmp2.
39690         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39691         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39692         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39693         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39694         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39695         unistr/u8-cmp.
39696         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39697         unistr/u16-cmp.
39698         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39699         unistr/u32-cmp.
39700
39701         New module 'unistr/u32-cmp2'.
39702         * lib/unistr/u32-cmp2.c: New file.
39703         * modules/unistr/u32-cmp2: New file.
39704
39705         New module 'unistr/u16-cmp2'.
39706         * lib/unistr/u16-cmp2.c: New file.
39707         * modules/unistr/u16-cmp2: New file.
39708
39709         New module 'unistr/u8-cmp2'.
39710         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39711         * lib/unistr/u8-cmp2.c: New file.
39712         * lib/unistr/u-cmp2.h: New file.
39713         * modules/unistr/u8-cmp2: New file.
39714
39715 2009-04-05  Bruno Haible  <bruno@clisp.org>
39716
39717         * lib/unictype.h (uc_property_is_valid): New macro.
39718         * tests/unictype/test-pr_byname.c (main): Use it.
39719
39720         * lib/unistr.h: Doc fixes.
39721         * lib/uniconv.h: Doc fixes.
39722         * lib/unictype.h: Doc fixes.
39723
39724 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39725
39726         Port coreutils 7.2 to Solaris 8.
39727
39728         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39729         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39730         for Solaris 8.  This is a bit of a hack, as it means it's the
39731         caller's responsibility to add -lnsl if needed, but most likely it
39732         won't be needed since only getaddrinfo uses this and getaddrinfo
39733         isn't needed on Solaris 8.
39734
39735         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39736         problem to Solaris 8 encountered with coreutils 7.2, which
39737         resulted in a message "fnmatch.c:292: warning: passing argument 4
39738         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39739         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39740
39741 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39742
39743         * m4/ld-version-script.m4: Add FIXME comment.
39744
39745 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39746
39747         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39748         SOVERSION variable.
39749
39750 2009-04-02  Bruno Haible  <bruno@clisp.org>
39751
39752         * Makefile (info, html, dvi, pdf): Combine the rules.
39753         Suggested by Jim Meyering.
39754
39755 2009-04-01  Bruno Haible  <bruno@clisp.org>
39756
39757         * Makefile (info, html, dvi, pdf): New targets.
39758         Reported by Reuben Thomas <rrt@sc3d.org>.
39759
39760 2009-04-01  Bruno Haible  <bruno@clisp.org>
39761
39762         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39763         can be put into PATH.
39764         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39765
39766 2009-04-01  Bruno Haible  <bruno@clisp.org>
39767
39768         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39769
39770 2009-04-01  Bruno Haible  <bruno@clisp.org>
39771
39772         Rename module 'visibility'.
39773         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39774         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39775         * doc/gnulib.texi: Update.
39776         * MODULES.html.sh (Misc): Update.
39777         * NEWS: Mention the change.
39778
39779 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39780
39781         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39782         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39783         Eric Blake <ebb9@byu.net> for review.
39784         * MODULES.html.sh: Add lib-msvc-compat.
39785         * doc/gnulib.texi: Link to new section.
39786         * m4/ld-output-def.m4: New file.
39787         * doc/ld-output-def.texi: New file.
39788
39789 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39790
39791         Rename ld-version-script to lib-symbol-versions.  Suggested by
39792         Bruno Haible <bruno@clisp.org>.
39793         * modules/ld-version-script: Renamed to lib-symbol-versions.
39794         * doc/ld-version-script.texi: Fix module name.
39795         * MODULES.html.sh: Add lib-symbol-versions.
39796
39797 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39798
39799         * modules/u64-tests: New file.
39800         * tests/test-u64.c: New file.
39801
39802 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39803
39804         * MODULES.html.sh: Mention u64.
39805         * modules/u64: New module.
39806         * modules/crypto/sha512: Depend on u64 module instead of providing
39807         u64.h.
39808
39809 2009-03-27  Eric Blake  <ebb9@byu.net>
39810
39811         test-strerror: make debugging EAI_SYSTEM easier
39812         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39813         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39814         failure was EAI_SYSTEM.
39815
39816 2009-03-25  Bruno Haible  <bruno@clisp.org>
39817
39818         Fix a problem with --enable-relocatable on Solaris 7.
39819         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39820         since 2008-02-24.
39821
39822 2009-03-25  Eric Blake  <ebb9@byu.net>
39823
39824         test-sockets: avoid gcc warning
39825         * tests/test-sockets.c (main): Silence compiler warning.
39826
39827 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         New modules nproc, pthread, contributed by Glen Lenker.
39830
39831         * MODULES.html.sh: Add pthread, nproc.
39832         * lib/nproc.c: New file.
39833         * lib/nproc.h: New file.
39834         * lib/pthread.in.h: New file.
39835         * m4/pthread.m4: New file.
39836         * modules/nproc: New file.
39837         * modules/pthread: New file.
39838
39839 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39840
39841         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39842         New variable.
39843
39844 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39845
39846         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39847         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39848         * tests/test-filevercmp.c: Add tests for backup suffixes.
39849
39850 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39851
39852         * modules/stdlib (Depends-on): Add stdint, needed when defining
39853         struct random_data on, for example, HP-UX 10.20.  Reported by
39854         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39855
39856 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39857
39858         * lib/readline.c (readline): Call fflush on stdout after printing
39859         prompt.
39860
39861 2009-03-20  Bruno Haible  <bruno@clisp.org>
39862
39863         Remove dependency from 'close' module to -lws2_32 on native Windows.
39864         * lib/close-hook.h: New file.
39865         * lib/close-hook.c: New file.
39866         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39867         w32sock.h.
39868         (_gl_close_fd_maybe_socket): Remove function.
39869         (rpl_close): Invoke execute_all_close_hooks instead of
39870         _gl_close_fd_maybe_socket.
39871         * lib/sockets.c: Include close-hook.h, w32sock.h.
39872         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39873         (close_sockets_hook): New variable.
39874         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39875         (gl_sockets_cleanup): Unregister it.
39876         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39877         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39878         * modules/close-hook: New file.
39879         * modules/close (Files): Remove lib/w32sock.h.
39880         (Depends-on): Add close-hook.
39881         (Link): Remove section.
39882         * modules/sockets (Files): Add lib/w32sock.h.
39883         (Depends-on): Add close-hook.
39884         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39885         invocation.
39886         * NEWS: Mention that LIB_CLOSE is gone.
39887
39888 2009-03-23  Eric Blake  <ebb9@byu.net>
39889
39890         signal-tests: test previous patch
39891         * tests/test-signal.c: New file.
39892         * modules/signal-tests: Likewise.
39893
39894         signal.h: always support 'volatile sig_atomic_t'
39895         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39896         (gl_SIGNAL_H_DEFAULTS): Add a default.
39897         * modules/signal (Makefile.am): Substitute if needed.
39898         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39899         users can blindly add volatile.
39900         * doc/posix-headers/signal.texi (signal.h): Document it.
39901         Reported by Matthew Woehlke.
39902
39903 2009-03-23  Jim Meyering  <meyering@redhat.com>
39904
39905         pathmax: PATH_MAX: use pathconf only when available
39906         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39907         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39908         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39909         This avoids a link failure in a PSP cross-compilation environment
39910         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39911
39912         * lib/vasnprintf.c (divide): Fix typo in comment.
39913
39914 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39915
39916         * gnulib-tool (func_filter_filelist): Fix comment.
39917
39918 2009-03-20  Bruno Haible  <bruno@clisp.org>
39919
39920         Make sockets.h self-contained.
39921         * lib/sockets.c: Include sockets.h first.
39922         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39923
39924 2009-03-19  Eric Blake  <ebb9@byu.net>
39925
39926         doc: mention more functions added in cygwin 1.7.0
39927         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39928         addition.
39929         * doc/posix-functions/log2f.texi: Likewise.
39930
39931 2009-03-19  Jim Meyering  <meyering@redhat.com>
39932
39933         fsusage: avoid syntax error due to statement-before-declaration
39934         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39935         after all declarations.  Reported by Matthew Woehlke in
39936         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39937
39938 2009-03-18  Eric Blake  <ebb9@byu.net>
39939
39940         build-aux/compile: sync from automake
39941         * build-aux/compile: New file, from automake.
39942         * config/srclist.txt: Mention build-aux/compile.
39943
39944 2009-03-17  Bruno Haible  <bruno@clisp.org>
39945
39946         * lib/git-merge-changelog.c: Fix typo in comment.
39947         Reported by Reuben Thomas <rrt@sc3d.org>.
39948
39949 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39950
39951         * m4/regex.m4: update and improve help for
39952         --without-included-regex.
39953
39954 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39955
39956         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39957         failure on missing include files.
39958
39959 2009-03-17  Eric Blake  <ebb9@byu.net>
39960
39961         doc: mention more functions added in cygwin 1.7.0
39962         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39963         addition.
39964         * doc/posix-functions/fwscanf.texi: Likewise.
39965         * doc/posix-functions/swprintf.texi: Likewise.
39966         * doc/posix-functions/swscanf.texi: Likewise.
39967         * doc/posix-functions/vfwprintf.texi: Likewise.
39968         * doc/posix-functions/vfwscanf.texi: Likewise.
39969         * doc/posix-functions/vswprintf.texi: Likewise.
39970         * doc/posix-functions/vswscanf.texi: Likewise.
39971         * doc/posix-functions/vwprintf.texi: Likewise.
39972         * doc/posix-functions/vwscanf.texi: Likewise.
39973         * doc/posix-functions/wcscasecmp.texi: Likewise.
39974         * doc/posix-functions/wcsdup.texi: Likewise.
39975         * doc/posix-functions/wcsftime.texi: Likewise.
39976         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39977         * doc/posix-functions/wprintf.texi: Likewise.
39978         * doc/posix-functions/wscanf.texi: Likewise.
39979         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39980
39981 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39982
39983         maint.mk: really add $(AM_MAKEFLAGS)
39984         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39985         was inadvertently omitted in the last commit.
39986         Spotted by Bruno Haible.
39987
39988         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39989         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39990         $(AM_MAKEFLAGS)' rather than plain `make'.
39991
39992         gnulib-tool: execute $MAKE not make
39993         * gnulib-tool: Default $MAKE to 'make'.
39994         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39995         than make.  Initialize $MAKE in the do-autobuild script.
39996
39997         gnulib-tool: use $MAKE not make in generated files
39998         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39999         make, in generated files.  Initialize $MAKE in the do-autobuild
40000         script.
40001
40002         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40003
40004         GNUmakefile: disable parallelism only for multiple, recursive targets
40005         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40006         additions in the Makefile.
40007         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40008         by Automake.
40009         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40010         are listed on the command line and at least one of them is
40011         listed in $(ALL_RECURSIVE_TARGETS).
40012
40013 2009-03-14  Bruno Haible  <bruno@clisp.org>
40014
40015         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40016         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40017         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40018         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40019         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40020         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40021         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40022         unistr/u8-uctomb.
40023         * modules/unistr/u8-strchr (Depends-on): Likewise.
40024         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40025         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40026         unistr/u16-uctomb.
40027         * modules/unistr/u16-strchr (Depends-on): Likewise.
40028         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40029
40030 2009-03-12  Bruno Haible  <bruno@clisp.org>
40031
40032         Work around select() bug on Interix 3.5.
40033         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40034         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40035         * m4/select.m4: New file.
40036         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40037         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40038         * modules/select (Files): Add m4/select.m4.
40039         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40040         * modules/nanosleep (Depends-on): Add select.
40041         * modules/poll (Depends-on): Likewise.
40042         * doc/posix-functions/select.texi: Mention the Interix bug.
40043         Reported by Markus Duft <mduft@gentoo.org>.
40044
40045         * lib/select.c: Renamed from lib/winsock-select.c.
40046         * modules/select (Files): Add lib/select.c, remove
40047         lib/winsock-select.c.
40048         (configure.ac): Update.
40049
40050 2009-03-12  Jim Meyering  <meyering@redhat.com>
40051
40052         avoid gcc warnings about unused macro definitions
40053         * lib/readtokens.c (STREQ): Remove unused definition.
40054         * lib/xmalloc.c (SIZE_MAX): Likewise.
40055         * lib/openat-die.c (N_): Likewise.
40056         * lib/mountlist.c (SIZE_MAX): Remove definition.
40057         Instead, include <stdint.h>.
40058         * lib/readutmp.c: Likewise.
40059         * modules/readutmp (Depends-on): Add stdint.
40060         * modules/mountlist (Depends-on): Add stdint.
40061         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40062
40063 2009-03-10  Bruno Haible  <bruno@clisp.org>
40064
40065         Tests for module 'mbmemcasecoll'.
40066         * modules/mbmemcasecoll-tests: New file.
40067         * tests/test-mbmemcasecoll1.sh: New file.
40068         * tests/test-mbmemcasecoll2.sh: New file.
40069         * tests/test-mbmemcasecoll3.sh: New file.
40070         * tests/test-mbmemcasecoll.c: New file.
40071
40072         New module 'mbmemcasecoll'.
40073         * lib/mbmemcasecoll.h: New file.
40074         * lib/mbmemcasecoll.c: New file.
40075         * modules/mbmemcasecoll: New file.
40076
40077         * tests/test-mbmemcasecmp.h: New file, extracted from
40078         tests/test-mbmemcasecmp.c.
40079         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40080         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40081         (main): Update.
40082         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40083
40084 2009-03-09  Bruno Haible  <bruno@clisp.org>
40085
40086         Tests for module 'mbmemcasecmp'.
40087         * modules/mbmemcasecmp-tests: New file.
40088         * tests/test-mbmemcasecmp1.sh: New file.
40089         * tests/test-mbmemcasecmp2.sh: New file.
40090         * tests/test-mbmemcasecmp3.sh: New file.
40091         * tests/test-mbmemcasecmp.c: New file.
40092
40093         New module 'mbmemcasecmp'.
40094         * lib/mbmemcasecmp.h: New file.
40095         * lib/mbmemcasecmp.c: New file.
40096         * modules/mbmemcasecmp: New file.
40097
40098 2009-03-09  Bruno Haible  <bruno@clisp.org>
40099
40100         Tests for module 'unicase/ulc-casecoll'.
40101         * modules/unicase/ulc-casecoll-tests: New file.
40102         * tests/unicase/test-ulc-casecoll1.sh: New file.
40103         * tests/unicase/test-ulc-casecoll2.sh: New file.
40104         * tests/unicase/test-ulc-casecoll.c: New file.
40105
40106         New module 'unicase/ulc-casecoll'.
40107         * lib/unicase.h (ulc_casecoll): New declaration.
40108         * lib/unicase/ulc-casecoll.c: New file.
40109         * modules/unicase/ulc-casecoll: New file.
40110
40111         New module 'unicase/ulc-casexfrm'.
40112         * lib/unicase.h (ulc_casexfrm): New declaration.
40113         * lib/unicase/ulc-casexfrm.c: New file.
40114         * modules/unicase/ulc-casexfrm: New file.
40115
40116 2009-03-09  Bruno Haible  <bruno@clisp.org>
40117
40118         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40119         invocations.
40120
40121         * m4/mbscasecmp.m4: Remove file.
40122         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40123         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40124
40125         * m4/mbscasestr.m4: Remove file.
40126         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40127         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40128
40129         * m4/mbschr.m4: Remove file.
40130         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40131         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40132
40133         * m4/mbscspn.m4: Remove file.
40134         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40135         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40136
40137         * m4/mbslen.m4: Remove file.
40138         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40139         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40140
40141         * m4/mbsncasecmp.m4: Remove file.
40142         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40143         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40144
40145         * m4/mbsnlen.m4: Remove file.
40146         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40147         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40148
40149         * m4/mbspbrk.m4: Remove file.
40150         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40151         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40152
40153         * m4/mbspcasecmp.m4: Remove file.
40154         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40155         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40156
40157         * m4/mbsrchr.m4: Remove file.
40158         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40159         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40160
40161         * m4/mbssep.m4: Remove file.
40162         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40163         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40164
40165         * m4/mbsspn.m4: Remove file.
40166         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40167         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40168
40169         * m4/mbsstr.m4: Remove file.
40170         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40171         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40172
40173         * m4/mbstok_r.m4: Remove file.
40174         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40175         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40176
40177         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40178
40179         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40180         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40181
40182         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40183
40184 2009-03-08  Bruno Haible  <bruno@clisp.org>
40185
40186         Tests for module 'unicase/ulc-casecmp'.
40187         * modules/unicase/ulc-casecmp-tests: New file.
40188         * tests/unicase/test-ulc-casecmp1.sh: New file.
40189         * tests/unicase/test-ulc-casecmp2.sh: New file.
40190         * tests/unicase/test-ulc-casecmp.c: New file.
40191
40192         New module 'unicase/ulc-casecmp'.
40193         * lib/unicase.h (ulc_casecmp): New declaration.
40194         * lib/unicase/ulc-casecmp.c: New file.
40195         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40196         'const SRC_UNIT *'.
40197         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40198         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40199         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40200         * modules/unicase/ulc-casecmp: New file.
40201
40202         Tests for module 'unicase/u32-is-cased'.
40203         * modules/unicase/u32-is-cased-tests: New file.
40204         * tests/unicase/test-u32-is-cased.c: New file.
40205
40206         Tests for module 'unicase/u16-is-cased'.
40207         * modules/unicase/u16-is-cased-tests: New file.
40208         * tests/unicase/test-u16-is-cased.c: New file.
40209
40210         Tests for module 'unicase/u8-is-cased'.
40211         * modules/unicase/u8-is-cased-tests: New file.
40212         * tests/unicase/test-u8-is-cased.c: New file.
40213         * tests/unicase/test-is-cased.h: New file.
40214
40215         New module 'unicase/u32-is-cased'.
40216         * lib/unicase/u32-is-cased.c: New file.
40217         * modules/unicase/u32-is-cased: New file.
40218
40219         New module 'unicase/u16-is-cased'.
40220         * lib/unicase/u16-is-cased.c: New file.
40221         * modules/unicase/u16-is-cased: New file.
40222
40223         New module 'unicase/u8-is-cased'.
40224         * lib/unicase/u8-is-cased.c: New file.
40225         * lib/unicase/u-is-cased.h: New file.
40226         * modules/unicase/u8-is-cased: New file.
40227
40228         Tests for module 'unicase/u32-is-casefolded'.
40229         * modules/unicase/u32-is-casefolded-tests: New file.
40230         * tests/unicase/test-u32-is-casefolded.c: New file.
40231
40232         Tests for module 'unicase/u16-is-casefolded'.
40233         * modules/unicase/u16-is-casefolded-tests: New file.
40234         * tests/unicase/test-u16-is-casefolded.c: New file.
40235
40236         Tests for module 'unicase/u8-is-casefolded'.
40237         * modules/unicase/u8-is-casefolded-tests: New file.
40238         * tests/unicase/test-u8-is-casefolded.c: New file.
40239         * tests/unicase/test-is-casefolded.h: New file.
40240
40241         New module 'unicase/u32-is-casefolded'.
40242         * lib/unicase/u32-is-casefolded.c: New file.
40243         * modules/unicase/u32-is-casefolded: New file.
40244
40245         New module 'unicase/u16-is-casefolded'.
40246         * lib/unicase/u16-is-casefolded.c: New file.
40247         * modules/unicase/u16-is-casefolded: New file.
40248
40249         New module 'unicase/u8-is-casefolded'.
40250         * lib/unicase/u8-is-casefolded.c: New file.
40251         * modules/unicase/u8-is-casefolded: New file.
40252
40253         Tests for module 'unicase/u32-is-titlecase'.
40254         * modules/unicase/u32-is-titlecase-tests: New file.
40255         * tests/unicase/test-u32-is-titlecase.c: New file.
40256
40257         Tests for module 'unicase/u16-is-titlecase'.
40258         * modules/unicase/u16-is-titlecase-tests: New file.
40259         * tests/unicase/test-u16-is-titlecase.c: New file.
40260
40261         Tests for module 'unicase/u8-is-titlecase'.
40262         * modules/unicase/u8-is-titlecase-tests: New file.
40263         * tests/unicase/test-u8-is-titlecase.c: New file.
40264         * tests/unicase/test-is-titlecase.h: New file.
40265
40266         New module 'unicase/u32-is-titlecase'.
40267         * lib/unicase/u32-is-titlecase.c: New file.
40268         * modules/unicase/u32-is-titlecase: New file.
40269
40270         New module 'unicase/u16-is-titlecase'.
40271         * lib/unicase/u16-is-titlecase.c: New file.
40272         * modules/unicase/u16-is-titlecase: New file.
40273
40274         New module 'unicase/u8-is-titlecase'.
40275         * lib/unicase/u8-is-titlecase.c: New file.
40276         * modules/unicase/u8-is-titlecase: New file.
40277
40278         Tests for module 'unicase/u32-is-lowercase'.
40279         * modules/unicase/u32-is-lowercase-tests: New file.
40280         * tests/unicase/test-u32-is-lowercase.c: New file.
40281
40282         Tests for module 'unicase/u16-is-lowercase'.
40283         * modules/unicase/u16-is-lowercase-tests: New file.
40284         * tests/unicase/test-u16-is-lowercase.c: New file.
40285
40286         Tests for module 'unicase/u8-is-lowercase'.
40287         * modules/unicase/u8-is-lowercase-tests: New file.
40288         * tests/unicase/test-u8-is-lowercase.c: New file.
40289         * tests/unicase/test-is-lowercase.h: New file.
40290
40291         New module 'unicase/u32-is-lowercase'.
40292         * lib/unicase/u32-is-lowercase.c: New file.
40293         * modules/unicase/u32-is-lowercase: New file.
40294
40295         New module 'unicase/u16-is-lowercase'.
40296         * lib/unicase/u16-is-lowercase.c: New file.
40297         * modules/unicase/u16-is-lowercase: New file.
40298
40299         New module 'unicase/u8-is-lowercase'.
40300         * lib/unicase/u8-is-lowercase.c: New file.
40301         * modules/unicase/u8-is-lowercase: New file.
40302
40303         Tests for module 'unicase/u32-is-uppercase'.
40304         * modules/unicase/u32-is-uppercase-tests: New file.
40305         * tests/unicase/test-u32-is-uppercase.c: New file.
40306
40307         Tests for module 'unicase/u16-is-uppercase'.
40308         * modules/unicase/u16-is-uppercase-tests: New file.
40309         * tests/unicase/test-u16-is-uppercase.c: New file.
40310
40311         Tests for module 'unicase/u8-is-uppercase'.
40312         * modules/unicase/u8-is-uppercase-tests: New file.
40313         * tests/unicase/test-u8-is-uppercase.c: New file.
40314         * tests/unicase/test-is-uppercase.h: New file.
40315
40316         New module 'unicase/u32-is-uppercase'.
40317         * lib/unicase/u32-is-uppercase.c: New file.
40318         * modules/unicase/u32-is-uppercase: New file.
40319
40320         New module 'unicase/u16-is-uppercase'.
40321         * lib/unicase/u16-is-uppercase.c: New file.
40322         * modules/unicase/u16-is-uppercase: New file.
40323
40324         New module 'unicase/u8-is-uppercase'.
40325         * lib/unicase/u8-is-uppercase.c: New file.
40326         * modules/unicase/u8-is-uppercase: New file.
40327
40328         New module 'unicase/u32-is-invariant'.
40329         * lib/unicase/u32-is-invariant.c: New file.
40330         * modules/unicase/u32-is-invariant: New file.
40331
40332         New module 'unicase/u16-is-invariant'.
40333         * lib/unicase/u16-is-invariant.c: New file.
40334         * modules/unicase/u16-is-invariant: New file.
40335
40336         New module 'unicase/u8-is-invariant'.
40337         * lib/unicase/u8-is-invariant.c: New file.
40338         * lib/unicase/invariant.h: New file.
40339         * lib/unicase/u-is-invariant.h: New file.
40340         * modules/unicase/u8-is-invariant: New file.
40341
40342         Tests for module 'unicase/u32-casecoll'.
40343         * modules/unicase/u32-casecoll-tests: New file.
40344         * tests/unicase/test-u32-casecoll.c: New file.
40345
40346         Tests for module 'unicase/u16-casecoll'.
40347         * modules/unicase/u16-casecoll-tests: New file.
40348         * tests/unicase/test-u16-casecoll.c: New file.
40349
40350         Tests for module 'unicase/u8-casecoll'.
40351         * modules/unicase/u8-casecoll-tests: New file.
40352         * tests/unicase/test-u8-casecoll.c: New file.
40353
40354         New module 'unicase/u32-casecoll'.
40355         * lib/unicase/u32-casecoll.c: New file.
40356         * modules/unicase/u32-casecoll: New file.
40357
40358         New module 'unicase/u16-casecoll'.
40359         * lib/unicase/u16-casecoll.c: New file.
40360         * modules/unicase/u16-casecoll: New file.
40361
40362         New module 'unicase/u8-casecoll'.
40363         * lib/unicase/u8-casecoll.c: New file.
40364         * lib/unicase/u-casecoll.h: New file.
40365         * modules/unicase/u8-casecoll: New file.
40366
40367         New module 'unicase/u32-casexfrm'.
40368         * lib/unicase/u32-casexfrm.c: New file.
40369         * modules/unicase/u32-casexfrm: New file.
40370
40371         New module 'unicase/u16-casexfrm'.
40372         * lib/unicase/u16-casexfrm.c: New file.
40373         * modules/unicase/u16-casexfrm: New file.
40374
40375         New module 'unicase/u8-casexfrm'.
40376         * lib/unicase/u8-casexfrm.c: New file.
40377         * lib/unicase/u-casexfrm.h: New file.
40378         * modules/unicase/u8-casexfrm: New file.
40379
40380         Tests for module 'unicase/u32-casecmp'.
40381         * modules/unicase/u32-casecmp-tests: New file.
40382         * tests/unicase/test-u32-casecmp.c: New file.
40383
40384         Tests for module 'unicase/u16-casecmp'.
40385         * modules/unicase/u16-casecmp-tests: New file.
40386         * tests/unicase/test-u16-casecmp.c: New file.
40387
40388         Tests for module 'unicase/u8-casecmp'.
40389         * modules/unicase/u8-casecmp-tests: New file.
40390         * tests/unicase/test-u8-casecmp.c: New file.
40391         * tests/unicase/test-casecmp.h: New file.
40392
40393         New module 'unicase/u32-casecmp'.
40394         * lib/unicase/u32-casecmp.c: New file.
40395         * modules/unicase/u32-casecmp: New file.
40396
40397         New module 'unicase/u16-casecmp'.
40398         * lib/unicase/u16-casecmp.c: New file.
40399         * modules/unicase/u16-casecmp: New file.
40400
40401         New module 'unicase/u8-casecmp'.
40402         * lib/unicase/u8-casecmp.c: New file.
40403         * lib/unicase/u-casecmp.h: New file.
40404         * modules/unicase/u8-casecmp: New file.
40405
40406         Tests for module 'unicase/u32-casefold'.
40407         * modules/unicase/u32-casefold-tests: New file.
40408         * tests/unicase/test-u32-casefold.c: New file.
40409
40410         Tests for module 'unicase/u16-casefold'.
40411         * modules/unicase/u16-casefold-tests: New file.
40412         * tests/unicase/test-u16-casefold.c: New file.
40413
40414         Tests for module 'unicase/u8-casefold'.
40415         * modules/unicase/u8-casefold-tests: New file.
40416         * tests/unicase/test-u8-casefold.c: New file.
40417
40418         New module 'unicase/u32-casefold'.
40419         * lib/unicase/u32-casefold.c: New file.
40420         * modules/unicase/u32-casefold: New file.
40421
40422         New module 'unicase/u16-casefold'.
40423         * lib/unicase/u16-casefold.c: New file.
40424         * modules/unicase/u16-casefold: New file.
40425
40426         New module 'unicase/u8-casefold'.
40427         * lib/unicase/u8-casefold.c: New file.
40428         * lib/unicase/u-casefold.h: New file.
40429         * modules/unicase/u8-casefold: New file.
40430
40431         New module 'unicase/tocasefold'.
40432         * lib/unicase/casefold.h: New file.
40433         * lib/unicase/tocasefold.c: New file.
40434         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40435         * modules/unicase/tocasefold: New file.
40436
40437         Tests for module 'unicase/u32-totitle'.
40438         * modules/unicase/u32-totitle-tests: New file.
40439         * tests/unicase/test-u32-totitle.c: New file.
40440
40441         Tests for module 'unicase/u16-totitle'.
40442         * modules/unicase/u16-totitle-tests: New file.
40443         * tests/unicase/test-u16-totitle.c: New file.
40444
40445         Tests for module 'unicase/u8-totitle'.
40446         * modules/unicase/u8-totitle-tests: New file.
40447         * tests/unicase/test-u8-totitle.c: New file.
40448
40449         New module 'unicase/u32-totitle'.
40450         * lib/unicase/u32-totitle.c: New file.
40451         * modules/unicase/u32-totitle: New file.
40452
40453         New module 'unicase/u16-totitle'.
40454         * lib/unicase/u16-totitle.c: New file.
40455         * modules/unicase/u16-totitle: New file.
40456
40457         New module 'unicase/u8-totitle'.
40458         * lib/unicase/u8-totitle.c: New file.
40459         * lib/unicase/u-totitle.h: New file.
40460         * modules/unicase/u8-totitle: New file.
40461
40462         Tests for module 'unicase/u32-tolower'.
40463         * modules/unicase/u32-tolower-tests: New file.
40464         * tests/unicase/test-u32-tolower.c: New file.
40465
40466         Tests for module 'unicase/u16-tolower'.
40467         * modules/unicase/u16-tolower-tests: New file.
40468         * tests/unicase/test-u16-tolower.c: New file.
40469
40470         Tests for module 'unicase/u8-tolower'.
40471         * modules/unicase/u8-tolower-tests: New file.
40472         * tests/unicase/test-u8-tolower.c: New file.
40473
40474         New module 'unicase/u32-tolower'.
40475         * lib/unicase/u32-tolower.c: New file.
40476         * modules/unicase/u32-tolower: New file.
40477
40478         New module 'unicase/u16-tolower'.
40479         * lib/unicase/u16-tolower.c: New file.
40480         * modules/unicase/u16-tolower: New file.
40481
40482         New module 'unicase/u8-tolower'.
40483         * lib/unicase/u8-tolower.c: New file.
40484         * modules/unicase/u8-tolower: New file.
40485
40486         Tests for module 'unicase/u32-toupper'.
40487         * modules/unicase/u32-toupper-tests: New file.
40488         * tests/unicase/test-u32-toupper.c: New file.
40489
40490         Tests for module 'unicase/u16-toupper'.
40491         * modules/unicase/u16-toupper-tests: New file.
40492         * tests/unicase/test-u16-toupper.c: New file.
40493
40494         Tests for module 'unicase/u8-toupper'.
40495         * modules/unicase/u8-toupper-tests: New file.
40496         * tests/unicase/test-u8-toupper.c: New file.
40497
40498         New module 'unicase/u32-toupper'.
40499         * lib/unicase/u32-toupper.c: New file.
40500         * modules/unicase/u32-toupper: New file.
40501
40502         New module 'unicase/u16-toupper'.
40503         * lib/unicase/u16-toupper.c: New file.
40504         * modules/unicase/u16-toupper: New file.
40505
40506         New module 'unicase/u8-toupper'.
40507         * lib/unicase/u8-toupper.c: New file.
40508         * modules/unicase/u8-toupper: New file.
40509
40510         New module 'unicase/u32-casemap'.
40511         * lib/unicase/u32-casemap.c: New file.
40512         * modules/unicase/u32-casemap: New file.
40513
40514         New module 'unicase/u16-casemap'.
40515         * lib/unicase/u16-casemap.c: New file.
40516         * modules/unicase/u16-casemap: New file.
40517
40518         New module 'unicase/u8-casemap'.
40519         * lib/unicase/unicasemap.h: New file.
40520         * lib/unicase/u8-casemap.c: New file.
40521         * lib/unicase/u-casemap.h: New file.
40522         * modules/unicase/u8-casemap: New file.
40523
40524         New module 'unicase/special-casing'.
40525         * lib/unicase/special-casing.h: New file.
40526         * lib/unicase/special-casing.c: New file.
40527         * lib/unicase/special-casing-table.gperf: New file, generated by
40528         gen-uni-tables.c.
40529         * modules/unicase/special-casing: New file.
40530
40531         Tests for module 'unicase/locale-language'.
40532         * modules/unicase/locale-language-tests: New file.
40533         * tests/unicase/test-locale-language.sh: New file.
40534         * tests/unicase/test-locale-language.c: New file.
40535
40536         New module 'unicase/locale-language'.
40537         * lib/unicase/locale-language.c: New file.
40538         * lib/unicase/locale-languages.gperf: New file.
40539         * modules/unicase/locale-language: New file.
40540
40541         Generate more tables for case conversion and case folding.
40542         * lib/gen-uni-tables.c (SCC_*): New enum items.
40543         (struct special_casing_rule): New type.
40544         (casing_rules, num_casing_rules, allocated_casing_rules): New
40545         variables.
40546         (add_casing_rule, fill_casing_rules): New functions.
40547         (struct casefold_rule): New type.
40548         (casefolding_rules, num_casefolding_rules,
40549         allocated_casefolding_rules): New variables.
40550         (fill_casefolding_rules): New function.
40551         (unicode_casefold): New variable.
40552         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40553         sort_casing_rules, output_casing_rules): New functions.
40554         (main): Accept to more arguments: SpecialCasing.txt and
40555         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40556         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40557         Output mapping for casefolding.
40558
40559         * lib/unicase.h: Include stdbool.h, uninorm.h.
40560         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40561         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40562         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40563         arguments.
40564         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40565         resultp arguments.
40566         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40567         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40568         resultp arguments.
40569         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40570         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40571         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40572         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40573         declarations.
40574         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40575
40576 2009-03-08  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40579         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40580         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40581         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40582
40583 2009-03-07  Bruno Haible  <bruno@clisp.org>
40584
40585         Adjust u*_normcmp, u*_normcoll API.
40586         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40587         u16_normcoll, u32_normcoll): Change failure conventions.
40588         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40589         errno and return -1.
40590         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40591
40592 2009-03-07  Bruno Haible  <bruno@clisp.org>
40593
40594         Tests for module 'uninorm/u32-normcoll'.
40595         * modules/uninorm/u32-normcoll-tests: New file.
40596         * tests/uninorm/test-u32-normcoll.c: New file.
40597
40598         Tests for module 'uninorm/u16-normcoll'.
40599         * modules/uninorm/u16-normcoll-tests: New file.
40600         * tests/uninorm/test-u16-normcoll.c: New file.
40601
40602         Tests for module 'uninorm/u8-normcoll'.
40603         * modules/uninorm/u8-normcoll-tests: New file.
40604         * tests/uninorm/test-u8-normcoll.c: New file.
40605
40606 2009-03-07  Bruno Haible  <bruno@clisp.org>
40607
40608         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40609         tests/uninorm/test-u32-normcmp.c.
40610         * tests/uninorm/test-u32-normcmp.c: Include it.
40611         (test_nonascii): New function, extracted from main. Add some more
40612         tests.
40613         (main): Invoke test_ascii and test_nonascii.
40614         * modules/uninorm/u32-normcmp-tests (Files): Add
40615         tests/uninorm/test-u32-normcmp.h.
40616         (Depends-on): Remove uninorm/u32-normcmp.
40617
40618         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40619         tests/uninorm/test-u16-normcmp.c.
40620         * tests/uninorm/test-u16-normcmp.c: Include it.
40621         (test_nonascii): New function, extracted from main. Add some more
40622         tests.
40623         (main): Invoke test_ascii and test_nonascii.
40624         * modules/uninorm/u16-normcmp-tests (Files): Add
40625         tests/uninorm/test-u16-normcmp.h.
40626         (Depends-on): Remove uninorm/u16-normcmp.
40627
40628         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40629         tests/uninorm/test-u8-normcmp.c.
40630         * tests/uninorm/test-u8-normcmp.c: Include it.
40631         (test_nonascii): New function, extracted from main. Add some more
40632         tests.
40633         (main): Invoke test_ascii and test_nonascii.
40634         * modules/uninorm/u8-normcmp-tests (Files): Add
40635         tests/uninorm/test-u8-normcmp.h.
40636         (Depends-on): Remove uninorm/u8-normcmp.
40637
40638 2009-03-07  Bruno Haible  <bruno@clisp.org>
40639
40640         New module 'uninorm/u32-normcoll'.
40641         * lib/uninorm/u32-normcoll.c: New file.
40642         * modules/uninorm/u32-normcoll: New file.
40643
40644         New module 'uninorm/u16-normcoll'.
40645         * lib/uninorm/u16-normcoll.c: New file.
40646         * modules/uninorm/u16-normcoll: New file.
40647
40648         New module 'uninorm/u8-normcoll'.
40649         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40650         declarations.
40651         * lib/uninorm/u8-normcoll.c: New file.
40652         * lib/uninorm/u-normcoll.h: New file.
40653         * modules/uninorm/u8-normcoll: New file.
40654
40655         New module 'uninorm/u32-normxfrm'.
40656         * lib/uninorm/u32-normxfrm.c: New file.
40657         * modules/uninorm/u32-normxfrm: New file.
40658
40659         New module 'uninorm/u16-normxfrm'.
40660         * lib/uninorm/u16-normxfrm.c: New file.
40661         * modules/uninorm/u16-normxfrm: New file.
40662
40663         New module 'uninorm/u8-normxfrm'.
40664         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40665         declarations.
40666         * lib/uninorm/u8-normxfrm.c: New file.
40667         * lib/uninorm/u-normxfrm.h: New file.
40668         * modules/uninorm/u8-normxfrm: New file.
40669
40670 2009-03-07  Bruno Haible  <bruno@clisp.org>
40671
40672         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40673         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40674         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40675
40676 2009-03-07  Bruno Haible  <bruno@clisp.org>
40677
40678         New module 'memxfrm'.
40679         * lib/memxfrm.h: New file.
40680         * lib/memxfrm.c: New file.
40681         * modules/memxfrm: New file.
40682
40683 2009-03-07  Bruno Haible  <bruno@clisp.org>
40684
40685         New module 'memcmp2'.
40686         * lib/memcmp2.h: New file.
40687         * lib/memcmp2.c: New file.
40688         * modules/memcmp2: New file.
40689
40690 2009-03-07  Bruno Haible  <bruno@clisp.org>
40691
40692         Tests for module 'uninorm/decomposing-form'.
40693         * modules/uninorm/decomposing-form-tests: New file.
40694         * tests/uninorm/test-decomposing-form.c: New file.
40695
40696         New module 'uninorm/decomposing-form'.
40697         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40698         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40699         Add 'decomposing_variant' field.
40700         * lib/uninorm/decomposing-form.c: New file.
40701         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40702         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40703         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40704         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40705         * modules/uninorm/decomposing-form: New file.
40706         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40707         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40708
40709 2009-03-07  Bruno Haible  <bruno@clisp.org>
40710
40711         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40712         strings.
40713
40714 2009-03-06  Bruno Haible  <bruno@clisp.org>
40715
40716         Tests for module 'uninorm/u32-normcmp'.
40717         * tests/uninorm/test-u32-normcmp.c: New file.
40718         * modules/uninorm/u32-normcmp-tests: New file.
40719
40720         Tests for module 'uninorm/u16-normcmp'.
40721         * tests/uninorm/test-u16-normcmp.c: New file.
40722         * modules/uninorm/u16-normcmp-tests: New file.
40723
40724         Tests for module 'uninorm/u8-normcmp'.
40725         * tests/uninorm/test-u8-normcmp.c: New file.
40726         * modules/uninorm/u8-normcmp-tests: New file.
40727
40728         New module 'uninorm/u32-normcmp'.
40729         * lib/uninorm/u32-normcmp.c: New file.
40730         * modules/uninorm/u32-normcmp: New file.
40731
40732         New module 'uninorm/u16-normcmp'.
40733         * lib/uninorm/u16-normcmp.c: New file.
40734         * modules/uninorm/u16-normcmp: New file.
40735
40736         New module 'uninorm/u8-normcmp'.
40737         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40738         declarations.
40739         * lib/uninorm/u8-normcmp.c: New file.
40740         * lib/uninorm/u-normcmp.h: New file.
40741         * modules/uninorm/u8-normcmp: New file.
40742
40743 2009-03-06  Bruno Haible  <bruno@clisp.org>
40744
40745         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40746         Reported by Eric Blake.
40747
40748 2009-03-06  Eric Blake  <ebb9@byu.net>
40749             Bruno Haible  <bruno@clisp.org>
40750
40751         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40752         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40753         condition.
40754         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40755         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40756         condition.
40757         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40758
40759 2009-03-06  Eric Blake  <ebb9@byu.net>
40760
40761         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40762         to avoid compiler warnings.
40763         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40764
40765 2009-03-05  Bruno Haible  <bruno@clisp.org>
40766
40767         * tests/test-ftell.c (main): Disable test beyond end of file on
40768         FreeMiNT.
40769         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40770
40771 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40772
40773         * lib/filevercmp.c: Move hidden files up in ordering.
40774         * tests/test-filevercmp.c: Add tests for hidden files.
40775
40776 2009-03-04  Bruno Haible  <bruno@clisp.org>
40777
40778         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40779         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40780         AM_CFLAGS.
40781         Reported by Simon Josefsson.
40782
40783 2009-03-03  Bruno Haible  <bruno@clisp.org>
40784
40785         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40786         Reported by Simon Josefsson.
40787
40788         * doc/ld-version-script.texi: Update node reference.
40789
40790 2009-03-03  Bruno Haible  <bruno@clisp.org>
40791
40792         * modules/visibility (License): Change to 'unlimited'.
40793         Suggested by Simon Josefsson.
40794
40795 2009-03-03  Jim Meyering  <meyering@redhat.com>
40796
40797         unlinkdir: cannot_unlink_dir may modify process state
40798         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40799         it's neither thread-safe nor appropriate for use in a library.
40800
40801 2009-03-03  Eric Blake  <ebb9@byu.net>
40802
40803         test-closein: silence test under Darwin
40804         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40805         care if it dies from EPIPE or EBADF.
40806
40807 2009-03-03  Bruno Haible  <bruno@clisp.org>
40808
40809         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40810         earlier.
40811         * doc/visibility.texi: Fix @node and @section.
40812
40813 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40814
40815         * doc/gnulib.texi: Link to sections for ld version script and
40816         visibility.
40817         * doc/visibility.texi: Add @node and @section.
40818         * modules/ld-version-script: New module.
40819         * m4/ld-version-script.m4: New file.
40820         * doc/ld-version-script.texi: New file.
40821
40822 2009-03-02  David Lutterkort  <lutter@redhat.com>
40823
40824         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40826
40827 2009-03-02  Bruno Haible  <bruno@clisp.org>
40828
40829         * doc/visibility.texi: Mention libtool's -export-symbols option.
40830
40831 2009-03-02  Jim Meyering  <meyering@redhat.com>
40832
40833         announce-gen: new option: --no-print-checksums
40834         * build-aux/announce-gen (usage): Describe it.
40835         (print_checksums): Print a newline here, not in the [*] footnote.
40836         (main): Honor it.
40837
40838 2009-03-01  Bruno Haible  <bruno@clisp.org>
40839
40840         Use socklen_t in the native Windows replacements prototypes.
40841         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40842         instead of 'int'.
40843         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40844         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40845         * modules/getsockopt (Depends-on): Add socklen.
40846         * modules/setsockopt (Depends-on): Add socklen.
40847
40848 2009-03-01  Bruno Haible  <bruno@clisp.org>
40849
40850         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40851         least 4.2.
40852
40853 2009-03-01  Eric Blake  <ebb9@byu.net>
40854             Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40857         error messages.
40858         * lib/wait-process.c (wait_subprocess): Omit error message about
40859         deadly signal sent to the child of termsigp != NULL.
40860
40861 2009-03-01  Eric Blake  <ebb9@byu.net>
40862
40863         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40864
40865 2009-03-01  Bruno Haible  <bruno@clisp.org>
40866
40867         Avoid a gcc warning.
40868         * tests/test-sched.c (b): Make global.
40869         Reported by Eric Blake.
40870
40871 2009-01-19  Martin Lambers  <marlam@marlam.de>
40872
40873         Provide POSIX semantics for socket timeout options on W32.
40874         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40875         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40876         * modules/setsockopt: Depend on sys_time module for struct timeval.
40877         * modules/getsockopt: Depend on sys_time module for struct timeval.
40878
40879 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40880
40881         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40882         __USE_GNU, for consistency with netdb.in.h.
40883         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40884
40885 2009-03-01  Bruno Haible  <bruno@clisp.org>
40886
40887         More support for FreeMiNT.
40888         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40889         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40890
40891 2009-03-01  Bruno Haible  <bruno@clisp.org>
40892
40893         More support for FreeMiNT.
40894         * lib/fpurge.c (fpurge): Correct last commit.
40895         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40896
40897 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40898
40899         Fix unportable awk script in vc-list-files.
40900         * build-aux/vc-list-files: In the replacement awk script, use
40901         substr with a second argument of 1, not zero.
40902         Report by Simon Josefsson.
40903
40904 2009-02-28  Bruno Haible  <bruno@clisp.org>
40905
40906         More support for FreeMiNT.
40907         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40908         to FreeMiNT today.
40909         * lib/fwriting.c (fwriting): Likewise.
40910         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40911
40912 2009-02-28  Bruno Haible  <bruno@clisp.org>
40913
40914         * tests/test-freadseek.c (main): Disable test beyond end of file on
40915         FreeMiNT.
40916         * tests/test-ftello.c (main): Likewise.
40917         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40918
40919 2009-02-28  Bruno Haible  <bruno@clisp.org>
40920
40921         Add tentative support for FreeMiNT.
40922         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40923         * lib/fpurge.c (fpurge): Likewise.
40924         * lib/freadable.c (freadable): Likewise.
40925         * lib/freading.c (freading): Likewise.
40926         * lib/freadptr.c (freadptr): Likewise.
40927         * lib/freadseek.c (freadptrinc): Likewise.
40928         * lib/fseeko.c (rpl_fseeko): Likewise.
40929         * lib/fseterr.c (fseterr): Likewise.
40930         * lib/fwritable.c (fwritable): Likewise.
40931         * lib/fwriting.c (fwriting): Likewise.
40932         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40933         Hourihane.
40934         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40935
40936 2009-02-28  Bruno Haible  <bruno@clisp.org>
40937
40938         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40939         SIGCHLD.
40940         Reported by Jim Meyering.
40941
40942 2009-02-28  Bruno Haible  <bruno@clisp.org>
40943
40944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40945         Mention the results of these tests on various platforms.
40946         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40947         order.
40948         * doc/posix-functions/printf.texi: Likewise.
40949         * doc/posix-functions/snprintf.texi: Likewise.
40950         * doc/posix-functions/sprintf.texi: Likewise.
40951         * doc/posix-functions/vfprintf.texi: Likewise.
40952         * doc/posix-functions/vprintf.texi: Likewise.
40953         * doc/posix-functions/vsnprintf.texi: Likewise.
40954         * doc/posix-functions/vsprintf.texi: Likewise.
40955         * doc/glibc-functions/obstack_printf.texi: Likewise.
40956         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40957
40958 2009-02-28  Bruno Haible  <bruno@clisp.org>
40959
40960         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40961         Reported by Loïc Minier <lool@dooz.org>.
40962
40963 2009-02-27  Bruno Haible  <bruno@clisp.org>
40964
40965         * gnulib-tool (func_import): Make the sed expression used to create the
40966         sed script for updating the .gitignore file POSIX compliant.
40967         Reported by Eric Blake.
40968
40969 2009-02-27  Bruno Haible  <bruno@clisp.org>
40970
40971         * gnulib-tool (sed): Don't alias as "sed --posix".
40972         Reported by Eric Blake.
40973
40974 2009-02-27  Bruno Haible  <bruno@clisp.org>
40975
40976         Avoid test link errors.
40977         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40978         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40979         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40980         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40982
40983 2009-02-27  Bruno Haible  <bruno@clisp.org>
40984
40985         Avoid spurious "(cached)" in configure output.
40986         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40987         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40988         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40989         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40990         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40991         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40992         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40993         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40994         Reported by Eric Blake.
40995
40996 2009-02-27  Eric Blake  <ebb9@byu.net>
40997
40998         printf: fix regression in previous patch
40999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41000
41001 2009-02-27  Bruno Haible  <bruno@clisp.org>
41002
41003         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41004         value.
41005         * lib/stdint.in.h: Likewise.
41006         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41007
41008 2009-02-27  Eric Blake  <ebb9@byu.net>
41009
41010         doc: mention more functions added in cygwin 1.7.0
41011         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41012         addition.
41013         * doc/posix-functions/open_wmemstream.texi: Likewise.
41014         * doc/posix-functions/wcsnlen.texi: Likewise.
41015         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41016         * doc/posix-functions/wcstod.texi: Likewise.
41017         * doc/posix-functions/wcstof.texi: Likewise.
41018         * doc/posix-functions/wcstoimax.texi: Likewise.
41019         * doc/posix-functions/wcstok.texi: Likewise.
41020         * doc/posix-functions/wcstoumax.texi: Likewise.
41021
41022         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41024         * doc/posix-functions/fprintf.texi: Update.
41025         * doc/posix-functions/printf.texi: Update.
41026         * doc/posix-functions/snprintf.texi: Update.
41027         * doc/posix-functions/sprintf.texi: Update.
41028         * doc/posix-functions/vfprintf.texi: Update.
41029         * doc/posix-functions/vprintf.texi: Update.
41030         * doc/posix-functions/vsnprintf.texi: Update.
41031         * doc/posix-functions/vsprintf.texi: Update.
41032         * doc/glibc-functions/obstack_printf.texi: Update.
41033         * doc/glibc-functions/obstack_vprintf.texi: Update.
41034
41035 2009-02-26  Eric Blake  <ebb9@byu.net>
41036
41037         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41038         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41039         compilation bug by using runtime conversion.
41040         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41041         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41042         * modules/ceill-tests (Files): Use nan.h.
41043         * modules/floorl-tests (Files): Likewise.
41044         * modules/frexpl-tests (Files): Likewise.
41045         * modules/isnanl-tests (Files): Likewise.
41046         * modules/ldexpl-tests (Files): Likewise.
41047         * modules/roundl-tests (Files): Likewise.
41048         * modules/truncl-tests (Files): Likewise.
41049         * tests/test-ceill.c (main): Use a working NaN.
41050         * tests/test-floorl.c (main): Likewise.
41051         * tests/test-frexpl.c (main): Likewise.
41052         * tests/test-isnan.c (test_long_double): Likewise.
41053         * tests/test-isnanl.h (main): Likewise.
41054         * tests/test-ldexpl.h (main): Likewise.
41055         * tests/test-roundl.h (main): Likewise.
41056         * tests/test-truncl.h (main): Likewise.
41057         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41058
41059 2009-02-26  Eric Blake  <ebb9@byu.net>
41060             Bruno Haible  <bruno@clisp.org>
41061
41062         Work around a *printf bug with %ls on Solaris.
41063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41064         precision is specified, sprintf stops converting the wide string
41065         argument when the number of bytes that have been produced by this
41066         conversion equals or exceeds the precision.
41067         * doc/posix-functions/fprintf.texi: Update.
41068         * doc/posix-functions/printf.texi: Update.
41069         * doc/posix-functions/snprintf.texi: Update.
41070         * doc/posix-functions/sprintf.texi: Update.
41071         * doc/posix-functions/vfprintf.texi: Update.
41072         * doc/posix-functions/vprintf.texi: Update.
41073         * doc/posix-functions/vsnprintf.texi: Update.
41074         * doc/posix-functions/vsprintf.texi: Update.
41075         * doc/glibc-functions/obstack_printf.texi: Update.
41076         * doc/glibc-functions/obstack_vprintf.texi: Update.
41077
41078 2009-02-26  Eric Blake  <ebb9@byu.net>
41079
41080         stdlib: favor compiler check of random.h
41081         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41082         to avoid an ObjC random.h installed by Swarm.
41083
41084 2009-02-26  Bruno Haible  <bruno@clisp.org>
41085
41086         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41087         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41088         Reported by Gary V. Vaughan <gary@gnu.org>.
41089
41090 2009-02-26  Bruno Haible  <bruno@clisp.org>
41091
41092         Fix *printf behaviour regarding the %ls directive.
41093         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41094         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41095         NEED_PRINTF_DIRECTIVE_LS.
41096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41097         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41099         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41100         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41101         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41102         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41104         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41107         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41111         * doc/posix-functions/fprintf.texi: Update.
41112         * doc/posix-functions/printf.texi: Update.
41113         * doc/posix-functions/snprintf.texi: Update.
41114         * doc/posix-functions/sprintf.texi: Update.
41115         * doc/posix-functions/vfprintf.texi: Update.
41116         * doc/posix-functions/vprintf.texi: Update.
41117         * doc/posix-functions/vsnprintf.texi: Update.
41118         * doc/posix-functions/vsprintf.texi: Update.
41119         * doc/glibc-functions/obstack_printf.texi: Update.
41120         * doc/glibc-functions/obstack_vprintf.texi: Update.
41121         Reported by Eric Blake.
41122
41123 2009-02-25  Bruno Haible  <bruno@clisp.org>
41124
41125         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41126         with known value.
41127         Reported by Gary V. Vaughan <gary@gnu.org>.
41128
41129 2009-02-25  Bruno Haible  <bruno@clisp.org>
41130
41131         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41132         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41133         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41134         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41135         Reported by Gary V. Vaughan <gary@gnu.org>.
41136
41137 2009-02-25  Bruno Haible  <bruno@clisp.org>
41138
41139         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41140         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41141         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41142         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41143         Reported by Gary V. Vaughan <gary@gnu.org>.
41144
41145 2009-02-25  Eric Blake  <ebb9@byu.net>
41146
41147         tests: skip fseek/ftell tests if ungetc is broken
41148         * m4/ungetc.m4: New file.
41149         * modules/fseek-tests: Split test, so ungetc dependency is
41150         separate from rest of test.
41151         * modules/fseeko-tests: Likewise.
41152         * modules/ftell-tests: Likewise.
41153         * modules/ftello-tests: Likewise.
41154         * tests/test-fseek.c (main): Isolate ungetc dependency.
41155         * tests/test-fseeko.c (main): Likewise.
41156         * tests/test-ftell.c (main): Likewise.
41157         * tests/test-ftello.c (main): Likewise.
41158         * tests/test-fseek2.sh: New file.
41159         * tests/test-fseeko2.sh: Likewise.
41160         * tests/test-ftell2.sh: Likewise.
41161         * tests/test-ftello2.sh: Likewise.
41162
41163 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41164
41165         test-getaddrinfo: fix usage of skip return code 77
41166         * tests/test-gettaddrinfo.c: Return skip code 77 only
41167         for first occurance of skip (4x77 is not 77)
41168
41169 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41170
41171         strtod: avoid C99 decl-after-statement
41172         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41173
41174 2009-02-24  Eric Blake  <ebb9@byu.net>
41175
41176         strtod: detect HP-UX 11.31 bug
41177         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41178         Reported by Gary V. Vaughan.
41179
41180 2009-02-23  Bruno Haible  <bruno@clisp.org>
41181
41182         Fix invalid read past end of memory block.
41183         * lib/vasnprintf.c (DCHAR_SET): Define.
41184         (local_wcslen): Define only when needed.
41185         (local_strnlen, local_wcsnlen): New functions.
41186         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41187         directives that involve a conversion ourselves.
41188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41189         wcsnlen, mbrtowc, wcrtomb.
41190         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41191         * tests/test-vasprintf-posix.c (test_function): Likewise.
41192         * tests/test-snprintf-posix.h (test_function): Likewise.
41193         * tests/test-sprintf-posix.h (test_function): Likewise.
41194         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41195
41196 2009-02-22  Bruno Haible  <bruno@clisp.org>
41197
41198         Implement new clarified decomposition of Hangul syllables.
41199         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41200         of type LTV, return only a pairwise decomposition.
41201         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41202         Likewise.
41203         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41204         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41205         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41206
41207 2009-02-22  Bruno Haible  <bruno@clisp.org>
41208
41209         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41210         zero-length results and shrink excess allocated memory.
41211         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41212         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41213         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41214         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41215         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41216         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41217         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41218         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41219         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41220         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41221         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41222         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41223
41224 2009-02-21  Bruno Haible  <bruno@clisp.org>
41225
41226         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41227         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41228         spaces after a period. Put a space between a macro name and its
41229         argument list. Trivial rewordings.
41230         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41231         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41232         (main): Return 0 explicitly.
41233
41234 2009-02-21  Bruno Haible  <bruno@clisp.org>
41235
41236         Tests for module 'uninorm/filter'.
41237         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41238         * modules/uninorm/filter-tests: New file.
41239
41240         New module 'uninorm/filter'.
41241         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41242         uninorm_filter_flush, uninorm_filter_free): New declarations.
41243         * lib/uninorm/uninorm-filter.c: New file.
41244         * modules/uninorm/filter: New file.
41245
41246 2009-02-21  Bruno Haible  <bruno@clisp.org>
41247
41248         Tests for module 'uninorm/nfkc'.
41249         * tests/uninorm/test-nfkc.c: New file.
41250         * tests/uninorm/test-u8-nfkc.c: New file.
41251         * tests/uninorm/test-u16-nfkc.c: New file.
41252         * tests/uninorm/test-u32-nfkc.c: New file.
41253         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41254         * tests/uninorm/test-u32-nfkc-big.c: New file.
41255         * modules/uninorm/nfkc-tests: New file.
41256
41257         New module 'uninorm/nfkc'.
41258         * lib/uninorm/nfkc.c: New file.
41259         * modules/uninorm/nfkc: New file.
41260
41261         Tests for module 'uninorm/nfkd'.
41262         * tests/uninorm/test-nfkd.c: New file.
41263         * tests/uninorm/test-u8-nfkd.c: New file.
41264         * tests/uninorm/test-u16-nfkd.c: New file.
41265         * tests/uninorm/test-u32-nfkd.c: New file.
41266         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41267         * tests/uninorm/test-u32-nfkd-big.c: New file.
41268         * modules/uninorm/nfkd-tests: New file.
41269
41270         New module 'uninorm/nfkd'.
41271         * lib/uninorm/nfkd.c: New file.
41272         * modules/uninorm/nfkd: New file.
41273
41274         Tests for module 'uninorm/nfc'.
41275         * tests/uninorm/test-nfc.c: New file.
41276         * tests/uninorm/test-u8-nfc.c: New file.
41277         * tests/uninorm/test-u16-nfc.c: New file.
41278         * tests/uninorm/test-u32-nfc.c: New file.
41279         * tests/uninorm/test-u32-nfc-big.sh: New file.
41280         * tests/uninorm/test-u32-nfc-big.c: New file.
41281         * modules/uninorm/nfc-tests: New file.
41282
41283         New module 'uninorm/nfc'.
41284         * lib/uninorm/nfc.c: New file.
41285         * modules/uninorm/nfc: New file.
41286
41287         Tests for module 'uninorm/nfd'.
41288         * tests/uninorm/test-nfd.c: New file.
41289         * tests/uninorm/test-u8-nfd.c: New file.
41290         * tests/uninorm/test-u16-nfd.c: New file.
41291         * tests/uninorm/test-u32-nfd.c: New file.
41292         * tests/uninorm/test-u32-nfd-big.sh: New file.
41293         * tests/uninorm/test-u32-nfd-big.c: New file.
41294         * tests/uninorm/test-u32-normalize-big.h: New file.
41295         * tests/uninorm/test-u32-normalize-big.c: New file.
41296         * tests/uninorm/NormalizationTest.txt: New file, created from
41297         Unicode 5.1.0 NormalizationTest.txt.
41298         * modules/uninorm/nfd-tests: New file.
41299
41300         New module 'uninorm/nfd'.
41301         * lib/uninorm/nfd.c: New file.
41302         * modules/uninorm/nfd: New file.
41303
41304         New module 'uninorm/u32-normalize'.
41305         * lib/uninorm/u32-normalize.c: New file.
41306         * modules/uninorm/u32-normalize: New file.
41307
41308         New module 'uninorm/u16-normalize'.
41309         * lib/uninorm/u16-normalize.c: New file.
41310         * modules/uninorm/u16-normalize: New file.
41311
41312         New module 'uninorm/u8-normalize'.
41313         * lib/uninorm/u8-normalize.c: New file.
41314         * lib/uninorm/normalize-internal.h: New file.
41315         * lib/uninorm/u-normalize-internal.h: New file.
41316         * modules/uninorm/u8-normalize: New file.
41317
41318         New module 'uninorm/decompose-internal'.
41319         * lib/uninorm/decompose-internal.c: New file.
41320         * modules/uninorm/decompose-internal: New file.
41321
41322         Tests for module 'uninorm/composition'.
41323         * tests/uninorm/test-composition.c: New file.
41324         * modules/uninorm/composition-tests: New file.
41325
41326         New module 'uninorm/composition'.
41327         * lib/uninorm/composition.c: New file.
41328         * lib/uninorm/composition-table.gperf: New file, generated by
41329         gen-uni-tables.
41330         * modules/uninorm/composition: New file.
41331
41332         Tests for module 'uninorm/compat-decomposition'.
41333         * tests/uninorm/test-compat-decomposition.c: New file.
41334         * modules/uninorm/compat-decomposition-tests: New file.
41335
41336         New module 'uninorm/compat-decomposition'.
41337         * lib/uninorm/decompose-internal.h: New file.
41338         * lib/uninorm/compat-decomposition.c: New file.
41339         * modules/uninorm/compat-decomposition: New file.
41340
41341         Tests for module 'uninorm/canonical-decomposition'.
41342         * tests/uninorm/test-canonical-decomposition.c: New file.
41343         * modules/uninorm/canonical-decomposition-tests: New file.
41344
41345         New module 'uninorm/canonical-decomposition'.
41346         * lib/uninorm/canonical-decomposition.c: New file.
41347         * modules/uninorm/canonical-decomposition: New file.
41348
41349         Tests for module 'uninorm/decomposition'.
41350         * tests/uninorm/test-decomposition.c: New file.
41351         * modules/uninorm/decomposition-tests: New file.
41352
41353         New module 'uninorm/decomposition'.
41354         * lib/uninorm/decomposition.c: New file.
41355         * modules/uninorm/decomposition: New file.
41356
41357         New module 'uninorm/decomposition-table'.
41358         * lib/uninorm/decomposition-table.h: New file.
41359         * lib/uninorm/decomposition-table.c: New file.
41360         * lib/uninorm/decomposition-table1.h: New file, generated by
41361         gen-uni-tables.
41362         * lib/uninorm/decomposition-table2.h: New file, generated by
41363         gen-uni-tables.
41364         * modules/uninorm/decomposition-table: New file.
41365
41366         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41367         (UC_DECOMP_*): New enumeration items.
41368         (get_decomposition): New function.
41369         (struct decomp_table): New type.
41370         (output_decomposition, output_decomposition_tables): New functions.
41371         (unicode_composition_exclusions): New variable.
41372         (fill_composition_exclusions, debug_output_composition_tables): New
41373         functions.
41374         (main): Accept one more argument. Invoke fill_composition_exclusions.
41375         Output decomposition and composition tables.
41376
41377         New module 'uninorm/base'.
41378         * lib/uninorm.h: New file.
41379         * lib/unictype.h: Update comment.
41380         * modules/uninorm/base: New file.
41381
41382 2009-02-21  David Lutterkort  <lutter@redhat.com>
41383
41384         Tests for module 'safe-alloc'.
41385         * tests/test-safe-alloc.c: New file.
41386         * modules/safe-alloc-tests: New file.
41387
41388         New module 'safe-alloc'.
41389         * lib/safe-alloc.h: New file.
41390         * lib/safe-alloc.c: New file.
41391         * m4/safe-alloc.m4: New file.
41392         * modules/safe-alloc: New file.
41393         * doc/safe-alloc.texi: New file.
41394         * doc/gnulib.texi: Include it.
41395         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41396         safe-alloc.
41397
41398 2009-02-18  Bruno Haible  <bruno@clisp.org>
41399
41400         Fix link error on non-glibc systems.
41401         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41402         variable.
41403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41404
41405 2009-02-18  Jim Meyering  <meyering@redhat.com>
41406
41407         fts: avoid used-uninitialized error due to recent change
41408         * lib/fts.c (fts_read): Guard uses of the new member,
41409         parent->fts_n_dirs_remaining, since it's not relevant for
41410         the parent of a directory specified on the command-line.
41411
41412 2009-02-17  James Youngman  <jay@gnu.org>
41413             Bruno Haible  <bruno@clisp.org>
41414
41415         * m4/include_next.m4: Reformulate comment.
41416
41417 2009-02-16  Jim Meyering  <meyering@redhat.com>
41418
41419         fts: add #if guards so that the fts_lgpl module still builds
41420         * lib/fts.c: Guard just-added hash-table-using parts with
41421         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41422         Reported by Simon Josefsson.
41423
41424 2009-02-15  Bruno Haible  <bruno@clisp.org>
41425
41426         * modules/array-mergesort-tests: New file.
41427         * tests/test-array-mergesort.c: New file.
41428
41429         New module 'array-mergesort'.
41430         * modules/array-mergesort: New file.
41431         * lib/array-mergesort.h: New file.
41432
41433 2009-02-15  Bruno Haible  <bruno@clisp.org>
41434
41435         Fix 2009-02-07 commit.
41436         * lib/gen-uni-tables.c (output_predicate, output_category,
41437         output_combclass, output_bidi_category, output_decimal_digit,
41438         output_digit, output_numeric, output_mirror, output_scripts,
41439         output_ident_category, output_simple_mapping): Fix format directives.
41440         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41441
41442 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41443
41444         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41445         fixes are available from IBM.
41446
41447 2009-02-13  Jim Meyering  <meyering@redhat.com>
41448
41449         fts: arrange not to stat non-directories in more cases
41450         This makes GNU find (when it doesn't need to stat each file)
41451         *much* more efficient at traversing reiserfs file systems.
41452         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41453         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41454         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41455         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41456         (leaf_optimization_applies): New function.
41457         (LCO_hash, LCO_compare): New helper functions.
41458         (link_count_optimize_ok): New function.
41459         (fts_stat): Initialize new member (if dir).
41460         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41461         we've just stat'ed a directory.  Skip the stat call when possible.
41462         ---
41463         Note this AFS-related exchange:
41464         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41465         and note find's pioctl call in find/fstype.c.
41466         But that is necessary only if you want to enable the
41467         optimization for AFS, and for now, I don't.
41468
41469         fts: move a function definition "up" (no semantic change)
41470         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41471         "up" to precede upcoming use of a related function.
41472
41473 2009-02-11  Jim Meyering  <meyering@redhat.com>
41474
41475         fts: correct internal computation of nlinks (optimization-related)
41476         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41477         whether the current entry is a directory, so don't test it.
41478
41479 2009-02-10  Bruno Haible  <bruno@clisp.org>
41480
41481         Tests for module 'uniwbrk/ulc-wordbreaks'.
41482         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41483         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41484         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41485
41486         Tests for module 'uniwbrk/u32-wordbreaks'.
41487         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41488         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41489
41490         Tests for module 'uniwbrk/u16-wordbreaks'.
41491         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41492         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41493
41494         Tests for module 'uniwbrk/u8-wordbreaks'.
41495         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41496         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41497
41498 2009-02-10  Bruno Haible  <bruno@clisp.org>
41499
41500         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41501         property.
41502         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41503         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41504         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41505
41506 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41507
41508         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41509         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41510
41511 2009-02-10  Bruno Haible  <bruno@clisp.org>
41512
41513         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41514         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41515         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41516         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41517         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41518         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41519
41520 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41521
41522         * lib/sockets.h (gl_fd_to_handle): New function.
41523
41524         * tests/test-sockets.c: Call gl_fd_to_handle.
41525
41526 2009-02-09  Bruno Haible  <bruno@clisp.org>
41527
41528         * doc/havelib.texi: Document the conventions on bi-arch systems.
41529
41530 2009-02-08  Bruno Haible  <bruno@clisp.org>
41531
41532         Document the AC_LIB_LINKFLAGS macro.
41533         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41534         * doc/gnulib.texi: Include it.
41535
41536 2009-02-08  Bruno Haible  <bruno@clisp.org>
41537
41538         Fix wrong order of sections, compared to TOC.
41539         * doc/gnulib.texi: Include relocatable-maint.texi after the
41540         "Regular expressions" node, not before.
41541
41542 2009-02-08  Bruno Haible  <bruno@clisp.org>
41543
41544         Tests for module 'unicase/totitle'.
41545         * modules/unicase/totitle-tests: New file.
41546
41547         Tests for module 'unicase/tolower'.
41548         * modules/unicase/tolower-tests: New file.
41549
41550         Tests for module 'unicase/toupper'.
41551         * modules/unicase/toupper-tests: New file.
41552         * tests/unicase/test-mapping-part1.h: New file.
41553         * tests/unicase/test-mapping-part2.h: New file.
41554
41555         New module 'unicase/totitle'.
41556         * modules/unicase/totitle: New file.
41557         * lib/unicase/totitle.c: New file.
41558
41559         New module 'unicase/tolower'.
41560         * modules/unicase/tolower: New file.
41561         * lib/unicase/tolower.c: New file.
41562
41563         New module 'unicase/toupper'.
41564         * modules/unicase/toupper: New file.
41565         * lib/unicase/toupper.c: New file.
41566         * lib/unicase/simple-mapping.h: New file.
41567
41568         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41569         (mapping_table): New structure.
41570         (output_simple_mapping): New function.
41571         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41572         * modules/gen-uni-tables (Description): Update.
41573         * lib/unicase/toupper.h: New file, automatically generated by
41574         gen-uni-tables.
41575         * lib/unicase/tolower.h: New file, automatically generated by
41576         gen-uni-tables.
41577         * lib/unicase/totitle.h: New file, automatically generated by
41578         gen-uni-tables.
41579         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41580         gen-uni-tables.
41581         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41582         gen-uni-tables.
41583         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41584         gen-uni-tables.
41585
41586         New module 'unicase/base'.
41587         * modules/unicase/base: New file.
41588         * lib/unicase.h: New file.
41589
41590 2009-02-08  Bruno Haible  <bruno@clisp.org>
41591
41592         New module 'uniwbrk/ulc-wordbreaks'.
41593         * modules/uniwbrk/ulc-wordbreaks: New file.
41594         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41595
41596         New module 'uniwbrk/u32-wordbreaks'.
41597         * modules/uniwbrk/u32-wordbreaks: New file.
41598         * lib/uniwbrk/u32-wordbreaks.c: New file.
41599
41600         New module 'uniwbrk/u16-wordbreaks'.
41601         * modules/uniwbrk/u16-wordbreaks: New file.
41602         * lib/uniwbrk/u16-wordbreaks.c: New file.
41603
41604         New module 'uniwbrk/u8-wordbreaks'.
41605         * modules/uniwbrk/u8-wordbreaks: New file.
41606         * lib/uniwbrk/u8-wordbreaks.c: New file.
41607         * lib/uniwbrk/u-wordbreaks.h: New file.
41608
41609         New module 'uniwbrk/table'.
41610         * modules/uniwbrk/table: New file.
41611         * lib/uniwbrk/wbrktable.h: New file.
41612         * lib/uniwbrk/wbrktable.c: New file.
41613
41614         New module 'uniwbrk/wordbreak-property'.
41615         * modules/uniwbrk/wordbreak-property: New file.
41616         * lib/uniwbrk/wordbreak-property.c: New file.
41617
41618         * lib/gen-uni-tables.c (WBP_*): New enum items.
41619         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41620         (unicode_org_wbp): New variable.
41621         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41622         New functions.
41623         (wbp_table): New structure.
41624         (output_wbp, output_wbrk_tables): New functions.
41625         (main): Accept additional argument. Invoke fill_org_wbp,
41626         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41627         output_wbrk_tables.
41628         * modules/gen-uni-tables (Description): Update.
41629         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41630         gen-uni-tables.
41631
41632         New module 'uniwbrk/base'.
41633         * modules/uniwbrk/base: New file.
41634         * lib/uniwbrk.h: New file.
41635
41636 2009-02-08  Bruno Haible  <bruno@clisp.org>
41637
41638         Update to Unicode 5.1.0.
41639         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41640         U+2185..U+2188.
41641         (is_property_default_ignorable_code_point): Don't include characters
41642         of category Cc or Cs and not-a-characters.
41643         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41644         U+0D79, U+109E, U+109F, U+A60C.
41645         * lib/unictype/bidi_of.h: Regenerated.
41646         * lib/unictype/blocks.h: Regenerated.
41647         * lib/unictype/categ_C.h: Regenerated.
41648         * lib/unictype/categ_Cf.h: Regenerated.
41649         * lib/unictype/categ_Cn.h: Regenerated.
41650         * lib/unictype/categ_L.h: Regenerated.
41651         * lib/unictype/categ_Ll.h: Regenerated.
41652         * lib/unictype/categ_Lm.h: Regenerated.
41653         * lib/unictype/categ_Lo.h: Regenerated.
41654         * lib/unictype/categ_Lu.h: Regenerated.
41655         * lib/unictype/categ_M.h: Regenerated.
41656         * lib/unictype/categ_Mc.h: Regenerated.
41657         * lib/unictype/categ_Me.h: Regenerated.
41658         * lib/unictype/categ_Mn.h: Regenerated.
41659         * lib/unictype/categ_N.h: Regenerated.
41660         * lib/unictype/categ_Nd.h: Regenerated.
41661         * lib/unictype/categ_Nl.h: Regenerated.
41662         * lib/unictype/categ_No.h: Regenerated.
41663         * lib/unictype/categ_P.h: Regenerated.
41664         * lib/unictype/categ_Pd.h: Regenerated.
41665         * lib/unictype/categ_Pe.h: Regenerated.
41666         * lib/unictype/categ_Pf.h: Regenerated.
41667         * lib/unictype/categ_Pi.h: Regenerated.
41668         * lib/unictype/categ_Po.h: Regenerated.
41669         * lib/unictype/categ_Ps.h: Regenerated.
41670         * lib/unictype/categ_S.h: Regenerated.
41671         * lib/unictype/categ_Sk.h: Regenerated.
41672         * lib/unictype/categ_Sm.h: Regenerated.
41673         * lib/unictype/categ_So.h: Regenerated.
41674         * lib/unictype/categ_of.h: Regenerated.
41675         * lib/unictype/combining.h: Regenerated.
41676         * lib/unictype/ctype_alnum.h: Regenerated.
41677         * lib/unictype/ctype_alpha.h: Regenerated.
41678         * lib/unictype/ctype_graph.h: Regenerated.
41679         * lib/unictype/ctype_lower.h: Regenerated.
41680         * lib/unictype/ctype_print.h: Regenerated.
41681         * lib/unictype/ctype_punct.h: Regenerated.
41682         * lib/unictype/ctype_upper.h: Regenerated.
41683         * lib/unictype/decdigit.h: Regenerated.
41684         * lib/unictype/digit.h: Regenerated.
41685         * lib/unictype/mirror.h: Regenerated.
41686         * lib/unictype/numeric.h: Regenerated.
41687         * lib/unictype/pr_alphabetic.h: Regenerated.
41688         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41689         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41690         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41691         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41692         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41693         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41694         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41695         * lib/unictype/pr_combining.h: Regenerated.
41696         * lib/unictype/pr_dash.h: Regenerated.
41697         * lib/unictype/pr_decimal_digit.h: Regenerated.
41698         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41699         * lib/unictype/pr_deprecated.h: Regenerated.
41700         * lib/unictype/pr_diacritic.h: Regenerated.
41701         * lib/unictype/pr_extender.h: Regenerated.
41702         * lib/unictype/pr_format_control.h: Regenerated.
41703         * lib/unictype/pr_grapheme_base.h: Regenerated.
41704         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41705         * lib/unictype/pr_grapheme_link.h: Regenerated.
41706         * lib/unictype/pr_id_continue.h: Regenerated.
41707         * lib/unictype/pr_id_start.h: Regenerated.
41708         * lib/unictype/pr_ideographic.h: Regenerated.
41709         * lib/unictype/pr_ignorable_control.h: Regenerated.
41710         * lib/unictype/pr_lowercase.h: Regenerated.
41711         * lib/unictype/pr_math.h: Regenerated.
41712         * lib/unictype/pr_numeric.h: Regenerated.
41713         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41714         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41715         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41716         * lib/unictype/pr_other_id_continue.h: Regenerated.
41717         * lib/unictype/pr_other_lowercase.h: Regenerated.
41718         * lib/unictype/pr_other_math.h: Regenerated.
41719         * lib/unictype/pr_punctuation.h: Regenerated.
41720         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41721         * lib/unictype/pr_soft_dotted.h: Regenerated.
41722         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41723         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41724         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41725         * lib/unictype/pr_uppercase.h: Regenerated.
41726         * lib/unictype/pr_xid_continue.h: Regenerated.
41727         * lib/unictype/pr_xid_start.h: Regenerated.
41728         * lib/unictype/pr_zero_width.h: Regenerated.
41729         * lib/unictype/scripts.h: Regenerated.
41730         * lib/unictype/scripts_byname.gperf: Regenerated.
41731         * lib/unictype/sy_java_ident.h: Regenerated.
41732         * lib/unilbrk/lbrkprop1.h: Regenerated.
41733         * lib/unilbrk/lbrkprop2.h: Regenerated.
41734         * tests/unictype/test-categ_C.c: Regenerated.
41735         * tests/unictype/test-categ_Cf.c: Regenerated.
41736         * tests/unictype/test-categ_Cn.c: Regenerated.
41737         * tests/unictype/test-categ_L.c: Regenerated.
41738         * tests/unictype/test-categ_Ll.c: Regenerated.
41739         * tests/unictype/test-categ_Lm.c: Regenerated.
41740         * tests/unictype/test-categ_Lo.c: Regenerated.
41741         * tests/unictype/test-categ_Lu.c: Regenerated.
41742         * tests/unictype/test-categ_M.c: Regenerated.
41743         * tests/unictype/test-categ_Mc.c: Regenerated.
41744         * tests/unictype/test-categ_Me.c: Regenerated.
41745         * tests/unictype/test-categ_Mn.c: Regenerated.
41746         * tests/unictype/test-categ_N.c: Regenerated.
41747         * tests/unictype/test-categ_Nd.c: Regenerated.
41748         * tests/unictype/test-categ_Nl.c: Regenerated.
41749         * tests/unictype/test-categ_No.c: Regenerated.
41750         * tests/unictype/test-categ_P.c: Regenerated.
41751         * tests/unictype/test-categ_Pd.c: Regenerated.
41752         * tests/unictype/test-categ_Pe.c: Regenerated.
41753         * tests/unictype/test-categ_Pf.c: Regenerated.
41754         * tests/unictype/test-categ_Pi.c: Regenerated.
41755         * tests/unictype/test-categ_Po.c: Regenerated.
41756         * tests/unictype/test-categ_Ps.c: Regenerated.
41757         * tests/unictype/test-categ_S.c: Regenerated.
41758         * tests/unictype/test-categ_Sk.c: Regenerated.
41759         * tests/unictype/test-categ_Sm.c: Regenerated.
41760         * tests/unictype/test-categ_So.c: Regenerated.
41761         * tests/unictype/test-ctype_alnum.c: Regenerated.
41762         * tests/unictype/test-ctype_alpha.c: Regenerated.
41763         * tests/unictype/test-ctype_graph.c: Regenerated.
41764         * tests/unictype/test-ctype_lower.c: Regenerated.
41765         * tests/unictype/test-ctype_print.c: Regenerated.
41766         * tests/unictype/test-ctype_punct.c: Regenerated.
41767         * tests/unictype/test-ctype_upper.c: Regenerated.
41768         * tests/unictype/test-decdigit.h: Regenerated.
41769         * tests/unictype/test-digit.h: Regenerated.
41770         * tests/unictype/test-numeric.h: Regenerated.
41771         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41772         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41773         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41774         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41775         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41776         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41777         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41778         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41779         * tests/unictype/test-pr_combining.c: Regenerated.
41780         * tests/unictype/test-pr_dash.c: Regenerated.
41781         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41782         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41783         * tests/unictype/test-pr_deprecated.c: Regenerated.
41784         * tests/unictype/test-pr_diacritic.c: Regenerated.
41785         * tests/unictype/test-pr_extender.c: Regenerated.
41786         * tests/unictype/test-pr_format_control.c: Regenerated.
41787         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41788         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41789         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41790         * tests/unictype/test-pr_id_continue.c: Regenerated.
41791         * tests/unictype/test-pr_id_start.c: Regenerated.
41792         * tests/unictype/test-pr_ideographic.c: Regenerated.
41793         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41794         * tests/unictype/test-pr_lowercase.c: Regenerated.
41795         * tests/unictype/test-pr_math.c: Regenerated.
41796         * tests/unictype/test-pr_numeric.c: Regenerated.
41797         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41798         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41799         Regenerated.
41800         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41801         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41802         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41803         * tests/unictype/test-pr_other_math.c: Regenerated.
41804         * tests/unictype/test-pr_punctuation.c: Regenerated.
41805         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41806         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41807         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41808         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41809         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41810         * tests/unictype/test-pr_uppercase.c: Regenerated.
41811         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41812         * tests/unictype/test-pr_xid_start.c: Regenerated.
41813         * tests/unictype/test-pr_zero_width.c: Regenerated.
41814
41815         Update to Unicode 5.1.0.
41816         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41817         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41818         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41819         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41820         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41821         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41822         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41823         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41824         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41825         (nonspacing_table_ind): Update.
41826         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41827
41828         Update to Unicode 5.1.0.
41829         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41830         code transform.
41831         * lib/uniname/uniname.c (unicode_character_name,
41832         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41833         * lib/uniname/uninames.h: Regenerated.
41834         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41835
41836 2009-02-07  Bruno Haible  <bruno@clisp.org>
41837
41838         Merge gen-ctype and gen-lbrk into a single program.
41839         * lib/gen-uni-tables.c: New file, incorporating
41840         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41841         Add directory prefixes to the names of the generated files.
41842         * lib/unictype/gen-ctype.c: Remove file.
41843         * lib/unilbrk/gen-lbrk.c: Remove file.
41844         * modules/gen-uni-tables: New file.
41845         * modules/unictype/gen-ctype: Remove file.
41846         * modules/unilbrk/gen-lbrk: Remove file.
41847
41848 2009-02-07  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41851
41852         New module 'unistr/u32-strcoll'.
41853         * modules/unistr/u32-strcoll: New file.
41854         * lib/unistr/u32-strcoll.c: New file.
41855
41856         New module 'unistr/u16-strcoll'.
41857         * modules/unistr/u16-strcoll: New file.
41858         * lib/unistr/u16-strcoll.c: New file.
41859
41860         New module 'unistr/u8-strcoll'.
41861         * modules/unistr/u8-strcoll: New file.
41862         * lib/unistr/u8-strcoll.c: New file.
41863         * lib/unistr/u-strcoll.h: New file.
41864
41865 2009-02-07  Bruno Haible  <bruno@clisp.org>
41866
41867         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41868         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41869         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41870         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41871         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41872         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41873
41874 2009-02-07  Bruno Haible  <bruno@clisp.org>
41875
41876         Make 64-bit clean.
41877         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41878         output_combclass, output_bidi_category, output_decimal_digit,
41879         output_digit, output_numeric, output_mirror, output_scripts,
41880         output_ident_category): Use proper width specifier in format strings.
41881
41882 2009-02-07  Bruno Haible  <bruno@clisp.org>
41883
41884         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41885         failure behaviour.
41886
41887 2009-02-07  Jim Meyering  <meyering@redhat.com>
41888
41889         regex: avoid compilation failure with upcoming gcc-4.4
41890         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41891         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41892         "... error: integer overflow in preprocessor expression".
41893
41894 2009-02-05  Ben Pfaff  <blp@gnu.org>
41895
41896         Fix link errors on Windows when close module is used.
41897         * modules/close: Add $(LIB_CLOSE) to Link section.
41898         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41899         $(LIB_CLOSE) on Windows.
41900
41901 2009-02-05  Jim Meyering  <meyering@redhat.com>
41902
41903         still avoid unused-parameter warnings, but do it cleanly
41904         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41905         (get_fs_usage): Cast to void instead.
41906         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41907         (dev_from_mount_options, read_file_system_list): Cast to void.
41908         Prompted by Bruno Haible.
41909
41910 2009-02-04  Jim Meyering  <meyering@redhat.com>
41911
41912         fsusage.c: correct copyright year
41913         * lib/fsusage.c: Reflect year in which the change is pushed into
41914
41915         avoid misc. warnings
41916         * lib/fsusage.c (UNUSED_PARAM): Define.
41917         (get_fs_usage): Mark parameter "disk" as unused.
41918         * lib/getugroups.c (getgrent): Use "void" in prototype.
41919         * lib/mountlist.c: Mark unused parameters.
41920         (read_file_system_list): Declare a local with "const".
41921         * lib/nanosleep.c (getnow): Declare static.
41922         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41923
41924         dirfd: set errno upon failure
41925         * lib/dirfd.c: Include <errno.h>.
41926         Set errno to ENOTSUP when returning -1.
41927         * modules/dirfd (Depends-on): Add errno.
41928         Suggested by John Kodis <kodis@comcast.net>.
41929
41930 2009-02-01  Bruno Haible  <bruno@clisp.org>
41931
41932         Don't assume sizeof (long) >= sizeof (void *).
41933         * lib/memcmp.c: Include stdint.h.
41934         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41935         srcp2 to 'const byte *'.
41936         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41937         types to uintptr_t.
41938         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41939         * modules/memcmp (Depends-on): Add stdint.
41940         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41941
41942 2009-01-30  Eric Blake  <ebb9@byu.net>
41943
41944         fix more require-before-expand issues
41945         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41946         expand, AC_PROG_AWK.
41947         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41948
41949 2009-01-28  Eric Blake  <ebb9@byu.net>
41950
41951         version-etc: use consistent URL formatting
41952         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41953         Improve formatting.  Use fputs for string without %.
41954
41955 2009-01-28  Jim Meyering  <meyering@redhat.com>
41956
41957         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41958         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41959         "underquoted definition of NAME" from autoconf-2.59.
41960
41961 2009-01-28  Bruno Haible  <bruno@clisp.org>
41962
41963         * doc/gnulib.texi: Add "Obsolete modules" to index.
41964
41965 2009-01-28  Jim Meyering  <meyering@redhat.com>
41966
41967         useless-if-before-free: recognize more variants
41968         * build-aux/useless-if-before-free: Also recognize e.g.,
41969         if (NULL != p) free (p);
41970
41971 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41972
41973         test-getaddrinfo: skip (don't fail) this test when there's no network
41974         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41975         on the presumption that it means you lack network access.
41976
41977 2009-01-26  Jim Meyering  <meyering@redhat.com>
41978
41979         fflush: avoid warnings on modern systems
41980         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41981         pos and result, into scopes where they're used.
41982
41983 2009-01-26  Eric Blake  <ebb9@byu.net>
41984
41985         Silence warning reintroduced by recent extensions patch.
41986         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41987         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41988         autoconf.
41989
41990         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41991         * m4/00gnulib.m4: New file.
41992         * gnulib-tool (func_get_filelist): Always use it.
41993         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41994         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41995
41996 2009-01-25  Bruno Haible  <bruno@clisp.org>
41997
41998         Make test-quotearg work on MacOS X and AIX.
41999         * tests/test-quotearg.sh: New file.
42000         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42001         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42002         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42003         include <libintl.h>.
42004         (fake_locale): Remove variable.
42005         (gettext, dgettext, dcgettext): Remove functions.
42006         (main): Instead of setting a fake locale, set a real locale. Call
42007         textdomain and bindtextdomain.
42008         * modules/quotearg-tests (Files): Add the new files.
42009         (Depends-on): Add gettext, setenv, unsetenv.
42010         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42011         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42012         Augment TESTS_ENVIRONMENT.
42013
42014 2009-01-25  Bruno Haible  <bruno@clisp.org>
42015
42016         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42017         fr_FR.ISO8859-1 locale on MacOS X.
42018         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42019         ja_JP.eucJP locale on MacOS X.
42020         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42021         zh_CN.GB18030 locale on MacOS X.
42022
42023 2009-01-25  Bruno Haible  <bruno@clisp.org>
42024
42025         Avoid link errors on MacOS X 10.3.
42026         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42027         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42028
42029 2009-01-25  Bruno Haible  <bruno@clisp.org>
42030
42031         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42032         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42033         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42034         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42035         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42036         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42037         posix_spawnattr_init, posix_spawnattr_setsigmask,
42038         posix_spawnattr_setflags, posix_spawnattr_destroy.
42039
42040         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42041         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42042         * modules/execute (Files): Remove m4/posix_spawn.m4.
42043         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42044         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42045         posix_spawnattr_init, posix_spawnattr_setsigmask,
42046         posix_spawnattr_setflags, posix_spawnattr_destroy.
42047
42048 2009-01-25  Bruno Haible  <bruno@clisp.org>
42049
42050         * lib/glthread/threadlib.c: Include <stdlib.h>.
42051
42052 2009-01-25  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/glthread/threadlib.c (dummy): New declaration.
42055
42056 2009-01-25  Bruno Haible  <bruno@clisp.org>
42057
42058         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42059         multibyte characters also for the GB18030 encoding. Don't crash when
42060         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42061
42062 2009-01-25  Bruno Haible  <bruno@clisp.org>
42063
42064         Avoid redefining 'struct random_data' on OSF/1 5.1.
42065         * lib/stdlib.in.h: Include <random.h> if it exists.
42066         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42067         HAVE_RANDOM_H. Include <random.h> when testing whether
42068         'struct random_data' exists.
42069         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42070
42071 2009-01-25  Bruno Haible  <bruno@clisp.org>
42072
42073         Don't install charset.alias on MacOS X >= 10.3.
42074         * lib/localcharset.c (DARWIN7): New macro.
42075         (get_charset_aliases): Hardcode the result for Darwin7.
42076         * modules/localcharset (install-exec-local): Don't install
42077         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42078
42079 2009-01-25  Bruno Haible  <bruno@clisp.org>
42080
42081         Don't install charset.alias on mingw and Cygwin.
42082         * modules/localcharset (install-exec-local): Don't install
42083         charset.alias on mingw and Cygwin, if the file does not yet exist.
42084         The result for these platforms is hardcoded in localcharset.c.
42085
42086 2009-01-25  Bruno Haible  <bruno@clisp.org>
42087
42088         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42089         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42090         before requiring AC_USE_SYSTEM_EXTENSIONS.
42091
42092 2009-01-25  Jim Meyering  <meyering@redhat.com>
42093
42094         c-strtod: avoid warnings
42095         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42096         "assignment discards qualifiers from pointer target type" warnings.
42097
42098 2009-01-24  Bruno Haible  <bruno@clisp.org>
42099
42100         Add support for non-UTF-8 locales on MacOS X.
42101         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42102         canonical encodings. For Darwin 7 and newer, don't map traditional
42103         encodings to UTF-8.
42104         Reported by Vincent Lefevre <vincent@vinc17.org>
42105         at <http://savannah.gnu.org/bugs/?25235>.
42106
42107 2009-01-24  Bruno Haible  <bruno@clisp.org>
42108
42109         * doc/gnulib.texi (Obsolete modules): New section.
42110         Reported by Mike Frysinger <vapier@gentoo.org>.
42111
42112 2009-01-24  Bruno Haible  <bruno@clisp.org>
42113
42114         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42115         (%.dvi): New rule.
42116
42117 2009-01-24  Bruno Haible  <bruno@clisp.org>
42118
42119         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42120         Reported by Eric Blake.
42121
42122 2009-01-24  Bruno Haible  <bruno@clisp.org>
42123
42124         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42125         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42126         Reported by Gary V. Vaughan <gary@gnu.org>.
42127
42128 2009-01-24  Bruno Haible  <bruno@clisp.org>
42129
42130         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42131
42132 2009-01-23  Bruno Haible  <bruno@clisp.org>
42133
42134         Make c-strtod, c-strtold usable in libraries.
42135         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42136         (C_STRTOD): Call strdup instead of xstrdup.
42137         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42138         * modules/c-strtold (Depends-on): Likewise.
42139         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42140         * NEWS: Mention the change.
42141         Reported by Michael Gold <mgold@ncf.ca>.
42142
42143 2009-01-23  Jim Meyering  <meyering@redhat.com>
42144
42145         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42146         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42147         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42148
42149 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42150
42151         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42152         GNU CoreUtils.
42153         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42154         * modules/version-etc (Description): Update.
42155
42156 2009-01-22  Bruno Haible  <bruno@clisp.org>
42157
42158         Cache the C locale object.
42159         * lib/c-strtod.c (c_locale_cache): New variable.
42160         (c_locale): New function.
42161         (C_STRTOD): Use it, and don't call freelocale.
42162         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42163         Suggested by Paolo Bonzini.
42164
42165 2009-01-21  Bruno Haible  <bruno@clisp.org>
42166
42167         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42168         conditions other than overflow.
42169
42170 2009-01-21  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/c-strtod.c: Include errno.h.
42173         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42174         value from STRTOD_L and STRTOD.
42175
42176 2009-01-21  Bruno Haible  <bruno@clisp.org>
42177         and Jim Meyering  <meyering@redhat.com>
42178
42179         nanosleep: skip configure test (fail it) for apple universal builds
42180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42181         universal builds, assume that nanosleep does not work.
42182         * modules/nanosleep (Depends-on): Add multiarch.
42183
42184         mktime: skip configure test (fail it) for apple universal builds
42185         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42186         universal builds, assume that mktime does not work.
42187         * modules/mktime (Depends-on): Add multiarch.
42188
42189 2009-01-21  Eric Blake  <ebb9@byu.net>
42190
42191         multiarch: avoid expand-before-require warning
42192         * modules/multiarch (configure.ac): Require, rather than expand,
42193         gl_MULTIARCH.
42194         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42195         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42196         enforce that all clients require it.  Partial reversion of
42197         2008-12-29 patch.
42198
42199         error: avoid expand-before-require warning
42200         * modules/errno (configure.ac): Require, rather than expand,
42201         gl_HEADER_ERRNO_H.
42202         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42203         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42204         enforce that all clients require it.
42205
42206         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42207         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42208         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42209         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42210
42211 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42212
42213         Revert:
42214         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42215
42216         regex: do not depend on obsolete modules.
42217         * modules/regex: Remove memcmp and memmove.
42218
42219 2009-01-20  Bruno Haible  <bruno@clisp.org>
42220
42221         Make the 'link' module link on Windows NT 4.
42222         * lib/link.c (_WIN32_WINNT): Don't define.
42223         (CreateHardLinkFuncType): New type.
42224         (CreateHardLinkFunc, initialized): New variables.
42225         (initialize): New function.
42226         (link): Invoke CreateHardLink indirectly through the function pointer.
42227
42228 2009-01-20  Bruno Haible  <bruno@clisp.org>
42229
42230         Fix compilation failure on mingw.
42231         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42232
42233 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42234
42235         * doc/c-strtod.texi: Mention a couple of restrictions.
42236
42237 2009-01-20  Jim Meyering  <meyering@redhat.com>
42238
42239         gettimeofday: move more declarations out of functions
42240         * lib/gettimeofday.c: Move extern declarations of tzset and
42241         gmtime out of containing functions.  Prompted by Bruno Haible.
42242
42243 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42244
42245         regex: do not depend on obsolete modules.
42246         * modules/regex: Remove memcmp and memmove.
42247
42248 2009-01-19  Bruno Haible  <bruno@clisp.org>
42249
42250         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42251         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42252         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42253         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42254         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42255
42256 2009-01-19  Bruno Haible  <bruno@clisp.org>
42257
42258         * tests/test-link.c: Include <errno.h>.
42259         (main): Exit with code 77 when a hard link cannot be created due to
42260         the file system.
42261         * tests/test-link.sh: Skip test when a hard link cannot be created due
42262         to the file system.
42263         Suggested by Eric Blake.
42264
42265 2009-01-19  Martin Lambers  <marlam@marlam.de>
42266
42267         * modules/link-tests: New file.
42268         * tests/test-link.sh: New file.
42269         * tests/test-link.c: New file.
42270
42271 2009-01-19  Eric Blake  <ebb9@byu.net>
42272
42273         doc: mention another function added in cygwin 1.7.0
42274         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42275         Another new function in cygwin 1.7.
42276
42277 2009-01-19  Bruno Haible  <bruno@clisp.org>
42278
42279         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42280         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42281         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42282         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42283         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42284         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42285         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42286         * m4/md4.m4 (gl_MD4): Likewise.
42287         * m4/md5.m4 (gl_MD5): Likewise.
42288         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42289         * m4/sha1.m4 (gl_SHA1): Likewise.
42290         * m4/sha256.m4 (gl_SHA256): Likewise.
42291         * m4/sha512.m4 (gl_SHA512): Likewise.
42292
42293 2009-01-19  Bruno Haible  <bruno@clisp.org>
42294
42295         * modules/uniname/uniname-tests (Depends-on): Add progname.
42296         * tests/uniname/test-uninames.c: Include progname.h.
42297         (main): Call set_program_name.
42298
42299         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42300         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42301         (main): Call set_program_name.
42302
42303         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42304         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42305         (main): Call set_program_name.
42306
42307         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42308         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42309         (main): Call set_program_name.
42310
42311         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42312         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42313         (main): Call set_program_name.
42314
42315         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42316         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42317         (main): Call set_program_name.
42318
42319         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42320         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42321         (main): Call set_program_name.
42322
42323         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42324         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42325         (main): Call set_program_name.
42326
42327         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42328         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42329         (main): Call set_program_name.
42330
42331 2009-01-19  Eric Blake  <ebb9@byu.net>
42332
42333         test-unistd: test previous patch
42334         * tests/test-unistd.c: Test *_FILENO macros.
42335
42336         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42337         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42338         Guarantee a definition.
42339         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42340         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42341         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42342         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42343         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42344         Likewise.
42345         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42346         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42347         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42348         Likewise.
42349         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42350         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42351         (STDERR_FILENO): Likewise.
42352         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42353         (STDERR_FILENO): Likewise.
42354         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42355         (STDERR_FILENO): Likewise.
42356         Reported by Elbert Pol.
42357
42358 2009-01-19  Eric Blake  <ebb9@byu.net>
42359
42360         doc: mention more functions added in cygwin 1.7.0
42361         * doc/posix-functions/abort.texi (abort): Update wording related
42362         to cygwin.
42363         * doc/posix-functions/daylight.texi (daylight): Likewise.
42364         * doc/posix-functions/optarg.texi (optarg): Likewise.
42365         * doc/posix-functions/optarg.texi (opterr): Likewise.
42366         * doc/posix-functions/optarg.texi (optind): Likewise.
42367         * doc/posix-functions/optarg.texi (optopt): Likewise.
42368         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42369         worked in 1.5.x, and was withdrawn in 1.7.
42370         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42371         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42372         cygwin versions.
42373         * doc/posix-functions/perror.texi (perror): Likewise.
42374         * doc/posix-functions/printf.texi (printf): Likewise.
42375         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42376         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42377         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42378         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42379         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42380         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42381         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42382         Likewise.
42383         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42384         Likewise.
42385         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42386         this function.
42387         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42388         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42389         Likewise.
42390         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42391         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42392         * doc/posix-functions/confstr.texi (confstr): Likewise.
42393         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42394         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42395         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42396         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42397         * doc/posix-functions/fputws.texi (fputws): Likewise.
42398         * doc/posix-functions/fwide.texi (fwide): Likewise.
42399         * doc/posix-functions/getwc.texi (getwc): Likewise.
42400         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42401         * doc/posix-functions/putwc.texi (putwc): Likewise.
42402         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42403         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42404         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42405         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42406         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42407         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42408         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42409         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42410         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42411         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42412         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42413
42414 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42415
42416         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42417         * lib/ioctl.c: Include <sys/ioctl.h>.
42418
42419 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42420
42421         * modules/getdate-tests (Depends-on): Add progname.
42422         * tests/test-getdate.c: Use progname module, to avoid link errors
42423         on non-glibc systems.
42424
42425 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42426
42427         * modules/filenamecat-tests (Depends-on): Add progname.
42428         * modules/fstrcmp-tests (Depends-on): Likewise.
42429
42430         * tests/test-filenamecat.c: Use progname module, to avoid link
42431         errors on non-glibc systems.
42432         * tests/test-fstrcmp.c: Likewise.
42433
42434 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42435
42436         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42437         * lib/gettimeofday.c: Move extern declaration out of function.
42438
42439 2009-01-18  Bruno Haible  <bruno@clisp.org>
42440
42441         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42442         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42443         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42444
42445 2009-01-18  Bruno Haible  <bruno@clisp.org>
42446
42447         * lib/strftime.c (MEMPCPY): Remove unused macro.
42448         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42449
42450 2009-01-18  Martin Lambers  <marlam@marlam.de>
42451
42452         New module 'link'.
42453         * lib/unistd.in.h (link): New declaration.
42454         * lib/link.c: New file.
42455         * m4/link.m4: New file.
42456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42457         HAVE_LINK.
42458         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42459         * modules/link: New file.
42460         * doc/posix-functions/link.texi: Mention the new module.
42461
42462 2009-01-18  Bruno Haible  <bruno@clisp.org>
42463
42464         * tests/test-avltree_list.c (main): Call set_program_name.
42465         * tests/test-avltree_oset.c (main): Likewise.
42466         * tests/test-obstack-printf.c: Include progname.h.
42467         (main): Call set_program_name.
42468         * tests/test-quotearg.c: Include progname.h.
42469         (main): Call set_program_name.
42470         * tests/test-xmemdup0.c: Include progname.h.
42471         (main): Call set_program_name.
42472
42473 2009-01-18  Bruno Haible  <bruno@clisp.org>
42474
42475         New module 'alphasort'.
42476         * lib/dirent.in.h (alphasort): New declaration.
42477         * lib/alphasort.c: New file, from glibc with modifications.
42478         * m4/alphasort.m4: New file.
42479         * modules/alphasort: New file.
42480         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42481         HAVE_ALPHASORT.
42482         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42483         HAVE_ALPHASORT.
42484         * doc/posix-functions/alphasort.texi: Mention the new module and the
42485         portability problems.
42486
42487 2009-01-18  Bruno Haible  <bruno@clisp.org>
42488
42489         New module 'scandir'.
42490         * lib/dirent.in.h (scandir): New declaration.
42491         * lib/scandir.c: New file, from glibc with modifications.
42492         * m4/scandir.m4: New file.
42493         * modules/scandir: New file.
42494         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42495         HAVE_SCANDIR.
42496         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42497         HAVE_SCANDIR.
42498         * doc/posix-functions/scandir.texi: Mention the new module and the
42499         portability problems.
42500
42501 2009-01-17  Bruno Haible  <bruno@clisp.org>
42502
42503         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42504         Update documentation.
42505         (func_remove_suffix): Escape all dots in the suffix. Update
42506         documentation.
42507         (func_filter_filelist): Update documentation.
42508         Reported by Ralf Wildenhues.
42509
42510 2009-01-17  Bruno Haible  <bruno@clisp.org>
42511
42512         * modules/dprintf-posix-tests: New file.
42513         * tests/test-dprintf-posix.sh: New file.
42514         * tests/test-dprintf-posix.c: New file.
42515
42516         New modules 'dprintf', 'dprintf-posix'.
42517         * lib/stdio.in.h (dprintf): New declaration.
42518         * lib/dprintf.c: New file.
42519         * m4/dprintf.m4: New file.
42520         * m4/dprintf-posix.m4: New file.
42521         * modules/dprintf: New file.
42522         * modules/dprintf-posix: New file.
42523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42524         HAVE_DPRINTF, REPLACE_DPRINTF.
42525         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42526         HAVE_DPRINTF, REPLACE_DPRINTF.
42527         * doc/posix-functions/dprintf.texi: Mention the new modules.
42528
42529 2009-01-17  Bruno Haible  <bruno@clisp.org>
42530
42531         * modules/vdprintf-posix-tests: New file.
42532         * tests/test-vdprintf-posix.sh: New file.
42533         * tests/test-vdprintf-posix.c: New file.
42534
42535         New modules 'vdprintf', 'vdprintf-posix'.
42536         * lib/stdio.in.h (vdprintf): New declaration.
42537         * lib/vdprintf.c: New file.
42538         * m4/vdprintf.m4: New file.
42539         * m4/vdprintf-posix.m4: New file.
42540         * modules/vdprintf: New file.
42541         * modules/vdprintf-posix: New file.
42542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42543         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42544         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42545         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42546         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42547
42548 2009-01-17  Bruno Haible  <bruno@clisp.org>
42549
42550         Fix replacement of fopen on mingw.
42551         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42552         mingw.
42553
42554 2009-01-17  Bruno Haible  <bruno@clisp.org>
42555
42556         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42557         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42558
42559 2009-01-17  Bruno Haible  <bruno@clisp.org>
42560
42561         Avoid test-fflush2.sh failure on mingw.
42562         * tests/test-fflush2.c: Include binary-io.h.
42563         (main): Put standard input into binary mode.
42564         * modules/fflush-tests (Depends-on): Add binary-io.
42565
42566 2009-01-17  Bruno Haible  <bruno@clisp.org>
42567
42568         * lib/wchar.in.h: In another particular situation, include only the
42569         system's <wchar.h> file.
42570         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42571         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42572         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42573
42574 2009-01-17  Bruno Haible  <bruno@clisp.org>
42575
42576         Support for stripping executables in --enable-relocatable.
42577         * build-aux/install-reloc: Expect one more argument, or an environment
42578         variable RELOC_STRIP_PROG. If set, strip the destination program and
42579         its wrapper.
42580         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42581         RELOC_STRIP_PROG.
42582         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42583         to set RELOCATABLE_STRIP.
42584         * NEWS: Mention the new Makefile requirement.
42585
42586 2009-01-17  Bruno Haible  <bruno@clisp.org>
42587
42588         * build-aux/install-reloc: Remove debugging information left over by
42589         C compiler on MacOS X.
42590
42591 2009-01-17  Bruno Haible  <bruno@clisp.org>
42592
42593         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42594         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42595         _NSGetExecutablePath.
42596
42597 2009-01-16  Jim Meyering  <meyering@redhat.com>
42598
42599         strerror: avoid warnings about discarding "const"
42600         * lib/strerror.c (rpl_strerror): Instead of returning a const
42601         string from each and every "case", use a variable, and add a single
42602         cast after the switch.
42603
42604 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42605
42606         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42607
42608 2009-01-16  Bruno Haible  <bruno@clisp.org>
42609
42610         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42611         array initializer syntax that also works in C++ mode.
42612         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42613
42614 2009-01-16  Jim Meyering  <meyering@redhat.com>
42615
42616         poll: suppress a warning
42617         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42618         to ignore "...unsigned expression < 0 is always false" warnings.
42619
42620 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42621
42622         poll: remove declarations of unused variables
42623         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42624         sockbuf and optlen.
42625
42626 2009-01-15  Bruno Haible  <bruno@clisp.org>
42627
42628         Make fflush-after-ungetc POSIX compliant on BSD systems.
42629         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42630         (clear_ungetc_buffer): Implement also for other systems.
42631         (rpl_fflush): On glibc systems, invoke
42632         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42633         clear_ungetc_buffer after fetching the stream's position, not before.
42634
42635 2009-01-15  Bruno Haible  <bruno@clisp.org>
42636
42637         Make fflush-after-ungetc POSIX compliant on glibc systems.
42638         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42639         after ungetc.
42640         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42641         (rpl_fflush): On glibc systems, simply call the system's fflush
42642         function after clearing the ungetc buffer.
42643         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42644         Instead, lseek only to the end of file, then use the system's fseeko
42645         for the rest. On glibc systems, reset the EOF indicator bit.
42646
42647 2009-01-15  Jim Meyering  <meyering@redhat.com>
42648
42649         openmp.m4: revert quote-adding change, for portability to older autoconf
42650         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42651         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42652         Simon Josefsson noticed the problem when using autoconf-2.61.
42653
42654 2009-01-15  Bruno Haible  <bruno@clisp.org>
42655
42656         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42657         * tests/test-fflush2.c (ASSERT): Always fail.
42658         (main): Add two tests for fflush() after ungetc(), taking into account
42659         the Austin Group's clarification.
42660         Suggested by Eric Blake.
42661
42662 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42663
42664         mktime.m4: remove K&R-style function prototypes
42665         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42666         for the Sun C++ compiler.
42667
42668 2009-01-14  Bruno Haible  <bruno@clisp.org>
42669
42670         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42671         while including <wchar.h>.
42672         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42673         the system's <wchar.h> file.
42674         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42675
42676 2009-01-14  Bruno Haible  <bruno@clisp.org>
42677
42678         * m4/csharp.m4: Don't mention gettext on the serial number line.
42679         * m4/csharpexec.m4: Likewise.
42680         * m4/eaccess.m4: Likewise.
42681         * m4/javaexec.m4: Likewise.
42682         * m4/sig_atomic_t.m4: Likewise.
42683         * m4/tmpdir.m4: Likewise.
42684         * m4/intldir.m4: Bump gettext version.
42685         * m4/lib-ld.m4: Likewise.
42686
42687 2009-01-14  Bruno Haible  <bruno@clisp.org>
42688
42689         * lib/progname.c (set_program_name): Add more comments.
42690         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42691
42692 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42693
42694         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42695         were sys/stat.h does not define it.
42696
42697 2009-01-14  Jim Meyering  <meyering@redhat.com>
42698
42699         many *.m4 files: improve m4 quoting
42700         99% of this change was performed by running the following commands:
42701         git ls-files | grep '\.m4$' | xargs perl -pi \
42702           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42703           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42704           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42705           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42706         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42707         The remainder were to add Copyright dates, increment serial numbers,
42708         undo some changes in comments, exclude m4/intl.m4, and add quotes
42709         around the "1" in ",1" where the unusual spacing prohibited the
42710         above regexps from doing the job.  For more details, see
42711         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42712         * m4/acl.m4: Modified.
42713         * m4/afs.m4: Likewise.
42714         * m4/alloca.m4: Likewise.
42715         * m4/argp.m4: Likewise.
42716         * m4/argz.m4: Likewise.
42717         * m4/atexit.m4: Likewise.
42718         * m4/bison-i18n.m4: Likewise.
42719         * m4/bison.m4: Likewise.
42720         * m4/byteswap.m4: Likewise.
42721         * m4/c-stack.m4: Likewise.
42722         * m4/c-strtod.m4: Likewise.
42723         * m4/calloc.m4: Likewise.
42724         * m4/canonicalize-lgpl.m4: Likewise.
42725         * m4/chown.m4: Likewise.
42726         * m4/clock_time.m4: Likewise.
42727         * m4/codeset.m4: Likewise.
42728         * m4/copy-file.m4: Likewise.
42729         * m4/csharp.m4: Likewise.
42730         * m4/csharpcomp.m4: Likewise.
42731         * m4/csharpexec.m4: Likewise.
42732         * m4/d-ino.m4: Likewise.
42733         * m4/d-type.m4: Likewise.
42734         * m4/dirfd.m4: Likewise.
42735         * m4/double-slash-root.m4: Likewise.
42736         * m4/eaccess.m4: Likewise.
42737         * m4/eealloc.m4: Likewise.
42738         * m4/environ.m4: Likewise.
42739         * m4/errno_h.m4: Likewise.
42740         * m4/euidaccess.m4: Likewise.
42741         * m4/execute.m4: Likewise.
42742         * m4/fatal-signal.m4: Likewise.
42743         * m4/fchdir.m4: Likewise.
42744         * m4/fcntl_h.m4: Likewise.
42745         * m4/fileblocks.m4: Likewise.
42746         * m4/filenamecat.m4: Likewise.
42747         * m4/findprog.m4: Likewise.
42748         * m4/flexmember.m4: Likewise.
42749         * m4/fnmatch.m4: Likewise.
42750         * m4/fopen.m4: Likewise.
42751         * m4/fpending.m4: Likewise.
42752         * m4/fprintf-posix.m4: Likewise.
42753         * m4/free.m4: Likewise.
42754         * m4/frexp.m4: Likewise.
42755         * m4/frexpl.m4: Likewise.
42756         * m4/fsusage.m4: Likewise.
42757         * m4/ftruncate.m4: Likewise.
42758         * m4/gc-camellia.m4: Likewise.
42759         * m4/gc-random.m4: Likewise.
42760         * m4/gc.m4: Likewise.
42761         * m4/getaddrinfo.m4: Likewise.
42762         * m4/getcwd-abort-bug.m4: Likewise.
42763         * m4/getcwd-path-max.m4: Likewise.
42764         * m4/getdate.m4: Likewise.
42765         * m4/getdomainname.m4: Likewise.
42766         * m4/getgroups.m4: Likewise.
42767         * m4/gethostname.m4: Likewise.
42768         * m4/gethrxtime.m4: Likewise.
42769         * m4/getline.m4: Likewise.
42770         * m4/getloadavg.m4: Likewise.
42771         * m4/getndelim2.m4: Likewise.
42772         * m4/getpass.m4: Likewise.
42773         * m4/gettext.m4: Likewise.
42774         * m4/gettime.m4: Likewise.
42775         * m4/gettimeofday.m4: Likewise.
42776         * m4/gnulib-common.m4: Likewise.
42777         * m4/group-member.m4: Likewise.
42778         * m4/host-os.m4: Likewise.
42779         * m4/iconv.m4: Likewise.
42780         * m4/iconv_open.m4: Likewise.
42781         * m4/inet_ntop.m4: Likewise.
42782         * m4/inet_pton.m4: Likewise.
42783         * m4/inline.m4: Likewise.
42784         * m4/intldir.m4: Likewise.
42785         * m4/intlmacosx.m4: Likewise.
42786         * m4/intmax.m4: Likewise.
42787         * m4/intmax_t.m4: Likewise.
42788         * m4/inttypes.m4: Likewise.
42789         * m4/inttypes_h.m4: Likewise.
42790         * m4/inttypes-pri.m4: Likewise.
42791         * m4/isapipe.m4: Likewise.
42792         * m4/isnand.m4: Likewise.
42793         * m4/isnanf.m4: Likewise.
42794         * m4/isnanl.m4: Likewise.
42795         * m4/javacomp.m4: Likewise.
42796         * m4/javaexec.m4: Likewise.
42797         * m4/jm-winsz1.m4: Likewise.
42798         * m4/jm-winsz2.m4: Likewise.
42799         * m4/lchown.m4: Likewise.
42800         * m4/lcmessage.m4: Likewise.
42801         * m4/ldexpl.m4: Likewise.
42802         * m4/lib-ld.m4: Likewise.
42803         * m4/lib-link.m4: Likewise.
42804         * m4/libsigsegv.m4: Likewise.
42805         * m4/link-follow.m4: Likewise.
42806         * m4/localcharset.m4: Likewise.
42807         * m4/locale-fr.m4: Likewise.
42808         * m4/locale-ja.m4: Likewise.
42809         * m4/locale-tr.m4: Likewise.
42810         * m4/locale-zh.m4: Likewise.
42811         * m4/lock.m4: Likewise.
42812         * m4/longlong.m4: Likewise.
42813         * m4/ls-mntd-fs.m4: Likewise.
42814         * m4/lstat.m4: Likewise.
42815         * m4/malloc.m4: Likewise.
42816         * m4/mathl.m4: Likewise.
42817         * m4/mbrtowc.m4: Likewise.
42818         * m4/mbstate_t.m4: Likewise.
42819         * m4/mbswidth.m4: Likewise.
42820         * m4/memchr.m4: Likewise.
42821         * m4/memcmp.m4: Likewise.
42822         * m4/memcpy.m4: Likewise.
42823         * m4/memmem.m4: Likewise.
42824         * m4/memmove.m4: Likewise.
42825         * m4/mempcpy.m4: Likewise.
42826         * m4/memrchr.m4: Likewise.
42827         * m4/memset.m4: Likewise.
42828         * m4/minmax.m4: Likewise.
42829         * m4/mkdir-slash.m4: Likewise.
42830         * m4/mkdtemp.m4: Likewise.
42831         * m4/mktime.m4: Likewise.
42832         * m4/mmap-anon.m4: Likewise.
42833         * m4/mountlist.m4: Likewise.
42834         * m4/nanosleep.m4: Likewise.
42835         * m4/nls.m4: Likewise.
42836         * m4/nocrash.m4: Likewise.
42837         * m4/open.m4: Likewise.
42838         * m4/openat.m4: Likewise.
42839         * m4/openmp.m4: Likewise.
42840         * m4/pathmax.m4: Likewise.
42841         * m4/perl.m4: Likewise.
42842         * m4/physmem.m4: Likewise.
42843         * m4/pipe.m4: Likewise.
42844         * m4/po.m4: Likewise.
42845         * m4/poll.m4: Likewise.
42846         * m4/posixtm.m4: Likewise.
42847         * m4/posixver.m4: Likewise.
42848         * m4/printf-frexp.m4: Likewise.
42849         * m4/printf-frexpl.m4: Likewise.
42850         * m4/printf-posix.m4: Likewise.
42851         * m4/printf-posix-rpl.m4: Likewise.
42852         * m4/printf.m4: Likewise.
42853         * m4/progtest.m4: Likewise.
42854         * m4/putenv.m4: Likewise.
42855         * m4/readline.m4: Likewise.
42856         * m4/readlink.m4: Likewise.
42857         * m4/readutmp.m4: Likewise.
42858         * m4/realloc.m4: Likewise.
42859         * m4/regex.m4: Likewise.
42860         * m4/relocatable.m4: Likewise.
42861         * m4/relocatable-lib.m4: Likewise.
42862         * m4/rename-dest-slash.m4: Likewise.
42863         * m4/rename.m4: Likewise.
42864         * m4/rmdir-errno.m4: Likewise.
42865         * m4/rmdir.m4: Likewise.
42866         * m4/roundf.m4: Likewise.
42867         * m4/roundl.m4: Likewise.
42868         * m4/rpmatch.m4: Likewise.
42869         * m4/save-cwd.m4: Likewise.
42870         * m4/selinux-selinux-h.m4: Likewise.
42871         * m4/setenv.m4: Likewise.
42872         * m4/settime.m4: Likewise.
42873         * m4/sig2str.m4: Likewise.
42874         * m4/sig_atomic_t.m4: Likewise.
42875         * m4/signalblocking.m4: Likewise.
42876         * m4/signbit.m4: Likewise.
42877         * m4/sigpipe.m4: Likewise.
42878         * m4/sockets.m4: Likewise.
42879         * m4/sockpfaf.m4: Likewise.
42880         * m4/st_dm_mode.m4: Likewise.
42881         * m4/stat-time.m4: Likewise.
42882         * m4/stdbool.m4: Likewise.
42883         * m4/stdint.m4: Likewise.
42884         * m4/stdint_h.m4: Likewise.
42885         * m4/stpcpy.m4: Likewise.
42886         * m4/stpncpy.m4: Likewise.
42887         * m4/strcase.m4: Likewise.
42888         * m4/strchrnul.m4: Likewise.
42889         * m4/strcspn.m4: Likewise.
42890         * m4/strdup.m4: Likewise.
42891         * m4/strftime.m4: Likewise.
42892         * m4/strndup.m4: Likewise.
42893         * m4/strnlen.m4: Likewise.
42894         * m4/strpbrk.m4: Likewise.
42895         * m4/strptime.m4: Likewise.
42896         * m4/strsep.m4: Likewise.
42897         * m4/strtod.m4: Likewise.
42898         * m4/strtoimax.m4: Likewise.
42899         * m4/strtok_r.m4: Likewise.
42900         * m4/strtol.m4: Likewise.
42901         * m4/strtoll.m4: Likewise.
42902         * m4/strtoul.m4: Likewise.
42903         * m4/strtoull.m4: Likewise.
42904         * m4/strtoumax.m4: Likewise.
42905         * m4/strverscmp.m4: Likewise.
42906         * m4/threadlib.m4: Likewise.
42907         * m4/timegm.m4: Likewise.
42908         * m4/tm_gmtoff.m4: Likewise.
42909         * m4/tmpdir.m4: Likewise.
42910         * m4/tmpfile.m4: Likewise.
42911         * m4/tzset.m4: Likewise.
42912         * m4/uintmax_t.m4: Likewise.
42913         * m4/unlinkdir.m4: Likewise.
42914         * m4/unlocked-io.m4: Likewise.
42915         * m4/uptime.m4: Likewise.
42916         * m4/userspec.m4: Likewise.
42917         * m4/utimbuf.m4: Likewise.
42918         * m4/utime.m4: Likewise.
42919         * m4/utimes-null.m4: Likewise.
42920         * m4/utimes.m4: Likewise.
42921         * m4/vararrays.m4: Likewise.
42922         * m4/vasnprintf.m4: Likewise.
42923         * m4/vfprintf-posix.m4: Likewise.
42924         * m4/vprintf-posix.m4: Likewise.
42925         * m4/wait-process.m4: Likewise.
42926         * m4/wchar_t.m4: Likewise.
42927         * m4/wint_t.m4: Likewise.
42928         * m4/write-any-file.m4: Likewise.
42929         * m4/yield.m4: Likewise.
42930
42931 2009-01-13  Bruno Haible  <bruno@clisp.org>
42932
42933         Avoid test-copy-file.sh failures when ACL support insufficient.
42934         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42935         TESTS_ENVIRONMENT.
42936         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42937         Reported by Jim Meyering.
42938
42939 2009-01-13  Bruno Haible  <bruno@clisp.org>
42940
42941         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42942         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42943         * modules/unistdio/u8-printf-parse (Files): Likewise.
42944         * modules/unistdio/u32-printf-parse (Files): Likewise.
42945         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42946
42947 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42948
42949         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42950         and m4/inttypes_h.m4 too.
42951
42952 2009-01-12  Eric Blake  <ebb9@byu.net>
42953
42954         tests: IRIX 6.2 cc can't compile -0.0 into .data
42955         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42956         rather than at compile-time.
42957         * tests/test-floorl.c (minus_zero): Likewise.
42958         * tests/test-frexpl.c (minus_zero): Likewise.
42959         * tests/test-isnan.c (minus_zerol): Likewise.
42960         * tests/test-isnanl.h (minus_zero): Likewise.
42961         * tests/test-ldexpl.c (minus_zero): Likewise.
42962         * tests/test-roundl.c (minus_zero): Likewise.
42963         * tests/test-signbit.c (minus_zerol): Likewise.
42964         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42965         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42966         * tests/test-truncl.c (minus_zero): Likewise.
42967         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42968         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42969         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42970
42971 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42972
42973         regex: fix glibc bug 9697
42974         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42975         handling.
42976
42977 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42978
42979         regex: fix glibc bug 697
42980         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42981         being NULL also if there are no backreferences.
42982
42983 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42984
42985         regex: merge glibc changes
42986         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42987         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42988         re_string_skip_chars, re_string_reconstruct): Likewise.
42989         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42990
42991 2009-01-07  Jim Meyering  <meyering@redhat.com>
42992
42993         poll: filter through cppi
42994         * lib/poll.c: Indent cpp directives to reflect nesting.
42995
42996 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42997
42998         poll: don't return uninitialized
42999         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43000
43001 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43002
43003         avoid compile failure on AIX 6.1
43004         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43005         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43006
43007 2009-01-04  Jim Meyering  <meyering@redhat.com>
43008
43009         remove duplicate inclusion of <stdio.h>
43010         * tests/test-fprintf-posix.c: Likewise.
43011         * tests/test-printf-posix.c: Likewise.
43012         * tests/test-snprintf-posix.c: Likewise.
43013         * tests/test-sprintf-posix.c: Likewise.
43014         * tests/test-vasprintf-posix.c: Likewise.
43015         * tests/test-vfprintf-posix.c: Likewise.
43016         * tests/test-vprintf-posix.c: Likewise.
43017         * tests/test-vsnprintf-posix.c: Likewise.
43018         * tests/test-vsprintf-posix.c: Likewise.
43019
43020 2009-01-03  Jim Meyering  <meyering@redhat.com>
43021
43022         gnulib-tool: fix sed-based filtering
43023         * gnulib-tool (func_filter_filelist): Remove extra backslash
43024         in sed_fff_filter definition.
43025
43026 2009-01-02  Jim Meyering  <meyering@redhat.com>
43027
43028         strftime: avoid compilation failure on Solaris 2.6
43029         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43030         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43031         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43032         be available.  Reported by Tom G. Christensen.  Details in
43033         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43034
43035 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43036             Bruno Haible  <bruno@clisp.org>
43037
43038         Speed up gnulib-tool by doing more string processing through shell
43039         built-ins.
43040         * gnulib-tool (fast_func_append): New variable.
43041         (func_remove_prefix, func_remove_suffix): New functions.
43042         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43043         (func_filter_filelist): New function.
43044         (func_get_dependencies): Use func_remove_suffix instead of sed.
43045         (func_get_automake_snippet): Use func_filter_filelist instead of a
43046         subshell and sed invocation.
43047
43048 2009-01-01  Bruno Haible  <bruno@clisp.org>
43049
43050         Fix a security bug.
43051         * gnulib-tool (func_import, import, update): Don't allow the characters
43052         '"', '$', '`', '\' in macro arguments that become part of commands that
43053         are evaluated.
43054
43055 2009-01-01  Bruno Haible  <bruno@clisp.org>
43056
43057         * gnulib-tool (func_reset_sigpipe): Add more comments.
43058
43059 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43060
43061         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43062         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43063         already know the answer.
43064
43065 2009-01-01  Jim Meyering  <meyering@redhat.com>
43066
43067         * lib/version-etc.c (version_etc_va): Update copyright year.
43068
43069 2008-12-30  Bruno Haible  <bruno@clisp.org>
43070
43071         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43072         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43073         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43074
43075 2008-12-29  Eric Blake  <ebb9@byu.net>
43076
43077         multiarch: avoid autoconf AC_REQUIRE bug
43078         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43079         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43080         2.63 and older.
43081         Reported by Bruno Haible, and analyzed in
43082         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43083
43084 2008-12-29  Bruno Haible  <bruno@clisp.org>
43085
43086         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43087         files in subdirectories correctly.
43088         Reported by Ralf Wildenhues.
43089
43090 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43091
43092         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43093         rather than 'join FILE -', for Solaris join.
43094
43095 2008-12-29  Bruno Haible  <bruno@clisp.org>
43096
43097         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43098         quoting.
43099         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43100         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43101         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43102         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43103         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43104         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43105         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43106         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43107         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43108         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43109         * m4/nls.m4 (AM_NLS): Likewise.
43110         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43111         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43112         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43113         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43114         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43115         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43116         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43117         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43118         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43119         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43120         * m4/xsize.m4 (gl_XSIZE): Likewise.
43121         Suggested by Jim Meyering.
43122
43123 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43124
43125         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43126         * lib/parse-duration.c: use a switch instead of cascading if's.
43127
43128 2008-12-29  Eric Blake  <ebb9@byu.net>
43129
43130         wchar.h: supply WEOF on Irix 5.3
43131         * lib/wchar.in.h (wint_t): Also supply WEOF.
43132         * lib/wctype.in.h (wint_t): Likewise.
43133         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43134         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43135         Reported by Tom G. Christensen.
43136
43137 2008-12-26  Bruno Haible  <bruno@clisp.org>
43138
43139         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43140         i486, i586, i686.
43141
43142 2008-12-26  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43145
43146 2008-12-26  Bruno Haible  <bruno@clisp.org>
43147
43148         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43149         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43150         not __STDC_CONSTANT_MACROS.
43151         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43152
43153 2008-12-25  Bruno Haible  <bruno@clisp.org>
43154
43155         Add support for universal builds to vasnprintf.
43156         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43157         universal builds, guess no.
43158         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43159         * modules/vasprintf-posix (Depends-on): Likewise.
43160         * modules/fprintf-posix (Depends-on): Likewise.
43161         * modules/vfprintf-posix (Depends-on): Likewise.
43162         * modules/snprintf-posix (Depends-on): Likewise.
43163         * modules/vsnprintf-posix (Depends-on): Likewise.
43164         * modules/sprintf-posix (Depends-on): Likewise.
43165         * modules/vsprintf-posix (Depends-on): Likewise.
43166         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43167         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43168         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43169         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43170         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43171         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43172         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43173
43174         Add support for universal builds to <inttypes.h>.
43175         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43176         _SCNu64_PREFIX): In Apple
43177         universal builds, define directly, using _LP64.
43178         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43179         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43180         * modules/inttypes (Depends-on): Add multiarch.
43181         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43182
43183         Add support for universal builds to <stdint.h>.
43184         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43185         universal builds, define directly, using _LP64.
43186         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43187         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43188         and size_t.
43189         * modules/stdint (Depends-on): Add multiarch.
43190         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43191
43192         New module 'multiarch'.
43193         * modules/multiarch: New file.
43194         * m4/multiarch.m4: New file.
43195
43196 2008-12-25  Bruno Haible  <bruno@clisp.org>
43197
43198         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43199
43200 2008-12-25  Bruno Haible  <bruno@clisp.org>
43201
43202         * modules/btowc (License): Relicense under LGPLv2+.
43203         * modules/mbsinit (License): Likewise.
43204         * modules/mbrtowc (License): Likewise.
43205         * modules/wcrtomb (License): Likewise.
43206         * modules/streq (License): Likewise.
43207         Reported by David Lutterkort <lutter@redhat.com>.
43208
43209 2008-12-23  Bruno Haible  <bruno@clisp.org>
43210
43211         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43212
43213 2008-12-23  Bruno Haible  <bruno@clisp.org>
43214
43215         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43217         GETADDRINFO_LIB, not in LIBS.
43218         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43219         * modules/canon-host (Link): Likewise.
43220         * NEWS: Mention the change.
43221         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43222         GETADDRINFO_LIB.
43223
43224 2008-12-22  Bruno Haible  <bruno@clisp.org>
43225
43226         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43227         * doc/posix-functions/iswalpha_l.texi: Likewise.
43228         * doc/posix-functions/iswblank_l.texi: Likewise.
43229         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43230         * doc/posix-functions/iswctype_l.texi: Likewise.
43231         * doc/posix-functions/iswdigit_l.texi: Likewise.
43232         * doc/posix-functions/iswgraph_l.texi: Likewise.
43233         * doc/posix-functions/iswlower_l.texi: Likewise.
43234         * doc/posix-functions/iswprint_l.texi: Likewise.
43235         * doc/posix-functions/iswpunct_l.texi: Likewise.
43236         * doc/posix-functions/iswspace_l.texi: Likewise.
43237         * doc/posix-functions/iswupper_l.texi: Likewise.
43238         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43239         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43240         * doc/posix-functions/open_wmemstream.texi: Likewise.
43241         * doc/posix-functions/swscanf.texi: Likewise.
43242         * doc/posix-functions/towctrans_l.texi: Likewise.
43243         * doc/posix-functions/towlower.texi: Likewise.
43244         * doc/posix-functions/towlower_l.texi: Likewise.
43245         * doc/posix-functions/towupper.texi: Likewise.
43246         * doc/posix-functions/towupper_l.texi: Likewise.
43247         * doc/posix-functions/vfwprintf.texi: Likewise.
43248         * doc/posix-functions/vfwscanf.texi: Likewise.
43249         * doc/posix-functions/vswscanf.texi: Likewise.
43250         * doc/posix-functions/vwprintf.texi: Likewise.
43251         * doc/posix-functions/vwscanf.texi: Likewise.
43252         * doc/posix-functions/wcpcpy.texi: Likewise.
43253         * doc/posix-functions/wcpncpy.texi: Likewise.
43254         * doc/posix-functions/wcscasecmp.texi: Likewise.
43255         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43256         * doc/posix-functions/wcscoll_l.texi: Likewise.
43257         * doc/posix-functions/wcsdup.texi: Likewise.
43258         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43259         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43260         * doc/posix-functions/wcsnlen.texi: Likewise.
43261         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43262         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43263         * doc/posix-functions/wctrans_l.texi: Likewise.
43264         * doc/posix-functions/wctype_l.texi: Likewise.
43265         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43266         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43267         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43268         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43269         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43270         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43271         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43272         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43273         * doc/glibc-functions/wcschrnul.texi: Likewise.
43274         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43275         * doc/glibc-functions/wcstod_l.texi: Likewise.
43276         * doc/glibc-functions/wcstof_l.texi: Likewise.
43277         * doc/glibc-functions/wcstol_l.texi: Likewise.
43278         * doc/glibc-functions/wcstold_l.texi: Likewise.
43279         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43280         * doc/glibc-functions/wcstoq.texi: Likewise.
43281         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43282         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43283         * doc/glibc-functions/wcstouq.texi: Likewise.
43284         * doc/glibc-functions/wmempcpy.texi: Likewise.
43285
43286 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43287             Eric Blake  <ebb9@byu.net>
43288             Paolo Bonzini  <bonzini@gnu.org>
43289             Bruno Haible  <bruno@clisp.org>
43290
43291         Make c-stack work on Haiku.
43292         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43293         (c_stack_action): Use SA_ONSTACK flag.
43294
43295 2008-12-22  Bruno Haible  <bruno@clisp.org>
43296
43297         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43298
43299 2008-12-22  Bruno Haible  <bruno@clisp.org>
43300
43301         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43302         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43303         being overridden.
43304         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43305         New macros.
43306         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43308         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43309         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43310
43311 2008-12-22  Bruno Haible  <bruno@clisp.org>
43312
43313         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43314         from test code.
43315
43316 2008-12-22  Eric Blake  <ebb9@byu.net>
43317
43318         Avoid gcc warnings on cygwin.
43319         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43320         Avoid unused variable.
43321         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43322         Likewise.
43323
43324 2008-12-22  Bruno Haible  <bruno@clisp.org>
43325
43326         Remove HAVE_MBRTOWC conditionals.
43327         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43328         (mbscasecmp): Assume mbrtowc function.
43329         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43330         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43331         * lib/mbschr.c: Include mbuiter.h unconditionally.
43332         (mbschr): Assume mbrtowc function.
43333         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43334         (mbscspn): Assume mbrtowc function.
43335         * lib/mbslen.c: Include mbuiter.h unconditionally.
43336         (mbslen): Assume mbrtowc function.
43337         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43338         (mbsncasecmp): Assume mbrtowc function.
43339         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43340         (mbsnlen): Assume mbrtowc function.
43341         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43342         (mbspbrk): Assume mbrtowc function.
43343         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43344         (mbspcasecmp): Assume mbrtowc function.
43345         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43346         (mbsrchr): Assume mbrtowc function.
43347         * lib/mbssep.c: Include mbuiter.h unconditionally.
43348         (mbssep): Assume mbrtowc function.
43349         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43350         (mbsspn): Assume mbrtowc function.
43351         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43352         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43353         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43354         (mbstok_r): Assume mbrtowc function.
43355         * lib/propername.c: Include mbuiter.h unconditionally.
43356         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43357         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43358         (trim2): Assume mbrtowc function.
43359         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43360         (mbsnwidth): Assume mbrtowc function.
43361         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43362         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43363         fallback definitions.
43364         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43365
43366 2008-12-22  Bruno Haible  <bruno@clisp.org>
43367
43368         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43369
43370 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43371
43372         * modules/regex: Request emulations for the mb*/wc* functions we need.
43373         * m4/regex.m4: Don't look for those functions here.
43374         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43375
43376 2008-12-22  Bruno Haible  <bruno@clisp.org>
43377
43378         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43379
43380 2008-12-21  Bruno Haible  <bruno@clisp.org>
43381
43382         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43383         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43384         (Include): Remove conditionalization.
43385         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43386         (Include): Remove conditionalization.
43387         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43388         (Include): Remove conditionalization.
43389         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43390         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43391         * NEWS: Mention the change.
43392         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43393         via Sergey Poznyakoff <gray@gnu.org.ua>.
43394
43395 2008-12-21  Bruno Haible  <bruno@clisp.org>
43396
43397         * MODULES.html.sh (Extended multibyte and wide character utilities
43398         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43399         wcrtomb, wcsrtombs.
43400         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43401         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43402         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43403         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43404
43405 2008-12-21  Bruno Haible  <bruno@clisp.org>
43406
43407         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43408
43409 2008-12-21  Bruno Haible  <bruno@clisp.org>
43410
43411         * modules/wcsnrtombs-tests: New file.
43412         * tests/test-wcsnrtombs1.sh: New file.
43413         * tests/test-wcsnrtombs2.sh: New file.
43414         * tests/test-wcsnrtombs3.sh: New file.
43415         * tests/test-wcsnrtombs4.sh: New file.
43416         * tests/test-wcsnrtombs.c: New file.
43417
43418         New module 'wcsnrtombs'.
43419         * lib/wchar.in.h (wcsnrtombs): New declaration.
43420         * lib/wcsnrtombs.c: New file.
43421         * lib/wcsrtombs-state.c: New file.
43422         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43423         (internal_state): Remove variable.
43424         * m4/wcsnrtombs.m4: New file.
43425         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43426         compilation units.
43427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43428         HAVE_WCSNRTOMBS.
43429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43430         HAVE_WCSNRTOMBS.
43431         * modules/wcsnrtombs: New file.
43432         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43433         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43434
43435 2008-12-21  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/wcsrtombs-tests: New file.
43438         * tests/test-wcsrtombs1.sh: New file.
43439         * tests/test-wcsrtombs2.sh: New file.
43440         * tests/test-wcsrtombs3.sh: New file.
43441         * tests/test-wcsrtombs4.sh: New file.
43442         * tests/test-wcsrtombs.c: New file.
43443
43444         New module 'wcsrtombs'.
43445         * lib/wchar.in.h (wcsrtombs): New declaration.
43446         * lib/wcsrtombs.c: New file.
43447         * m4/wcsrtombs.m4: New file.
43448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43449         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43450         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43451         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43452         * modules/wcsrtombs: New file.
43453         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43454         bugs.
43455
43456 2008-12-21  Bruno Haible  <bruno@clisp.org>
43457
43458         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43459         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43461         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43462         if not correct.
43463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43464         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43465         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43466         m4/locale-zh.m4, m4/codeset.m4.
43467         * doc/posix-functions/wcrtomb.texi: Document the bug.
43468
43469 2008-12-21  Bruno Haible  <bruno@clisp.org>
43470
43471         Work around a btowc() bug on IRIX 6.5.
43472         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43473         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43474         REPLACE_WTOBC if not.
43475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43476         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43477         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43478
43479 2008-12-21  Bruno Haible  <bruno@clisp.org>
43480
43481         * modules/wcrtomb-tests: New file.
43482         * tests/test-wcrtomb.sh: New file.
43483         * tests/test-wcrtomb.c: New file.
43484
43485         New module 'wcrtomb'.
43486         * lib/wchar.in.h (wcrtomb): New declaration.
43487         * lib/wcrtomb.c: New file.
43488         * m4/wcrtomb.m4: New file.
43489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43490         HAVE_WCRTOMB.
43491         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43492         HAVE_WCRTOMB.
43493         * modules/wcrtomb: New file.
43494         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43495
43496 2008-12-21  Bruno Haible  <bruno@clisp.org>
43497
43498         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43499         * modules/mbsrtowcs (Files): Likewise.
43500         * modules/wctob (Files): Likewise.
43501         * modules/c-strcase-tests (Files): Likewise.
43502         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43503         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43504         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43505         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43506         * modules/vasnprintf-posix-tests (Files): Likewise.
43507
43508 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43509
43510         gitlog-to-changelog: pass all command-line arguments to git-log
43511         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43512         it is sometimes convenient to filter the commits in various ways.
43513         gitlog-to-changelog only allows --since to specify a start date,
43514         but git-log itself supports many other filtering mechanisms.
43515         At the moment, I want to filter by branch name.  Rather than
43516         adding a --branch option to gitlog-to-changelog, it seems more
43517         flexible to simply pass all options directly to git-log and let
43518         git do the work.  Notice that this effectively makes --since a
43519         redundant option for gitlog-to-changelog, but removing it would
43520         require current usage to change since calls would then require
43521         an additional '--'.
43522
43523 2008-12-21  Bruno Haible  <bruno@clisp.org>
43524
43525         * modules/mbsnrtowcs-tests: New file.
43526         * tests/test-mbsnrtowcs1.sh: New file.
43527         * tests/test-mbsnrtowcs2.sh: New file.
43528         * tests/test-mbsnrtowcs3.sh: New file.
43529         * tests/test-mbsnrtowcs4.sh: New file.
43530         * tests/test-mbsnrtowcs.c: New file.
43531
43532         New module 'mbsnrtowcs'.
43533         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43534         * lib/mbsnrtowcs.c: New file.
43535         * lib/mbsrtowcs-state.c: New file.
43536         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43537         (internal_state): Remove variable.
43538         * m4/mbsnrtowcs.m4: New file.
43539         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43540         compilation units.
43541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43542         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43543         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43544         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43545         * modules/mbsnrtowcs: New file.
43546         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43547         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43548         portability problem.
43549
43550 2008-12-21  Bruno Haible  <bruno@clisp.org>
43551
43552         Work around mbsrtowcs bug.
43553         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43554         (gl_FUNC_MBSRTOWCS): Invoke it.
43555         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43556         m4/locale-zh.m4.
43557         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43558
43559 2008-12-21  Bruno Haible  <bruno@clisp.org>
43560
43561         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43562
43563 2008-12-21  Bruno Haible  <bruno@clisp.org>
43564
43565         Update doc for AIX.
43566         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43567         16-bit wchar_t type.
43568         * doc/posix-functions/btowc.texi: Likewise.
43569         * doc/posix-functions/fgetwc.texi: Likewise.
43570         * doc/posix-functions/fgetws.texi: Likewise.
43571         * doc/posix-functions/fputwc.texi: Likewise.
43572         * doc/posix-functions/fputws.texi: Likewise.
43573         * doc/posix-functions/fwide.texi: Likewise.
43574         * doc/posix-functions/fwprintf.texi: Likewise.
43575         * doc/posix-functions/fwscanf.texi: Likewise.
43576         * doc/posix-functions/getwchar.texi: Likewise.
43577         * doc/posix-functions/getwc.texi: Likewise.
43578         * doc/posix-functions/iswalnum.texi: Likewise.
43579         * doc/posix-functions/iswalpha.texi: Likewise.
43580         * doc/posix-functions/iswblank.texi: Likewise.
43581         * doc/posix-functions/iswcntrl.texi: Likewise.
43582         * doc/posix-functions/iswctype.texi: Likewise.
43583         * doc/posix-functions/iswdigit.texi: Likewise.
43584         * doc/posix-functions/iswgraph.texi: Likewise.
43585         * doc/posix-functions/iswlower.texi: Likewise.
43586         * doc/posix-functions/iswprint.texi: Likewise.
43587         * doc/posix-functions/iswpunct.texi: Likewise.
43588         * doc/posix-functions/iswspace.texi: Likewise.
43589         * doc/posix-functions/iswupper.texi: Likewise.
43590         * doc/posix-functions/iswxdigit.texi: Likewise.
43591         * doc/posix-functions/mbrtowc.texi: Likewise.
43592         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43593         * doc/posix-functions/mbstowcs.texi: Likewise.
43594         * doc/posix-functions/mbtowc.texi: Likewise.
43595         * doc/posix-functions/putwchar.texi: Likewise.
43596         * doc/posix-functions/putwc.texi: Likewise.
43597         * doc/posix-functions/swprintf.texi: Likewise.
43598         * doc/posix-functions/tolower.texi: Likewise.
43599         * doc/posix-functions/toupper.texi: Likewise.
43600         * doc/posix-functions/towctrans.texi: Likewise.
43601         * doc/posix-functions/ungetwc.texi: Likewise.
43602         * doc/posix-functions/vswprintf.texi: Likewise.
43603         * doc/posix-functions/wcrtomb.texi: Likewise.
43604         * doc/posix-functions/wcscat.texi: Likewise.
43605         * doc/posix-functions/wcschr.texi: Likewise.
43606         * doc/posix-functions/wcscmp.texi: Likewise.
43607         * doc/posix-functions/wcscoll.texi: Likewise.
43608         * doc/posix-functions/wcscpy.texi: Likewise.
43609         * doc/posix-functions/wcscspn.texi: Likewise.
43610         * doc/posix-functions/wcsftime.texi: Likewise.
43611         * doc/posix-functions/wcslen.texi: Likewise.
43612         * doc/posix-functions/wcsncat.texi: Likewise.
43613         * doc/posix-functions/wcsncmp.texi: Likewise.
43614         * doc/posix-functions/wcsncpy.texi: Likewise.
43615         * doc/posix-functions/wcspbrk.texi: Likewise.
43616         * doc/posix-functions/wcsrchr.texi: Likewise.
43617         * doc/posix-functions/wcsrtombs.texi: Likewise.
43618         * doc/posix-functions/wcsspn.texi: Likewise.
43619         * doc/posix-functions/wcsstr.texi: Likewise.
43620         * doc/posix-functions/wcstod.texi: Likewise.
43621         * doc/posix-functions/wcstof.texi: Likewise.
43622         * doc/posix-functions/wcstoimax.texi: Likewise.
43623         * doc/posix-functions/wcstok.texi: Likewise.
43624         * doc/posix-functions/wcstold.texi: Likewise.
43625         * doc/posix-functions/wcstoll.texi: Likewise.
43626         * doc/posix-functions/wcstol.texi: Likewise.
43627         * doc/posix-functions/wcstombs.texi: Likewise.
43628         * doc/posix-functions/wcstoull.texi: Likewise.
43629         * doc/posix-functions/wcstoul.texi: Likewise.
43630         * doc/posix-functions/wcstoumax.texi: Likewise.
43631         * doc/posix-functions/wcswidth.texi: Likewise.
43632         * doc/posix-functions/wcsxfrm.texi: Likewise.
43633         * doc/posix-functions/wctob.texi: Likewise.
43634         * doc/posix-functions/wctomb.texi: Likewise.
43635         * doc/posix-functions/wctrans.texi: Likewise.
43636         * doc/posix-functions/wctype.texi: Likewise.
43637         * doc/posix-functions/wcwidth.texi: Likewise.
43638         * doc/posix-functions/wmemchr.texi: Likewise.
43639         * doc/posix-functions/wmemcmp.texi: Likewise.
43640         * doc/posix-functions/wmemcpy.texi: Likewise.
43641         * doc/posix-functions/wmemmove.texi: Likewise.
43642         * doc/posix-functions/wmemset.texi: Likewise.
43643         * doc/posix-functions/wprintf.texi: Likewise.
43644         * doc/posix-functions/wscanf.texi: Likewise.
43645
43646 2008-12-21  Bruno Haible  <bruno@clisp.org>
43647
43648         Update doc for HP-UX 11.11.
43649         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43650         in HP-UX version 11.00, not in all versions of HP-UX 11.
43651         * doc/posix-functions/fwide.texi: Likewise.
43652         * doc/posix-functions/fwprintf.texi: Likewise.
43653         * doc/posix-functions/fwscanf.texi: Likewise.
43654         * doc/posix-functions/inet_ntop.texi: Likewise.
43655         * doc/posix-functions/inet_pton.texi: Likewise.
43656         * doc/posix-functions/mbrlen.texi: Likewise.
43657         * doc/posix-functions/mbrtowc.texi: Likewise.
43658         * doc/posix-functions/mbsinit.texi: Likewise.
43659         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43660         * doc/posix-functions/swprintf.texi: Likewise.
43661         * doc/posix-functions/swscanf.texi: Likewise.
43662         * doc/posix-functions/towctrans.texi: Likewise.
43663         * doc/posix-functions/vfwprintf.texi: Likewise.
43664         * doc/posix-functions/vswprintf.texi: Likewise.
43665         * doc/posix-functions/vwprintf.texi: Likewise.
43666         * doc/posix-functions/wcrtomb.texi: Likewise.
43667         * doc/posix-functions/wcsrtombs.texi: Likewise.
43668         * doc/posix-functions/wcsstr.texi: Likewise.
43669         * doc/posix-functions/wctob.texi: Likewise.
43670         * doc/posix-functions/wctrans.texi: Likewise.
43671         * doc/posix-functions/wmemchr.texi: Likewise.
43672         * doc/posix-functions/wmemcmp.texi: Likewise.
43673         * doc/posix-functions/wmemcpy.texi: Likewise.
43674         * doc/posix-functions/wmemmove.texi: Likewise.
43675         * doc/posix-functions/wmemset.texi: Likewise.
43676         * doc/posix-functions/wprintf.texi: Likewise.
43677         * doc/posix-functions/wscanf.texi: Likewise.
43678
43679 2008-12-21  Bruno Haible  <bruno@clisp.org>
43680
43681         Work around a portability problem.
43682         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43683         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43684
43685 2008-12-20  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43688         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43689         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43691         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43692
43693         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43694         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43695         set.
43696         (GNULIB_defined_mbstate_t): New macro.
43697         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43698         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43699         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43700         reuses the system's mbrtowc function but works around the bugs.
43701         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43702         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43703         macros.
43704         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43705         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43706         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43707         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43708         REPLACE_MBSINIT if mbsinit needs to be overridden.
43709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43710         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43711         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43712         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43713         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43714         m4/locale-zh.m4.
43715         (Depends): Add mbsinit.
43716         * modules/mbsinit (Depends): Add mbrtowc.
43717         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43718
43719 2008-12-20  Bruno Haible  <bruno@clisp.org>
43720
43721         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43722         so that there are no conversion errors on AIX.
43723         * tests/test-mbsrtowcs.c (main): LIkewise.
43724
43725 2008-12-20  Bruno Haible  <bruno@clisp.org>
43726
43727         Work around wctob bug on Solaris <= 9.
43728         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43729         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43731         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43732         * modules/wctob (Files): Add m4/locale-fr.m4.
43733         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43734
43735 2008-12-20  Bruno Haible  <bruno@clisp.org>
43736
43737         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43738         /dev/null.
43739         * tests/test-select-in.sh: Likewise.
43740         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43741
43742 2008-12-20  Bruno Haible  <bruno@clisp.org>
43743
43744         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43745         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43746         Cygwin 1.5.x.
43747
43748 2008-12-20  Bruno Haible  <bruno@clisp.org>
43749
43750         Ensure mbstate_t is defined on HP-UX 11.11.
43751         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43752         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43753         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43754         AC_USE_SYSTEM_EXTENSIONS.
43755         * modules/fnmatch (Depends-on): Add extensions.
43756         * modules/mbrlen (Depends-on): Likewise.
43757         * modules/mbrtowc (Depends-on): Likewise.
43758         * modules/mbsinit (Depends-on): Likewise.
43759         * modules/mbsrtowcs (Depends-on): Likewise.
43760         * modules/mbswidth (Depends-on): Likewise.
43761         * modules/quotearg (Depends-on): Likewise.
43762         * modules/strftime (Depends-on): Likewise.
43763
43764 2008-12-20  Bruno Haible  <bruno@clisp.org>
43765
43766         Ensure wctob is declared on IRIX 6.5.
43767         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43768         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43769         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43771         of HAVE_WCTOB.
43772         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43773         HAVE_WCTOB.
43774         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43775
43776 2008-12-19  Bruno Haible  <bruno@clisp.org>
43777
43778         * modules/mbsrtowcs-tests: New file.
43779         * tests/test-mbsrtowcs1.sh: New file.
43780         * tests/test-mbsrtowcs2.sh: New file.
43781         * tests/test-mbsrtowcs3.sh: New file.
43782         * tests/test-mbsrtowcs4.sh: New file.
43783         * tests/test-mbsrtowcs.c: New file.
43784
43785         New module 'mbsrtowcs'.
43786         * lib/wchar.in.h (mbsrtowcs): New declaration.
43787         * lib/mbsrtowcs.c: New file.
43788         * m4/mbsrtowcs.m4: New file.
43789         * modules/mbsrtowcs: New file.
43790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43791         HAVE_MBSRTOWCS.
43792         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43793         HAVE_MBSRTOWCS.
43794         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43795
43796 2008-12-19  Bruno Haible  <bruno@clisp.org>
43797
43798         New module 'mbrlen'.
43799         * lib/wchar.in.h (mbrlen): New declaration.
43800         * lib/mbrlen.c: New file.
43801         * m4/mbrlen.m4: New file.
43802         * modules/mbrlen: New file.
43803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43804         HAVE_MBRLEN.
43805         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43806         HAVE_MBRLEN.
43807         * doc/posix-functions/mbrlen.texi: Document the new module.
43808
43809 2008-12-19  Bruno Haible  <bruno@clisp.org>
43810
43811         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43812         * modules/mbrtowc (Depends-on): Add verify.
43813         Suggested by Paul Eggert.
43814
43815 2008-12-18  Bruno Haible  <bruno@clisp.org>
43816
43817         * modules/mbsinit-tests: New file.
43818         * tests/test-mbsinit.sh: New file.
43819         * tests/test-mbsinit.c: New file.
43820
43821 2008-12-18  Bruno Haible  <bruno@clisp.org>
43822
43823         * modules/mbrtowc-tests: New file.
43824         * tests/test-mbrtowc1.sh: New file.
43825         * tests/test-mbrtowc2.sh: New file.
43826         * tests/test-mbrtowc3.sh: New file.
43827         * tests/test-mbrtowc4.sh: New file.
43828         * tests/test-mbrtowc.c: New file.
43829
43830         New module 'mbrtowc'.
43831         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43832         mbsinit and mbrtowc.
43833         (mbrtowc): New declaration.
43834         * lib/mbrtowc.c: New file.
43835         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43836         * modules/mbrtowc: New file.
43837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43838         HAVE_MBRTOWC.
43839         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43840         HAVE_MBRTOWC.
43841         * doc/posix-functions/mbrtowc.texi: Document the new module.
43842
43843 2008-12-18  Bruno Haible  <bruno@clisp.org>
43844
43845         New module 'wctob'.
43846         * lib/wchar.in.h (wctob): New declaration.
43847         * lib/wctob.c: New file.
43848         * m4/wctob.m4: New file.
43849         * modules/wctob: New file.
43850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43851         HAVE_WCTOB.
43852         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43853         * doc/posix-functions/wctob.texi: Document the new module.
43854
43855 2008-12-18  Bruno Haible  <bruno@clisp.org>
43856
43857         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43858         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43859
43860 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43861
43862         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43863         G. Christensen" <tgc@jupiterrise.com>.
43864
43865         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43866         G. Christensen" <tgc@jupiterrise.com>.
43867
43868         * lib/flock.c: Need to include string.h.  Reported by "Tom
43869         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43870         <ebb9@byu.net>.
43871
43872 2008-12-18  Bruno Haible  <bruno@clisp.org>
43873
43874         * m4/locale-ja.m4: New file, from GNU gettext.
43875
43876 2008-12-17  Bruno Haible  <bruno@clisp.org>
43877
43878         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43879         Suggested by Eric Blake.
43880
43881 2008-12-17  Bruno Haible  <bruno@clisp.org>
43882
43883         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43884
43885 2008-12-17  Bruno Haible  <bruno@clisp.org>
43886
43887         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43888         * modules/mbsinit (Depends-on): Add verify.
43889         Suggested by Paul Eggert.
43890
43891 2008-12-17  Bruno Haible  <bruno@clisp.org>
43892
43893         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43894         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43895         gl_FUNC_MBRTOWC.
43896         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43897         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43898         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43899         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43900         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43901         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43902         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43903         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43904         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43905         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43906         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43907         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43908         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43909         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43910         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43911         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43912         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43913         * modules/trim (configure.ac): Likewise.
43914
43915 2008-12-17  Bruno Haible  <bruno@clisp.org>
43916
43917         * modules/btowc-tests: New file.
43918         * tests/test-btowc1.sh: New file.
43919         * tests/test-btowc2.sh: New file.
43920         * tests/test-btowc.c: New file.
43921
43922         New module 'btowc'.
43923         * lib/wchar.in.h (btowc): New declaration.
43924         * lib/btowc.c: New file.
43925         * m4/btowc.m4: New file.
43926         * modules/btowc: New file.
43927         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43928         HAVE_BTOWC.
43929         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43930         * doc/posix-functions/btowc.texi: Document the new module.
43931
43932 2008-12-17  Bruno Haible  <bruno@clisp.org>
43933
43934         New module 'mbsinit'.
43935         * lib/wchar.in.h (mbsinit): New declaration.
43936         * lib/mbsinit.c: New file.
43937         * m4/mbsinit.m4: New file.
43938         * modules/mbsinit: New file.
43939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43940         HAVE_MBSINIT.
43941         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43942         HAVE_MBSINIT.
43943         * doc/posix-functions/mbsinit.texi: Document the new module.
43944
43945 2008-12-16  Bruno Haible  <bruno@clisp.org>
43946
43947         * lib/unistd.in.h: Add comment.
43948         * tests/test-environ.c: Don't include <stdlib.h>.
43949
43950 2008-12-16  Bruno Haible  <bruno@clisp.org>
43951
43952         * lib/parse-duration.h (parse_duration): Document return value
43953         convention.
43954         * lib/parse-duration.c: Include specification header first. Add
43955         comments.
43956         (_): Remove macro.
43957         (parse_year_month_day, parse_hour_minute_second): Move side effects
43958         outside of strchr call.
43959         (parse_non_iso8601): Move side effects outside of isspace call.
43960         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43961         call.
43962
43963 2008-12-16  Bruno Haible  <bruno@clisp.org>
43964
43965         * tests/test-parse-duration.sh: Produce no output when the test
43966         succeeds.
43967
43968 2008-12-16  Bruno Haible  <bruno@clisp.org>
43969
43970         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43971         expressions.
43972
43973 2008-12-15  Bruno Haible  <bruno@clisp.org>
43974
43975         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43976         * doc/glibc-functions/flistxattr.texi: Likewise.
43977         * doc/glibc-functions/fopencookie.texi: Likewise.
43978         * doc/glibc-functions/fremovexattr.texi: Likewise.
43979         * doc/glibc-functions/fsetxattr.texi: Likewise.
43980         * doc/glibc-functions/getxattr.texi: Likewise.
43981         * doc/glibc-functions/lgetxattr.texi: Likewise.
43982         * doc/glibc-functions/listxattr.texi: Likewise.
43983         * doc/glibc-functions/llistxattr.texi: Likewise.
43984         * doc/glibc-functions/lremovexattr.texi: Likewise.
43985         * doc/glibc-functions/lsetxattr.texi: Likewise.
43986         * doc/glibc-functions/removexattr.texi: Likewise.
43987         * doc/glibc-functions/setxattr.texi: Likewise.
43988         * doc/posix-functions/open_memstream.texi: Likewise.
43989
43990 2008-12-15  Eric Blake  <ebb9@byu.net>
43991
43992         Update doc for cygwin 1.7.
43993         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43994         functions.
43995         * doc/posix-functions/fchmodat.texi: Likewise.
43996         * doc/posix-functions/fchownat.texi: Likewise.
43997         * doc/posix-functions/fdopendir.texi: Likewise.
43998         * doc/posix-functions/fmemopen.texi: Likewise.
43999         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44000         * doc/posix-functions/fstatat.texi: Likewise.
44001         * doc/posix-functions/futimens.texi: Likewise.
44002         * doc/posix-functions/gai_strerror.texi: Likewise.
44003         * doc/posix-functions/getaddrinfo.texi: Likewise.
44004         * doc/posix-functions/getnameinfo.texi: Likewise.
44005         * doc/posix-functions/if_freenameindex.texi: Likewise.
44006         * doc/posix-functions/if_indextoname.texi: Likewise.
44007         * doc/posix-functions/if_nameindex.texi: Likewise.
44008         * doc/posix-functions/if_nametoindex.texi: Likewise.
44009         * doc/posix-functions/insque.texi: Likewise.
44010         * doc/posix-functions/linkat.texi: Likewise.
44011         * doc/posix-functions/llrint.texi: Likewise.
44012         * doc/posix-functions/llrintf.texi: Likewise.
44013         * doc/posix-functions/llrintl.texi: Likewise.
44014         * doc/posix-functions/lockf.texi: Likewise.
44015         * doc/posix-functions/lrintl.texi: Likewise.
44016         * doc/posix-functions/mkdirat.texi: Likewise.
44017         * doc/posix-functions/mkfifoat.texi: Likewise.
44018         * doc/posix-functions/mknodat.texi: Likewise.
44019         * doc/posix-functions/mq_close.texi: Likewise.
44020         * doc/posix-functions/mq_getattr.texi: Likewise.
44021         * doc/posix-functions/mq_notify.texi: Likewise.
44022         * doc/posix-functions/mq_open.texi: Likewise.
44023         * doc/posix-functions/mq_receive.texi: Likewise.
44024         * doc/posix-functions/mq_send.texi: Likewise.
44025         * doc/posix-functions/mq_setattr.texi: Likewise.
44026         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44027         * doc/posix-functions/mq_timedsend.texi: Likewise.
44028         * doc/posix-functions/mq_unlink.texi: Likewise.
44029         * doc/posix-functions/open_memstream.texi: Likewise.
44030         * doc/posix-functions/openat.texi: Likewise.
44031         * doc/posix-functions/posix_fadvise.texi: Likewise.
44032         * doc/posix-functions/posix_fallocate.texi: Likewise.
44033         * doc/posix-functions/posix_madvise.texi: Likewise.
44034         * doc/posix-functions/posix_memalign.texi: Likewise.
44035         * doc/posix-functions/posix_openpt.texi: Likewise.
44036         * doc/posix-functions/readlinkat.texi: Likewise.
44037         * doc/posix-functions/remque.texi: Likewise.
44038         * doc/posix-functions/renameat.texi: Likewise.
44039         * doc/posix-functions/rintl.texi: Likewise.
44040         * doc/posix-functions/sem_unlink.texi: Likewise.
44041         * doc/posix-functions/shm_open.texi: Likewise.
44042         * doc/posix-functions/shm_unlink.texi: Likewise.
44043         * doc/posix-functions/signgam.texi: Likewise.
44044         * doc/posix-functions/sigset.texi: Likewise.
44045         * doc/posix-functions/stpcpy.texi: Likewise.
44046         * doc/posix-functions/stpncpy.texi: Likewise.
44047         * doc/posix-functions/strerror.texi: Likewise.
44048         * doc/posix-functions/strtod.texi: Likewise.
44049         * doc/posix-functions/symlinkat.texi: Likewise.
44050         * doc/posix-functions/unlinkat.texi: Likewise.
44051         * doc/posix-functions/utimensat.texi: Likewise.
44052         * doc/glibc-functions/bindresvport.texi: Likewise.
44053         * doc/glibc-functions/dn_expand.texi: Likewise.
44054         * doc/glibc-functions/exp10.texi: Likewise.
44055         * doc/glibc-functions/exp10f.texi: Likewise.
44056         * doc/glibc-functions/fgetxattr.texi: Likewise.
44057         * doc/glibc-functions/flistxattr.texi: Likewise.
44058         * doc/glibc-functions/fopencookie.texi: Likewise.
44059         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44060         * doc/glibc-functions/fremovexattr.texi: Likewise.
44061         * doc/glibc-functions/fsetxattr.texi: Likewise.
44062         * doc/glibc-functions/getifaddrs.texi: Likewise.
44063         * doc/glibc-functions/getxattr.texi: Likewise.
44064         * doc/glibc-functions/lgetxattr.texi: Likewise.
44065         * doc/glibc-functions/listxattr.texi: Likewise.
44066         * doc/glibc-functions/llistxattr.texi: Likewise.
44067         * doc/glibc-functions/lremovexattr.texi: Likewise.
44068         * doc/glibc-functions/lsetxattr.texi: Likewise.
44069         * doc/glibc-functions/pow10.texi: Likewise.
44070         * doc/glibc-functions/pow10f.texi: Likewise.
44071         * doc/glibc-functions/rcmd_af.texi: Likewise.
44072         * doc/glibc-functions/removexattr.texi: Likewise.
44073         * doc/glibc-functions/res_init.texi: Likewise.
44074         * doc/glibc-functions/res_mkquery.texi: Likewise.
44075         * doc/glibc-functions/res_query.texi: Likewise.
44076         * doc/glibc-functions/res_querydomain.texi: Likewise.
44077         * doc/glibc-functions/res_send.texi: Likewise.
44078         * doc/glibc-functions/rresvport_af.texi: Likewise.
44079         * doc/glibc-functions/setxattr.texi: Likewise.
44080         * doc/glibc-functions/strcasestr.texi: Likewise.
44081
44082 2008-12-15  Bruno Haible  <bruno@clisp.org>
44083
44084         Fix compilation error on OSF/1 4.0.
44085         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44086         <sys/time.h>, simply delegate to the system header.
44087         Reported by Daniel Richard G. <oss@teragram.com>.
44088
44089 2008-12-15  Bruno Haible  <bruno@clisp.org>
44090
44091         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44092         * doc/posix-functions/fchmodat.texi: Likewise.
44093         * doc/posix-functions/fchownat.texi: Likewise.
44094         * doc/posix-functions/fdopendir.texi: Likewise.
44095         * doc/posix-functions/fstatat.texi: Likewise.
44096         * doc/posix-functions/mkdirat.texi: Likewise.
44097         * doc/posix-functions/unlinkat.texi: Likewise.
44098
44099 2008-12-14  Bruno Haible  <bruno@clisp.org>
44100
44101         Update doc for POSIX:2008.
44102         * doc/posix-functions/faccessat.texi: New file.
44103         * doc/posix-functions/fchmodat.texi: New file.
44104         * doc/posix-functions/fchownat.texi: New file.
44105         * doc/posix-functions/fdopendir.texi: New file.
44106         * doc/posix-functions/fstatat.texi: New file.
44107         * doc/posix-functions/futimens.texi: New file.
44108         * doc/posix-functions/linkat.texi: New file.
44109         * doc/posix-functions/mkdirat.texi: New file.
44110         * doc/posix-functions/mkfifoat.texi: New file.
44111         * doc/posix-functions/mknodat.texi: New file.
44112         * doc/posix-functions/open_wmemstream.texi: New file.
44113         * doc/posix-functions/openat.texi: New file.
44114         * doc/posix-functions/psiginfo.texi: New file.
44115         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44116         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44117         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44118         * doc/posix-functions/readlinkat.texi: New file.
44119         * doc/posix-functions/renameat.texi: New file.
44120         * doc/posix-functions/strerror_l.texi: New file.
44121         * doc/posix-functions/symlinkat.texi: New file.
44122         * doc/posix-functions/unlinkat.texi: New file.
44123         * doc/posix-functions/utimensat.texi: New file.
44124         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44125
44126 2008-12-14  Bruno Haible  <bruno@clisp.org>
44127
44128         Update doc for POSIX:2008.
44129         * doc/posix-functions/alphasort.texi: Renamed from
44130         doc/glibc-functions/alphasort.texi.
44131         * doc/posix-functions/dirfd.texi: Renamed from
44132         doc/glibc-functions/dirfd.texi.
44133         * doc/posix-functions/dprintf.texi: Renamed from
44134         doc/glibc-functions/dprintf.texi.
44135         * doc/posix-functions/duplocale.texi: Renamed from
44136         doc/glibc-functions/duplocale.texi.
44137         * doc/posix-functions/fexecve.texi: Renamed from
44138         doc/glibc-functions/fexecve.texi.
44139         * doc/posix-functions/fmemopen.texi: Renamed from
44140         doc/glibc-functions/fmemopen.texi.
44141         * doc/posix-functions/freelocale.texi: Renamed from
44142         doc/glibc-functions/freelocale.texi.
44143         * doc/posix-functions/getdate_err.texi: Renamed from
44144         doc/glibc-functions/getdate_err.texi.
44145         * doc/posix-functions/isalnum_l.texi: Renamed from
44146         doc/glibc-functions/isalnum_l.texi.
44147         * doc/posix-functions/isalpha_l.texi: Renamed from
44148         doc/glibc-functions/isalpha_l.texi.
44149         * doc/posix-functions/isblank_l.texi: Renamed from
44150         doc/glibc-functions/isblank_l.texi.
44151         * doc/posix-functions/iscntrl_l.texi: Renamed from
44152         doc/glibc-functions/iscntrl_l.texi.
44153         * doc/posix-functions/isdigit_l.texi: Renamed from
44154         doc/glibc-functions/isdigit_l.texi.
44155         * doc/posix-functions/isgraph_l.texi: Renamed from
44156         doc/glibc-functions/isgraph_l.texi.
44157         * doc/posix-functions/islower_l.texi: Renamed from
44158         doc/glibc-functions/islower_l.texi.
44159         * doc/posix-functions/isprint_l.texi: Renamed from
44160         doc/glibc-functions/isprint_l.texi.
44161         * doc/posix-functions/ispunct_l.texi: Renamed from
44162         doc/glibc-functions/ispunct_l.texi.
44163         * doc/posix-functions/isspace_l.texi: Renamed from
44164         doc/glibc-functions/isspace_l.texi.
44165         * doc/posix-functions/isupper_l.texi: Renamed from
44166         doc/glibc-functions/isupper_l.texi.
44167         * doc/posix-functions/iswalnum_l.texi: Renamed from
44168         doc/glibc-functions/iswalnum_l.texi.
44169         * doc/posix-functions/iswalpha_l.texi: Renamed from
44170         doc/glibc-functions/iswalpha_l.texi.
44171         * doc/posix-functions/iswblank_l.texi: Renamed from
44172         doc/glibc-functions/iswblank_l.texi.
44173         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44174         doc/glibc-functions/iswcntrl_l.texi.
44175         * doc/posix-functions/iswctype_l.texi: Renamed from
44176         doc/glibc-functions/iswctype_l.texi.
44177         * doc/posix-functions/iswdigit_l.texi: Renamed from
44178         doc/glibc-functions/iswdigit_l.texi.
44179         * doc/posix-functions/iswgraph_l.texi: Renamed from
44180         doc/glibc-functions/iswgraph_l.texi.
44181         * doc/posix-functions/iswlower_l.texi: Renamed from
44182         doc/glibc-functions/iswlower_l.texi.
44183         * doc/posix-functions/iswprint_l.texi: Renamed from
44184         doc/glibc-functions/iswprint_l.texi.
44185         * doc/posix-functions/iswpunct_l.texi: Renamed from
44186         doc/glibc-functions/iswpunct_l.texi.
44187         * doc/posix-functions/iswspace_l.texi: Renamed from
44188         doc/glibc-functions/iswspace_l.texi.
44189         * doc/posix-functions/iswupper_l.texi: Renamed from
44190         doc/glibc-functions/iswupper_l.texi.
44191         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44192         doc/glibc-functions/iswxdigit_l.texi.
44193         * doc/posix-functions/isxdigit_l.texi: Renamed from
44194         doc/glibc-functions/isxdigit_l.texi.
44195         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44196         doc/glibc-functions/mbsnrtowcs.texi.
44197         * doc/posix-functions/mkdtemp.texi: Renamed from
44198         doc/glibc-functions/mkdtemp.texi.
44199         * doc/posix-functions/newlocale.texi: Renamed from
44200         doc/glibc-functions/newlocale.texi.
44201         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44202         doc/glibc-functions/nl_langinfo_l.texi.
44203         * doc/posix-functions/open_memstream.texi: Renamed from
44204         doc/glibc-functions/open_memstream.texi.
44205         * doc/posix-functions/opterr.texi: Renamed from
44206         doc/glibc-functions/opterr.texi.
44207         * doc/posix-functions/optind.texi: Renamed from
44208         doc/glibc-functions/optind.texi.
44209         * doc/posix-functions/optopt.texi: Renamed from
44210         doc/glibc-functions/optopt.texi.
44211         * doc/posix-functions/psignal.texi: Renamed from
44212         doc/glibc-functions/psignal.texi.
44213         * doc/posix-functions/scandir.texi: Renamed from
44214         doc/glibc-functions/scandir.texi.
44215         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44216         doc/glibc-functions/sched_get_priority_min.texi.
44217         * doc/posix-functions/signgam.texi: Renamed from
44218         doc/glibc-functions/signgam.texi.
44219         * doc/posix-functions/stpcpy.texi: Renamed from
44220         doc/glibc-functions/stpcpy.texi.
44221         * doc/posix-functions/stpncpy.texi: Renamed from
44222         doc/glibc-functions/stpncpy.texi.
44223         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44224         doc/glibc-functions/strcasecmp_l.texi.
44225         * doc/posix-functions/strcoll_l.texi: Renamed from
44226         doc/glibc-functions/strcoll_l.texi.
44227         * doc/posix-functions/strfmon_l.texi: Renamed from
44228         doc/glibc-functions/strfmon_l.texi.
44229         * doc/posix-functions/strftime_l.texi: Renamed from
44230         doc/glibc-functions/strftime_l.texi.
44231         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44232         doc/glibc-functions/strncasecmp_l.texi.
44233         * doc/posix-functions/strndup.texi: Renamed from
44234         doc/glibc-functions/strndup.texi.
44235         * doc/posix-functions/strnlen.texi: Renamed from
44236         doc/glibc-functions/strnlen.texi.
44237         * doc/posix-functions/strsignal.texi: Renamed from
44238         doc/glibc-functions/strsignal.texi.
44239         * doc/posix-functions/strxfrm_l.texi: Renamed from
44240         doc/glibc-functions/strxfrm_l.texi.
44241         * doc/posix-functions/timer_gettime.texi: Renamed from
44242         doc/glibc-functions/timer_gettime.texi.
44243         * doc/posix-functions/tolower_l.texi: Renamed from
44244         doc/glibc-functions/tolower_l.texi.
44245         * doc/posix-functions/toupper_l.texi: Renamed from
44246         doc/glibc-functions/toupper_l.texi.
44247         * doc/posix-functions/towctrans_l.texi: Renamed from
44248         doc/glibc-functions/towctrans_l.texi.
44249         * doc/posix-functions/towlower_l.texi: Renamed from
44250         doc/glibc-functions/towlower_l.texi.
44251         * doc/posix-functions/towupper_l.texi: Renamed from
44252         doc/glibc-functions/towupper_l.texi.
44253         * doc/posix-functions/uselocale.texi: Renamed from
44254         doc/glibc-functions/uselocale.texi.
44255         * doc/posix-functions/vdprintf.texi: Renamed from
44256         doc/glibc-functions/vdprintf.texi.
44257         * doc/posix-functions/wcpcpy.texi:
44258         Renamed from doc/glibc-functions/wcpcpy.texi.
44259         * doc/posix-functions/wcpncpy.texi: Renamed from
44260         doc/glibc-functions/wcpncpy.texi.
44261         * doc/posix-functions/wcscasecmp.texi: Renamed from
44262         doc/glibc-functions/wcscasecmp.texi.
44263         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44264         doc/glibc-functions/wcscasecmp_l.texi.
44265         * doc/posix-functions/wcscoll_l.texi: Renamed from
44266         doc/glibc-functions/wcscoll_l.texi.
44267         * doc/posix-functions/wcsdup.texi: Renamed from
44268         doc/glibc-functions/wcsdup.texi.
44269         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44270         doc/glibc-functions/wcsncasecmp.texi.
44271         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44272         doc/glibc-functions/wcsncasecmp_l.texi.
44273         * doc/posix-functions/wcsnlen.texi: Renamed from
44274         doc/glibc-functions/wcsnlen.texi.
44275         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44276         doc/glibc-functions/wcsnrtombs.texi.
44277         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44278         doc/glibc-functions/wcsxfrm_l.texi.
44279         * doc/posix-functions/wctrans_l.texi: Renamed from
44280         doc/glibc-functions/wctrans_l.texi.
44281         * doc/posix-functions/wctype_l.texi: Renamed from
44282         doc/glibc-functions/wctype_l.texi.
44283         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44284         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44285         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44286         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44287         these subsections.
44288         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44289         Remove sections.
44290
44291 2008-12-14  Bruno Haible  <bruno@clisp.org>
44292
44293         Update doc for POSIX:2008.
44294         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44295
44296 2008-12-14  Bruno Haible  <bruno@clisp.org>
44297
44298         Update doc for POSIX:2008.
44299         * doc/pastposix-functions/bcmp.texi: Renamed from
44300         doc/posix-functions/bcmp.texi.
44301         * doc/pastposix-functions/bcopy.texi: Renamed from
44302         doc/posix-functions/bcopy.texi.
44303         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44304         doc/posix-functions/bsd_signal.texi.
44305         * doc/pastposix-functions/bzero.texi: Renamed from
44306         doc/posix-functions/bzero.texi.
44307         * doc/pastposix-functions/ecvt.texi: Renamed from
44308         doc/posix-functions/ecvt.texi.
44309         * doc/pastposix-functions/fcvt.texi: Renamed from
44310         doc/posix-functions/fcvt.texi.
44311         * doc/pastposix-functions/ftime.texi: Renamed from
44312         doc/posix-functions/ftime.texi.
44313         * doc/pastposix-functions/gcvt.texi: Renamed from
44314         doc/posix-functions/gcvt.texi.
44315         * doc/pastposix-functions/getcontext.texi: Renamed from
44316         doc/posix-functions/getcontext.texi.
44317         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44318         doc/posix-functions/gethostbyaddr.texi.
44319         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44320         doc/posix-functions/gethostbyname.texi.
44321         * doc/pastposix-functions/getwd.texi: Renamed from
44322         doc/posix-functions/getwd.texi.
44323         * doc/pastposix-functions/h_errno.texi: Renamed from
44324         doc/posix-functions/h_errno.texi.
44325         * doc/pastposix-functions/index.texi: Renamed from
44326         doc/posix-functions/index.texi.
44327         * doc/pastposix-functions/makecontext.texi: Renamed from
44328         doc/posix-functions/makecontext.texi.
44329         * doc/pastposix-functions/mktemp.texi: Renamed from
44330         doc/posix-functions/mktemp.texi.
44331         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44332         doc/posix-functions/pthread_attr_getstackaddr.texi.
44333         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44334         doc/posix-functions/pthread_attr_setstackaddr.texi.
44335         * doc/pastposix-functions/rindex.texi: Renamed from
44336         doc/posix-functions/rindex.texi.
44337         * doc/pastposix-functions/scalb.texi: Renamed from
44338         doc/posix-functions/scalb.texi.
44339         * doc/pastposix-functions/setcontext.texi: Renamed from
44340         doc/posix-functions/setcontext.texi.
44341         * doc/pastposix-functions/swapcontext.texi: Renamed from
44342         doc/posix-functions/swapcontext.texi.
44343         * doc/pastposix-functions/ualarm.texi: Renamed from
44344         doc/posix-functions/ualarm.texi.
44345         * doc/pastposix-functions/usleep.texi: Renamed from
44346         doc/posix-functions/usleep.texi.
44347         * doc/pastposix-functions/vfork.texi: Renamed from
44348         doc/posix-functions/vfork.texi.
44349         * doc/pastposix-functions/wcswcs.texi: Renamed from
44350         doc/posix-functions/wcswcs.texi.
44351         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44352         (Function Substitutes): Update.
44353
44354 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44355
44356         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44357         m4/strerror.m4.
44358
44359 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44360             Bruno Haible  <bruno@clisp.org>
44361
44362         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44363
44364 2008-12-13  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/strtoull (Depends-on): Remove unistd.
44367
44368 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44369
44370         * modules/strtoull (Depends-on): Add stdlib.
44371
44372 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44373
44374         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44375
44376 2008-12-10  Jim Meyering  <meyering@redhat.com>
44377
44378         gl_ASSERT: don't say assertions are disabled when they're not
44379         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44380         "checking whether to enable assertions... no", when they are in
44381         fact enabled.  This is solely a bug in the output of configure.
44382         In spite of saying "no", NDEBUG was not defined in that case.
44383         Also, as noted by Eric Blake, leave assertions enabled upon
44384         --enable-assert=INVALID.
44385
44386 2008-12-10  Bruno Haible  <bruno@clisp.org>
44387
44388         Change MODULES.html to refer to POSIX:2008 where possible.
44389         * MODULES.html.sh (POSIX2008_URL): New variable.
44390         (posix_headers): Remove sys/timeb, ucontext.
44391         (posix2001_headers): New variable.
44392         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44393         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44394         index, makecontext, mktemp, pthread_attr_getstackaddr,
44395         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44396         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44397         (posix2001_functions): New variable.
44398         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44399         otherwise.
44400
44401 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44402
44403         add missing include to parse-duration.c
44404         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44405         * modules/parse-duration (Depends-on): Add xalloc.
44406
44407         fix sed script reading maint.mk
44408         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44409         (syntax-check-rules): Use it.
44410
44411 2008-12-09  Bruno Haible  <bruno@clisp.org>
44412
44413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44414         MacOS X 10.4/PowerPC.
44415         Reported by Simon Josefsson.
44416
44417 2008-12-08  Jim Meyering  <meyering@redhat.com>
44418
44419         work around mingw's lack of some S_IF definitions
44420         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44421         Reported by Simon Josefsson.
44422
44423 2008-12-08  Bruno Haible  <bruno@clisp.org>
44424
44425         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44426         applied to variables. Needed on MacOS X 10.4/PowerPC.
44427         Reported by Simon Josefsson.
44428
44429 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44430         and Eric Blake  <ebb9@byu.net>
44431
44432         assert: honor --enable-assert
44433         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44434         order to honor --enable-assert, rather than treating it as a
44435         synonym for --disable-assert.
44436
44437 2008-12-08  Jim Meyering  <meyering@redhat.com>
44438
44439         * lib/posixtm.c: Remove now-useless declaration of mktime.
44440
44441         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44442
44443 2008-12-07  Bruno Haible  <bruno@clisp.org>
44444
44445         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44446         test_once): Mark functions as static.
44447         * tests/test-tls.c (test_tls): Likewise.
44448
44449 2008-12-07  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44452         iconv_register_autodetect.
44453
44454 2008-12-07  Jim Meyering  <meyering@redhat.com>
44455
44456         posixtm.c: avoid a warning
44457         * lib/posixtm.c (posixtime): Don't initialize tm0.
44458         It's no longer needed to placate gcc4's -Wuninitialized,
44459         and the attempt to placate would elicit a new warning.
44460
44461         unicodeio.c: mark unused parameters
44462         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44463         (fallback_failure_callback): Likewise.
44464
44465 2008-12-07  Bruno Haible  <bruno@clisp.org>
44466
44467         * gnulib-tool (func_create_testdir): When building the tests
44468         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44469         Reported by Simon Josefsson.
44470
44471 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44472
44473         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44474
44475 2008-12-06  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44478         Suggested by Eric Blake.
44479
44480 2008-12-06  Bruno Haible  <bruno@clisp.org>
44481
44482         Fix a c-stack test failure on MacOS X.
44483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44484         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44485         handler for SIGBUS as well.
44486         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44487         install a signal handler for SIGBUS as well.
44488         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44489
44490 2008-12-06  Bruno Haible  <bruno@clisp.org>
44491
44492         Advocacy documentation.
44493         * doc/gnulib-intro.texi (Benefits): New section.
44494         * doc/gnulib.texi: Update.
44495
44496 2008-12-06  Bruno Haible  <bruno@clisp.org>
44497
44498         Document the 'manywarnings' module.
44499         * doc/manywarnings.texi: New file.
44500         * doc/gnulib.texi: Include it.
44501
44502 2008-12-05  Eric Blake  <ebb9@byu.net>
44503
44504         tests: silence some gcc warnings
44505         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44506         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44507         type mismatches.
44508
44509 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44510             Bruno Haible  <bruno@clisp.org>
44511
44512         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44513
44514 2008-11-29  Jim Meyering  <meyering@redhat.com>
44515
44516         unicodeio.c: mark unused parameters
44517         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44518         (fallback_failure_callback): Likewise.
44519
44520         fts: fix a thinko
44521         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44522         (set_stat_type): Return S_IF*-valued "type" directly.
44523         Prompted by James Youngman's spotting a related bug.
44524         Confirmed by further testing through find.
44525
44526         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44527         * lib/fts.c (D_TYPE): Define.
44528         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44529         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44530         (s_ifmt_shift_bits): New function.
44531         (set_stat_type): New function.
44532         (fts_build): When not calling fts_stat, call set_stat_type
44533         to propagate dirent.d_type info to fts_read caller.
44534         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44535         fts_statp->st_mode type information may be valid.
44536
44537 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44538
44539         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44540         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44541         <sds@gnu.org>.
44542
44543 2008-11-20  Bruno Haible  <bruno@clisp.org>
44544
44545         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44546         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44547         INCLUDE_NEXT.
44548         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44549         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44550         * modules/math (Makefile.am): Substitute
44551         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44552         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44553
44554 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44555             Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/stdint.in.h: Define all type macros so that their expansion is
44558         a single typedef'ed token. Fixes a compilation failure in Boost which
44559         does "using ::int8_t;".
44560
44561 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44562
44563         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44564         gl_MANYWARN_ALL_GCC.
44565         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44566         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44567         * modules/manywarnings: New file.
44568         * MODULES.html.sh: Mention manywarnings module.
44569
44570 2008-11-18  Bruno Haible  <bruno@clisp.org>
44571
44572         * doc/gnulib-tool.texi (Unit tests): New section.
44573
44574 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44575
44576         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44577         paths like 'lib/po/foo.po'.
44578
44579 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44580
44581         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44582         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44583
44584 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44585
44586         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44587         parameter works.
44588
44589 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44590
44591         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44592
44593 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44594
44595         * modules/parse-duration-tests: New file.
44596         * tests/test-parse-duration.sh: New file.
44597         * tests/test-parse-duration.c: New file.
44598
44599         New module 'parse-duration'.
44600         * lib/parse-duration.h: New file.
44601         * lib/parse-duration.c: New file.
44602         * modules/parse-duration: New file.
44603
44604 2008-11-17  Bruno Haible  <bruno@clisp.org>
44605
44606         * tests/test-select-out.sh: Comment out the first pipe test.
44607         Reported by Simon Josefsson.
44608
44609 2008-11-17  Bruno Haible  <bruno@clisp.org>
44610
44611         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44612         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44613         gl_HOSTENT.
44614
44615 2008-11-17  Bruno Haible  <bruno@clisp.org>
44616
44617         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44618         -lnetwork and -lnet. Needed for Haiku and BeOS.
44619
44620 2008-11-16  Bruno Haible  <bruno@clisp.org>
44621
44622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44623
44624 2008-11-16  Bruno Haible  <bruno@clisp.org>
44625
44626         Avoid test failure on Haiku.
44627         * tests/test-fsync.c: Include <errno.h>.
44628         (main): Don't require that fsync (0) fails.
44629
44630 2008-11-15  Bruno Haible  <bruno@clisp.org>
44631
44632         New module 'hostent'.
44633         * modules/hostent: New file.
44634         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44635
44636 2008-11-15  Bruno Haible  <bruno@clisp.org>
44637
44638         New module 'servent'.
44639         * modules/servent: New file.
44640         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44641
44642 2008-11-15  Bruno Haible  <bruno@clisp.org>
44643
44644         Avoid generating same test program with two different rules.
44645         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44646         test-frexp to test-frexp-nolibm.
44647         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44648         test-frexpl to test-frexpl-nolibm.
44649
44650 2008-11-15  Bruno Haible  <bruno@clisp.org>
44651
44652         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44653         $(FREXPL_LIBM).
44654
44655 2008-11-15  Bruno Haible  <bruno@clisp.org>
44656
44657         * lib/netdb.in.h: Activate the definitions also when the system's
44658         <netdb.h> has 'struct addrinfo'.
44659         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44660         EAI_OVERFLOW or AI_NUMERICSERV.
44661         * doc/posix-headers/netdb.texi: Document the problem.
44662
44663 2008-11-15  Bruno Haible  <bruno@clisp.org>
44664
44665         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44666
44667         Make the 'sched' module work on platforms where <sched.h> exists but
44668         is incomplete (such as Haiku).
44669         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44670         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44671         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44672         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44673         HAVE_STRUCT_SCHED_PARAM.
44674         * modules/sched (Depends-on): Add include_next.
44675         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44676         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44677         * doc/posix-headers/sched.texi: Document the issue.
44678
44679 2008-11-13  Jim Meyering  <meyering@redhat.com>
44680
44681         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44682         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44683         test would fail due to the difference in the Report bugs to ...
44684         line.  The expected address is empty, "<>", while the actual
44685         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44686
44687 2008-11-12  Bruno Haible  <bruno@clisp.org>
44688
44689         lstat: don't compile lstat.c on systems lacking lstat
44690         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44691         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44692         Reported by Daniel P. Berrange via Jim Meyering.
44693
44694 2008-11-12  Jim Meyering  <meyering@redhat.com>
44695
44696         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44697
44698 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44699
44700         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44701         instead.
44702
44703 2008-11-12  Bruno Haible  <bruno@clisp.org>
44704
44705         * lib/unicodeio.c: Include unistr.h.
44706         (utf8_wctomb): Remove function.
44707         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44708
44709 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44710
44711         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44712         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44713         <bruno@clisp.org>.
44714         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44715
44716 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44717
44718         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44719         * doc/gnulib.texi: Add section for warnings.
44720
44721 2008-11-11  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/sockets.h: Add a comment.
44724
44725 2008-11-11  Karl Berry  <karl@gnu.org>
44726
44727         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44728
44729 2008-11-11  Eric Blake  <ebb9@byu.net>
44730
44731         fdl.texi: avoid git symlinks
44732         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44733
44734 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44735
44736         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44737
44738 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44739
44740         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44741         (gl_WARN_ADD): Substitute $2 if literal.
44742
44743 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44744
44745         * m4/warning.m4: Remove.
44746
44747 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44748
44749         * m4/warnings.m4: Almost complete rewrite. :-)
44750
44751 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44752
44753         * modules/warnings: New module.
44754         * m4/warnings.m4: New file.
44755         * MODULES.html.sh: Mention warnings module.
44756         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44757         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44758
44759 2008-11-10  Eric Blake  <ebb9@byu.net>
44760
44761         fdl.texi: make a symlink to the latest version
44762         * doc/standards.texi: Revert today's earlier change.
44763         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44764         * doc/fdl.texi: ...and replace this with a symlink to the newer
44765         fdl-1.3.texi.
44766
44767 2008-11-10  Bruno Haible  <bruno@clisp.org>
44768
44769         * tests/test-select-fd.c (main): Accept the result file name as fourth
44770         argument.
44771         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44772         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44773
44774 2008-11-10  Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44777         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44778         as autoconf-substituted macros.
44779         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44781         gl_NETDB_H_DEFAULTS. Set these variables.
44782         * modules/netdb (Makefile.am): Substitute these variables.
44783
44784 2008-11-10  Eric Blake  <ebb9@byu.net>
44785
44786         standards.texi: include correct file for FDL 1.3
44787         * doc/standards.texi (GNU Free Documentation License): Change
44788         include file to pull in FDL 1.3, not 1.2.
44789
44790         fdl.texi: revert accidental change to license
44791         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44792
44793 2008-11-10  Bruno Haible  <bruno@clisp.org>
44794
44795         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44796         cross-compiling guesses also when the native compile gives no result.
44797
44798 2008-11-10  Bruno Haible  <bruno@clisp.org>
44799
44800         * lib/spawni.c (__spawni): Force variable into the stack.
44801
44802 2008-11-10  Bruno Haible  <bruno@clisp.org>
44803
44804         Add support for Haiku.
44805         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44806         glibc and BeOS, but also on Haiku.
44807         * lib/fpurge.c (fpurge): Likewise.
44808         * lib/freadable.c (freadable): Likewise.
44809         * lib/freadahead.c (freadahead): Likewise.
44810         * lib/freading.c (freading): Likewise.
44811         * lib/freadptr.c (freadptr): Likewise.
44812         * lib/freadseek.c (freadptrinc): Likewise.
44813         * lib/fseeko.c (rpl_fseeko): Likewise.
44814         * lib/fseterr.c (fseterr): Likewise.
44815         * lib/fwritable.c (fwritable): Likewise.
44816         * lib/fwriting.c (fwriting): Likewise.
44817         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44818
44819 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44820
44821         * lib/config.charset: Treat Haiku like BeOS.
44822
44823 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44824
44825         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44826         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44827
44828 2008-11-08  Bruno Haible  <bruno@clisp.org>
44829
44830         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44831         AC_CACHE_CHECK.
44832
44833 2008-11-08  Bruno Haible  <bruno@clisp.org>
44834
44835         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44836
44837 2008-11-08  Bruno Haible  <bruno@clisp.org>
44838
44839         * tests/test-select-fd.c: New file.
44840         * tests/test-select-in.sh: New file.
44841         * tests/test-select-out.sh: New file.
44842         * tests/test-select-stdin.c: New file.
44843         * modules/select-tests (Files): Add the new files.
44844         (Depends-on): Add gettimeofday.
44845         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44846         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44847         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44848
44849 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44850             Bruno Haible  <bruno@clisp.org>
44851
44852         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44853
44854 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44855
44856         * build-aux/pmccabe2html: Added support for C++ source files.
44857
44858 2008-11-05  Ben Pfaff  <blp@gnu.org>
44859
44860         Fix lib/close.c build on Windows.
44861         * modules/close (Files): Add lib/w32sock.h.
44862
44863 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44864
44865         Accept Bison's NEWS format.
44866         * build-aux/announce-gen (print_news_deltas): Tweak
44867         $re_prefix.
44868
44869 2008-11-04  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/random_r (Maintainer): Add glibc.
44872
44873 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44874
44875         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44876         by karl@freefriends.org (Karl Berry).
44877         * doc/alloca.texi: Likewise.
44878         * doc/c-ctype.texi: Likewise.
44879         * doc/c-strcase.texi: Likewise.
44880         * doc/c-strcaseeq.texi: Likewise.
44881         * doc/c-strcasestr.texi: Likewise.
44882         * doc/c-strstr.texi: Likewise.
44883         * doc/c-strtod.texi: Likewise.
44884         * doc/c-strtold.texi: Likewise.
44885         * doc/ctime.texi: Likewise.
44886         * doc/error.texi: Likewise.
44887         * doc/fdl.texi: Likewise.
44888         * doc/gcd.texi: Likewise.
44889         * doc/getdate.texi: Likewise.
44890         * doc/gnulib-intro.texi: Likewise.
44891         * doc/gnulib-tool.texi: Likewise.
44892         * doc/gnulib.texi: Likewise.
44893         * doc/inet_ntoa.texi: Likewise.
44894         * doc/maintain.texi: Likewise.
44895         * doc/make-stds.texi: Likewise.
44896         * doc/quote.texi: Likewise.
44897         * doc/regexprops-generic.texi: Likewise.
44898         * doc/standards.texi: Likewise.
44899         * doc/verify.texi: Likewise.
44900         * doc/visibility.texi: Likewise.
44901         * doc/gnulib.texi (GNU Free Documentation License): Include
44902         fdl-1.3.texi instead of fdl.texi.
44903
44904 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44905
44906         * doc/fdl-1.3.texi: New file, from
44907         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44908         * modules/fdl-1.3: Add.
44909         * MODULES.html.sh: Add fdl-1.3.
44910
44911 2008-11-03  Bruno Haible  <bruno@clisp.org>
44912
44913         Make determination of absolute name of header file work with AIX xlc.
44914         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44915         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44916         preprocessing.
44917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44918         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44919
44920 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44921
44922         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44923         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44924         <ludo@gnu.org>.
44925
44926 2008-11-02  Bruno Haible  <bruno@clisp.org>
44927
44928         Mark 'strpbrk' obsolete.
44929         * modules/strpbrk (Status, Notice): New sections.
44930         * modules/strtok_r (Depends-on): Add strpbrk.
44931
44932 2008-11-02  Bruno Haible  <bruno@clisp.org>
44933
44934         Mark 'strdup' obsolete.
44935         * modules/strdup (Status, Notice): New sections.
44936         * modules/findprog (Depends-on): Add strdup.
44937         * modules/getaddrinfo (Depends-on): Likewise.
44938         * modules/localename (Depends-on): Likewise.
44939         * modules/relocatable-lib (Depends-on): Likewise.
44940         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44941         * modules/relocatable-prog (Depends-on): Likewise.
44942         * modules/trim (Depends-on): Likewise.
44943         * modules/unictype/gen-ctype (Depends-on): Likewise.
44944         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44945
44946 2008-11-02  Bruno Haible  <bruno@clisp.org>
44947
44948         Mark 'strcspn' obsolete.
44949         * modules/strcspn (Status, Notice): New sections.
44950
44951 2008-11-02  Bruno Haible  <bruno@clisp.org>
44952
44953         Mark 'rmdir' obsolete.
44954         * modules/rmdir (Status, Notice): New sections.
44955         * modules/clean-temp (Depends-on): Add rmdir.
44956         * modules/openat (Depends-on): Likewise.
44957
44958 2008-11-02  Bruno Haible  <bruno@clisp.org>
44959
44960         Mark 'raise' obsolete.
44961         * modules/raise (Status, Notice): New sections.
44962         (Include): Specify <signal.h>.
44963         * modules/stdio (Depends-on): Add raise.
44964         * modules/write (Depends-on): Likewise.
44965
44966 2008-11-02  Bruno Haible  <bruno@clisp.org>
44967
44968         Mark 'memset' obsolete.
44969         * modules/memset (Status, Notice): New sections.
44970
44971 2008-11-02  Bruno Haible  <bruno@clisp.org>
44972
44973         Mark 'memmove' obsolete.
44974         * modules/memmove (Status, Notice): New sections.
44975         * modules/argp (Depends-on): Add memmove.
44976         * modules/argz (Depends-on): Likewise.
44977         * modules/canonicalize (Depends-on): Likewise.
44978         * modules/canonicalize-lgpl (Depends-on): Likewise.
44979         * modules/fts (Depends-on): Likewise.
44980         * modules/getcwd (Depends-on): Likewise.
44981         * modules/human (Depends-on): Likewise.
44982         * modules/regex (Depends-on): Likewise.
44983         * modules/striconveh (Depends-on): Likewise.
44984         * modules/trim (Depends-on): Likewise.
44985         * modules/unistr/u8-move (Depends-on): Likewise.
44986         * modules/unistr/u16-move (Depends-on): Likewise.
44987         * modules/unistr/u32-move (Depends-on): Likewise.
44988
44989 2008-11-02  Bruno Haible  <bruno@clisp.org>
44990
44991         Mark 'memcpy' obsolete.
44992         * modules/memcpy (Status, Notice): New sections.
44993
44994 2008-11-02  Bruno Haible  <bruno@clisp.org>
44995
44996         Mark 'memcmp' obsolete.
44997         * modules/memcmp (Status, Notice): New sections.
44998         * modules/argmatch (Depends-on): Add memchr.
44999         * modules/backupfile (Depends-on): Likewise.
45000         * modules/c-strcasestr (Depends-on): Likewise.
45001         * modules/crypto/des (Depends-on): Likewise.
45002         * modules/csharpcomp (Depends-on): Likewise.
45003         * modules/fnmatch (Depends-on): Likewise.
45004         * modules/git-merge-changelog (Depends-on): Likewise.
45005         * modules/isnand (Depends-on): Likewise.
45006         * modules/isnand-nolibm (Depends-on): Likewise.
45007         * modules/isnanf (Depends-on): Likewise.
45008         * modules/isnanf-nolibm (Depends-on): Likewise.
45009         * modules/isnanl (Depends-on): Likewise.
45010         * modules/isnanl-nolibm (Depends-on): Likewise.
45011         * modules/mbchar (Depends-on): Likewise.
45012         * modules/memcoll (Depends-on): Likewise.
45013         * modules/quotearg (Depends-on): Likewise.
45014         * modules/regex (Depends-on): Likewise.
45015         * modules/relocatable-prog (Depends-on): Likewise.
45016         * modules/same (Depends-on): Likewise.
45017         * modules/signbit (Depends-on): Likewise.
45018         * modules/strcasestr-simple (Depends-on): Likewise.
45019         * modules/unictype/gen-ctype (Depends-on): Likewise.
45020         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45021         * modules/uniname/uniname (Depends-on): Likewise.
45022         * modules/unistr/u8-cmp (Depends-on): Likewise.
45023
45024 2008-11-02  Bruno Haible  <bruno@clisp.org>
45025
45026         Mark 'memchr' obsolete.
45027         * modules/memchr (Status, Notice): New sections.
45028         * modules/argp (Depends-on): Add memchr.
45029         * modules/base64 (Depends-on): Likewise.
45030         * modules/c-strcasestr (Depends-on): Likewise.
45031         * modules/chdir-long (Depends-on): Likewise.
45032         * modules/fnmatch (Depends-on): Likewise.
45033         * modules/getsubopt (Depends-on): Likewise.
45034         * modules/git-merge-changelog (Depends-on): Likewise.
45035         * modules/glob (Depends-on): Likewise.
45036         * modules/strcasestr-simple (Depends-on): Likewise.
45037         * modules/strnlen (Depends-on): Likewise.
45038
45039 2008-11-02  Bruno Haible  <bruno@clisp.org>
45040
45041         Mark 'atexit' obsolete.
45042         * modules/atexit (Status, Notice): New sections.
45043         * modules/chdir-long (Depends-on): Add atexit.
45044         * modules/wait-process (Depends-on): Likewise.
45045
45046 2008-11-02  Bruno Haible  <bruno@clisp.org>
45047
45048         * gnulib-tool: New option --with-obsolete.
45049         (func_usage): Document it.
45050         (func_modules_transitive_closure): Drop obsolete dependencies if
45051         incobsolete is not true.
45052         (func_import): Read and save the incobsolete variable to the cache.
45053
45054 2008-11-02  Bruno Haible  <bruno@clisp.org>
45055
45056         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45057         * gnulib-tool: New option --extract-status.
45058         (func_usage): Document it.
45059         (sed_extract_prog): Recognize it.
45060         (func_get_status): New function.
45061
45062 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45063
45064         * modules/sockets (License): Change from LGPL to LGPLv2+.
45065
45066 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45067
45068         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45069
45070 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45071
45072         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45073         Mention times and sys_times.
45074         * modules/sys_times, modules/sys_times-tests: New modules.
45075         * modules/times, modules/times-tests: Likewise
45076         * m4/sys_times_h.m4: New file.
45077         * lib/sys_times.in.h: Likewise
45078         * lib/times.c: Likewise.
45079         * tests/test-sys_times.c: Likewise.
45080         * tests/test-times.c: Likewise.
45081         * doc/posix-headers/sys_times.texi: Update.
45082         * doc/posix-functions/times.texi: Update.
45083
45084 2008-10-28  Jim Meyering  <meyering@redhat.com>
45085
45086         * modules/tempname (Depends-on): Add lstat.
45087
45088         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45089
45090 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45091
45092         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45093         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45094         using idiom used elsewhere in gnulib.
45095
45096 2008-10-27  Jim Meyering  <meyering@redhat.com>
45097
45098         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45099
45100 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45101
45102         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45103         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45104         programs.
45105         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45106
45107 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45108
45109         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45110
45111 2008-10-27  Bruno Haible  <bruno@clisp.org>
45112
45113         * tests/test-lstat.c: Include <stdio.h>.
45114
45115 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45116
45117         * modules/lstat-tests: New module.
45118         * tests/test-lstat.c: New file.
45119
45120 2008-10-26  Jim Meyering  <meyering@redhat.com>
45121
45122         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45123
45124 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45125             Bruno Haible  <bruno@clisp.org>
45126
45127         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45128         * modules/configmake (Include): Add a note that the include must come
45129         after all system headers.
45130         * lib/javaversion.c: Include configmake.h after all other includes.
45131
45132 2008-10-26  Bruno Haible  <bruno@clisp.org>
45133
45134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45135         HAVE_STRUCT_RANDOM_DATA to 1.
45136         (gl_STDLIB_H): Simplify.
45137
45138 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45139
45140         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45141         substitute HAVE_STRUCT_RANDOM_DATA.
45142         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45143         random_data.
45144         * modules/stdlib (Makefile.am): Substitute
45145         HAVE_STRUCT_RANDOM_DATA.
45146
45147 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45148
45149         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45150         * doc/gnulib-intro.texi (Copyright): Likewise.
45151
45152 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45153
45154         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45155         findings.
45156
45157 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45158             Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/unistd.in.h: Include <winsock2.h>.
45161         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45162         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45163         Provide dummy declarations.
45164         (gethostname): Override.
45165         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45166         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45167         gl_PREREQ_SYS_H_WINSOCK2.
45168         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45169         * doc/posix-functions/gethostname.texi: More details.
45170
45171 2008-10-25  Bruno Haible  <bruno@clisp.org>
45172
45173         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45174         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45175         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45176
45177         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45178         here ...
45179         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45180         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45181         gl_UNISTD_H_DEFAULTS.
45182
45183 2008-10-25  Eric Blake  <ebb9@byu.net>
45184
45185         signbit: avoid spurious compiler failure
45186         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45187         declarations inside function.
45188
45189 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45190             Bruno Haible  <bruno@clisp.org>
45191
45192         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45193         * modules/random_r (Depends-on): Add stdint.
45194
45195 2008-10-24  Bruno Haible  <bruno@clisp.org>
45196
45197         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45198         Eggert.
45199         * modules/strerror (License): Likewise.
45200
45201 2008-10-24  Jim Meyering  <meyering@redhat.com>
45202
45203         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45204         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45205
45206 2008-10-24  Eric Blake  <ebb9@byu.net>
45207
45208         getgroups: fix compilation when getgroups is available
45209         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45210         but with <config.h> override of getgroups disabled.
45211
45212 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45213
45214         * doc/gnulib.texi (Header files): Add note about C++ problems.
45215         Explained by Bruno Haible <bruno@clisp.org>.
45216
45217 2008-10-23  Bruno Haible  <bruno@clisp.org>
45218
45219         Define a dummy SA_NODEFER macro on Interix.
45220         * lib/signal.in.h (SA_NODEFER): Define fallback.
45221         Reported by Aleksey Cheusov <cheusov@tut.by> via
45222         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45223
45224 2008-10-23  Bruno Haible  <bruno@clisp.org>
45225
45226         * modules/freadahead (License): Change to LGPLv2+.
45227         Suggested by Simon Josefsson.
45228
45229 2008-10-23  Jim Meyering  <meyering@redhat.com>
45230
45231         random_r: new module
45232         * modules/random_r: New file.
45233         * m4/random_r.m4: New file.
45234         * lib/random_r.c: New file, from glibc.
45235         * modules/random_r-tests: New file.
45236         * tests/test-random_r.c: New file.
45237         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45238          Declare.
45239         (RAND_MAX): Define.
45240         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45241         * modules/stdlib: Substitute them, too.
45242         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45243         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45244         * doc/glibc-functions/random_r.texi: Likewise.
45245         * doc/glibc-functions/setstate_r.texi: Likewise.
45246         * doc/glibc-functions/srandom_r.texi: Likewise.
45247         * config/srclist.txt: Mention it.
45248
45249 2008-10-23  David Lutterkort  <lutter@redhat.com>
45250
45251         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45252         link requirement
45253
45254 2008-10-23  Jim Meyering  <meyering@redhat.com>
45255
45256         selinux-h: mark parameters of stub functions as intentionally unused
45257         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45258         * lib/se-context.in.h: Likewise.
45259
45260 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45261
45262         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45263
45264 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45265
45266         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45267
45268 2008-10-22  Eric Blake  <ebb9@byu.net>
45269
45270         glthread/thread: avoid compiler warning
45271         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45272         Add unreachable abort to silence compiler.
45273
45274 2008-10-22  Eric Blake  <ebb9@byu.net>
45275
45276         netdb: also supply struct addrinfo for cygwin 1.5.x
45277         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45278         older cygwin.
45279         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45280         cygwin.
45281         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45282
45283 2008-10-22  Bruno Haible  <bruno@clisp.org>
45284
45285         * users.txt: Update entry about pspp.
45286
45287 2008-10-21  Bruno Haible  <bruno@clisp.org>
45288
45289         Simplification.
45290         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45291         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45292
45293         Simplification.
45294         * lib/ioctl.c (ioctl): Don't undefine.
45295         * lib/socket.c (socket): Don't undefine.
45296
45297         Remove unused module indicator macros.
45298         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45299         GNULIB_$1 as a C macro.
45300
45301         * doc/posix-functions/close.texi: Undo last change.
45302         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45303         Windows platforms.
45304
45305 2008-10-21  Bruno Haible  <bruno@clisp.org>
45306
45307         Add gethostname() declaration to <unistd.h>.
45308         * lib/unistd.in.h (gethostname): New declaration.
45309         * lib/gethostname.c: Include <unistd.h>.
45310         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45311         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45313         and HAVE_GETHOSTNAME.
45314         * modules/gethostname (Depends-on): Add unistd.
45315         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45316         (Include): Specify <unistd.h>.
45317         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45318         HAVE_GETHOSTNAME.
45319         * tests/test-gethostname.c: Include <unistd.h> first.
45320
45321 2008-10-21  Bruno Haible  <bruno@clisp.org>
45322
45323         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45324         * modules/select-tests (Depends-on): Likewise.
45325         Reported by Simon Josefsson.
45326
45327 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45328
45329         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45330         * lib/accept.c: New file, based on winsock.c.
45331         * lib/bind.c: New file, based on winsock.c.
45332         * lib/connect.c: New file, based on winsock.c.
45333         * lib/getpeername.c: New file, based on winsock.c.
45334         * lib/getsockname.c: New file, based on winsock.c.
45335         * lib/getsockopt.c: New file, based on winsock.c.
45336         * lib/ioctl.c: New file, based on winsock.c.
45337         * lib/listen.c: New file, based on winsock.c.
45338         * lib/recv.c: New file, based on winsock.c.
45339         * lib/recvfrom.c: New file, based on winsock.c.
45340         * lib/send.c: New file, based on winsock.c.
45341         * lib/sendto.c: New file, based on winsock.c.
45342         * lib/setsockopt.c: New file, based on winsock.c.
45343         * lib/shutdown.c: New file, based on winsock.c.
45344         * lib/socket.c: New file, based on winsock.c.
45345         * lib/w32sock.h: New file, based on winsock.c.
45346         * lib/winsock.c: Remove file.
45347         * modules/accept: Likewise.
45348         * modules/bind: Likewise.
45349         * modules/connect: Likewise.
45350         * modules/getpeername: Likewise.
45351         * modules/getsockname: Likewise.
45352         * modules/getsockopt: Likewise.
45353         * modules/ioctl: Likewise.
45354         * modules/listen: Likewise.
45355         * modules/recv: Likewise.
45356         * modules/recvfrom: Likewise.
45357         * modules/send: Likewise.
45358         * modules/sendto: Likewise.
45359         * modules/setsockopt: Likewise.
45360         * modules/shutdown: Likewise.
45361         * modules/socket: Use socket.c instead of winsock.c.
45362         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45363         * doc/posix-functions/accept.texi: Doc fix.
45364         * doc/posix-functions/bind.texi: Doc fix.
45365         * doc/posix-functions/close.texi: Doc fix.
45366         * doc/posix-functions/connect.texi: Doc fix.
45367         * doc/posix-functions/getpeername.texi: Doc fix.
45368         * doc/posix-functions/getsockname.texi: Doc fix.
45369         * doc/posix-functions/getsockopt.texi: Doc fix.
45370         * doc/posix-functions/ioctl.texi: Doc fix.
45371         * doc/posix-functions/listen.texi: Doc fix.
45372         * doc/posix-functions/recv.texi: Doc fix.
45373         * doc/posix-functions/recvfrom.texi: Doc fix.
45374         * doc/posix-functions/send.texi: Doc fix.
45375         * doc/posix-functions/sendto.texi: Doc fix.
45376         * doc/posix-functions/setsockopt.texi: Doc fix.
45377         * doc/posix-functions/shutdown.texi: Doc fix.
45378         * doc/posix-functions/socket.texi: Doc fix.
45379
45380 2008-10-20  Bruno Haible  <bruno@clisp.org>
45381
45382         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45383         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45384         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45385         as an alias for SIGABRT.
45386         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45387         (sigaction): Map it to SIGABRT.
45388         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45389
45390 2008-10-20  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/fts.c: Don't include lstat.h.
45393         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45394
45395         Move the lstat() declaration to <sys/stat.h>.
45396         * lib/lstat.h: Remove file.
45397         * lib/sys_stat.in.h: Add special invocation convention.
45398         (lstat): New declaration.
45399         * lib/lstat.c (orig_lstat): New function.
45400         (rpl_lstat): Use orig_lstat instead of lstat.
45401         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45402         AC_C_INLINE. Set REPLACE_LSTAT.
45403         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45404         and REPLACE_LSTAT.
45405         * modules/lstat (Files): Remove lib/lstat.h.
45406         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45407         (Include): Specify <sys/stat.h> instead of lstat.h.
45408         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45409         REPLACE_LSTAT.
45410         * NEWS: Mention the change.
45411
45412 2008-10-20  Bruno Haible  <bruno@clisp.org>
45413
45414         * modules/posix_spawn-tests: New file.
45415         * tests/test-posix_spawn3.c: New file.
45416
45417 2008-10-20  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45420         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45421         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45422         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45423         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45424
45425 2008-10-20  Bruno Haible  <bruno@clisp.org>
45426
45427         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45428         of posix_spawn on AIX 5.3.
45429
45430 2008-10-20  Bruno Haible  <bruno@clisp.org>
45431
45432         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45433
45434 2008-10-20  Bruno Haible  <bruno@clisp.org>
45435
45436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45437         of AC_LANG_PROGRAM.
45438
45439 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45440
45441         * lib/netdb.in.h: Don't define GNU specific constants until they
45442         are supported or needed.  Reported by Bruno Haible
45443         <bruno@clisp.org>.
45444
45445 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45446
45447         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45448
45449 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45450
45451         * lib/getaddrinfo.h: Remove file.
45452         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45453         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45454         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45455         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45456         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45457         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45458         * tests/test-getaddrinfo.c: Likewise.
45459         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45460         * NEWS: Mention change.
45461
45462 2008-10-19  Bruno Haible  <bruno@clisp.org>
45463
45464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45465
45466 2008-10-19  Bruno Haible  <bruno@clisp.org>
45467
45468         * lib/wait-process.c: Include simply <sys/wait.h>.
45469         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45470         WIFSTOPPED): Remove fallback definitions.
45471         * modules/wait-process (Depends-on): Add sys_wait.
45472
45473         New module 'sys_wait'.
45474         * modules/sys_wait: New file.
45475         * lib/sys_wait.in.h: New file, partially copied from
45476         lib/wait-process.c.
45477         * m4/sys_wait_h.m4: New file.
45478         * doc/posix-headers/sys_wait.texi: Mention the new module.
45479
45480 2008-10-19  Bruno Haible  <bruno@clisp.org>
45481
45482         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45483
45484 2008-10-19  Bruno Haible  <bruno@clisp.org>
45485
45486         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45487         * lib/wait-process.c (WAIT_T): Remove type.
45488         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45489         (wait_subprocess): Update.
45490
45491 2008-10-19  Bruno Haible  <bruno@clisp.org>
45492
45493         New module 'atoll'.
45494         * modules/atoll: New file.
45495         * lib/stdlib.in.h (atoll): New declaration.
45496         * lib/atoll.c: New file, from glibc with modifications.
45497         * m4/atoll.m4: New file.
45498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45499         HAVE_ATOLL.
45500         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45501         * doc/posix-functions/atoll.texi: Mention the new module.
45502
45503 2008-10-19  Bruno Haible  <bruno@clisp.org>
45504
45505         Add strtoull() declaration to <stdlib.h>.
45506         * lib/stdlib.in.h (strtoull): New declaration.
45507         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45508         Set HAVE_STRTOULL.
45509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45510         HAVE_STRTOULL.
45511         * modules/strtoull (Depends-on): Add stdlib.
45512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45513         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45514         HAVE_STRTOULL.
45515
45516 2008-10-19  Bruno Haible  <bruno@clisp.org>
45517
45518         Add strtoll() declaration to <stdlib.h>.
45519         * lib/stdlib.in.h (strtoll): New declaration.
45520         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45521         Set HAVE_STRTOLL.
45522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45523         HAVE_STRTOLL.
45524         * modules/strtoll (Depends-on): Add stdlib.
45525         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45526         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45527
45528 2008-10-19  Bruno Haible  <bruno@clisp.org>
45529
45530         * modules/bcopy (Depends-on): Add strings.
45531         (Include): Specify <strings.h>.
45532
45533 2008-10-19  Bruno Haible  <bruno@clisp.org>
45534
45535         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45536
45537 2008-10-19  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45540         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45541         mingw.
45542
45543 2008-10-19  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/atanl.c: Don't include isnanl.h.
45546         * lib/cosl.c: Likewise.
45547         * lib/ldexpl.c: Likewise.
45548         * lib/logl.c: Likewise.
45549         * lib/sinl.c: Likewise.
45550         * lib/sqrtl.c: Likewise.
45551         * lib/tanl.c: Likewise.
45552
45553         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45554         * lib/isnanf.h: Remove file.
45555         * lib/isnand.h: Remove file.
45556         * lib/isnanl.h: Remove file.
45557         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45558         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45559         macros.
45560         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45561         HAVE_ISNANF, don't define it as a C macro.
45562         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45563         HAVE_ISNAND, don't define it as a C macro.
45564         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45565         HAVE_ISNANL, don't define it as a C macro.
45566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45567         HAVE_ISNAN[FDL].
45568         * modules/isnanf (Files): Remove lib/isnanf.h.
45569         (Depends-on): Add math.
45570         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45571         (Include): Specify <math.h> instead of isnanf.h.
45572         * modules/isnand (Files): Remove lib/isnand.h.
45573         (Depends-on): Add math.
45574         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45575         (Include): Specify <math.h> instead of isnand.h.
45576         * modules/isnanl (Files): Remove lib/isnanl.h.
45577         (Depends-on): Add math.
45578         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45579         (Include): Specify <math.h> instead of isnanl.h.
45580         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45581         HAVE_ISNAN[FDL].
45582         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45583         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45584         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45585         * NEWS: Mention the change.
45586
45587 2008-10-18  Bruno Haible  <bruno@clisp.org>
45588
45589         Add getusershell(), setusershell(), endusershell() declarations to
45590         <unistd.h>.
45591         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45592         declarations.
45593         * lib/getusershell.c: Include unistd.h.
45594         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45595         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45596         HAVE_GETUSERSHELL.
45597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45598         and HAVE_GETUSERSHELL.
45599         * modules/getusershell (Depends-on): Add unistd, extensions.
45600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45601         (Include): Specify <unistd.h>.
45602         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45603         HAVE_GETUSERSHELL.
45604
45605 2008-10-18  Bruno Haible  <bruno@clisp.org>
45606
45607         Add a getloadavg() declaration to <stdlib.h>.
45608         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45609         getloadavg declaration.
45610         (getloadavg): New declaration.
45611         * lib/getloadavg.c: Include <stdlib.h> first.
45612         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45613         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45614         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45616         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45617         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45618         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45619         (Include): Specify <stdlib.h>.
45620         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45621         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45622
45623 2008-10-18  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/dirchownmod.c: Don't include lchmod.h.
45626
45627         Move the lchmod() declaration to <sys/stat.h>.
45628         * lib/lchmod.h: Remove file.
45629         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45630         (lchmod): New declaration, moved here from lib/lchown.h.
45631         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45632         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45634         and HAVE_LCHMOD.
45635         * modules/lchmod (Files): Remove lib/lchmod.h.
45636         (Depends-on): Add sys_stat, extensions.
45637         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45638         (Include): Specify <sys/stat.h> instead of lchmod.h.
45639         * modules/sys_stat (Depends-on): Add link-warning.
45640         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45641         definition of GL_LINK_WARNING.
45642         * NEWS: Mention the change.
45643
45644 2008-10-18  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/fchdir.c: Don't include dirfd.h.
45647         * lib/fts.c: Likewise.
45648         * lib/getcwd.c: Likewise.
45649         * lib/glob.c: Likewise.
45650
45651         Move the dirfd() declaration to <dirent.h>.
45652         * lib/dirfd.h: Remove file.
45653         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45654         (dirfd): New declaration.
45655         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45656         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45657         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45658         HAVE_DECL_DIRFD.
45659         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45660         HAVE_DECL_DIRFD.
45661         * modules/dirfd (Files): Remove lib/dirfd.h.
45662         (Depends-on): Add dirent, extensions.
45663         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45664         (Include): Specify <dirent.h> instead of dirfd.h.
45665         * modules/dirent (Depends-on): Add link-warning.
45666         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45667         definition of GL_LINK_WARNING.
45668         * NEWS: Mention the change.
45669
45670 2008-10-18  Bruno Haible  <bruno@clisp.org>
45671
45672         Move the euidaccess() declaration to <unistd.h>.
45673         * lib/euidaccess.h: Remove file.
45674         * lib/unistd.in.h (euidaccess): New declaration.
45675         * lib/euidaccess.c: Don't include euidaccess.h.
45676         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45677         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45679         and HAVE_EUIDACCESS.
45680         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45681         (Depends-on): Add unistd.
45682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45683         (Include): Specify <unistd.h> instead of euidaccess.h.
45684         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45685         HAVE_EUIDACCESS.
45686         * NEWS: Mention the change.
45687
45688 2008-10-18  Bruno Haible  <bruno@clisp.org>
45689
45690         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45691
45692         Move the getdomainname() declaration to <unistd.h>.
45693         * lib/getdomainname.h: Remove file.
45694         * lib/unistd.in.h (getdomainname): New declaration.
45695         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45696         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45697         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45698         HAVE_GETDOMAINNAME.
45699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45700         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45701         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45702         (Depends-on): Add unistd, extensions.
45703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45704         (Includes): Specify <unistd.h> instead of getdomainname.h.
45705         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45706         HAVE_GETDOMAINNAME.
45707         * NEWS: Mention the change.
45708
45709 2008-10-18  Bruno Haible  <bruno@clisp.org>
45710
45711         * modules/dirent: New file.
45712         * m4/dirent_h.m4: New file.
45713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45714         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45715         * modules/fchdir (Files): Remove lib/dirent.in.h.
45716         (Depends-on): Add dirent.
45717         (Makefile.am): Move rules to modules/dirent.
45718         * doc/posix-headers/dirent.texi: Mention the new module.
45719
45720 2008-10-18  Bruno Haible  <bruno@clisp.org>
45721
45722         Avoid -Wunused-parameter warnings in public gnulib header files.
45723         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45724         macro.
45725         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45726
45727 2008-10-18  Bruno Haible  <bruno@clisp.org>
45728
45729         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45730         * doc/glibc-functions/error.texi: Mention the module 'error'.
45731         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45732         * doc/glibc-functions/getdomainname.texi: Mention the module
45733         'getdomainname'.
45734         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45735         * doc/glibc-functions/getpagesize.texi: Mention the module
45736         'getpagesize'.
45737         * doc/glibc-functions/getusershell.texi: Mention the module
45738         'getusershell'.
45739         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45740         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45741         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45742         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45743         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45744         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45745         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45746         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45747         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45748         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45749         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45750         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45751         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45752         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45753
45754 2008-10-17  Bruno Haible  <bruno@clisp.org>
45755
45756         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45757         HP-UX and IRIX, use -0.0L.
45758         * tests/test-ceill.c (minus_zero): Likewise.
45759         * tests/test-floorl.c (minus_zero): Likewise.
45760         * tests/test-frexpl.c (minus_zero): Likewise.
45761         * tests/test-isnan.c (minus_zerol): Likewise.
45762         * tests/test-isnanl.h (minus_zero): Likewise.
45763         * tests/test-ldexpl.c (minus_zero): Likewise.
45764         * tests/test-roundl.c (minus_zero): Likewise.
45765         * tests/test-signbit.c (minus_zerol): Likewise.
45766         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45767         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45768         * tests/test-truncl.c (minus_zero): Likewise.
45769         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45770         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45771         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45772         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45773
45774 2008-10-17  Bruno Haible  <bruno@clisp.org>
45775
45776         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45777         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45778         that it gets activated only for gcc >= 3.0.
45779         * lib/dirent.in.h: Likewise.
45780         * lib/errno.in.h: Likewise.
45781         * lib/fcntl.in.h: Likewise.
45782         * lib/float.in.h: Likewise.
45783         * lib/iconv.in.h: Likewise.
45784         * lib/inttypes.in.h: Likewise.
45785         * lib/locale.in.h: Likewise.
45786         * lib/math.in.h: Likewise.
45787         * lib/netdb.in.h: Likewise.
45788         * lib/netinet_in.in.h: Likewise.
45789         * lib/search.in.h: Likewise.
45790         * lib/signal.in.h: Likewise.
45791         * lib/spawn.in.h: Likewise.
45792         * lib/stdarg.in.h: Likewise.
45793         * lib/stdint.in.h: Likewise.
45794         * lib/stdio.in.h: Likewise.
45795         * lib/stdlib.in.h: Likewise.
45796         * lib/string.in.h: Likewise.
45797         * lib/strings.in.h: Likewise.
45798         * lib/sys_file.in.h: Likewise.
45799         * lib/sys_ioctl.in.h: Likewise.
45800         * lib/sys_select.in.h: Likewise.
45801         * lib/sys_socket.in.h: Likewise.
45802         * lib/sys_stat.in.h: Likewise.
45803         * lib/sys_time.in.h: Likewise.
45804         * lib/sysexits.in.h: Likewise.
45805         * lib/time.in.h: Likewise.
45806         * lib/unistd.in.h: Likewise.
45807         * lib/wchar.in.h: Likewise.
45808         * lib/wctype.in.h: Likewise.
45809         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45810
45811 2008-10-17  Jim Meyering  <meyering@redhat.com>
45812
45813         ignore-value: don't depend on inline module
45814         * modules/ignore-value (Depends-on): Remove 'inline'.
45815         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45816         Suggestion from Bruno Haible.
45817
45818 2008-10-17  Bruno Haible  <bruno@clisp.org>
45819
45820         New implementation of condition variables for Win32.
45821         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45822         (gl_linked_waitqueue_t): New type.
45823         (gl_cond_t): Use it.
45824         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45825         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45826         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45827         (glthread_cond_init_func, glthread_cond_wait_func,
45828         glthread_cond_timedwait_func, glthread_cond_signal_func,
45829         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45830         Reimplemented on the basis of gl_linked_waitqueue_t.
45831         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45832         gl_waitqueue_t.
45833         (gl_rwlock_t): Update.
45834         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45835
45836 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45837
45838         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45839         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45840
45841 2008-10-17  Jim Meyering  <meyering@redhat.com>
45842
45843         ignore-value: new module
45844         * modules/ignore-value: New file.
45845         * lib/ignore-value.h: New file.
45846         * MODULES.html.sh (Compiler warning management): New section,
45847         just for this module.  More to come.
45848
45849 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45850
45851         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45852         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45853         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45854
45855 2008-10-16  Jim Meyering  <meyering@redhat.com>
45856
45857         openat-die.c: avoid 'no previous prototype' warning
45858         * lib/openat-die.c: Include "openat.h".
45859         Reported by Reuben Thomas <rrt@sc3d.org>.
45860
45861 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45862
45863         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45864         * lib/netdb.in.h: Fix typo.
45865         Reported by Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/netdb.in.h: Include sys/socket.h for platforms without
45868         netdb.h, to get structures like hostent on MinGW.
45869         * modules/netdb (Depends-on): Add sys_socket.
45870
45871 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45872
45873         * modules/netdb, modules/netdb-tests: New file.
45874         * m4/netdb_h.m4: New file.
45875         * lib/netdb.in.h: Add, currently just an empty file pending
45876         definitions.
45877         * tests/test-netdb.c: New file.
45878         * doc/posix-headers/netdb.texi: Mention that we replace it if
45879         needed.
45880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45881         netdb.
45882
45883 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45884
45885         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45886         with code.
45887
45888 2008-10-13  Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/glthread/cond.c (glthread_cond_wait_func,
45891         glthread_cond_timedwait_func): Add a comment.
45892
45893 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45894
45895         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45896         * tests/test-select.c: Likewise,
45897
45898 2008-10-13  Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/glthread/cond.c (glthread_cond_wait_func,
45901         glthread_cond_timedwait_func): Fix variable name.
45902         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45903
45904 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45905
45906         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45907         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45908         struct sockaddr.sa_len.
45909         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45910
45911 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45912
45913         * build-aux/pmccabe2html: Add css and css_url parameters.
45914
45915 2008-10-12  Bruno Haible  <bruno@clisp.org>
45916
45917         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45918         calling aclx_get.
45919         Reported by Rainer Tammer <tammer@tammer.net>.
45920
45921 2008-10-12  Bruno Haible  <bruno@clisp.org>
45922
45923         Use msvcrt aware primitives for creation/termination of Win32 threads.
45924         * lib/glthread/thread.c: Include <process.h>.
45925         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45926         (wrapper_func): Update signature.
45927         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45928
45929 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45930             Bruno Haible  <bruno@clisp.org>
45931
45932         Provide a Win32 implementation of the 'cond' module.
45933         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45934         * lib/glthread/cond.c (glthread_cond_init_func,
45935         glthread_cond_wait_func, glthread_cond_timedwait_func,
45936         glthread_cond_signal_func, glthread_cond_broadcast_func,
45937         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45938         * modules/cond (Dependencies): Add gettimeofday.
45939
45940 2008-10-11  Bruno Haible  <bruno@clisp.org>
45941
45942         Make sleep work on older versions of mingw.
45943         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45944         only whether it exists.
45945         * doc/posix-functions/sleep.texi: Mention the problem with older
45946         versions of mingw.
45947
45948 2008-10-11  Bruno Haible  <bruno@clisp.org>
45949
45950         New module 'shutdown'.
45951         * modules/shutdown: New file.
45952         * lib/sys_socket.in.h (shutdown): New declaration.
45953         * lib/winsock.c (shutdown): New function.
45954         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45955         GNULIB_SHUTDOWN.
45956         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45957         * doc/posix-functions/shutdown.texi: Document the new module.
45958
45959 2008-10-11  Jim Meyering  <meyering@redhat.com>
45960
45961         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45962
45963 2008-10-11  Bruno Haible  <bruno@clisp.org>
45964
45965         New module 'fclose'.
45966         * modules/fclose: New file.
45967         * lib/stdio.in.h (fclose): New declaration.
45968         * lib/fclose.c: New file.
45969         * m4/fclose.m4: New file.
45970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45971         REPLACE_FCLOSE.
45972         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45973         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45974         REPLACE_FCLOSE.
45975         * modules/close (Depends-on): fclose.
45976         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45977
45978 2008-10-11  Bruno Haible  <bruno@clisp.org>
45979
45980         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45981         set errno and don't call _close.
45982
45983 2008-10-10  Bruno Haible  <bruno@clisp.org>
45984
45985         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45986         ACL, not afterwards. Fixes test failure on Cygwin.
45987
45988 2008-10-09  Ben Pfaff  <blp@gnu.org>
45989
45990         * build-aux/announce-gen: Fix gnulib version related part of usage
45991         message.  Die with a useful error message if no tarballs are
45992         found.
45993
45994 2008-10-10  Jim Meyering  <meyering@redhat.com>
45995
45996         bootstrap: use git's --depth=N option only if it's supported
45997         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45998         recognize the --depth option.  Reported by Pádraig Brady.
45999
46000 2008-10-09  Bruno Haible  <bruno@clisp.org>
46001
46002         New module 'ioctl'.
46003         * modules/ioctl: New file.
46004         * lib/sys_socket.in.h (ioctl): Remove declaration.
46005         * lib/winsock.c: Include <sys/ioctl.h>.
46006         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46007         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46008         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46009         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46010         * doc/posix-functions/ioctl.texi: Mention the new module.
46011
46012 2008-10-09  Bruno Haible  <bruno@clisp.org>
46013
46014         New module 'sys_ioctl'.
46015         * lib/sys_ioctl.in.h: New file.
46016         * m4/sys_ioctl_h.m4: New file.
46017         * modules/sys_ioctl: New file.
46018         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46019
46020 2008-10-09  Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46023         * lib/winsock.c: Include <stdarg.h>.
46024         (rpl_ioctl): Change to second argument 'int' and then varargs.
46025
46026 2008-10-09  Bruno Haible  <bruno@clisp.org>
46027
46028         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46029         when the sys_socket module is present and the system has <winsock2.h>.
46030
46031 2008-10-09  Bruno Haible  <bruno@clisp.org>
46032
46033         * doc/posix-functions/close.texi: Mention module 'close' instead of
46034         module 'sys_socket'.
46035
46036 2008-10-09  Bruno Haible  <bruno@clisp.org>
46037
46038         * doc/glibc-headers/sys_ioctl.texi: New file.
46039         * doc/gnulib.texi: Include it.
46040
46041 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46042             Bruno Haible  <bruno@clisp.org>
46043
46044         Combine the two replacements of 'close'.
46045         * lib/sys_socket.in.h (close): Define to a reminder to include
46046         <unistd.h>.
46047         (_gl_close_fd_maybe_socket): New declaration.
46048         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46049         * lib/winsock.c (close): Remove undefinition.
46050         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46051         needed for the gnulib module 'close'.
46052         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46053         define to an error symbol or to a warning, if suitable.
46054         * lib/close.c: Include <sys/socket.h>.
46055         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46056         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46057         UNISTD_H_HAVE_WINSOCK2_H.
46058         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46060         UNISTD_H_HAVE_WINSOCK2_H.
46061         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46062         (configure.ac): Set a module indicator.
46063         (Makefile.am): Substitute GNULIB_CLOSE.
46064         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46065         * modules/poll-tests (Depends-on): Add close.
46066         * modules/select-tests (Depends-on): Likewise.
46067
46068 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46069             Bruno Haible  <bruno@clisp.org>
46070
46071         New module 'close'.
46072         * modules/close: New file.
46073         * lib/unistd.in.h (close): Move declaration out of the
46074         FCHDIR_REPLACEMENT scope.
46075         (_gl_unregister_fd): New declaration.
46076         * lib/close.c: New file.
46077         * lib/fchdir.c (rpl_close): Remove function.
46078         * m4/close.m4: New file.
46079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46080         close.
46081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46082         REPLACE_CLOSE.
46083         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46084         REPLACE_CLOSE.
46085         * modules/fchdir (Depends-on): Add close.
46086
46087 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46088             Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/fcntl.in.h (open): Simplify conditionals.
46091         (_gl_register_fd): New declaration.
46092         * lib/fchdir.c (rpl_open): Remove function.
46093         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46094         also.
46095         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46097         open.
46098
46099 2008-10-09  Jim Meyering  <meyering@redhat.com>
46100
46101         GNUmakefile: use the more name-space-friendly "_version"
46102         * top/GNUmakefile (_dummy): Update.
46103         (_version): Rename from "version".
46104
46105 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46106             Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46109         rpl_close.
46110         (_gl_register_fd): New function, extracted from rpl_open.
46111         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46112         (rpl_open, rpl_opendir): Use _gl_register_fd.
46113
46114 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46115
46116         Fix organization of 'open' replacement.
46117         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46118         (gl_FUNC_OPEN): Use it.
46119         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46120
46121 2008-10-08  Bruno Haible  <bruno@clisp.org>
46122
46123         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46124
46125 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46126
46127         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46128         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46129         listen).
46130
46131 2008-10-08  Eric Blake  <ebb9@byu.net>
46132
46133         GNUmakefile: add 'make version' target
46134         * top/GNUmakefile (_curr-ver): Split version update rules...
46135         (version): ...into a target.
46136
46137 2008-10-07  Bruno Haible  <bruno@clisp.org>
46138
46139         Use a more portable replacement expression for -0.0L.
46140         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46141         instead of -0.0L. Fix m4 quotation.
46142
46143         * tests/test-signbit.c: Include <float.h>.
46144         (minus_zero): New variable.
46145         (test_signbitl): Use minus_zero instead of -zero.
46146         * modules/signbit-tests (Depends-on): Add float.
46147
46148         * tests/test-ceill.c: Include <float.h>.
46149         (zero): Remove variable.
46150         (minus_zero): New variable.
46151         (main): Use minus_zero instead of -zero.
46152         * modules/ceill-tests (Depends-on): Add float.
46153
46154         * tests/test-floorl.c: Include <float.h>.
46155         (zero): Remove variable.
46156         (minus_zero): New variable.
46157         (main): Use minus_zero instead of -zero.
46158         * modules/floorl-tests (Depends-on): Add float.
46159
46160         * tests/test-roundl.c: Include <float.h>.
46161         (zero): Remove variable.
46162         (minus_zero): New variable.
46163         (main): Use minus_zero instead of -zero.
46164         * modules/roundl-tests (Depends-on): Add float.
46165
46166         * tests/test-truncl.c: Include <float.h>.
46167         (zero): Remove variable.
46168         (minus_zero): New variable.
46169         (main): Use minus_zero instead of -zero.
46170         * modules/truncl-tests (Depends-on): Add float.
46171
46172         * tests/test-frexpl.c (zero): Remove variable.
46173         (minus_zero): New variable.
46174         (main): Use minus_zero instead of -zero.
46175         * modules/frexpl-tests (Depends-on): Add float.
46176
46177         * tests/test-isnan.c (zerol): Remove variable.
46178         (minus_zerol): New variable.
46179         (test_long_double): Use minus_zerol instead of -zerol.
46180         * modules/isnan-tests (Depends-on): Add float.
46181
46182         * tests/test-isnanl.h (zero): Remove variable.
46183         (minus_zero): New variable.
46184         (main): Use minus_zero instead of -zero.
46185         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46186         * modules/isnanl-tests (Depends-on): Add float.
46187
46188         * tests/test-ldexpl.c (zero): Remove variable.
46189         (minus_zero): New variable.
46190         (main): Use minus_zero instead of -zero.
46191         * modules/ldexpl-tests (Depends-on): Add float.
46192
46193         * tests/test-snprintf-posix.h (zerol): Remove variable.
46194         (minus_zerol): New variable.
46195         (test_function): Use minus_zerol instead of -zerol.
46196         * modules/snprintf-posix-tests (Depends-on): Add float.
46197         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46198
46199         * tests/test-sprintf-posix.h (zerol): Remove variable.
46200         (minus_zerol): New variable.
46201         (test_function): Use minus_zerol instead of -zerol.
46202         * modules/sprintf-posix-tests (Depends-on): Add float.
46203         * modules/vsprintf-posix-tests (Depends-on): Add float.
46204
46205         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46206         (minus_zerol): New variable.
46207         (test_function): Use minus_zerol instead of -zerol.
46208         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46209
46210         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46211         (minus_zerol): New variable.
46212         (test_function): Use minus_zerol instead of -zerol.
46213         * modules/vasprintf-posix-tests (Depends-on): Add float.
46214
46215 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46216
46217         * MODULES.html.sh (Support for building documentation): Mention
46218         pmccabe2html.  Sort entries.
46219
46220         Add pmccabe2html module, from gnupdf.
46221         * build-aux/pmccabe.css: New file.
46222         * build-aux/pmccabe2html: New file.
46223         * m4/pmccabe2html.m4: New file.
46224         * modules/pmccabe2html: New file.
46225
46226 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46227
46228         flock: new module
46229         * MODULES.html.sh: Add to list of modules.
46230         * lib/flock.c: flock implementation for Windows and Unix systems
46231         which have fcntl.
46232         * doc/glibc-functions/flock.texi: Update documentation.
46233         * lib/sys_file.in.h: <sys/file.h> header file.
46234         * m4/flock.m4: M4 macros.
46235         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46236         * modules/flock: flock module.
46237         * modules/flock-tests: flock tests module.
46238         * modules/sys_file: sys/file.h module.
46239         * tests/test-flock.c: test suite for flock.
46240
46241 2008-10-06  Jim Meyering  <meyering@redhat.com>
46242
46243         bootstrap: check for LT_INIT more portably still ;-)
46244         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46245         Spotted by Bruno Haible.
46246
46247 2008-10-06  Eric Blake  <ebb9@byu.net>
46248
46249         test-signbit: avoid tripping Irix cc bug on -0.0L
46250         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46251         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46252         entire testsuite consistent and avoids an Irix 6.2 bug.
46253
46254 2008-10-05  Bruno Haible  <bruno@clisp.org>
46255             Jim Meyering  <jim@meyering.net>
46256
46257         Add an option for ignoring EPIPE during close_stdout.
46258         * lib/closeout.h: Include <stdbool.h>.
46259         (close_stdout_set_ignore_EPIPE): New declaration.
46260         * lib/closeout.c: Include <stdbool.h>.
46261         (ignore_EPIPE): New variable.
46262         (close_stdout_set_ignore_EPIPE): New function.
46263         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46264         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46265         failure.
46266         * modules/closeout (Depends-on): Add stdbool.
46267
46268 2008-10-05  Bruno Haible  <bruno@clisp.org>
46269
46270         * modules/accept: New file.
46271         * modules/bind: New file.
46272         * modules/connect: New file.
46273         * modules/getpeername: New file.
46274         * modules/getsockname: New file.
46275         * modules/getsockopt: New file.
46276         * modules/listen: New file.
46277         * modules/recv: New file.
46278         * modules/recvfrom: New file.
46279         * modules/send: New file.
46280         * modules/sendto: New file.
46281         * modules/setsockopt: New file.
46282         * modules/socket: New file.
46283         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46284         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46285         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46286         the particular module is requested. Add a link warning when the
46287         particular module is not requested.
46288         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46289         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46290         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46291         the particular module is requested.
46292         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46293         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46294         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46295         * modules/sys_socket (Depends-on): Add link-warning.
46296         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46297         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46298         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46299         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46300         GL_LINK_WARNING.
46301         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46302         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46303         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46304         * doc/posix-functions/getpeername.texi: Mention the new module
46305         'getpeername'.
46306         * doc/posix-functions/getsockname.texi: Mention the new module
46307         'getsockname'.
46308         * doc/posix-functions/getsockopt.texi: Mention the new module
46309         'getsockopt'.
46310         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46311         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46312         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46313         * doc/posix-functions/send.texi: Mention the new module 'send'.
46314         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46315         * doc/posix-functions/setsockopt.texi: Mention the new module
46316         'setsockopt'.
46317         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46318         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46319         listen, connect, accept.
46320         * modules/select-tests (Depends-on): Likewise.
46321
46322 2008-10-05  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/winsock.c (strerror): Remove unused #undef.
46325         (rpl_close): Remove unused local variable.
46326
46327         * modules/sys_socket (Depends-on); Add errno.
46328
46329 2008-10-05  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46332         (select): Add a link warning when the 'select' module is not used.
46333         * modules/sys_select (Depends-on): Add link-warning.
46334         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46335         Suggested by Paolo Bonzini.
46336
46337 2008-10-05  Jim Meyering  <meyering@redhat.com>
46338
46339         bootstrap: check for LT_INIT more portably
46340         * build-aux/bootstrap: Avoid using grep -E, since it's not
46341         portable enough.  Suggestion from Bruno Haible.
46342
46343 2008-10-05  Bruno Haible  <bruno@clisp.org>
46344
46345         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46346         as being fixed by gnulib.
46347
46348 2008-10-05  Bruno Haible  <bruno@clisp.org>
46349
46350         * modules/select-tests: New file, mostly copied from
46351         modules/sys_select-tests.
46352         * tests/test-select.c: New file, mostly copied from
46353         tests/test-sys_select.c.
46354         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46355         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46356         (Makefile.am): Remove test_sys_select_LDADD.
46357
46358         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46359         to an undefined symbol, for an error message.
46360         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46361         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46362         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46363         winsock-select.c here.
46364         * modules/sys_select (Files): Remove lib/winsock-select.c.
46365         (Depends-on): Remove alloca.
46366         (Makefile.am): Substitute GNULIB_SELECT.
46367         * modules/select: New file.
46368         * doc/posix-functions/select.texi: Update.
46369
46370 2008-10-05  Bruno Haible  <bruno@clisp.org>
46371
46372         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46373         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46374         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46375         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46376         getdtablesize.
46377         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46378         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46379
46380 2008-10-05  Bruno Haible  <bruno@clisp.org>
46381
46382         * modules/getdtablesize-tests: New file.
46383         * tests/test-getdtablesize.c: New file.
46384
46385         New module 'getdtablesize'.
46386         * lib/unistd.in.h (getdtablesize): New declaration.
46387         * lib/getdtablesize.c: New file.
46388         * m4/getdtablesize.m4: New file.
46389         * modules/getdtablesize: New file.
46390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46391         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46392         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46393         HAVE_GETDTABLESIZE.
46394         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46395
46396 2008-10-05  Bruno Haible  <bruno@clisp.org>
46397
46398         * modules/sched (Makefile.am): Fix typo.
46399         Reported by Simon Josefsson.
46400
46401 2008-10-05  Jim Meyering  <meyering@redhat.com>
46402
46403         bootstrap: check for LT_INIT, too
46404         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46405         are deprecated.  Suggestion from Ralf Wildenhues.
46406
46407 2008-10-05  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46410         overriding them by ours.
46411         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46412
46413 2008-10-05  Jim Meyering  <meyering@redhat.com>
46414
46415         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46416         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46417         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46418
46419 2008-10-04  Bruno Haible  <bruno@clisp.org>
46420
46421         * modules/dup2 (License): Change to LGPLv2+.
46422         * modules/sleep (License): Likewise.
46423         * modules/perror (License): Likewise.
46424         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46425         Blake.
46426         * modules/signal (License): Likewise.
46427         * modules/sigprocmask (License): Likewise.
46428         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46429         Meyering.
46430
46431 2008-10-04  Bruno Haible  <bruno@clisp.org>
46432
46433         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46434         Reported by Rainer Tammer <tammer@tammer.net>.
46435
46436 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46437             Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46440         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46441         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46442
46443 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46444
46445         filevercmp: new module
46446         * lib/filevercmp.h: New function filevercmp comparing version strings.
46447         * lib/filevercmp.c: Implementation of filevercmp function.
46448         * modules/filevercmp: Module metadata.
46449         * tests/test-filevercmp.c: Unit test for new module.
46450         * modules/filevercmp-tests: Unit test metadata.
46451         * MODULES.html.sh: Add filevercmp module.
46452
46453 2008-10-03  Bruno Haible  <bruno@clisp.org>
46454
46455         * lib/c-ctype.h: Add comment.
46456         Reported by Jim Meyering.
46457
46458 2008-10-02  Bruno Haible  <bruno@clisp.org>
46459
46460         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46461
46462 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46463
46464         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46465         name of bootstrap.conf accordingly.
46466
46467 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46468
46469         * build-aux/bootstrap: Install git-merge-changelog configuration
46470         items into .gitconfig if needed.
46471
46472 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46473
46474         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46475         git repository, and initialize/update it accordingly.
46476
46477 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46478
46479         * modules/fsync-tests: New file.
46480         * tests/test-fsync.c: New file.
46481
46482         New module 'fsync'.
46483         * lib/fsync.c: New file.
46484         * m4/fsync.m4: New file.
46485         * modules/fsync: New file.
46486         * lib/unistd.in.h (fsync): New declaration.
46487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46488         GNULIB_FSYNC and HAVE_FSYNC.
46489         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46490         * MODULES.html.sh (posix_functions): Add fsync.
46491         * doc/posix-functions/fsync.texi: Mention the new module.
46492
46493 2008-10-02  Jim Meyering  <meyering@redhat.com>
46494
46495         fts.c: sync with similar code from coreutils' remove.c
46496         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46497         Guard also with "#if defined __linux__", since for now at least,
46498         this code is Linux-kernel-specific.
46499
46500 2008-10-02  Jim Meyering  <meyering@redhat.com>
46501
46502         fts: bug fixes
46503         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46504         Include <sys/vfs.h>, not <sys/statfs.h>.
46505
46506         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46507         Include <sys/vfs.h>, not <sys/statfs.h>.
46508
46509 2008-10-01  Bruno Haible  <bruno@clisp.org>
46510
46511         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46512         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46513         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46514         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46515         * doc/posix-functions/posix_spawnp.texi: Likewise.
46516         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46517         whether posix_spawn actually works.
46518         * m4/pipe.m4 (gl_PIPE): Likewise.
46519         * modules/execute (Files): Add m4/posix_spawn.m4.
46520         * modules/pipe (Files): Add m4/posix_spawn.m4.
46521         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46522
46523 2008-10-01  Jim Meyering  <meyering@redhat.com>
46524
46525         remove trailing spaces
46526         * NEWS: Likewise.
46527         * lib/poll.c (poll): Likewise.
46528         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46529         * lib/winsock.c (rpl_close): Likewise.
46530         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46531         * modules/yield: Likewise.
46532         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46533         * tests/test-sys_select.c (connect_to_socket): Likewise.
46534
46535         fts.c: adjust a new interface to be more generally useful
46536         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46537         (fts_build): Adjust caller.
46538
46539 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46540
46541         * modules/cond-tests: New file.
46542         * tests/test-cond.c: New file.
46543
46544 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46545             Bruno Haible  <bruno@clisp.org>
46546
46547         * modules/cond (Dependencies): Add errno, time.
46548         * lib/glthread/cond.h: Include <time.h>.
46549         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46550         across platforms.
46551
46552 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46553             Bruno Haible  <bruno@clisp.org>
46554
46555         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46556
46557 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46558             Bruno Haible  <bruno@clisp.org>
46559
46560         * modules/tls-tests (Depends-on): Add thread, yield.
46561         (configure.ac): Remove all checks.
46562         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46563         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46564         gl_thread_self): Remove definitions. Include glthread/thread.h and
46565         glthread/yield.h instead.
46566         (test_tls): Pass an additional NULL argument to gl_thread_join.
46567
46568 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46569             Bruno Haible  <bruno@clisp.org>
46570
46571         * modules/lock-tests (Depends-on): Add thread, yield.
46572         (configure.ac): Remove all checks.
46573         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46574         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46575         gl_thread_self): Remove definitions. Include glthread/thread.h and
46576         glthread/yield.h instead.
46577         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46578         additional NULL argument to gl_thread_join.
46579
46580 2008-09-30  Bruno Haible  <bruno@clisp.org>
46581
46582         Fix the Win32 implementation of the 'thread' module.
46583         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46584         pointer type.
46585         (gl_thread_self): Invoke gl_thread_self_func.
46586         (gl_thread_self_func): New declaration.
46587         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46588         (do_init_self_key, init_self_key): New functions.
46589         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46590         Remove some fields.
46591         (running_threads, running_lock): Remove variables.
46592         (get_current_thread_handle): New function.
46593         (gl_thread_self_func, wrapper_func, glthread_create_func,
46594         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46595         simplified.
46596
46597 2008-09-30  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46600         files.
46601
46602 2008-09-30  Jim Meyering  <meyering@redhat.com>
46603
46604         fts.m4: correct the test for statfs.f_type
46605         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46606         when checking for statfs.f_type.
46607
46608 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46609
46610         tests: avoid some compiler warnings
46611         * tests/test-memchr.c (main): Pass NULL indirectly.
46612         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46613
46614 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46615
46616         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46617         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46618         exactly specified dayshifts.
46619         (dayshift): New rule.
46620         (rel): Add dayshift.
46621         (relative_time_table) [tomorrow, yesterday, today, now]:
46622         Use tDAY_SHIFT in place of tDAY_UNIT.
46623         * tests/test-getdate.c: Add tests for now-disallowed countable
46624         dayshifts, e.g., "4 yesterday ago".
46625
46626 2008-09-29  Bruno Haible  <bruno@clisp.org>
46627
46628         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46629         * tests/test-posix_spawn1.in.sh: Renamed from
46630         tests/test-posix_spawn.in.sh.
46631         * tests/test-posix_spawn2.c: New file.
46632         * tests/test-posix_spawn2.in.sh: New file.
46633         * modules/posix_spawnp-tests (Files): Update.
46634         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46635
46636 2008-09-29  Bruno Haible  <bruno@clisp.org>
46637
46638         Propagate effects of putenv/setenv/unsetenv to child processes.
46639         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46640         * lib/pipe.c (create_pipe): Likewise.
46641
46642 2008-09-29  Bruno Haible  <bruno@clisp.org>
46643
46644         Enable use of shell scripts as executables in mingw.
46645         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46646         run the program as a shell script.
46647         * lib/pipe.c (create_pipe): Likewise.
46648         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46649         resulting array.
46650
46651 2008-09-29  Eric Blake  <ebb9@byu.net>
46652
46653         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46654
46655 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46656
46657         * doc/posix-functions/accept.texi: Update mingw problems.
46658         * doc/posix-functions/bind.texi: Update mingw problems.
46659         * doc/posix-functions/close.texi: Update mingw problems.
46660         * doc/posix-functions/connect.texi: Update mingw problems.
46661         * doc/posix-functions/getpeername.texi: Update mingw problems.
46662         * doc/posix-functions/getsockname.texi: Update mingw problems.
46663         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46664         * doc/posix-functions/ioctl.texi: Update mingw problems.
46665         * doc/posix-functions/listen.texi: Update mingw problems.
46666         * doc/posix-functions/recv.texi: Update mingw problems.
46667         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46668         * doc/posix-functions/select.texi: Update mingw problems.
46669         * doc/posix-functions/send.texi: Update mingw problems.
46670         * doc/posix-functions/sendto.texi: Update mingw problems.
46671         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46672         * doc/posix-functions/socket.texi: Update mingw problems.
46673
46674 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46675             Bruno Haible  <bruno@clisp.org>
46676
46677         * lib/sys_select.in.h: Include sys/time.h.
46678         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46679         * modules/sys_select: Depend on sys_time.
46680         * tests/test-sys_select.c: Test that sys/select.h defines struct
46681         timeval fully.
46682
46683 2008-09-29  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46686         * lib/sys_select.in.h: Likewise.
46687
46688 2008-09-29  Bruno Haible  <bruno@clisp.org>
46689
46690         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46691
46692 2008-09-29  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46695         Set LIBSOCKET instead of augmenting LIBS.
46696         * modules/sockets (Link): New section.
46697         * modules/sockets-tests (test_sockets_LDADD): New variable.
46698         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46699         * modules/poll-tests (test_poll_LDADD): New variable.
46700         * NEWS: Document the change.
46701
46702 2008-09-29  Bruno Haible  <bruno@clisp.org>
46703
46704         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46705         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46706         ARPA_INET_H directly.
46707         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46708
46709 2008-09-28  Bruno Haible  <bruno@clisp.org>
46710
46711         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46712         from gl_HEADER_SYS_SOCKET.
46713         (gl_HEADER_SYS_SOCKET): Invoke it.
46714         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46715
46716 2008-09-28  Bruno Haible  <bruno@clisp.org>
46717
46718         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46719         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46720         Needed on OSF/1 4.0.
46721
46722 2008-09-28  Bruno Haible  <bruno@clisp.org>
46723
46724         Override open more carefully.
46725         * lib/open.c (orig_open): New function.
46726         (rpl_open): Use orig_open instead of open.
46727         * lib/fcntl.in.h: Add special invocation convention.
46728         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46729         (gl_FUNC_OPEN): Invoke it.
46730
46731         Override freopen more carefully.
46732         * lib/freopen.c (orig_freopen): New function.
46733         (rpl_freopen): Use orig_freopen instead of freopen.
46734         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46735         (gl_FUNC_FREOPEN): Invoke it.
46736
46737         Override fopen more carefully.
46738         * lib/fopen.c (orig_fopen): New function.
46739         (rpl_fopen): Use orig_fopen instead of fopen.
46740         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46741         (gl_FUNC_FOPEN): Invoke it.
46742         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46743
46744 2008-09-28  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46747         SIGPIPE.
46748
46749 2008-09-28  Bruno Haible  <bruno@clisp.org>
46750
46751         * tests/test-sigaction.c (handler, main): Disable the check whether
46752         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46753         glibc systems with LinuxThreads.
46754
46755 2008-09-28  Bruno Haible  <bruno@clisp.org>
46756
46757         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46758
46759         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46760         with AIX xlc.
46761         * lib/fcntl.in.h (open): Likewise.
46762         Reported by Rainer Tammer <tammer@tammer.net>.
46763
46764 2008-09-28  Bruno Haible  <bruno@clisp.org>
46765
46766         * modules/posix_spawnp-tests: New file.
46767         * tests/test-posix_spawn.c: New file.
46768         * tests/test-posix_spawn.in.sh: New file.
46769
46770         New module 'posix_spawnp'.
46771         * modules/posix_spawnp: New file.
46772         * lib/spawnp.c: New file, from GNU libc with modifications.
46773         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46774
46775         New module 'posix_spawn'.
46776         * modules/posix_spawn: New file.
46777         * lib/spawn.c: New file, from GNU libc with modifications.
46778         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46779
46780         New module 'posix_spawnattr_destroy'.
46781         * modules/posix_spawnattr_destroy: New file.
46782         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46783         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46784         module.
46785
46786         New module 'posix_spawnattr_setsigmask'.
46787         * modules/posix_spawnattr_setsigmask: New file.
46788         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46789         modifications.
46790         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46791         new module.
46792
46793         New module 'posix_spawnattr_getsigmask'.
46794         * modules/posix_spawnattr_getsigmask: New file.
46795         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46796         modifications.
46797         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46798         new module.
46799
46800         New module 'posix_spawnattr_setsigdefault'.
46801         * modules/posix_spawnattr_setsigdefault: New file.
46802         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46803         modifications.
46804         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46805         new module.
46806
46807         New module 'posix_spawnattr_getsigdefault'.
46808         * modules/posix_spawnattr_getsigdefault: New file.
46809         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46810         modifications.
46811         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46812         new module.
46813
46814         New module 'posix_spawnattr_setschedpolicy'.
46815         * modules/posix_spawnattr_setschedpolicy: New file.
46816         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46817         modifications.
46818         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46819         new module.
46820
46821         New module 'posix_spawnattr_getschedpolicy'.
46822         * modules/posix_spawnattr_getschedpolicy: New file.
46823         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46824         modifications.
46825         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46826         new module.
46827
46828         New module 'posix_spawnattr_setschedparam'.
46829         * modules/posix_spawnattr_setschedparam: New file.
46830         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46831         modifications.
46832         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46833         new module.
46834
46835         New module 'posix_spawnattr_getschedparam'.
46836         * modules/posix_spawnattr_getschedparam: New file.
46837         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46838         modifications.
46839         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46840         new module.
46841
46842         New module 'posix_spawnattr_setpgroup'.
46843         * modules/posix_spawnattr_setpgroup: New file.
46844         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46845         modifications.
46846         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46847         module.
46848
46849         New module 'posix_spawnattr_getpgroup'.
46850         * modules/posix_spawnattr_getpgroup: New file.
46851         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46852         modifications.
46853         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46854         module.
46855
46856         New module 'posix_spawnattr_setflags'.
46857         * modules/posix_spawnattr_setflags: New file.
46858         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46859         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46860         module.
46861
46862         New module 'posix_spawnattr_getflags'.
46863         * modules/posix_spawnattr_getflags: New file.
46864         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46865         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46866         module.
46867
46868         New module 'posix_spawnattr_init'.
46869         * modules/posix_spawnattr_init: New file.
46870         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46871         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46872         module.
46873
46874         New module 'posix_spawn_file_actions_destroy'.
46875         * modules/posix_spawn_file_actions_destroy: New file.
46876         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46877         modifications.
46878         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46879         the new module.
46880
46881         New module 'posix_spawn_file_actions_addopen'.
46882         * modules/posix_spawn_file_actions_addopen: New file.
46883         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46884         modifications.
46885         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46886         the new module.
46887
46888         New module 'posix_spawn_file_actions_adddup2'.
46889         * modules/posix_spawn_file_actions_adddup2: New file.
46890         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46891         modifications.
46892         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46893         the new module.
46894
46895         New module 'posix_spawn_file_actions_addclose'.
46896         * modules/posix_spawn_file_actions_addclose: New file.
46897         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46898         modifications.
46899         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46900         the new module.
46901
46902         New module 'posix_spawn_file_actions_init'.
46903         * modules/posix_spawn_file_actions_init: New file.
46904         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46905         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46906         new module.
46907
46908         New module 'posix_spawn-internal'.
46909         * modules/posix_spawn-internal: New file.
46910         * lib/spawn_int.h: New file, from GNU libc with modifications.
46911         * lib/spawni.c: New file, from GNU libc with modifications.
46912         * m4/posix_spawn.m4: New file.
46913
46914         New module 'spawn'.
46915         * modules/spawn: New file.
46916         * lib/spawn.in.h: New file, from GNU libc with modifications.
46917         * m4/spawn_h.m4: New file.
46918         * doc/posix-headers/spawn.texi: Mention the new module.
46919
46920 2008-09-28  Bruno Haible  <bruno@clisp.org>
46921
46922         * modules/sched-tests: New file.
46923         * tests/test-sched.c: New file.
46924
46925         New module 'sched'.
46926         * modules/sched: New file.
46927         * lib/sched.in.h: New file.
46928         * m4/sched_h.m4: New file.
46929         * doc/posix-headers/sched.texi: Mention the new module.
46930
46931 2008-09-27  Eric Blake  <ebb9@byu.net>
46932
46933         Fix previous patch, and tweak references to $0.
46934         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46935         (func_version, func_gnulib_dir): Don't call this program
46936         gnulib-tool.
46937         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46938         with using $0 in function.
46939         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46940         (func_fatal_error): Reuse the name the user invoked us with.
46941
46942 2008-09-27  Bruno Haible  <bruno@clisp.org>
46943
46944         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46945         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46946         (gl_ICONV_H): Not here.
46947         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46948         instead of assigning ICONV_H directly.
46949
46950         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46952         WCHAR_H directly.
46953
46954 2008-09-27  Bruno Haible  <bruno@clisp.org>
46955
46956         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46957         * modules/arpa_inet (Depends-on): Add link-warning.
46958         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46959         * modules/unistd (Makefile.am): Likewise.
46960
46961 2008-09-26  Bruno Haible  <bruno@clisp.org>
46962
46963         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46964         variables.
46965         (func_version): Essentially copied from gnulib-tool.
46966         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46967         func_readlink): Copied from gnulib-tool.
46968
46969 2008-09-26  Bruno Haible  <bruno@clisp.org>
46970
46971         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46972         invoking git-version-gen.
46973
46974 2008-09-26  Bruno Haible  <bruno@clisp.org>
46975
46976         * posix-modules: Update to directory names changed on 2008-01-19.
46977         Remove commas in output before splitting into words. No more need to
46978         avoid 'ftruncate' since 2007-02-19.
46979
46980 2008-09-26  Bruno Haible  <bruno@clisp.org>
46981
46982         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46983
46984 2008-09-26  Bruno Haible  <bruno@clisp.org>
46985
46986         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46987         * modules/fwriteerror (Depends-on): Add errno.
46988
46989 2008-09-26  Bruno Haible  <bruno@clisp.org>
46990
46991         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46992         * tests/test-vc-list-files-cvs.sh: Likewise.
46993
46994 2008-09-26  Bruno Haible  <bruno@clisp.org>
46995
46996         * doc/posix-headers/sys_resource.texi: Reorder items.
46997
46998 2008-09-26  Jim Meyering  <meyering@redhat.com>
46999
47000         fts: tweak inode comparison function
47001         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47002         inode numbers, as documented.
47003
47004         fts: sort dirent entries on inode number before traversing
47005         This avoids a quadratic, seek-related performance penalty when
47006         operating on a directory containing many entries (measurable at 10k;
47007         3.5 hours at 2 million entries with a cold cache) on certain types
47008         of file systems, including ext3 and ext4, but not tmpfs.
47009         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47010         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47011         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47012         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47013         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47014         (fts_build): Set the stat.st_ino member from D_INO.
47015         If it is likely to be useful, sort dirent entries on inode number.
47016
47017         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47018         and the struct statfs.f_type member.
47019         * modules/fts (Depends-on): Add d-ino.
47020
47021 2008-09-26  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/sigpipe-die (Depends-on): Add sigpipe.
47024
47025         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47026         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47027         and GNULIB_STDIO_H_SIGPIPE are set.
47028         * lib/stdio-write.c: New file.
47029         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47030         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47031         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47032         REPLACE_STDIO_WRITE_FUNCS.
47033         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47034         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47035         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47036         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47037         * modules/stdio (Files): Add lib/stdio-write.c.
47038         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47039         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47040         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47041         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47042         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47043         REPLACE_FPRINTF_POSIX.
47044         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47045         REPLACE_PRINTF_POSIX.
47046         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47047         REPLACE_VFPRINTF_POSIX.
47048         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47049         REPLACE_VPRINTF_POSIX.
47050         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47051         SIGPIPE issue.
47052         * doc/posix-functions/fputc.texi: Likewise.
47053         * doc/posix-functions/fputs.texi: Likewise.
47054         * doc/posix-functions/fwrite.texi: Likewise.
47055         * doc/posix-functions/printf.texi: Likewise.
47056         * doc/posix-functions/putc.texi: Likewise.
47057         * doc/posix-functions/putchar.texi: Likewise.
47058         * doc/posix-functions/puts.texi: Likewise.
47059         * doc/posix-functions/vfprintf.texi: Likewise.
47060         * doc/posix-functions/vprintf.texi: Likewise.
47061
47062         * modules/safe-write (Depends-on): Add write.
47063
47064         * modules/sigpipe-tests: New file.
47065         * tests/test-sigpipe.c: New file.
47066         * tests/test-sigpipe.sh: New file.
47067
47068         * modules/write: New file.
47069         * lib/unistd.in.h: Include <sys/types.h>.
47070         (write): New declaration.
47071         * lib/write.c: New file.
47072         * m4/write.m4: New file.
47073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47074         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47075         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47076         GNULIB_WRITE, REPLACE_WRITE.
47077         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47078         and the SIGPIPE issue.
47079
47080         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47081         (raise): New declaration.
47082         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47083         (ext_signal): New function.
47084         (rpl_raise): New function.
47085         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47086         GNULIB_SIGNAL_H_SIGPIPE.
47087         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47088         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47089
47090         * modules/sigpipe: New file.
47091         * m4/sigpipe.m4: New file.
47092
47093 2008-09-25  Derek Price  <derek@ximbiot.com>
47094             Bruno Haible  <bruno@clisp.org>
47095
47096         * gnulib-tool (func_import): Report all license incompatibilities, not
47097         just the first one.
47098
47099 2008-09-25  Bruno Haible  <bruno@clisp.org>
47100
47101         * gnulib-tool (func_import): When computing the edits, consider not
47102         only the Makefile.ams that exist but also those that will be generated.
47103
47104 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47105
47106         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47107         fixes gnulib-tool --test warning about duplicate dependency.
47108
47109 2008-09-25  Bruno Haible  <bruno@clisp.org>
47110
47111         * gnulib-tool: Don't ask the user to perform edits in the generated
47112         Makefile.ams.
47113         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47114         apply to the Makefile.am being generated.
47115         (func_emit_tests_Makefile_am): Execute edits that apply to the
47116         Makefile.am being generated.
47117         (func_import): Setup list of Makefile.am edits before emitting the
47118         Makefile.ams, not at the end.
47119         (func_create_testdir): Update.
47120         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47121
47122 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47123
47124         * gnulib-tool (func_import): Store the --tests-base option in the
47125         comment in gnulib-cache.m4.
47126
47127 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47128
47129         * NEWS: Document increased portability that sys_select now provides.
47130
47131         * lib/sys_select.in.h: Install select wrapper.
47132         * lib/sys_socket.in.h: Use more descriptive name when there is no
47133         select wrapper.
47134         * lib/winsock-select.c: New.
47135         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47136         Require gl_HEADER_SYS_SOCKET.
47137         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47138         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47139         * tests/test-sys_select.c: Add functional tests.
47140
47141 2008-09-24  Eric Blake  <ebb9@byu.net>
47142
47143         open, fopen: close fd leak in last patch
47144         * lib/open.c (rpl_open): Close fd before returning error.
47145         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47146         * doc/posix-functions/open.texi (open): Document that Irix also
47147         has the bug.
47148         * doc/posix-functions/fopen.texi (fopen): Likewise.
47149         Reported by Paolo Bonzini.
47150
47151 2008-09-24  Bruno Haible  <bruno@clisp.org>
47152
47153         Ensure that a filename ending in a slash cannot be used to access a
47154         non-directory.
47155         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47156         to check whether it's really a directory.
47157         * lib/fopen.c: Include fcntl.h, unistd.h.
47158         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47159         and fdopen().
47160         * modules/fopen (Depends-on): Add unistd.
47161         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47162         * tests/test-fopen.c (main): Likewise.
47163         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47164         * doc/posix-functions/fopen.texi: Likewise.
47165         Reported by Eric Blake.
47166
47167 2008-09-23  Eric Blake  <ebb9@byu.net>
47168
47169         c-stack: avoid compiler optimizations when provoking overflow
47170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47171         recursion harder to optimize, to ensure a stack overflow occurs.
47172         * tests/test-c-stack.c (recurse): Likewise.
47173         Borrowed from libsigsegv.
47174
47175         c-stack: work around Irix sigaltstack bug
47176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47177         whether sigaltstack uses wrong end of stack_t (copied in part from
47178         libsigsegv).
47179         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47180         Irix bug, without requiring an over-allocation.
47181         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47182         bug.
47183
47184         fopen: document mingw bug on directories
47185         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47186         not allowing a stream visiting a directory, even though reading
47187         from such a stream is not portable.
47188
47189 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47190
47191         * lib/poll.c: Rewrite.
47192         * modules/poll: Depend on alloca.
47193
47194 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47195
47196         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47197         instead define prototypes for a full set of wrappers.  Ensure
47198         that Cygwin does not use the compatibility code, which is only
47199         for MinGW.
47200         * lib/winsock.c: New.
47201         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47202         * modules/sys_socket: Add lib/winsock.c.
47203
47204         * modules/poll-tests: Add errno and perror.
47205         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47206
47207 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47208
47209         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47210
47211 2008-09-23  Bruno Haible  <bruno@clisp.org>
47212
47213         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47214         * doc/glibc-functions/*: Likewise.
47215
47216 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47217
47218         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47219         success.
47220
47221 2008-09-22  Eric Blake  <ebb9@byu.net>
47222             Bruno Haible  <bruno@clisp.org>
47223
47224         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47225         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47226         supply %A but mishandle pseudo-NaN.
47227         Reported by Simon Josefsson.
47228
47229 2008-09-21  Bruno Haible  <bruno@clisp.org>
47230
47231         * tests/test-lock.c (main): Tweak skip message.
47232         * tests/test-tls.c (main): Likewise.
47233
47234 2008-09-21  Bruno Haible  <bruno@clisp.org>
47235
47236         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47237         whether 'struct sigaction' has sa_sigaction here...
47238         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47239         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47240
47241 2008-09-21  Bruno Haible  <bruno@clisp.org>
47242
47243         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47244         section.
47245         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47246         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47247         the new section.
47248         (Support for obsolete systems lacking POSIX:2001): New section.
47249         (String handling <string.h>): Move strdup to the new section.
47250         Suggested by Simon Josefsson and Paolo Bonzini.
47251
47252 2008-09-21  Bruno Haible  <bruno@clisp.org>
47253
47254         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47255         exponents in %e and %g results on 'long double'. Needed for mingw's
47256         improved *printf functions.
47257         * tests/test-vasprintf-posix.c (test_function): Likewise.
47258         * tests/test-snprintf-posix.h (test_function): Likewise.
47259         * tests/test-sprintf-posix.h (test_function): Likewise.
47260         Reported by Eric Blake.
47261
47262 2008-09-21  Bruno Haible  <bruno@clisp.org>
47263
47264         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47265         * tests/test-sprintf-posix.h (test_function): Likewise.
47266
47267 2008-09-21  Bruno Haible  <bruno@clisp.org>
47268
47269         * modules/getpass (Depends-on): Add strdup-posix.
47270
47271         New module 'strdup-posix'.
47272         * modules/strdup-posix: New file.
47273         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47274         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47276         REPLACE_STRDUP.
47277         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47278         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47280         strdup-posix.
47281
47282         * modules/strdup (Depends-on): Remove malloc-posix.
47283
47284 2008-09-20  Bruno Haible  <bruno@clisp.org>
47285
47286         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47287         Wildenhues.
47288
47289 2008-09-20  Bruno Haible  <bruno@clisp.org>
47290
47291         Ensure that wint_t gets defined on IRIX 5.3.
47292         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47293         * lib/wctype.in.h (wint_t): Likewise.
47294         (__wctype_wint_t): Remove type.
47295         (isw*): Use wint_t instead of __wctype_wint_t.
47296         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47297         * modules/wchar (Files): Add m4/wint_t.m4.
47298         (Makefile.am): Substitute HAVE_WINT_T.
47299         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47300         * tests/test-wctype.c: Check that wint_t is defined.
47301         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47302         * doc/posix-headers/wctype.texi: Likewise.
47303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47304
47305 2008-09-18  Bruno Haible  <bruno@clisp.org>
47306
47307         * gnulib-tool (func_exit): Update comment.
47308
47309 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47310
47311         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47312         assumes strdup exists and does not depend on strdup to return
47313         ENOMEM on out of memory conditions.
47314
47315 2008-09-18  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47318         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47319         digits for the exponent.
47320
47321 2008-09-18  Jim Meyering  <meyering@redhat.com>
47322             Bruno Haible  <bruno@clisp.org>
47323
47324         * lib/vasnprintf.c (decimal_point_char): Define also if
47325         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47326
47327 2008-09-16  Bruno Haible  <bruno@clisp.org>
47328         and Eric Blake  <ebb9@byu.net>
47329
47330         vasnprintf: support Irix 5.3
47331         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47332         that mishandle long double infinity.
47333         Reported by Tom G. Christensen.
47334
47335 2008-09-16  Bruno Haible  <bruno@clisp.org>
47336
47337         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47338         Solaris 9.
47339         * doc/glibc-functions/alphasort.texi: Likewise.
47340         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47341
47342 2008-09-16  Jim Meyering  <meyering@redhat.com>
47343
47344         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47345         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47346         a umask modification leak out of a subshell.  Otherwise, the
47347         opensolaris /bin/sh would be accepted and thus cause unwarranted
47348         failures in the coreutils test suite.
47349
47350 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47351
47352         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47353         to succeed.
47354
47355 2008-09-16  Jim Meyering  <meyering@redhat.com>
47356
47357         avoid spurious test failure when library is built without ACL support
47358         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47359         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47360         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47361         * tests/test-copy-acl.sh: Likewise.
47362
47363 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47364
47365         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47366         based on character occurrence counts.
47367
47368 2008-09-15  Eric Blake  <ebb9@byu.net>
47369
47370         tests: avoid some compiler warnings
47371         * tests/test-memchr.c (main): Pass NULL indirectly.
47372         * tests/test-closein.c (main): Avoid unused variable.
47373
47374 2008-09-15  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47377         are missing on OpenBSD 4.0 individually.
47378         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47379
47380 2008-09-15  Bruno Haible  <bruno@clisp.org>
47381
47382         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47383         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47384         * doc/posix-functions/perror.texi: Likewise.
47385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47386         is missing.
47387         Reported by Eric Blake.
47388
47389         * lib/errno.in.h: Use replacement values >= 2000.
47390         Reported by Eric Blake.
47391
47392 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47393
47394         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47395         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47396         limit.
47397         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47398         compareseq was aborted.
47399
47400 2008-09-14  Bruno Haible  <bruno@clisp.org>
47401
47402         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47403         yvec_edit_count.
47404         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47405         (fstrcmp_bounded): Simplify result computation accordingly.
47406
47407 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47408
47409         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47410         (fstrcmp): Define in terms of fstrcmp_bounded.
47411         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47412         lower_bound argument.
47413         Return quickly if the result is certainly < lower_bound.
47414         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47415
47416 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47417
47418         * lib/diffseq.h (EARLY_ABORT): New macro.
47419         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47420         evaluates to true.
47421
47422 2008-09-14  Bruno Haible  <bruno@clisp.org>
47423
47424         * modules/perror-tests: New file.
47425         * tests/test-perror.sh: New file.
47426         * tests/test-perror.c: New file.
47427
47428         New module 'perror'.
47429         * lib/stdio.in.h (perror): New declaration.
47430         * lib/perror.c: New file.
47431         * m4/perror.m4: New file.
47432         * modules/perror: New file.
47433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47434         * doc/posix-functions/perror.texi: Mention the perror module.
47435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47436         REPLACE_PERROR.
47437         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47438         REPLACE_PERROR.
47439
47440 2008-09-14  Bruno Haible  <bruno@clisp.org>
47441
47442         * modules/stdio (Makefile.am): Reorder to match the order in
47443         lib/stdio.in.h.
47444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47445
47446 2008-09-13  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47449
47450 2008-09-13  Bruno Haible  <bruno@clisp.org>
47451
47452         Extend strerror to cover the added errno values.
47453         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47454         (rpl_strerror): Provide error messages for the added errno values and
47455         for the WSA* values.
47456         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47457         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47458         strerror.
47459         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47460         * modules/strerror (Depends-on): Add errno.
47461         * doc/posix-functions/strerror.texi: Document the change.
47462         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47463         and EOVERFLOW.
47464
47465 2008-09-13  Bruno Haible  <bruno@clisp.org>
47466
47467         * modules/EOVERFLOW: Remove file.
47468         * m4/eoverflow.m4: Remove file.
47469         * modules/EOVERFLOW-tests: Remove file.
47470         * tests/test-EOVERFLOW.c: Remove file.
47471         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47472         * modules/ftell (Depends-on): Likewise.
47473         * modules/getdelim (Depends-on): Likewise.
47474         * modules/getugroups (Depends-on): Likewise.
47475         * modules/poll (Depends-on): Likewise.
47476         * modules/snprintf (Depends-on): Likewise.
47477         * modules/sprintf-posix (Depends-on): Likewise.
47478         * modules/vasnprintf (Depends-on): Likewise.
47479         * modules/vasprintf (Depends-on): Likewise.
47480         * modules/vfprintf-posix (Depends-on): Likewise.
47481         * modules/vsnprintf (Depends-on): Likewise.
47482         * modules/vsprintf-posix (Depends-on): Likewise.
47483         * modules/xvasprintf (Depends-on): Likewise.
47484         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47485         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47486         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47487         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47489         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47490         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47491         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47492         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47493         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47494         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47495         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47496         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47497         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47498         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47499         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47500         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47501         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47502         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47503         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47504         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47505         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47506         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47507         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47508         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47509         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47510         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47511         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47512         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47513         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47514         * MODULES.html.sh: Remove EOVERFLOW.
47515         * NEWS: Mention the change.
47516
47517 2008-09-13  Bruno Haible  <bruno@clisp.org>
47518
47519         * modules/errno-tests: New file.
47520         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47521
47522         * lib/errno.in.h: New file.
47523         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47524         * modules/errno: New file.
47525         * doc/posix-headers/errno.texi: Update documentation.
47526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47527
47528 2008-09-13  Bruno Haible  <bruno@clisp.org>
47529
47530         * tests/test-poll.c: Use #if for native Windows, rather than testing
47531         __MSVCRT__.
47532
47533 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47534             Bruno Haible  <bruno@clisp.org>
47535
47536         * lib/glob.c: Don't include <pwd.h> on native Windows.
47537         (WINDOWS32): New macro.
47538         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47539
47540 2008-09-13  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47543         (ETIMEDOUT): Remove macro.
47544         (glthread_cond_timedwait_multithreaded): New declaration.
47545         (glthread_cond_timedwait): Use it.
47546         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47547         (glthread_cond_timedwait_multithreaded): New function.
47548
47549 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47550
47551         * modules/poll-tests: Do not check for io.h.
47552         * tests/test-poll.c: Check for __MSVCRT__ instead.
47553
47554 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47555
47556         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47557         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47558         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47559
47560 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47561
47562         * modules/poll-tests: New.
47563         * tests/test-poll.c: New.
47564
47565 2008-09-12  Eric Blake  <ebb9@byu.net>
47566
47567         frexp: test for NetBSD failure on -0.0
47568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47569         not all, bugs from NetBSD 3.0 have been fixed.
47570         * doc/posix-functions/frexp.texi (frexp): Document bug.
47571         Reported by Thomas Klausner.
47572
47573         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47574         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47575         literal -0.0.
47576         Reported by Jonathan C. Patschke <jp@centtech.com>.
47577
47578 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47579
47580         * lib/glthread/cond.h: Use dummy implementation also if
47581         USE_WIN32_THREADS.
47582
47583 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47584
47585         * modules/fnmatch-posix (License): Change to LGPLv2+.
47586         * modules/fnmatch-gnu (License): Likewise.
47587
47588 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47589
47590         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47591
47592 2008-09-11  Jim Meyering  <meyering@redhat.com>
47593
47594         * users.txt: Add gtk-vnc.
47595
47596 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47597
47598         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47599         rotate amounts.
47600
47601         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47602         required for 16-bit and 8-bit rotates.
47603         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47604         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47605         UINT8_MAX instead of hard-coded constants.
47606         Suggested by Paul Eggert.
47607
47608 2008-09-07  Bruno Haible  <bruno@clisp.org>
47609
47610         * tests/test-striconveh.c (main): Check behaviour when converting from
47611         UTF-7.
47612
47613         Make striconveh work better with stateful encodings.
47614         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47615         that iconv does not increment the inptr when returning -1/EINVAL.
47616
47617 2008-09-07  Bruno Haible  <bruno@clisp.org>
47618
47619         * build-aux/config.rpath: Update according to libtool-2.2.6.
47620         * build-aux/config.libpath: Likewise.
47621
47622 2008-09-06  Bruno Haible  <bruno@clisp.org>
47623
47624         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47625         * lib/freadptr.c (freadptr): Likewise.
47626         * lib/freadseek.c (freadptrinc): Likewise.
47627         Reported by Simon Josefsson.
47628
47629 2008-09-06  Bruno Haible  <bruno@clisp.org>
47630
47631         * modules/freadptr (License): Change to LGPLv2+.
47632         * modules/freadseek (License): Likewise.
47633         Suggested by Eric Blake.
47634
47635         * modules/memchr2 (License): Change to LGPLv2+.
47636         Approved by Eric Blake.
47637
47638 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47639             Bruno Haible  <bruno@clisp.org>
47640
47641         Make gnulib-tool work with native 'sed' on AIX.
47642         * gnulib-tool (sed_noop): New variable.
47643         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47644         func_add_or_update, func_create_testdir): Use it to initialize sed
47645         script variables.
47646         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47647
47648 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47649             Bruno Haible  <bruno@clisp.org>
47650
47651         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47652         also works after #include directives.
47653
47654 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47655
47656         getdate.y: reject an out-of-range timezone value
47657         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47658         the range [-24...+24].  When specified with only one or two digits,
47659         * tests/test-getdate.c: Tests for the fix.
47660         * doc/getdate.texi: Document this change.
47661
47662 2008-09-03  Bruno Haible  <bruno@clisp.org>
47663
47664         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47665
47666 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47667
47668         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47669         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47670         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47671         Blake <ebb9@byu.net>.
47672
47673         * tests/test-bitrotate.c: Add more test vectors.
47674
47675 2008-09-02  Eric Blake  <ebb9@byu.net>
47676
47677         vasnprintf-posix: handle large precision via %.*d
47678         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47679         when handling it ourselves.
47680         * tests/test-vasnprintf-posix.c (test_function): Add test.
47681         * tests/test-snprintf-posix.h (test_function): Likewise.
47682         * tests/test-sprintf-posix.h (test_function): Likewise.
47683         * tests/test-vasprintf-posix.c (test_function): Likewise.
47684         Reported by Alain Guibert.
47685
47686 2008-09-01  Eric Blake  <ebb9@byu.net>
47687
47688         c-stack: make configure-time check more robust
47689         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47690         successful sigaction call.
47691         Reported by Tom G. Christensen.
47692
47693 2008-09-01  Bruno Haible  <bruno@clisp.org>
47694
47695         New module 'findprog-lgpl'.
47696         * modules/findprog-lgpl: New file.
47697         * lib/findprog-lgpl.c: New file.
47698         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47699         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47700         to decide whether to use strdup or xstrdup, concatenated_filename or
47701         xconcatenated_filename.
47702
47703 2008-09-01  Bruno Haible  <bruno@clisp.org>
47704
47705         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47706         'xconcat-filename' (GPL).
47707         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47708         (License): Change to LGPLv2+.
47709         * modules/xconcat-filename: New file.
47710         * lib/concat-filename.h (concatenated_filename): Change specification.
47711         (xconcatenated_filename): New declaration.
47712         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47713         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47714         memory situations.
47715         * lib/xconcat-filename.c: New file.
47716         * NEWS: Mention the change.
47717         * lib/findprog.c: Include concat-filename.h, not filename.h.
47718         (find_in_path): Use xconcatenated_filename instead of
47719         concatenated_filename.
47720         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47721         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47722         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47723         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47724         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47725         instead of concatenated_filename.
47726         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47727         (execute_java_class): Use xconcatenated_filename instead of
47728         concatenated_filename.
47729         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47730         * modules/javacomp (Depends-on): Likewise.
47731         * modules/javaexec (Depends-on): Likewise.
47732
47733 2008-09-01  Bruno Haible  <bruno@clisp.org>
47734
47735         Split module 'filename' into 'filename' and 'concat-filename'.
47736         * modules/filename: Keep only lib/filename.h.
47737         (License): Change to LGPLv2+.
47738         * modules/concat-filename: New file, extracted from modules/filename.
47739         * lib/filename.h (concatenated_filename): Remove declaration.
47740         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47741         * lib/concat-filename.c: Include concat-filename.h.
47742         * NEWS: Mention the change.
47743
47744 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47745
47746         * lib/bitrotate.h (rotl8, rotr8): Add.
47747
47748         * modules/bitrotate (configure.ac): Need
47749         AC_REQUIRE([AC_C_INLINE]).
47750         (Description): Mention stdint.h.  Reported by Bruno Haible
47751         <bruno@clisp.org>.
47752
47753         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47754         Paolo Bonzini <bonzini@gnu.org>.
47755
47756 2008-08-31  Bruno Haible  <bruno@clisp.org>
47757
47758         Assume Solaris specific bi-arch conventions on Solaris systems.
47759         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47760         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47762         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47763         like acl_libdirstem.
47764         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47765         acl_libdirstem.
47766         * NEWS: Mention the change.
47767         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47768
47769 2008-08-31  Jim Meyering  <meyering@redhat.com>
47770
47771         * lib/strftime.h: Add comments describing the two added arguments.
47772
47773         remove duplicate #include directives
47774         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47775         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47776
47777 2008-08-31  Bruno Haible  <bruno@clisp.org>
47778
47779         New module 'sigpipe-die'.
47780         * modules/sigpipe-die: New file.
47781         * lib/sigpipe-die.h: New file.
47782         * lib/sigpipe-die.c: New file.
47783         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47784
47785 2008-08-31  Bruno Haible  <bruno@clisp.org>
47786
47787         Don't override previously installed signal handlers.
47788         * lib/fatal-signal.c (saved_sigactions): New variable.
47789         (uninstall_handlers): Reset the signal to the saved handler, not
47790         to SIG_DFL (except when ignored).
47791         (install_handlers): Save the previous handlers.
47792
47793 2008-08-30  Bruno Haible  <bruno@clisp.org>
47794
47795         * gnulib-tool (func_reset_sigpipe): New function.
47796         (func_get_automake_snippet, func_modules_transitive_closure,
47797         func_import): Invoke it before a join command that reads from stdin,
47798         to avoid "echo: write error: Broken pipe" error messages on stderr.
47799         Reported by Sam Steingold <sds@gnu.org>.
47800
47801 2008-08-30  Bruno Haible  <bruno@clisp.org>
47802
47803         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47804         Code copied from m4/open.m4.
47805         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47806         access and the filename ends in a slash. Code copied from lib/open.c.
47807         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47808         * tests/test-fopen.c (main): Check against bug with trailing slash.
47809
47810 2008-08-29  Bruno Haible  <bruno@clisp.org>
47811
47812         Avoid some "gcc -pedantic" warnings.
47813         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47814         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47815         * lib/dirent.in.h: Likewise.
47816         * lib/fcntl.in.h: Likewise.
47817         * lib/float.in.h: Likewise.
47818         * lib/iconv.in.h: Likewise.
47819         * lib/inttypes.in.h: Likewise.
47820         * lib/locale.in.h: Likewise.
47821         * lib/math.in.h: Likewise.
47822         * lib/netinet_in.in.h: Likewise.
47823         * lib/search.in.h: Likewise.
47824         * lib/signal.in.h: Likewise.
47825         * lib/stdarg.in.h: Likewise.
47826         * lib/stdint.in.h: Likewise.
47827         * lib/stdio.in.h: Likewise.
47828         * lib/stdlib.in.h: Likewise.
47829         * lib/string.in.h: Likewise.
47830         * lib/strings.in.h: Likewise.
47831         * lib/sys_select.in.h: Likewise.
47832         * lib/sys_socket.in.h: Likewise.
47833         * lib/sys_stat.in.h: Likewise.
47834         * lib/sys_time.in.h: Likewise.
47835         * lib/sysexits.in.h: Likewise.
47836         * lib/time.in.h: Likewise.
47837         * lib/unistd.in.h: Likewise.
47838         * lib/wchar.in.h: Likewise.
47839         * lib/wctype.in.h: Likewise.
47840         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47841         * modules/fchdir (Makefile.am): Likewise.
47842         * modules/fcntl (Makefile.am): Likewise.
47843         * modules/float (Makefile.am): Likewise.
47844         * modules/iconv_open (Makefile.am): Likewise.
47845         * modules/inttypes (Makefile.am): Likewise.
47846         * modules/locale (Makefile.am): Likewise.
47847         * modules/math (Makefile.am): Likewise.
47848         * modules/netinet_in (Makefile.am): Likewise.
47849         * modules/search (Makefile.am): Likewise.
47850         * modules/signal (Makefile.am): Likewise.
47851         * modules/stdarg (Makefile.am): Likewise.
47852         * modules/stdint (Makefile.am): Likewise.
47853         * modules/stdio (Makefile.am): Likewise.
47854         * modules/stdlib (Makefile.am): Likewise.
47855         * modules/string (Makefile.am): Likewise.
47856         * modules/strings (Makefile.am): Likewise.
47857         * modules/sys_select (Makefile.am): Likewise.
47858         * modules/sys_socket (Makefile.am): Likewise.
47859         * modules/sys_stat (Makefile.am): Likewise.
47860         * modules/sys_time (Makefile.am): Likewise.
47861         * modules/sysexits (Makefile.am): Likewise.
47862         * modules/time (Makefile.am): Likewise.
47863         * modules/unistd (Makefile.am): Likewise.
47864         * modules/wchar (Makefile.am): Likewise.
47865         * modules/wctype (Makefile.am): Likewise.
47866         Reported by Reuben Thomas <rrt@sc3d.org>.
47867
47868 2008-08-29  Bruno Haible  <bruno@clisp.org>
47869
47870         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47871         any more.
47872
47873 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47874
47875         * MODULES.html.sh (Misc): Add bitrotate.
47876
47877         * modules/bitrotate: New file.
47878
47879         * lib/bitrotate.h: New file.
47880
47881         * modules/bitrotate-tests: New file.
47882
47883         * tests/test-bitrotate.c: New file.
47884
47885         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47886         on the bitrotate module.
47887
47888         * lib/arctwo.c: Use new bitrotate module.
47889
47890 2008-08-29  Jim Meyering  <meyering@redhat.com>
47891
47892         bootstrap: merge changes from coreutils
47893         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47894         of copied files.  Remove a kludge, now that this is fixed.
47895         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47896         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47897         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47898
47899 2008-08-29  Bruno Haible  <bruno@clisp.org>
47900
47901         * MODULES.html.sh: Remove --cvs-urls option.
47902
47903 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47904
47905         maint.mk: adjust to file name change
47906         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47907
47908 2008-08-28  Jim Meyering  <meyering@redhat.com>
47909
47910         * modules/getndelim2 (License): Relicense to LGPLv2+.
47911         Approved by Richard Stallman for the version of 1995, and by
47912         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47913
47914 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47915
47916         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47917         dummy if one is not available.  Do not touch them if
47918         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47919         (getc_maybe_unlocked): New.
47920         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47921
47922 2008-08-26  Eric Blake  <ebb9@byu.net>
47923
47924         doc/INSTALL: resync from autoconf
47925         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47926         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47927         moving...
47928         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47929         * INSTALL: Regenerate.
47930         * INSTALL.ISO: New file.
47931         * INSTALL.UTF-8: Likewise.
47932
47933 2008-08-26  Jim Meyering  <meyering@redhat.com>
47934
47935         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47936         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47937         these definitions conditional, so that they may be overridden, too.
47938
47939 2008-08-26  Bruno Haible  <bruno@clisp.org>
47940
47941         Generate INSTALL file variants with prettier quotes.
47942         * doc/Makefile (INSTALL_PRELUDE): New macro.
47943         (INSTALL): Use it.
47944         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47945
47946 2008-08-26  Bruno Haible  <bruno@clisp.org>
47947
47948         Run makeinfo in an English locale.
47949         * doc/Makefile (MAKEINFO): New variable.
47950
47951 2008-08-26  Bruno Haible  <bruno@clisp.org>
47952
47953         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47954         Suggested by Eric Blake.
47955
47956 2008-08-25  Bruno Haible  <bruno@clisp.org>
47957
47958         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47959
47960 2008-08-25  Eric Blake  <ebb9@byu.net>
47961
47962         c-stack: test that stack overflow can be caught
47963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47964         that platform allows handling stack overflow; at least OS/2 EMX
47965         has sigaltstack, but crashes before transferring control to
47966         handler on stack overflow.
47967         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47968         check for HAVE_STACK_OVERFLOW_HANDLING.
47969         Reported by Elbert Pol.
47970
47971 2008-08-25  Bruno Haible  <bruno@clisp.org>
47972
47973         * doc/posix-functions/strftime.texi: Fix description of strftime
47974         module.
47975
47976 2008-08-24  Bruno Haible  <bruno@clisp.org>
47977
47978         * tests/uniwidth/test-uc_width2.c: New file.
47979         * tests/uniwidth/test-uc_width2.sh: New file.
47980         * modules/uniwidth/width-tests (Files): Add the new files.
47981         (TESTS): Add uniwidth/test-uc_width2.sh.
47982         (TESTS_ENVIRONMENT): New variable.
47983         (check_PROGRAMS): Add test-uc_width2.
47984         (test_uc_width2_SOURCES): New variable.
47985
47986         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47987         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47988         not 0x00AB.
47989         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47990
47991 2008-08-22  Eric Blake  <ebb9@byu.net>
47992
47993         test-lock, test-tls: mention why a test is skipped
47994         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47995         skipped.
47996         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47997
47998         count-one-bits: relax license
47999         * modules/count-one-bits (License): Relicense to LGPLv2+.
48000         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48001
48002 2008-08-22  Andreas Schwab  <schwab@suse.de>
48003
48004         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48005         Remove spurious space in assignment.
48006
48007 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48008
48009         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48010         Paul Eggert <eggert@CS.UCLA.EDU>.
48011
48012 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48013
48014         * modules/gettext: Add m4/threadlib.m4.
48015
48016 2008-08-19  Eric Blake  <ebb9@byu.net>
48017
48018         test-c-stack: fix compilation failure on FreeBSD 5.0
48019         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48020         headers before <sys/resource.h>.
48021         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48022         the bug.
48023         Reported by Nelson H. F. Beebe.
48024
48025         strverscmp: migrate from "strverscmp.h" to <string.h>
48026         * modules/string (Makefile.am): Add new hooks.
48027         * modules/strverscmp (Files): Remove strverscmp.h.
48028         (Depends-on): Add string.
48029         (configure.ac): Add indicator.
48030         (Include): Mention new header.
48031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48032         defaults.
48033         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48034         results.
48035         * lib/strverscmp.h: Delete.
48036         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48037         * tests/test-strverscmp.c (includes): Adjust client.
48038         * lib/check-version.c (includes): Likewise.
48039         * NEWS: Document the change.
48040
48041         strverscmp: add unit test
48042         * modules/strverscmp-tests: New file.
48043         * tests/test-strverscmp.c: Likewise.
48044
48045 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48046
48047         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48048         regarding Windows crypto stuff, from Mono.
48049
48050 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48051
48052         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48053         if present, for intel RND.  Return error on failures.
48054
48055 2008-08-18  Ben Pfaff  <blp@gnu.org>
48056
48057         gitlog-to-changelog: give better diagnostic for failed pipe-open
48058         * build-aux/gitlog-to-changelog: Improve error message: suggest
48059         that the version of Git may be too old.
48060
48061 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48062
48063         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48064         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48065
48066 2008-08-18  Bruno Haible  <bruno@clisp.org>
48067
48068         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48069         pthread_in_use().
48070
48071 2008-08-18  Bruno Haible  <bruno@clisp.org>
48072
48073         * lib/glthread/threadlib.c: Include <pthread.h>.
48074
48075 2008-08-18  Bruno Haible  <bruno@clisp.org>
48076
48077         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48078         glthread_recursive_lock_* macros.
48079         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48080         Fix syntax error.
48081
48082 2008-08-18  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/glthread/thread.c: Avoid forcing a context switch right after
48085         thread creation.
48086
48087 2008-08-17  Bruno Haible  <bruno@clisp.org>
48088
48089         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48090         * lib/glthread/thread.h: Provide Win32 specific implementation.
48091         * modules/thread (Files): Add lib/glthread/thread.c.
48092         (Depends-on): Add lock.
48093         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48094
48095 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48096
48097         New module 'yield'.
48098         * modules/yield: New file.
48099         * lib/glthread/yield.h: New file.
48100         * m4/yield.m4: New file.
48101         * MODULES.html.sh (Multithreading): Add yield.
48102
48103 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48104
48105         New module 'thread'.
48106         * modules/thread: New file.
48107         * lib/glthread/thread.h: New file.
48108         * m4/thread.m4: New file.
48109         * MODULES.html.sh (Multithreading): Add thread.
48110
48111 2008-08-17  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/glthread/lock.h: Include <stdlib.h> always.
48114         * lib/glthread/tls.h: Likewise.
48115         * lib/glthread/cond.h: Likewise.
48116
48117 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48118
48119         New module 'cond'.
48120         * modules/cond: New file.
48121         * lib/glthread/cond.h: New file.
48122         * lib/glthread/cond.c: New file.
48123         * m4/cond.m4: New file.
48124         * MODULES.html.sh (Multithreading): Add cond.
48125
48126 2008-08-16  Eric Blake  <ebb9@byu.net>
48127
48128         c-stack: fix regression on Irix 5.3 from 2008-06-21
48129         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48130         sa_sigaction...
48131         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48132         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48133         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48134         * modules/signal (Makefile.am): Use the value.
48135         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48136         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48137         * doc/posix-headers/signal.texi (signal.h): Document this
48138         portability issue.
48139         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48140         Reported by Tom G. Christensen.
48141
48142 2008-08-17  Bruno Haible  <bruno@clisp.org>
48143
48144         New module 'threadlib'.
48145         * modules/threadlib: New file.
48146         * lib/glthread/threadlib.c: New file, extracted from
48147         lib/glthread/lock.c.
48148         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48149         functions.
48150         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48151         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48152         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48153         macros.
48154         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48155         (gl_DISABLE_THREADS): Remove macro.
48156         * modules/lock (Files): Remove build-aux/config.rpath.
48157         (Depends-on): Remove havelib. Add threadlib.
48158         (configure.ac-early): Remove section.
48159         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48160         * modules/tls (Depends-on): Remove lock. Add threadlib.
48161         (Link): New section, copied from threadlib.
48162         * MODULES.html.sh (Multithreading): Add threadlib.
48163
48164 2008-08-14  Bruno Haible  <bruno@clisp.org>
48165
48166         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48167         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48168         glthread_rwlock_unlock, glthread_rwlock_destroy,
48169         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48170         glthread_recursive_lock_destroy): Define as macros always.
48171         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48172         glthread_lock_lock.
48173         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48174         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48175         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48176         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48177         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48178         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48179         (glthread_recursive_lock_lock_func): Renamed from
48180         glthread_recursive_lock_lock.
48181         (glthread_recursive_lock_unlock_func): Renamed from
48182         glthread_recursive_lock_unlock.
48183         (glthread_recursive_lock_destroy_func): Renamed from
48184         glthread_recursive_lock_destroy.
48185
48186 2008-08-14  Bruno Haible  <bruno@clisp.org>
48187
48188         * lib/glthread/lock.h: Renamed from lib/lock.h.
48189         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48190         * lib/glthread/tls.h: Renamed from lib/tls.h.
48191         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48192         * lib/fstrcmp.c: Update includes.
48193         * lib/strsignal.c: Update includes.
48194         * modules/lock (Files, Makefile.am): Update.
48195         (Include): Change to "glthread/lock.h".
48196         * modules/tls (Files, Makefile.am): Update.
48197         (Include): Change to "glthread/tls.h".
48198         * tests/test-lock.c: Update includes.
48199         * tests/test-tls.c: Update includes.
48200         * NEWS: Mention the renamed header files.
48201
48202 2008-08-11  Jim Meyering  <meyering@redhat.com>
48203
48204         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48205
48206 2008-08-11  Eric Blake  <ebb9@byu.net>
48207
48208         test-c-stack: avoid C99-ism
48209         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48210         before statement.
48211         Reported by Alain Guibert.
48212
48213 2008-08-10  Jim Meyering  <meyering@redhat.com>
48214
48215         ensure that return value of uinttostr et al are not ignored
48216         * lib/inttostr.h (__GNUC_PREREQ): Define.
48217         (__attribute_warn_unused_result__): Define.
48218         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48219
48220 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48221
48222         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48223         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48224
48225 2008-08-07  Jim Meyering  <meyering@redhat.com>
48226
48227         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48228
48229         * modules/mkstemp (License): Relicense under LGPLv2+.
48230         * modules/tempname (License): Likewise.
48231
48232 2008-08-06  Bruno Haible  <bruno@clisp.org>
48233
48234         * lib/poll.c (poll): Further micro-optimization.
48235
48236 2008-08-06  Jim Meyering  <meyering@redhat.com>
48237
48238         inet_pton.c: use locale-independent tolower
48239         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48240         (inet_pton6): Use c_tolower rather than tolower.
48241         * modules/inet_pton (Depends-on): Add c-ctype.
48242
48243 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48244
48245         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48246         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48247
48248 2008-08-06  Jim Meyering  <meyering@redhat.com>
48249
48250         * modules/inet_pton (License): Relicense under LGPLv2+.
48251
48252 2008-08-03  Bruno Haible  <bruno@clisp.org>
48253
48254         Additional non-aborting API for lock and tls.
48255         * lib/lock.h: Include <errno.h>.
48256         (glthread_lock_init): New macro/function.
48257         (gl_lock_init): Define as wrapper around glthread_lock_init.
48258         (glthread_lock_lock): New macro/function.
48259         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48260         (glthread_lock_unlock): New macro/function.
48261         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48262         (glthread_lock_destroy): New macro/function.
48263         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48264         (glthread_rwlock_init): New macro/function.
48265         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48266         (glthread_rwlock_rdlock): New macro/function.
48267         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48268         (glthread_rwlock_wrlock): New macro/function.
48269         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48270         (glthread_rwlock_unlock): New macro/function.
48271         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48272         (glthread_rwlock_destroy): New macro/function.
48273         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48274         (glthread_recursive_lock_init): New macro/function.
48275         (gl_recursive_lock_init): Define as wrapper around
48276         glthread_recursive_lock_init.
48277         (glthread_recursive_lock_lock): New macro/function.
48278         (gl_recursive_lock_lock): Define as wrapper around
48279         glthread_recursive_lock_lock.
48280         (glthread_recursive_lock_unlock): New macro/function.
48281         (gl_recursive_lock_unlock): Define as wrapper around
48282         glthread_recursive_lock_unlock.
48283         (glthread_recursive_lock_destroy): New macro/function.
48284         (gl_recursive_lock_destroy): Define as wrapper around
48285         glthread_recursive_lock_destroy.
48286         (glthread_once): New macro/function.
48287         (gl_once): Define as wrapper around glthread_once.
48288         Update function declarations.
48289         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48290         glthread_rwlock_init. Return error code.
48291         (glthread_rwlock_rdlock_multithreaded): Renamed from
48292         glthread_rwlock_rdlock. Return error code.
48293         (glthread_rwlock_wrlock_multithreaded): Renamed from
48294         glthread_rwlock_wrlock. Return error code.
48295         (glthread_rwlock_unlock_multithreaded): Renamed from
48296         glthread_rwlock_unlock. Return error code.
48297         (glthread_rwlock_destroy_multithreaded): Renamed from
48298         glthread_rwlock_destroy. Return error code.
48299         (glthread_recursive_lock_init_multithreaded): Renamed from
48300         glthread_recursive_lock_init. Return error code.
48301         (glthread_recursive_lock_lock_multithreaded): Renamed from
48302         glthread_recursive_lock_lock. Return error code.
48303         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48304         glthread_recursive_lock_unlock. Return error code.
48305         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48306         glthread_recursive_lock_destroy. Return error code.
48307         (glthread_once_call): Make static.
48308         (glthread_once_multithreaded): Renamed from glthread_once.
48309         * lib/tls.h: Include <errno.h>.
48310         (glthread_tls_key_init): New macro/function.
48311         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48312         (glthread_tls_set): New macro/function.
48313         (gl_tls_set): Define as wrapper around glthread_tls_set.
48314         (glthread_tls_key_destroy): New macro/function.
48315         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48316         Update function declarations.
48317         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48318         glthread_tls_get.
48319         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48320
48321 2008-08-04  Eric Blake  <ebb9@byu.net>
48322
48323         gnumakefile: use space, not TAB, outside of targets
48324         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48325
48326 2008-08-02  Jim Meyering  <meyering@redhat.com>
48327
48328         getdate.y: avoid locale-dependent date parsing failure
48329         In Turkish locales, getdate would fail to recognize keywords
48330         containing a lowercase "i".  The solution is not to rely on
48331         locale-sensitive case-conversion.
48332         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48333         (lookup_word): Use c_toupper in place of toupper.
48334         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48335         Reported by Vefa Bicakci <bicave@superonline.com> in
48336         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48337         * modules/getdate (Depends-on): Add c-ctype.
48338
48339 2008-08-02  Bruno Haible  <bruno@clisp.org>
48340
48341         * gnulib-tool (func_import): When updating or creating a .gitignore
48342         file, prepend each added line with a slash, and ignore leading slashes
48343         from the existing lines.
48344         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48345
48346 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48347
48348         Portability fix for GNU make 3.79.1.
48349         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48350         versions do not understand.
48351
48352 2008-08-01  Bruno Haible  <bruno@clisp.org>
48353
48354         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48355         * tests/test-isnanf.h (zero): New variable.
48356         (main): Avoid literal -0.0f.
48357         * tests/test-isnand.h (zero): New variable.
48358         (main): Avoid literal -0.0.
48359         * tests/test-isnanl.h (zero): New variable.
48360         (main): Avoid literal -0.0L.
48361         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48362         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48363         -0.0, -0.0L.
48364         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48365         (test_signbitd): Avoid literal -0.0.
48366         (test_signbitl): Avoid literal -0.0L.
48367         * tests/test-ceilf1.c (zero): New variable.
48368         (main): Avoid literal -0.0f.
48369         * tests/test-ceill.c (zero): New variable.
48370         (main): Avoid literal -0.0L.
48371         * tests/test-floorf1.c (zero): New variable.
48372         (main): Avoid literal -0.0f.
48373         * tests/test-floorl.c (zero): New variable.
48374         (main): Avoid literal -0.0L.
48375         * tests/test-roundf1.c (zero): New variable.
48376         (main): Avoid literal -0.0f.
48377         * tests/test-round1.c (zero): New variable.
48378         (main): Avoid literal -0.0.
48379         * tests/test-roundl.c (zero): New variable.
48380         (main): Avoid literal -0.0L.
48381         * tests/test-truncf1.c (zero): New variable.
48382         (main): Avoid literal -0.0f.
48383         * tests/test-trunc1.c (zero): New variable.
48384         (main): Avoid literal -0.0.
48385         * tests/test-truncl.c (zero): New variable.
48386         (main): Avoid literal -0.0L.
48387         * tests/test-frexp.c (zero): New variable.
48388         (main): Avoid literal -0.0.
48389         * tests/test-frexpl.c (zero): New variable.
48390         (main): Avoid literal -0.0L.
48391         * tests/test-ldexpl.c (zero): New variable.
48392         (main): Avoid literal -0.0L.
48393         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48394         (zerod, zerol): New variables.
48395         (test_function): Avoid literals -0.0, -0.0L.
48396         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48397         (zerod, zerol): New variables.
48398         (test_function): Avoid literals -0.0, -0.0L.
48399         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48400         (zerod, zerol): New variables.
48401         (test_function): Avoid literals -0.0, -0.0L.
48402         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48403         (zerod, zerol): New variables.
48404         (test_function): Avoid literals -0.0, -0.0L.
48405         * tests/test-strtod.c (zero): New variable.
48406         (main): Avoid literal -0.0.
48407         Reported by Jonathan C. Patschke <jp@centtech.com>.
48408
48409 2008-07-31  Jim Meyering  <meyering@redhat.com>
48410
48411         sha256.h: correct definition of SHA224_DIGEST_SIZE
48412         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48413         Reported by Paulie Pena IV <paulie4@gmail.com>.
48414         Define as 224 / 8, rather than as a literal.
48415         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48416         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48417         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48418
48419 2008-07-31  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48422         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48423         Reported by Jonathan Patschke <jp@centtech.com>.
48424
48425 2008-07-31  Bruno Haible  <bruno@clisp.org>
48426
48427         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48428         Reported by Paolo Bonzini <bonzini@gnu.org>.
48429
48430 2008-07-30  Eric Blake  <ebb9@byu.net>
48431
48432         test-strtod: allow compilation without -lm
48433         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48434         Reported by Dennis Clarke <blastwave@gmail.com>.
48435
48436 2008-07-28  Jim Meyering  <meyering@redhat.com>
48437
48438         bootstrap: work also when there are no .po files in po/
48439         * build-aux/bootstrap (update_po_files): Complete the change
48440         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48441
48442 2008-07-27  Jim Meyering  <meyering@redhat.com>
48443
48444         * users.txt: Add zile.
48445
48446 2008-07-26  Ben Pfaff  <blp@gnu.org>
48447
48448         Add missing dependencies on new m4/exponent[fdl].m4 files.
48449         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48450         * modules/isnand-nolibm: Add m4/exponentd.m4.
48451         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48452         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48453         m4/isnan[fdl].m4, because the macros actually used moved.
48454         Reported by Jim Meyering.
48455
48456 2008-07-14  Ben Pfaff  <blp@gnu.org>
48457
48458         Add isinf module.
48459         * lib/isinf.c: New file.
48460         * lib/math.in.h: Define isinf macro if we have decided to replace
48461         it.
48462         * m4/isinf.m4: New file.
48463         * m4/math_h.m4: Initialize and substitute variables for isinf
48464         module.
48465         * modules/isinf: New file.
48466         * modules/isinf-tests: New file.
48467         * modules/math: Add substitutions for new module.
48468         * tests/test-isinf.c: New file.
48469         * doc/posix-functions/isinf.texi: Mention new module.
48470         * MODULES.html.sh: Mention new module.
48471
48472 2008-07-14  Ben Pfaff  <blp@gnu.org>
48473
48474         Factor out some macros for use by additional modules.
48475         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48476         exponentf.m4.
48477         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48478         exponentd.m4.
48479         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48480         file exponentl.m4.
48481         * m4/exponentf.m4: New file.
48482         * m4/exponentd.m4: New file.
48483         * m4/exponentl.m4: New file.
48484         * modules/isnanf: Use new file m4/exponentf.m4.
48485         * modules/isnand: Use new file m4/exponentd.m4.
48486         * modules/isnanl: Use new file m4/exponentl.m4.
48487
48488 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48489
48490         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48491         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48492         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48493         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48494
48495         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48496         readlink on platforms without PATH_MAX.
48497
48498 2008-07-21  Eric Blake  <ebb9@byu.net>
48499
48500         Warn, not fail, on stale version.
48501         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48502
48503         Don't allow installation with stale devel version number.
48504         * top/GNUmakefile (_is-install-target): New macro.
48505         (_curr-ver): Forbid installation with stale version number.
48506
48507 2008-07-20  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48510         TESTS_ENVIRONMENT.
48511         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48512
48513 2008-07-20  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/c-stack.h (c_stack_action): Add documentation.
48516         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48517
48518 2008-07-20  Bruno Haible  <bruno@clisp.org>
48519
48520         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48521         * modules/readlink (License): Likewise.
48522
48523 2008-07-17  Eric Blake  <ebb9@byu.net>
48524
48525         * modules/c-stack (Link): Fix typo.
48526
48527         Make c-stack use libsigsegv, when available.
48528         * modules/c-stack (Depends-on): Add libsigsegv.
48529         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48530         needed.
48531         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48532         (segv_handler, overflow_handler, c_stack_action)
48533         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48534         implementation when libsigsegv is available, but only when using
48535         the library is necessary.
48536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48537         comment, explaining why XSI check fails on Linux.
48538         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48539         * tests/test-c-stack2.sh: Tweak skip message.
48540         * NEWS: Document new link-time requirements.
48541
48542 2008-07-16  Eric Blake  <ebb9@byu.net>
48543
48544         c-stack: Expose false positives when not using libsigsegv.
48545         * modules/c-stack-tests (Files): Expand test.
48546         * tests/test-c-stack.c (main): Add means to conditionally trigger
48547         non-overflow SIGSEGV.
48548         * tests/test-c-stack2.sh: New file.
48549
48550 2008-07-14  Bruno Haible  <bruno@clisp.org>
48551
48552         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48553         Reported by Eric Blake.
48554
48555 2008-07-14  Sam Steingold  <sds@gnu.org>
48556             Bruno Haible  <bruno@clisp.org>
48557
48558         New module libsigsegv.
48559         * modules/libsigsegv: New file.
48560         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48561         modifications.
48562         * MODULES.html.sh (Signal handling): New section.
48563
48564 2008-07-14  Bruno Haible  <bruno@clisp.org>
48565
48566         * modules/unictype/ctype-* (Description): Add the word "function".
48567         Improves the resulting doc in MODULES.html.
48568
48569 2008-07-12  Ben Pfaff  <blp@gnu.org>
48570
48571         Add longlong module.
48572         * modules/longlong: New file.
48573
48574 2008-07-12  Bruno Haible  <bruno@clisp.org>
48575
48576         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48577         to empty.
48578
48579 2008-07-10  Ben Pfaff  <blp@gnu.org>
48580
48581         Add isnan module.
48582         * doc/posix-functions/isnan.texi: Mention new module.
48583         * lib/math.in.h: Define isnan macro if we have decided to replace
48584         it.
48585         * m4/isnan.m4: New file.
48586         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48587         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48588         also.
48589         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48590         redundancy.
48591         * m4/math_h.m4: Initialize and substitute variables for isnan
48592         module.
48593         * modules/isnan: New file.
48594         * modules/isnan-tests: New file.
48595         * modules/math: Add substitutions for new module.
48596         * tests/test-isnan.c: New file.
48597         * MODULES.html.sh: Mention new module.
48598
48599 2008-07-10  Ben Pfaff  <blp@gnu.org>
48600
48601         Add isnanf module.
48602         * lib/isnanf.m4: New file.
48603         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48604         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48605         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48606         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48607         * modules/isnanf: New file.
48608         * modules/isnanf-tests: New file.
48609         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48610         files.
48611         * tests/test-isnanf-nolibm.c: factored most of its contents into
48612         new file tests/test-isnanf.h.
48613         * tests/test-isnanf.h: New file.
48614         * tests/test-isnanf.c: New file.
48615         * MODULES.html.sh: Mention new module.
48616         * doc/glibc-functions/isnanf.texi: Mention new module.
48617
48618 2008-07-10  Ben Pfaff  <blp@gnu.org>
48619
48620         Add isnand module.
48621         * lib/isnand.h: New file.
48622         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48623         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48624         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48625         functionality also.
48626         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48627         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48628         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48629         * modules/isnand: New file.
48630         * modules/isnand-tests: New file.
48631         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48632         files.
48633         * tests/test-isnand-nolibm.c: factored most of its contents into
48634         new file tests/test-isnand.h.
48635         * tests/test-isnand.h: New file.
48636         * tests/test-isnand.c: New file.
48637         * MODULES.html.sh: Mention new module.
48638
48639 2008-07-10  Ben Pfaff  <blp@gnu.org>
48640
48641         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48642         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48643         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48644         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48645         * modules/isnanf-nolibm: Update references to renamed files.
48646         * modules/isnand-nolibm: Likewise.
48647         * modules/isnanf-nolibm-tests: Likewise.
48648         * modules/isnand-nolibm-tests: Likewise.
48649         * lib/frexp.c: Likewise.
48650         * lib/isfinite.c: Likewise.
48651         * lib/signbitd.c: Likewise.
48652         * lib/signbitf.c: Likewise.
48653         * lib/vasnprintf.c: Likewise.
48654         * tests/test-ceilf1.c: Likewise.
48655         * tests/test-ceilf2.c: Likewise.
48656         * tests/test-floorf1.c: Likewise.
48657         * tests/test-floorf2.c: Likewise.
48658         * tests/test-frexp.c: Likewise.
48659         * tests/test-round1.c: Likewise.
48660         * tests/test-round2.c: Likewise.
48661         * tests/test-roundf1.c: Likewise.
48662         * tests/test-strtod.c: Likewise.
48663         * tests/test-trunc1.c: Likewise.
48664         * tests/test-trunc2.c: Likewise.
48665         * tests/test-truncf1.c: Likewise.
48666         * tests/test-truncf2.c: Likewise.
48667         * NEWS: Mention the renamed header files.
48668
48669 2008-07-11  Jim Meyering  <meyering@redhat.com>
48670
48671         vc-list-files: make the last-resort awk code more portable
48672         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48673         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48674         does not support it.
48675
48676 2008-07-10  Eric Blake  <ebb9@byu.net>
48677
48678         Work with tar's bootstrap.
48679         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48680         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48681         an m4 comment.
48682
48683 2008-07-09  Jim Meyering  <meyering@redhat.com>
48684
48685         posix-shell.m4: fix typo that made this test malfunction
48686         * m4/posix-shell.m4: Remove capitalization in variable name.
48687
48688 2008-07-08  Bruno Haible  <bruno@clisp.org>
48689
48690         * m4/onceonly.m4: Update comments.
48691         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48692
48693 2008-07-04  Jim Meyering  <meyering@redhat.com>
48694
48695         * users.txt: Add vc-dwim.
48696         (bison, coreutils): Use the gitweb URL.
48697
48698 2008-07-03  Jim Meyering  <meyering@redhat.com>
48699
48700         * users.txt: Add libffcall.  From Sam Steingold.
48701
48702 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48703
48704         getdate.y: do not ignore TZ with relative day, month or year offset
48705         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48706         relative-date-handling, since otherwise, the latter would clobber the
48707         sole output (an updated Start value) of the tz-handling block.
48708         * tests/test-getdate.c: Tests for the fix
48709
48710 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48711
48712         Recognize 'foo_LIBRARIES += libgnu.a'.
48713         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48714         makefile snippet has already specified an installation location,
48715         also using '+='.
48716
48717 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48718
48719         getdate.y: factor out common actions
48720         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48721         Use them in place of open-coded actions.
48722
48723 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48724
48725         Add self-test for getdate module.
48726         * modules/getdate-tests: New file.
48727         * tests/test-getdate.c: New file.
48728
48729 2008-06-29  Bruno Haible  <bruno@clisp.org>
48730
48731         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48732         .gitignore.
48733         Reported by Sylvain Beucler <beuc@beuc.net>.
48734
48735 2008-06-29  Bruno Haible  <bruno@clisp.org>
48736
48737         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48738         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48739
48740 2008-06-29  Bruno Haible  <bruno@clisp.org>
48741
48742         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48743         EXTRA_DIST.
48744         Reported by Sylvain Beucler <beuc@beuc.net>.
48745
48746 2008-06-26  Jim Meyering  <meyering@redhat.com>
48747
48748         make several modules depend on the "open" module
48749         This provides slightly increased consistency when opening-for-write
48750         the name of a non-directory spelled with a trailing slash.
48751         * modules/chdir-safer: Likewise.
48752         * modules/chown: Likewise.
48753         * modules/clean-temp: Likewise.
48754         * modules/copy-file: Likewise.
48755         * modules/fchdir: Likewise.
48756         * modules/fcntl-safer: Likewise.
48757         * modules/pipe: Likewise.
48758         * modules/utime: Likewise.
48759         Prompted by Eric Blake and Bruno Haible.
48760
48761 2008-06-24  Andreas Schwab  <schwab@suse.de>
48762
48763         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48764         literals can be used as initializers for global variables.
48765
48766 2008-06-23  Eric Blake  <ebb9@byu.net>
48767
48768         Make gnulib-cache.m4 easier to diff.
48769         * gnulib-tool (func_import): Allow newlines when reading cached
48770         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48771
48772 2008-06-23  Bruno Haible  <bruno@clisp.org>
48773
48774         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48775         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48776         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48777         m4/signalblocking.m4.
48778         (gl_PREREQ_SIGACTION): Don't invoke it.
48779         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48780         gl_PREREQ_SIG_HANDLER_H.
48781         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48782         Don't check for sigaction here.
48783
48784 2008-06-23  Bruno Haible  <bruno@clisp.org>
48785
48786         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48787         (install_handlers): Don't set the SA_RESETHAND flag.
48788
48789 2008-06-23  Bruno Haible  <bruno@clisp.org>
48790
48791         * m4/sigaction.m4: Comment fixes.
48792         * lib/signal.in.h: Likewise.
48793
48794 2008-06-23  Eric Blake  <ebb9@byu.net>
48795
48796         Fix typo.
48797         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48798
48799         Avoid SA_ namespace.
48800         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48801         Reported by Ralf Wildenhues.
48802
48803         Avoid test failure due to SA_RESTORER.
48804         * tests/test-sigaction.c (SA_MASK): New macro.
48805         (main): Avoid failing due to extension flags being set.
48806         Reported by Jim Meyering.
48807
48808         Revert use of sig-handler.h in sigprocmask.c.
48809         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48810         it requires the existence of struct sigaction.
48811         * lib/sigprocmask.c (handler_t): Restore typedef.
48812         (rpl_signal, old_handlers): Use local type.
48813
48814 2008-06-22  Bruno Haible  <bruno@clisp.org>
48815
48816         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48817         conditionally.
48818         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48819
48820 2008-06-22  Bruno Haible  <bruno@clisp.org>
48821
48822         * doc/posix-functions/siginterrupt.texi: Move note.
48823
48824         * lib/signal.in.h (SA_RESTART): New macro.
48825         * lib/sigaction.c: Update comment.
48826
48827         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48828
48829         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48830         (gl_PREREQ_SIGPROCMASK): Invoke it.
48831         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48832
48833         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48834
48835         * lib/sigprocmask.c: Update a comment.
48836
48837 2008-06-21  Eric Blake  <ebb9@byu.net>
48838
48839         Use sigaction module rather than signal().
48840         * modules/c-stack (Depends-on): Add sigaction.
48841         * modules/fatal-signal (Depends-on): Likewise.
48842         * modules/nanosleep (Depends-on): Likewise.
48843         * modules/sigprocmask (Files): Add sig-handler.h.
48844         * modules/sigaction (Files): Likewise.
48845         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48846         Eggert.
48847         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48848         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48849         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48850         (init_fatal_signals): Likewise.
48851         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48852         (siginterrupt): Delete fallback.
48853         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48854         instead.
48855         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48856         siginterrupt.
48857
48858         New module sigaction, for mingw.
48859         * modules/sigaction: New module...
48860         * modules/sigaction-tests: ...and its test.
48861         * m4/sigaction.m4: New file.
48862         * lib/sigaction.c: Likewise.
48863         * tests/test-sigaction.c: Likewise.
48864         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48865         * modules/signal (Makefile.am): Likewise.
48866         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48867         needed.
48868         * doc/posix-headers/signal.texi (signal.h): Mention provided
48869         types.
48870         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48871         that sigaction is preferable.
48872         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48873         module.
48874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48875         sigaction.
48876
48877         Improve robustness of sigprocmask by overriding signal.
48878         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48879         is in use.
48880         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48881         (SIGKILL, SIGSTOP): Provide fallbacks.
48882         (rpl_signal): Implement.
48883         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48884         signal can be called inside handlers.
48885
48886         Fix nanosleep module on mingw.
48887         * modules/nanosleep (Depends-on): Add sys_select.
48888         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48889
48890         Fix licensing of sigprocmask.
48891         * modules/raise (License): Relicense as LGPL.
48892
48893 2008-06-21  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48896         result if it contains question marks.
48897         Reported by Michael Geng <linux@michaelgeng.de>.
48898
48899 2008-06-19  Bruno Haible  <bruno@clisp.org>
48900
48901         Fix CVS-ism.
48902         * doc/gnulib.texi: Include updated-stamp.texi.
48903         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48904         (updated-stamp.texi): New rule.
48905         (gnulib.info): Depend on it.
48906         * doc/.gitignore: Add updated-stamp.texi.
48907         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48908
48909 2008-06-19  Bruno Haible  <bruno@clisp.org>
48910
48911         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48912         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48913
48914 2008-06-19  Eric Blake  <ebb9@byu.net>
48915
48916         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48917         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48918         Reported by Stepan Kasal.
48919
48920 2008-06-18  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48923         Reported by Eric Blake.
48924
48925 2008-06-18  Eric Blake  <ebb9@byu.net>
48926
48927         Work around cygwin 1.5.25 strsignal bug.
48928         * tests/test-strsignal.c: Allow for const char *.
48929         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48930
48931 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48932
48933         * users.txt: Update URL to article and add author/date
48934         information.
48935
48936 2008-06-17  Bruno Haible  <bruno@clisp.org>
48937
48938         New macro gl_DISABLE_THREADS.
48939         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48940         if the user did not pass --enable-threads or --disable-threads option.
48941         (gl_DISABLE_THREADS): New macro.
48942         Reported by Eric Blake <ebb9@byu.net>.
48943
48944 2008-06-17  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48947         when the macro ignores it.
48948         Based on a patch by Eric Blake <ebb9@byu.net>.
48949
48950 2008-06-17  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/tls (License): Change to LGPLv2+.
48953         Reported by Eric Blake.
48954
48955 2008-06-17  Eric Blake  <ebb9@byu.net>
48956
48957         Simplify c-stack prerequisites.
48958         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48960         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48961         check.
48962         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48963         <sys/resource.h>.
48964
48965         Move c-stack test into testsuite.
48966         * modules/c-stack-tests: New file.
48967         * lib/c-stack.c [DEBUG]: Move test program...
48968         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48969         fail test if sigaltstack is lacking.
48970         * tests/test-c-stack.sh: New driver file.
48971
48972 2008-06-16  Eric Blake  <ebb9@byu.net>
48973
48974         Use raise module consistently.
48975         * modules/fatal-signal (Depends-on): Add raise.
48976         * modules/sigprocmask (Depends-on): Likewise.
48977         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48978         * lib/sigprocmask.c (sigprocmask): Likewise.
48979         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48980         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48981
48982         Fix compliance bug in sigpending.
48983         * lib/sigprocmask.c (sigpending): Return pending array via
48984         parameter, not return value.
48985
48986 2008-06-14  Eric Blake  <ebb9@byu.net>
48987
48988         Improve obstack-printf test code.
48989         * tests/test-obstack-printf.c (test_function): Fix comment, and
48990         simplify usage of obstack_* in macros.  Add a test for coverage.
48991         Reported by Bruno Haible.
48992
48993 2008-06-14  Bruno Haible  <bruno@clisp.org>
48994
48995         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48996         array size as a constant, not as a const variable.
48997         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48998         AC_USE_SYSTEM_EXTENSIONS.
48999         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49000         Test whether the obstack_printf function actually exists.
49001         * modules/obstack-printf (Depends-on): Add extensions.
49002         (Include): Remove obstack.h.
49003         * modules/obstack-printf-posix (Depends-on): Add extensions.
49004         (Include): Remove obstack.h.
49005
49006 2008-06-13  Eric Blake  <ebb9@byu.net>
49007
49008         Add obstack-printf and obstack-printf-posix modules.
49009         * modules/obstack-printf: New file.
49010         * modules/obstack-printf-posix: Likewise.
49011         * MODULES.html.sh (Misc): Mention them.
49012         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49013         Likewise.
49014         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49015         Likewise.
49016         * modules/stdio (Makefile.am): Accomodate new modules.
49017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49018         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49019         Declare.
49020         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49021         functions.
49022         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49023         (gl_REPLACE_OBSTACK_PRINTF): New macros
49024         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49025         * tests/test-obstack-printf.c: New file.
49026         * modules/obstack-printf-tests: Likewise.
49027         * modules/obstack-printf-posix-tests: Likewise.
49028
49029 2008-06-11  Bruno Haible  <bruno@clisp.org>
49030
49031         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49032         * lib/open.c: Include errno.h.
49033         (open): Fail when attempting to write to a file that has a trailing
49034         slash.
49035         * tests/test-open.c (main): Test against trailing slash bug.
49036         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49037
49038 2008-06-10  Bruno Haible  <bruno@clisp.org>
49039
49040         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49041         for $? to work inside the trap command, with various /bin/sh-s.
49042         * tests/test-vc-list-files-cvs.sh: Likewise.
49043
49044 2008-06-10  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/acl-internal.h: Don't include gettext.h here.
49047         * lib/set-mode-acl.c: Include gettext.h here.
49048         * lib/copy-acl.c: Likewise.
49049
49050 2008-06-10  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49053         * lib/wait-process.c (wait_subprocess): Likewise.
49054         * lib/execute.h (execute): Add termsigp argument.
49055         * lib/execute.c (execute): Likewise.
49056         * lib/csharpcomp.c (compile_csharp_using_pnet,
49057         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49058         * lib/csharpexec.c (execute_csharp_using_pnet,
49059         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49060         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49061         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49062         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49063         is_jikes_present): Update.
49064         * lib/javaexec.c (execute_java_class): Update.
49065         * lib/javaversion.c (execute_and_read_line): Update.
49066         * NEWS: Document the changes.
49067         Reported by Eric Blake.
49068
49069 2008-06-10  Eric Blake  <ebb9@byu.net>
49070
49071         Add missing include.
49072         * tests/test-strstr.c (includes): Add <signal.h>.
49073         * tests/test-strcasestr.c (includes): Likewise.
49074         * tests/test-memmem.c (includes): Likewise.
49075
49076 2008-06-10  Bruno Haible  <bruno@clisp.org>
49077
49078         * lib/wait-process.c (wait_subprocess): Add an assertion.
49079
49080 2008-06-10  Bruno Haible  <bruno@clisp.org>
49081
49082         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49083
49084 2008-06-10  Bruno Haible  <bruno@clisp.org>
49085
49086         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49087         using alarm().
49088         * tests/test-strcasestr.c (main): Likewise.
49089         * tests/test-strstr.c (main): Likewise.
49090
49091 2008-06-09  Bruno Haible  <bruno@clisp.org>
49092
49093         Work around the Solaris 10 ACE ACLs ABI change.
49094         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49095         declare if ACL_NO_TRIVIAL is present.
49096         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49097         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49098         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49099         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49100         define if ACL_NO_TRIVIAL is present.
49101         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49102         and use the current ABI.
49103         (file_has_acl): Use same #if condition as elsewhere.
49104         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49105         in use, and use the current ABI.
49106         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49107         Reported by Jim Meyering.
49108
49109 2008-06-09  Eric Blake  <ebb9@byu.net>
49110
49111         Work around environments that (stupidly) ignore SIGALRM.
49112         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49113         before using alarm().
49114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49115         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49116         Reported by Ian Beckwith <ianb@erislabs.net>.
49117
49118         Produce autobuild blurb earlier in log.
49119         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49120
49121 2008-06-09  Jim Meyering  <meyering@redhat.com>
49122         and Ondřej Vašík  <ovasik@redhat.com>
49123
49124         utimens.c: correct kernel bug work-around
49125         Ondřej Vašík found that the invalid return value of 280 indicates
49126         failure, not success, and the kernel bug we're trying to work
49127         around affects not just the utimensat call, but also the fallback
49128         futimens call.
49129         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49130         not success.
49131         [HAVE_FUTIMENS]: Use the same work-around, here.
49132
49133 2008-06-09  Jim Meyering  <meyering@redhat.com>
49134
49135         add more guards around definition of ACE_-related code
49136         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49137         ALLOW and ACE_OWNER are also defined.
49138
49139 2008-06-08  Bruno Haible  <bruno@clisp.org>
49140
49141         * lib/acl-internal.h: Add me as co-author.
49142         * lib/file-has-acl.c: Likewise.
49143         * lib/set-mode-acl.c: Likewise.
49144         * lib/copy-acl.c: Likewise.
49145
49146 2008-06-08  Bruno Haible  <bruno@clisp.org>
49147
49148         Add support for AIX ACLs.
49149         * lib/acl-internal.h (acl_nontrivial): New declaration.
49150         * lib/file-has-acl.c (acl_nontrivial): New function.
49151         (file_has_acl): Add implementation using AIX 4 ACL API.
49152         * lib/set-mode-acl.c (qset_acl): Likewise.
49153         * lib/copy-acl.c (qcopy_acl): Likewise.
49154
49155 2008-06-08  Bruno Haible  <bruno@clisp.org>
49156
49157         Add support for HP-UX ACLs.
49158         * lib/acl-internal.h (acl_nontrivial): New declaration.
49159         * lib/file-has-acl.c (acl_nontrivial): New function.
49160         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49161         * lib/set-mode-acl.c (qset_acl): Likewise.
49162         * lib/copy-acl.c (qcopy_acl): Likewise.
49163
49164 2008-06-08  Bruno Haible  <bruno@clisp.org>
49165
49166         Add support for Cygwin ACLs.
49167         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49168         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49169         the chmod_or_fchmod call.
49170         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49171
49172 2008-06-08  Bruno Haible  <bruno@clisp.org>
49173
49174         Fix bug with setuid modes in Solaris 10+ code.
49175         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49176         succeeded, when the mode contains some special bits.
49177
49178 2008-06-08  Bruno Haible  <bruno@clisp.org>
49179
49180         Add support for Solaris 7..10 ACLs.
49181         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49182         declarations.
49183         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49184         functions.
49185         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49186         * lib/set-mode-acl.c (qset_acl): Likewise.
49187         * lib/copy-acl.c (qcopy_acl): Likewise.
49188
49189 2008-06-08  Bruno Haible  <bruno@clisp.org>
49190
49191         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49192         declaration.
49193         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49194         (acl_access_nontrivial): Remove MacOS X case.
49195         (file_has_acl): Use acl_extended_nontrivial.
49196         * lib/copy-acl.c (qcopy_acl): Likewise.
49197
49198 2008-06-08  Bruno Haible  <bruno@clisp.org>
49199
49200         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49201
49202 2008-06-08  Jim Meyering  <meyering@redhat.com>
49203
49204         * modules/acl (Maintainer): Add Bruno Haible.
49205
49206 2008-06-07  Bruno Haible  <bruno@clisp.org>
49207
49208         Improve support for Tru64 ACLs.
49209         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49210         ACL on OSF/1.
49211
49212 2008-06-07  Bruno Haible  <bruno@clisp.org>
49213
49214         Add support for MacOS X ACLs.
49215         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49216         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49217         * lib/set-mode-acl.c (qset_acl): Likewise.
49218         * lib/copy-acl.c (qcopy_acl): Likewise.
49219
49220 2008-06-07  Bruno Haible  <bruno@clisp.org>
49221
49222         Fix memory leak introduced on 2008-05-22.
49223         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49224         use.
49225
49226 2008-06-07  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49229         to construct an empty ACL.
49230
49231 2008-06-07  Bruno Haible  <bruno@clisp.org>
49232
49233         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49234         precisely.
49235         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49236
49237 2008-06-07  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49240         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49241
49242 2008-06-07  Bruno Haible  <bruno@clisp.org>
49243
49244         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49245         regardless of POSIX.
49246         * doc/posix-functions/_longjmp.texi: Likewise.
49247         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49248         SystemV platform in this case.
49249
49250 2008-06-06  Eric Blake  <ebb9@byu.net>
49251
49252         Document abort() bugs.
49253         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49254
49255         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49256         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49257         sigsetjmp.
49258         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49259         siglongjmp, but only as a macro.
49260         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49261         is obsolete.
49262         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49263
49264         Tweak documentation to cover cygwin argz bugs.
49265         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49266         argz bug fix; no code change needed since no cygwin releases
49267         occurred between the last fix and the bug being tested.
49268         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49269         module and recently fixed cygwin bugs.
49270         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49271         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49272         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49273         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49274         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49275         Likewise.
49276         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49277         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49278         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49279         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49280         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49281         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49282         Likewise.
49283
49284         Avoid gcc warning on cygwin.
49285         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49286         !ACL_NO_TRIVIAL]: Avoid unused variable.
49287
49288 2008-06-05  Eric Blake  <ebb9@byu.net>
49289
49290         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49291         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49292         git-version-gen fails to come up with a version.
49293         Reported by Simon Josefsson.
49294
49295 2008-06-05  Jim Meyering  <meyering@redhat.com>
49296             Paul Eggert  <eggert@cs.ucla.edu>
49297
49298         utimens.c: work around a probable Linux kernel bug
49299         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49300         appears to be a kernel bug that causes utimensat to return 280
49301         instead of 0, indicating success.
49302
49303 2008-06-04  Bruno Haible  <bruno@clisp.org>
49304
49305         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49306         2008-06-01 commit.
49307
49308 2008-06-04  Bruno Haible  <bruno@clisp.org>
49309
49310         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49311         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49312         (file_has_acl): Use it. Save errno afterwards.
49313         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49314
49315 2008-06-03  Bruno Haible  <bruno@clisp.org>
49316
49317         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49318         draft code. Simplify #ifs.
49319         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49320         Put Solaris code after POSIX-draft code. Fix comments regarding
49321         Solaris 10, HP-UX. Mention Cygwin.
49322         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49323
49324 2008-06-03  Eric Blake  <ebb9@byu.net>
49325
49326         Provide fallback for older kernels.
49327         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49328         Provide runtime fallback if kernel lacks support.
49329         Reported by Mike Frysinger.
49330
49331 2008-06-02  Bruno Haible  <bruno@clisp.org>
49332
49333         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49334         it exists.
49335
49336 2008-06-02  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49339         * lib/copy-acl.c (qcopy_acl): Update comment.
49340
49341 2008-06-02  Bruno Haible  <bruno@clisp.org>
49342
49343         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49344         like ACL APIs.
49345
49346 2008-06-02  Bruno Haible  <bruno@clisp.org>
49347
49348         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49349         * tests/test-set-mode-acl.sh: Likewise.
49350         * tests/test-copy-acl.sh: Likewise.
49351         * tests/test-copy-file.sh: Likewise.
49352
49353 2008-06-02  Bruno Haible  <bruno@clisp.org>
49354
49355         * tests/test-file-has-acl.sh: Remove unused code.
49356
49357 2008-06-01  Bruno Haible  <bruno@clisp.org>
49358
49359         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49360         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49361         messages.
49362         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49363
49364 2008-06-01  Bruno Haible  <bruno@clisp.org>
49365
49366         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49367         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49368         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49369         APIs.
49370         * modules/acl-tests (configure.ac): Remove tests now contained in
49371         m4/acl.m4.
49372
49373 2008-06-02  Jim Meyering  <meyering@redhat.com>
49374
49375         announce-gen: use a better key-server host name
49376         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49377         it may be more consistently reliable.  Suggested by Werner Koch
49378         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49379
49380 2008-06-01  Bruno Haible  <bruno@clisp.org>
49381
49382         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49383         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49384
49385 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49386
49387         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49388
49389 2008-06-01  Bruno Haible  <bruno@clisp.org>
49390
49391         New ACL tests.
49392         * tests/test-file-has-acl.sh: New file.
49393         * tests/test-file-has-acl.c: New file.
49394         * tests/test-set-mode-acl.sh: New file.
49395         * tests/test-set-mode-acl.c: New file.
49396         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49397         * tests/test-copy-acl.c: New file.
49398         * modules/acl-tests: New file, based on modules/copy-file-tests.
49399         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49400         (Depends-on): Add acl-tests.
49401         (configure.ac): Remove checks.
49402         (Makefile.am): Don't create test-sameacls program here any more.
49403
49404 2008-06-01  Bruno Haible  <bruno@clisp.org>
49405
49406         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49407         * tests/test-sameacls.c: Include progname.h.
49408         (main): Invoke set_program_name. Portability fixes for MacOS X,
49409         Solaris, HP-UX.
49410
49411 2008-06-01  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49414         function.
49415         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49416
49417 2008-06-01  Bruno Haible  <bruno@clisp.org>
49418
49419         * modules/rpmatch (Depends-on): Add strdup.
49420
49421 2008-06-01  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/pipe.c: Include unistd-safer.h.
49424         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49425         * modules/pipe (Depends-on): Add unistd-safer.
49426
49427 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49428
49429         * modules/autobuild (configure.ac): Call AB_INIT.
49430
49431 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49432
49433         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49434         Suggested by Bruno Haible <bruno@clisp.org>.
49435
49436 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49437
49438         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49439         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49440         <bruno@clisp.org>.
49441
49442 2008-05-29  Eric Blake  <ebb9@byu.net>
49443
49444         Prefer new POSIX 200x interfaces over futimesat.
49445         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49446         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49447         when available.
49448         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49449
49450 2008-05-28  Bruno Haible  <bruno@clisp.org>
49451
49452         * modules/stpcpy (License): Change to LGPLv2+.
49453         Requested by David Lutterkort <dlutter@redhat.com>.
49454
49455 2008-05-27  Bruno Haible  <bruno@clisp.org>
49456
49457         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49458         current mingw.
49459         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49460
49461 2008-05-27  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/iconv_open (Link): New section, from module 'iconv'.
49464         * modules/striconv (Link): Likewise.
49465         * modules/striconveh (Link): Likewise.
49466         * modules/xstriconv (Link): Likewise.
49467         * modules/unicodeio (Link): Likewise.
49468         * modules/propername (Link): Likewise.
49469         Reported by Jim Meyering.
49470
49471 2008-05-26  Jim Meyering  <meyering@redhat.com>
49472
49473         sha256: do not artificially restrict buffer length to be < 2^32
49474         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49475         uint32_t to size_t.
49476         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49477         to match.
49478
49479         avoid unaligned access errors, e.g., on sparc
49480         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49481         direct access through a possibly-unaligned uint64* pointer.
49482         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49483         direct access through a possibly-unaligned uint32* pointer.
49484         Prompted by this patch from Tom "spot" Callaway:
49485         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49486
49487         sha512.c: fix typo in comment
49488         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49489
49490 2008-05-25  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49493         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49494         (Makefile.am): Update lib_SOURCES.
49495
49496 2008-05-25  Bruno Haible  <bruno@clisp.org>
49497
49498         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49499
49500 2008-05-25  Jim Meyering  <meyering@redhat.com>
49501
49502         useless-if-before-free: freed expr may have white-space differences
49503         * build-aux/useless-if-before-free: Recognize cases in which the
49504         freed expression differs from the tested one in embedded white
49505         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49506         $1 was used, so we can't make any regexp shy.  Improved tests now
49507         detect this.
49508
49509         useless-if-before-free: accept white space in the expression.
49510         * build-aux/useless-if-before-free: For now, any white space
49511         in the expression must be identical in the free argument.
49512
49513         useless-if-before-free: efficiency tweak
49514         * build-aux/useless-if-before-free: Make the expression-matching
49515         regexp "shy".
49516         Make the *outer* regexp shy, not the expr-matching one.
49517
49518         update code-in-comment to accept cast of free arg
49519         * build-aux/useless-if-before-free: Update regexp.
49520
49521 2008-05-25  Bruno Haible  <bruno@clisp.org>
49522
49523         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49524         * modules/copy-file-tests (Files, Makefile.am): Update.
49525         * tests/test-copy-file.c (func_test_copy): Update.
49526
49527 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49528
49529         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49530
49531 2008-05-23  Bruno Haible  <bruno@clisp.org>
49532
49533         Improve support for ACLs on OSF/1.
49534         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49535         Remove fallback for unknown flavors of ACLs.
49536
49537 2008-05-22  Bruno Haible  <bruno@clisp.org>
49538
49539         Add support for ACLs on OSF/1.
49540         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49541         replacements.
49542         (acl_free_text): New macro fallback.
49543         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49544         acl_free.
49545         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49546         acl_free_text function. Require AC_C_INLINE.
49547
49548 2008-05-22  Bruno Haible  <bruno@clisp.org>
49549
49550         Make copy_acl work on MacOS X 10.5.
49551         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49552         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49553         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49554         If MODE_INSIDE_ACL, don't assume that every system has the same text
49555         representation for ACLs as FreeBSD.
49556         * lib/copy-acl.c (copy_acl): Add support for platforms with
49557         !MODE_INSIDE_ACL.
49558         * lib/file-has-acl.c (file_has_acl): Likewise.
49559         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49560         FreeBSD, MacOS X, or IRIX, respectively.
49561
49562 2008-05-22  Bruno Haible  <bruno@clisp.org>
49563
49564         * lib/acl.h: Don't include <sys/acl.h>.
49565         (GETACLCNT): Move fallback to lib/acl-internal.h.
49566         * lib/acl-internal.h: Include <sys/acl.h> here.
49567         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49568
49569 2008-05-22  Bruno Haible  <bruno@clisp.org>
49570
49571         Split off copy_acl function to separate file.
49572         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49573         * lib/acl.c (copy_acl): Moved function to separate file.
49574         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49575         * modules/acl (Files): Add lib/copy-acl.c.
49576         (Makefiles.am): Augment lib_SOURCES.
49577
49578 2008-05-22  Bruno Haible  <bruno@clisp.org>
49579
49580         * modules/copy-file-tests: New file.
49581         * tests/test-copy-file.sh: New file.
49582         * tests/test-copy-file.c: New file.
49583         * tests/test-copy-file-sameacls.c: New file.
49584
49585 2008-05-22  Eric Blake  <ebb9@byu.net>
49586
49587         Avoid gcc warning.
49588         * tests/test-memcmp.c (main): Pass NULL indirectly.
49589
49590 2008-05-21  Bruno Haible  <bruno@clisp.org>
49591
49592         Add reference doc about ACLs.
49593         * doc/acl-resources.txt: New file.
49594         * doc/acl-cygwin.txt: New file.
49595
49596 2008-05-21  Bruno Haible  <bruno@clisp.org>
49597
49598         Avoid one more warning from gcc.
49599         * lib/vasnprintf.c (IF_LINT): Update comments.
49600         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49601
49602 2008-05-21  Jim Meyering  <meyering@redhat.com>
49603
49604         avoid a warning from gcc
49605         * lib/vasnprintf.c (IF_LINT): Define.
49606         (scale10_round_decimal_long_double):
49607         Use it to avoid a "may be used uninitialized" warning.
49608         (scale10_round_decimal_double): Likewise.
49609
49610 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49611
49612         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49613         declared.
49614
49615 2008-05-20  Bruno Haible  <bruno@clisp.org>
49616
49617         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49618         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49619
49620 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49621
49622         * modules/memcmp-tests: New file.
49623         * tests/test-memcmp.c: New file.
49624
49625 2008-05-19  Bruno Haible  <bruno@clisp.org>
49626
49627         * modules/propername (Notice, configure.ac): Put quoted "..." into
49628         --keyword option.
49629         * lib/propername.h: Update comments accordingly.
49630         Reported by Eric Blake.
49631
49632 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49633
49634         * modules/getpass-gnu (Depends-on): Add fseeko.
49635
49636 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49637
49638         * modules/base64-tests: New file.
49639
49640 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49641
49642         * lib/base64.c (base64_decode_ctx): If a decode context structure
49643         was passed in use it to ignore newlines.  If a context structure
49644         was _not_ passed in, continue to treat newlines as garbage (this
49645         is the historical behavior).  Formerly base64_decode.
49646         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49647         takes a decode context structure.
49648         * lib/base64.h (base64_decode): Macro for four-argument calls.
49649         (base64_decode_alloc): Likewise.
49650         * lib/base64.c (base64_decode_ctx): If a decode context structure
49651         was passed in use it to ignore newlines.  If a context structure
49652         was _not_ passed in, continue to treat newlines as garbage (this
49653         is the historical behavior).  Formerly base64_decode.
49654         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49655         takes a decode context structure.
49656         * lib/base64.h (base64_decode): Macro for four-argument calls.
49657         (base64_decode_alloc): Likewise.
49658
49659 2008-05-19  Jim Meyering  <meyering@redhat.com>
49660
49661         avoid a warning from gcc
49662         * lib/trim.c (IF_LINT): Define.
49663         (trim2): Use it to avoid a "may be used uninitialized" warning.
49664
49665         Fix doc typo.
49666         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49667
49668 2008-05-19  Bruno Haible  <bruno@clisp.org>
49669
49670         * doc/glibc-functions/getpass.texi: Document limits of other
49671         implementations.
49672
49673 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49674             Bruno Haible <bruno@clisp.org>
49675
49676         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49677
49678 2008-05-18  Bruno Haible  <bruno@clisp.org>
49679
49680         * modules/propername: New file, from GNU gettext.
49681         * lib/propername.h: New file, from GNU gettext.
49682         * lib/propername.c: New file, from GNU gettext.
49683         * MODULES.html.sh (Internationalization functions): Add propername.
49684
49685 2008-05-16  Jim Meyering  <meyering@redhat.com>
49686             Bruno Haible  <bruno@clisp.org>
49687
49688         Avoid some warnings from "gcc -Wshadow".
49689         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49690
49691 2008-05-15  Eric Blake  <ebb9@byu.net>
49692
49693         Extend previous patch to cygwin 1.7.0.
49694         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49695         fast implementation in cygwin >= 1.7.0.
49696         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49698
49699 2008-05-15  Bruno Haible  <bruno@clisp.org>
49700
49701         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49702         implementation in glibc >= 2.9.
49703         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49705
49706 2008-05-15  Bruno Haible  <bruno@clisp.org>
49707
49708         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49709         (Unicode string functions): Add unilbrk/*.
49710         Reported by Karl Berry.
49711
49712 2008-05-15  Eric Blake  <ebb9@byu.net>
49713
49714         Fix violation of <stdbool.h> replacement in regex.
49715         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49716         * lib/regexec.c (re_search_internal): Likewise.
49717         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49718
49719 2008-05-15  Jim Meyering  <meyering@redhat.com>
49720
49721         avoid distracting test output when git or cvs is not found
49722         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49723         * tests/test-vc-list-files-git.sh: Likewise.
49724
49725 2008-05-15  Eric Blake  <ebb9@byu.net>
49726
49727         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49728         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49729         glibc version.
49730         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49731         * doc/posix-functions/strstr.texi (strstr): Likewise.
49732         * lib/str-two-way.h (MAX): Sychronize with glibc.
49733
49734 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49735
49736         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49737         opr.ctx_type.
49738         (calc_first): Initialize constraint field.
49739         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49740         Fix grammar.
49741         (duplicate_node): Merge constraint field for all node types.
49742         (calc_eclosure_iter): Look at constraint field for all node types.
49743         * lib/regex_internal.c (create_cd_newstate): Don't look at
49744         opr.ctx_type.
49745
49746 2008-05-14  Bruno Haible  <bruno@clisp.org>
49747
49748         Help GCC to do better code generation.
49749         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49750         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49751         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49752         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49753         Declare with attribute 'malloc' if supported.
49754
49755 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49756
49757         use "echo STR|wc -c" rather than unportable "expr length STR"
49758         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49759         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49760
49761 2008-05-14  Jim Meyering  <meyering@redhat.com>
49762
49763         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49764         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49765         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49766         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49767         via Collin Lasse.
49768
49769 2008-05-14  Eric Blake  <ebb9@byu.net>
49770
49771         Avoid quadratic growth in gl_LIBSOURCES.
49772         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49773         Suggested by Bruno Haible.
49774
49775         Test xmemdup0.
49776         * modules/xmemdup0-tests: New file.
49777         * tests/test-xmemdup0.c: Likewise.
49778
49779 2008-05-13  Eric Blake  <ebb9@byu.net>
49780
49781         Split xmemdup0 into its own module.
49782         * modules/xmemdup0: New file.
49783         * lib/xmemdup0.h: Likewise.
49784         * lib/xmemdup0.c: Likewise.
49785         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49786         * lib/xalloc.h (xmemdup0): Remove.
49787         * lib/xmalloc.c (xmemdup0): Likewise.
49788
49789 2008-05-13  Eric Blake  <ebb9@byu.net>
49790             Bruno Haible  <bruno@clisp.org>
49791
49792         Reduce number of forks required during autoconf.
49793         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49794         and gl_LIBSOURCES_DIR.
49795         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49796         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49797         m4_syscmd per file.
49798         <m4_foreach_w>: Move...
49799         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49800
49801 2008-05-13  Eric Blake  <ebb9@byu.net>
49802
49803         * gnulib-tool: Fix various comment typos.
49804
49805 2008-05-12  Bruno Haible  <bruno@clisp.org>
49806
49807         Tailor the linebreaking algorithm.
49808         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49809
49810 2008-05-12  Bruno Haible  <bruno@clisp.org>
49811
49812         Update to Unicode 5.0.0.
49813         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49814         LBP_JV, LBP_JT. Redistribute values.
49815         (unilbrk_table): Change size.
49816         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49817         Unicode TR#14 rev. 22.
49818         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49819         LBP_JV, LBP_JT. Redistribute values.
49820         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49821         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49822         Update.
49823         * lib/unilbrk/lbrkprop1.h: Regenerated.
49824         * lib/unilbrk/lbrkprop2.h: Regenerated.
49825         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49826         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49827         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49828         Likewise.
49829         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49830         Likewise.
49831         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49832         result.
49833         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49834         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49835         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49836         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49837         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49838         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49839
49840 2008-05-11  Bruno Haible  <bruno@clisp.org>
49841
49842         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49843
49844 2008-05-11  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49847         * modules/unilbrk/gen-lbrk: New file.
49848
49849 2008-05-11  Bruno Haible  <bruno@clisp.org>
49850
49851         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49852         * m4/sha512.m4 (gl_SHA512): Likewise.
49853
49854 2008-05-11  Jim Meyering  <meyering@redhat.com>
49855
49856         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49857         * modules/crypto/sha256: New file.
49858         * modules/crypto/sha512: Likewise.
49859         * lib/sha256.c: Likewise.
49860         * lib/sha256.h: Likewise.
49861         * lib/sha512.c: Likewise.
49862         * lib/sha512.h: Likewise.
49863         * lib/u64.h: Likewise.
49864         * m4/sha256.m4: Likewise.
49865         * m4/sha512.m4: Likewise.
49866         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49867
49868 2008-05-10  Bruno Haible  <bruno@clisp.org>
49869
49870         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49871         (Input/Output <stdio.h>): Add xprintf.
49872         (Signal handling <signal.h>): Add strsignal.
49873         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49874         (Core language properties): Add func.
49875         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49876         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49877         strings.
49878         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49879         (Input/output): New section.
49880         (File system functions): Add openat-die, stat-macros.
49881         (Networking functions): Add sockets.
49882         (Unicode string functions): Add unictype/*.
49883         (Support for building libraries and executables): Add gperf.
49884         (Support for building documentation): Add agpl-3.0.
49885         (Misc): Add nocrash.
49886
49887 2008-05-10  Bruno Haible  <bruno@clisp.org>
49888
49889         * modules/unictype/gen-ctype: New file.
49890
49891 2008-05-10  Jim Meyering  <meyering@redhat.com>
49892
49893         Make chdir-safer.c more efficient on a system with no symlinks.
49894         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49895         also if ELOOP is zero.  Suggested by Bruno Haible.
49896
49897         Make chdir-safer.c slightly safer.
49898         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49899         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49900
49901         Avoid compile failure on systems without ELOOP (like mingw).
49902         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49903         Reported by Bruno Haible.
49904
49905 2008-05-10  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49908         (is_utf8_encoding): Use a case-insensitive comparison.
49909         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49910         streq.
49911
49912 2008-05-10  Bruno Haible  <bruno@clisp.org>
49913
49914         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49915         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49916         * lib/unilbrk/ulc-common.h (iconv_string_length,
49917         iconv_string_keeping_offsets): Remove declarations.
49918         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49919         Don't include <iconv.h>, streq.h, xsize.h.
49920         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49921         conversion.
49922         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49923         <iconv.h>, streq.h, xsize.h.
49924         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49925         conversion.
49926         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49927         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49928         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49929         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49930
49931 2008-05-10  Bruno Haible  <bruno@clisp.org>
49932
49933         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49934         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49935
49936         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49937         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49938
49939         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49940         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49941
49942         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49943         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49944
49945         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49946         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49947
49948         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49949         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49950
49951         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49952         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49953
49954         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49955         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49956
49957 2008-05-10  Bruno Haible  <bruno@clisp.org>
49958
49959         Split up 'linebreak' module.
49960         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49961         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49962         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49963         modifications.
49964         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49965         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49966         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49967         lib/linebreak.c.
49968         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49969         lib/linebreak.c.
49970         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49971         lib/linebreak.c.
49972         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49973         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49974         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49975         lib/linebreak.c.
49976         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49977         lib/linebreak.c.
49978         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49979         lib/linebreak.c.
49980         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49981         lib/linebreak.c.
49982         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49983         lib/linebreak.c.
49984         * modules/unilbrk/base: New file.
49985         * modules/unilbrk/tables: New file.
49986         * modules/unilbrk/u8-possible-linebreaks: New file.
49987         * modules/unilbrk/u16-possible-linebreaks: New file.
49988         * modules/unilbrk/u32-possible-linebreaks: New file.
49989         * modules/unilbrk/ulc-common: New file.
49990         * modules/unilbrk/ulc-possible-linebreaks: New file.
49991         * modules/unilbrk/u8-width-linebreaks: New file.
49992         * modules/unilbrk/u16-width-linebreaks: New file.
49993         * modules/unilbrk/u32-width-linebreaks: New file.
49994         * modules/unilbrk/ulc-width-linebreaks: New file.
49995         * lib/linebreak.h: Remove file.
49996         * lib/linebreak.c: Remove file.
49997         * m4/linebreak.m4: Remove file.
49998         * modules/linebreak: Remove file.
49999         * NEWS: Mention the changes.
50000
50001 2008-05-09  Eric Blake  <ebb9@byu.net>
50002
50003         Add xmemdup0.
50004         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50005         implementation.
50006         * lib/xmalloc.c (xmemdup0): New C implementation.
50007
50008 2008-05-08  Bruno Haible  <bruno@clisp.org>
50009
50010         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50011
50012 2008-05-07  Eric Blake  <ebb9@byu.net>
50013
50014         Support cross-compilation of <wctype.h>.
50015         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50016         AC_CACHE_CHECK.
50017
50018 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50019
50020         * build-aux/vc-list-files: Add support for bzr.
50021
50022 2008-05-03  Jim Meyering  <meyering@redhat.com>
50023
50024         avoid failed assertion with tight malloc
50025         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50026
50027 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50028
50029         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50030         are needed from arpa/inet.h.
50031         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50032         Reported by Bruno Haible.
50033
50034 2008-05-02  Jim Meyering  <meyering@redhat.com>
50035
50036         avoid compilation error on FreeBSD 6
50037         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50038
50039 2008-05-01  Jim Meyering  <meyering@redhat.com>
50040
50041         useless-if-before-free: correct --help's exit status description
50042         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50043         for one or more matches, etc.  Reported by Bruno Haible.
50044
50045         vc-list-files: make the stand-alone gnulib test work
50046         * modules/vc-list-files-tests (configure.ac):
50047         Define and AC_SUBST abs_aux_dir.
50048         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50049         $(abs_top_srcdir) to each script and having each of them
50050         duplicate the work of setting PATH, set PATH here, using
50051         the new variable, abs_aux_dir instead.
50052         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50053         * tests/test-vc-list-files-git.sh: Likewise.
50054         Reported by Bruno Haible.
50055
50056 2008-05-01  Bruno Haible  <bruno@clisp.org>
50057
50058         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50059         reallocation. Rename 'done' to 'found_delimiter'.
50060
50061 2008-05-01  Jim Meyering  <meyering@redhat.com>
50062
50063         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50064         * build-aux/vc-list-files: Use `...`, not $(...).
50065
50066 2008-04-30  Jim Meyering  <meyering@redhat.com>
50067
50068         add tests for vc-list-files
50069         * modules/vc-list-files-tests: New module.
50070         * tests/test-vc-list-files-cvs.sh: New file.
50071         * tests/test-vc-list-files-git.sh: New file.
50072
50073         avoid a warning from gcc
50074         * lib/getndelim2.c (IF_LINT): Define.
50075         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50076
50077         vc-list-files: work properly with build-aux/cvsu, too
50078         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50079         to all cvs-based clauses.
50080
50081         vc-list-files: work properly in the CVS+awk case, too
50082         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50083
50084         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50085         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50086         take more than one file argument, so .  Add quotes, just in case $dir
50087         ever contains a shell meta-character.  Prompted by Soren Hansen in
50088         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50089
50090 2008-04-29  Eric Blake  <ebb9@byu.net>
50091
50092         Optimize getndelim2 to use block operations when possible.
50093         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50094         freadseek, and memchr2.
50095         * lib/getndelim2.c (getndelim2): Use them for block reads.
50096
50097 2008-04-29  Bruno Haible  <bruno@clisp.org>
50098
50099         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50100         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50101         * modules/inet_ntop (Depends-on): Add extensions.
50102         * modules/inet_pton (Depends-on): Likewise.
50103         Reported by Simon Josefsson.
50104
50105 2008-04-29  Jim Meyering  <meyering@redhat.com>
50106
50107         When the is more than one match in a block, match all of them.
50108         * build-aux/useless-if-before-free: Iterate through each block
50109         until there are no more matches.
50110
50111         Fix broken useless-if-before-free script.
50112         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50113         the expression to match cast of argument to free-like function.
50114
50115 2008-04-29  Eric Blake  <ebb9@byu.net>
50116
50117         Use new header.
50118         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50119
50120 2008-04-29  Jim Meyering  <meyering@redhat.com>
50121
50122         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50123         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50124         by gnulib to exist and to declare e.g., inet_ntop.
50125         Don't include "inet_ntop.h", now removed.
50126
50127         * m4/arpa_inet_h.m4: Remove trailing blanks.
50128
50129 2008-04-29  Eric Blake  <ebb9@byu.net>
50130
50131         Silence valgrind on safe reads beyond potential array bounds.
50132         * lib/rawmemchr.valgrind: New file.
50133         * lib/strchrnul.valgrind: Likewise.
50134         * modules/rawmemchr (Files): Distribute new file.
50135         * modules/strchrnul (Files): Likewise.
50136         Suggested by Bruno Haible.
50137
50138 2008-04-29  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50141         (inet_ntop, inet_pton): Change portability warning's wording.
50142         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50143         Invoke gl_CHECK_NEXT_HEADERS.
50144         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50145         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50146         set ARPA_INET_H.
50147         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50148         * modules/arpa_inet (Description): No longer only for systems that
50149         lack it.
50150         (Depends-on): Add include_next.
50151         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50152         HAVE_ARPA_INET_H.
50153
50154 2008-04-29  Jim Meyering  <meyering@redhat.com>
50155
50156         * modules/mkdir (License): Re-license as LGPLv2+.
50157
50158 2008-04-29  Bruno Haible  <bruno@clisp.org>
50159
50160         * modules/rawmemchr (Maintainer): Set to Eric.
50161         * modules/strchrnul (Maintainer): Likewise.
50162
50163 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50164
50165         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50166         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50167
50168         * modules/arpa_inet (arpa/inet.h): Use them.
50169
50170 2008-04-28  Eric Blake  <ebb9@byu.net>
50171
50172         Test getndelim2.
50173         * modules/getndelim2-tests: New file.
50174         * tests/test-getndelim2.c: Likewise.
50175         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50176         stream.
50177         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50178
50179         * MODULES.html.sh: Document new module.
50180
50181 2008-04-20  Bruno Haible  <bruno@clisp.org>
50182
50183         * lib/c-stack.c (die): Use raise.
50184         * modules/c-stack (Depends-on): Add raise.
50185
50186 2008-04-28  Bruno Haible  <bruno@clisp.org>
50187
50188         Expect rpmatch to be declared.
50189         * lib/yesno.c (rpmatch): Remove declaration.
50190
50191         Declare rpmatch.
50192         * lib/stdlib.in.h (rpmatch): New declaration.
50193         * lib/rpmatch.c: Include <stdlib.h> first.
50194         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50195         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50197         HAVE_RPMATCH.
50198         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50199         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50200         (Include): Set to <stdlib.h>.
50201         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50202         HAVE_RPMATCH.
50203         * NEWS: Document the change.
50204
50205 2008-04-28  Bruno Haible  <bruno@clisp.org>
50206
50207         Change rpmatch to use nl_langinfo when appropriate.
50208         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50209         (N_): New macro.
50210         (localized_pattern): New function/macro.
50211         (try): Remove match, nomatch arguments. Copy the pattern into safe
50212         memory before caching it.
50213         (rpmatch): Use localized_pattern. Add translator comments.
50214         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50215         Suggested by Eric Blake.
50216         * modules/rpmatch (Depends-on): Add stdbool.
50217
50218 2008-04-28  Eric Blake  <ebb9@byu.net>
50219
50220         Add rawmemchr module, matching glibc.
50221         * modules/string (Makefile.am): New indicator.
50222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50223         * lib/string.in.h (rawmemchr): Declare when appropriate.
50224         * modules/rawmemchr: New file.
50225         * m4/rawmemchr.m4: Likewise.
50226         * lib/rawmemchr.c: Likewise.
50227         * modules/rawmemchr-tests: Likewise.
50228         * tests/test-rawmemchr.c: Likewise.
50229         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50230         module.
50231         * modules/strchrnul (Depends-on): Add rawmemchr.
50232         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50233
50234         Whitespace cleanup.
50235         * tests/test-strchrnul.c: Reindent.
50236         * lib/strchrnul.c: Likewise.
50237
50238         Optimize and test strchrnul.
50239         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50240         * modules/strchrnul-tests: New file.
50241         * tests/test-strchrnul.c: Likewise.
50242
50243         Remove intprops dependency.
50244         * modules/memchr (Depends-on): Remove intprops.
50245         * modules/memrchr (Depends-on): Likewise.
50246         * modules/memchr2 (Depends-on): Likewise.
50247         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50248         * lib/memrchr.c (__memrchr): Likewise.
50249         * lib/memrchr2.c (memchr2): Likewise.
50250         Reported by Simon Josefsson.
50251
50252 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50253
50254         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50255         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50256
50257 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50258
50259         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50260
50261         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50262
50263         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50264
50265         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50266         declarations.
50267         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50268
50269         * m4/inet_pton.m4: Don't check for header files.
50270
50271         * m4/inet_ntop.m4: Don't check for header files.
50272
50273 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50274
50275         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50276         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50277         trigger for cygwin).
50278         Reported by Bruno Haible  <bruno@clisp.org>.
50279
50280 2008-04-28  Bruno Haible  <bruno@clisp.org>
50281
50282         * doc/posix-functions/strdup.texi: Mention mingw problem.
50283
50284 2008-04-27  Bruno Haible  <bruno@clisp.org>
50285
50286         * modules/stat-time-tests (Depends-on): Add sleep.
50287         * tests/test-stat-time.c (force_unlink): New function.
50288         (cleanup): Use it.
50289         (test_mtime): Remove the ctime related tests.
50290         (test_ctime): New function, containing the ctime related tests.
50291         (main): Call test_ctime, except on native Windows platforms.
50292
50293 2008-04-27  Bruno Haible  <bruno@clisp.org>
50294
50295         * lib/rpmatch.c (rpmatch): Add some comments.
50296         Reported by James Youngman <jay@gnu.org>.
50297
50298 2008-04-27  Bruno Haible  <bruno@clisp.org>
50299
50300         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50301         quiet NaNs.
50302
50303 2008-04-27  Bruno Haible  <bruno@clisp.org>
50304
50305         Make test-yesno.sh work on mingw.
50306         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50307         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50308         (main): Set stdin to binary mode.
50309         * modules/yesno-tests (Depends-on): Add binary-io.
50310
50311 2008-04-27  Bruno Haible  <bruno@clisp.org>
50312
50313         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50314         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50315         argument that lie outside the IEEE 854 domain.
50316         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50317         (gl_ISFINITE): Use it.
50318         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50319
50320 2008-04-27  Bruno Haible  <bruno@clisp.org>
50321
50322         Allow local renaming in config.h.
50323         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50324
50325 2008-04-27  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/memchr.c (__memchr): Change type of 'i'.
50328         * lib/memchr2.c (memchr2): Likewise.
50329
50330 2008-04-26  Eric Blake  <ebb9@byu.net>
50331         and Bruno Haible  <bruno@clisp.org>
50332
50333         Optimize and test memrchr.
50334         * modules/memrchr (Depends-on): Add intprops.
50335         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50336         * modules/memrchr-tests: New file.
50337         * tests/test-memrchr.c: New file.
50338
50339 2008-04-26  Bruno Haible  <bruno@clisp.org>
50340
50341         Add tentative support for DragonFly BSD.
50342         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50343         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50344         fp.
50345         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50346         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50347         * lib/fpurge.c (fpurge): Likewise.
50348         * lib/freadable.c (freaadable): Likewise.
50349         * lib/freadahead.c (freadahead): Likewise.
50350         * lib/freading.c (freading): Likewise.
50351         * lib/freadptr.c (freadptr): Likewise.
50352         * lib/freadseek.c (freadptrinc): Likewise.
50353         * lib/fseeko.c (fseeko): Likewise.
50354         * lib/fseterr.c (fseterr): Likewise.
50355         * lib/fwritable.c (fwritable): Likewise.
50356         * lib/fwriting.c (fwriting): Likewise.
50357
50358 2008-04-26  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/stdio-impl.h: New file.
50361         * lib/fbufmode.c: Include stdio-impl.h.
50362         (fbufmode): Use fp_, remove redundant #defines.
50363         * lib/fflush.c: Include stdio-impl.h.
50364         (clear_ungetc_buffer): Remove redundant #defines.
50365         * lib/fpurge.c: Include stdio-impl.h.
50366         (fpurge): Remove redundant #defines.
50367         * lib/freadable.c: Include stdio-impl.h.
50368         (freadable): Remove redundant #defines.
50369         * lib/freadahead.c: Include stdio-impl.h.
50370         (freadahead): Remove redundant #defines.
50371         * lib/freading.c: Include stdio-impl.h.
50372         (freading): Remove redundant #defines.
50373         * lib/freadptr.c: Include stdio-impl.h.
50374         (freadptr): Remove redundant #defines.
50375         * lib/freadseek.c: Include stdio-impl.h.
50376         (freadptrinc): Remove redundant #defines.
50377         * lib/fseeko.c: Include stdio-impl.h.
50378         (rpl_fseeko): Remove redundant #defines.
50379         * lib/fseterr.c: Include stdio-impl.h.
50380         (fseterr): Remove redundant #defines.
50381         * lib/fwritable.c: Include stdio-impl.h.
50382         (fwritable: Remove redundant #defines.
50383         * lib/fwriting.c: Include stdio-impl.h.
50384         (fwriting): Remove redundant #defines.
50385         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50386         * modules/fflush (Files): Likewise.
50387         * modules/fpurge (Files): Likewise.
50388         * modules/freadable (Files): Likewise.
50389         * modules/freadahead (Files): Likewise.
50390         * modules/freading (Files): Likewise.
50391         * modules/freadptr (Files): Likewise.
50392         * modules/freadseek (Files): Likewise.
50393         * modules/fseeko (Files): Likewise.
50394         * modules/fseterr (Files): Likewise.
50395         * modules/fwritable (Files): Likewise.
50396         * modules/fwriting (Files): Likewise.
50397
50398 2008-04-26  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50401         restore_seek_optimization, update_fpos_cache): New functions, extracted
50402         from rpl_fflush.
50403         (rpl_fflush): Use them.
50404         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50405         (gl_REPLACE_FFLUSH): Use it.
50406
50407 2008-04-26  Bruno Haible  <bruno@clisp.org>
50408
50409         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50410         on Solaris.
50411         * tests/test-xstrtoimax.sh: Likewise.
50412         * tests/test-xstrtoumax.sh: Likewise.
50413         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50414
50415 2008-04-26  Bruno Haible  <bruno@clisp.org>
50416
50417         * modules/memchr-tests: New file.
50418         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50419
50420 2008-04-26  Eric Blake  <ebb9@byu.net>
50421             Bruno Haible  <bruno@clisp.org>
50422
50423         * lib/memchr.c: Include intprops.h.
50424         (__memchr): Optimize parallel detection of matching bytes. Rename local
50425         variables. Add explanatory comments.
50426
50427 2008-04-26  Bruno Haible  <bruno@clisp.org>
50428
50429         Fix module 'memchr', broken since 2000-10-28.
50430         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50431
50432 2008-04-26  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50435         comments.
50436
50437 2008-04-25  Eric Blake  <ebb9@byu.net>
50438
50439         Use native fstatat on cygwin 1.7.0.
50440         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50441         first.
50442
50443 2008-04-23  Eric Blake  <ebb9@byu.net>
50444
50445         Improve memchr2 performance.
50446         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50447         NUL bytes.
50448         * modules/memchr2 (Depends-on): Use intprops.h.
50449
50450 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50451
50452         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50453         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50454         <blp@cs.stanford.edu>.
50455
50456 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50457
50458         * lib/arpa_inet.in.h: New file.
50459
50460         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50461         (Makefile.am): Sed in substitute header file.
50462
50463         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50464         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50465
50466         * modules/inet_ntop (configure.ac): Use
50467         gl_ARPA_INET_MODULE_INDICATOR.
50468
50469         * modules/inet_pton (configure.ac): Use
50470         gl_ARPA_INET_MODULE_INDICATOR.
50471
50472 2008-04-22  Jim Meyering  <meyering@redhat.com>
50473
50474         * modules/verify (License): Re-license as LGPLv2+.
50475
50476 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50477
50478         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50479         parameter to void* as per POSIX standard (MinGW uses char*).
50480
50481 2008-04-21  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50484         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50485         Define to replacements if REPLACE_ISWCNTRL is 1.
50486         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50487         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50488         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50489         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50490         what it fixes.
50491         * doc/posix-functions/iswalpha.texi: Likewise.
50492         * doc/posix-functions/iswblank.texi: Likewise.
50493         * doc/posix-functions/iswcntrl.texi: Likewise.
50494         * doc/posix-functions/iswdigit.texi: Likewise.
50495         * doc/posix-functions/iswgraph.texi: Likewise.
50496         * doc/posix-functions/iswlower.texi: Likewise.
50497         * doc/posix-functions/iswprint.texi: Likewise.
50498         * doc/posix-functions/iswpunct.texi: Likewise.
50499         * doc/posix-functions/iswspace.texi: Likewise.
50500         * doc/posix-functions/iswupper.texi: Likewise.
50501         * doc/posix-functions/iswxdigit.texi: Likewise.
50502         Reported by Alain Guibert.
50503
50504 2008-04-21  Bruno Haible  <bruno@clisp.org>
50505
50506         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50507         Patch by Alain Guibert.
50508
50509 2008-04-21  Bruno Haible  <bruno@clisp.org>
50510
50511         Fix test failures on mingw.
50512         * tests/test-xstrtol.c (print_no_progname): New function.
50513         (main): Install it in error_print_progname hook.
50514         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50515         * tests/test-xstrtoimax.sh: Likewise.
50516         * tests/test-xstrtoumax.sh: Likewise.
50517
50518 2008-04-21  Bruno Haible  <bruno@clisp.org>
50519
50520         Fix test failure on mingw.
50521         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50522
50523 2008-04-21  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50526         Actually assign a value.
50527
50528 2008-04-20  Bruno Haible  <bruno@clisp.org>
50529
50530         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50531         take 2.
50532         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50533         'canonicalize-lgpl' module is also used.
50534         * lib/canonicalize-lgpl.c: Undo last change.
50535         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50536
50537 2008-04-20  Bruno Haible  <bruno@clisp.org>
50538
50539         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50540         config.h. Provide _mkdir based fallback for mingw.
50541         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50542         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50543         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50544         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50545         rather than defining mkdir in config.h.
50546         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50547         (gl_SYS_STAT_H_DEFAULTS): New macro.
50548         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50549         HAVE_IO_H any more.
50550         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50551         HAVE_DECL_MKDIR and HAVE_IO_H.
50552
50553 2008-04-20  Bruno Haible  <bruno@clisp.org>
50554
50555         * lib/isapipe.c: Port to native Windows platforms.
50556
50557 2008-04-20  Bruno Haible  <bruno@clisp.org>
50558
50559         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50560
50561 2008-04-21  Eric Blake  <ebb9@byu.net>
50562
50563         Work around preprocessors that don't handle UINTMAX_MAX.
50564         * lib/memchr2.c (memchr2): Avoid embedded #if.
50565         Reported by Alain Guibert, fix suggested by Bruno Haible.
50566
50567 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50568
50569         * doc/posix-functions/strftime.texi (strftime): Explain better
50570         Windows incompatibility.  Suggested by Micah Cowan
50571         <micah@cowan.name>.
50572
50573 2008-04-20  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50576         unistr/u8-mblen.
50577
50578 2008-04-20  Bruno Haible  <bruno@clisp.org>
50579
50580         Fix test failure on platforms with non-GNU iconv.
50581         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50582         (U_TO_U8): Use it, rather than u16_to_u8.
50583         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50584         units at the end of the input string.
50585         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50586
50587 2008-04-20  Bruno Haible  <bruno@clisp.org>
50588
50589         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50590         when the resulting length is 0.
50591         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50592
50593 2008-04-20  Bruno Haible  <bruno@clisp.org>
50594
50595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50596         works.
50597         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50598
50599 2008-04-20  Bruno Haible  <bruno@clisp.org>
50600
50601         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50602         * modules/tsearch-tests (configure.ac): Test for initstate function.
50603
50604 2008-04-20  Bruno Haible  <bruno@clisp.org>
50605
50606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50607         for nlink_t if missing.
50608         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50609
50610 2008-04-19  Bruno Haible  <bruno@clisp.org>
50611
50612         Work around snprintf bug on Linux libc5.
50613         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50615         gl_SNPRINTF_SIZE1.
50616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50617         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50618         that test failed.
50619         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50620         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50621         * modules/snprintf (Files): Add m4/printf.m4.
50622         * modules/vsnprintf (Files): Likewise.
50623         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50624         * doc/posix-functions/vsnprintf.texi: Likewise.
50625
50626 2008-04-19  Bruno Haible  <bruno@clisp.org>
50627
50628         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50629         from 0.0058 to less than 10^-7.
50630
50631 2008-04-19  Bruno Haible  <bruno@clisp.org>
50632
50633         Fix rounding when a precision is given.
50634         * lib/vasnprintf.c (is_borderline): New function.
50635         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50636         9...9x.
50637         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50638         %e, %g.
50639         * tests/test-vasprintf-posix.c (test_function): Likewise.
50640         * tests/test-snprintf-posix.h (test_function): Likewise.
50641         * tests/test-sprintf-posix.h (test_function): Likewise.
50642         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50643         * tests/test-printf-posix.h (test_function): Likewise.
50644         * tests/test-printf-posix.output: Update.
50645         Reported by John Darrington <john@darrington.wattle.id.au> via
50646         Ben Pfaff <blp@cs.stanford.edu>.
50647
50648 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50649
50650         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50651         Suggested by Bruno Haible <bruno@clisp.org>.
50652
50653 2008-04-17  Bruno Haible  <bruno@clisp.org>
50654
50655         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50656         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50657         implementation.
50658         Patch by Bruce Merry <bmerry@gmail.com>.
50659
50660 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50661
50662         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50663         doesn't work under Windows.
50664
50665 2008-04-16  Bruno Haible  <bruno@clisp.org>
50666
50667         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50668         New macros.
50669         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50670         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50671         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50672         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50673         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50674         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50675         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50676         macros.
50677         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50678         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50679         Northern Sotho, Uighur.
50680
50681 2008-04-16  Bruno Haible  <bruno@clisp.org>
50682
50683         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50684         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50685         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50686         Reported by Daniel Bergström <daniel@octocode.com>.
50687
50688 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50689             Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50692         function.
50693         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50694         New functions, mostly extracted from gl_locale_name_default.
50695         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50696
50697 2008-04-16  Eric Blake  <ebb9@byu.net>
50698
50699         Adjust strtod detection to catch glibc 2.7 bug.
50700         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50701         Reported by John Gatewood Ham.
50702
50703 2008-04-16  Bruno Haible  <bruno@clisp.org>
50704
50705         Add tentative support for Linux libc5.
50706         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50707         * lib/fpurge.c (fpurge): Likewise.
50708         * lib/freadable.c (freadable): Likewise.
50709         * lib/freadahead.c (freadahead): Likewise.
50710         * lib/freading.c (freading): Likewise.
50711         * lib/freadptr.c (freadptr): Likewise.
50712         * lib/freadseek.c (freadptrinc): Likewise.
50713         * lib/fseeko.c (rpl_fseeko): Likewise.
50714         * lib/fseterr.c (fseterr): Likewise.
50715         * lib/fwritable.c (fwritable): Likewise.
50716         * lib/fwriting.c (fwriting): Likewise.
50717         Reported by Alain Guibert <alguibert+bts@free.fr>.
50718
50719 2008-04-15  Bruno Haible  <bruno@clisp.org>
50720
50721         * modules/mathl (configure.ac): Define module indicator.
50722
50723 2008-04-15  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/logl.c (logl): Remove unused variables.
50726
50727 2008-04-15  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50730         fails.
50731
50732 2008-04-15  Bruno Haible  <bruno@clisp.org>
50733
50734         * lib/trim.c (trim2): Fix argument of isspace() macro.
50735
50736 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50737
50738         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50739         to 0.
50740         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50741
50742 2008-04-14  Bruno Haible  <bruno@clisp.org>
50743
50744         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50745         AC_LANG_PROGRAM argument.
50746         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50747         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50748         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50749         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50750         * m4/math_h.m4 (gl_MATH_H): Likewise.
50751         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50752         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50753         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50754         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50755         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50756         * m4/regex.m4 (gl_REGEX): Likewise.
50757         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50758         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50760         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50761         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50762         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50763         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50765
50766 2008-04-14  Jim Meyering  <meyering@redhat.com>
50767
50768         test-strtod: fix typos: s/abs/fabs/
50769         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50770
50771 2008-04-13  Bruno Haible  <bruno@clisp.org>
50772
50773         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50774         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50775         module is also used and while not building the reloc-wrapper.
50776
50777 2008-04-13  Bruno Haible  <bruno@clisp.org>
50778
50779         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50780
50781 2008-04-13  Bruno Haible  <bruno@clisp.org>
50782
50783         Fix AIX compilation failure introduced on 2008-04-02.
50784         * tests/test-frexp.c (exp): Undefine before redefining.
50785         * tests/test-frexpl.c (exp): Likewise.
50786
50787 2008-04-13  Bruno Haible  <bruno@clisp.org>
50788
50789         Work around a HP-UX stdio bug.
50790         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50791         * tests/test-ftello.c (main): Likewise.
50792         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50793         * doc/posix-functions/ftello.texi: Likewise.
50794
50795 2008-04-13  Bruno Haible  <bruno@clisp.org>
50796
50797         Make test-signbit pass on HP-UX/hppa.
50798         * tests/test-signbit.c (minus_zerol): New variable.
50799         (test_signbitl): Use it.
50800
50801 2008-04-13  Bruno Haible  <bruno@clisp.org>
50802
50803         Make truncl work on OSF/1 4.0.
50804         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50805         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50806         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50808         HAVE_DECL_TRUNCL.
50809         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50810         HAVE_DECL_TRUNCL.
50811         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50812
50813 2008-04-13  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50816
50817 2008-04-13  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50820         expression, so as to avoid HP-UX 11 cc compiler bug.
50821
50822 2008-04-13  Bruno Haible  <bruno@clisp.org>
50823
50824         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50825
50826 2008-04-13  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/git-merge-changelog.c: Remove empty declaration outside of
50829         functions.
50830
50831 2008-04-13  Bruno Haible  <bruno@clisp.org>
50832
50833         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50834
50835 2008-04-13  Bruno Haible  <bruno@clisp.org>
50836
50837         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50838         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50839         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50840         also if it exists but lacks definitions of the SHUT_* macros.
50841         * modules/sys_socket (Description): Update.
50842         Reported by Elbert Pol <e.pol@chello.nl>.
50843
50844 2008-04-13  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/localcharset.c (OS2): Don't redefine if already defined.
50847         Reported by Elbert Pol <e.pol@chello.nl>.
50848
50849 2008-04-13  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/binary-io.h [__EMX__]: Include <io.h>.
50852         Reported by Elbert Pol <e.pol@chello.nl>.
50853
50854 2008-04-12  Bruno Haible  <bruno@clisp.org>
50855
50856         * lib/fpucw.h: Enable the definitions also for x86_64.
50857         Needed for NetBSD/x86_64.
50858         Reported by Thomas Klausner <tk@giga.or.at>.
50859
50860 2008-04-12  Bruno Haible  <bruno@clisp.org>
50861
50862         * tests/test-strtod.c: Include isnand.h.
50863         (main): Use isnand instead of isnan.
50864         Reported by Jim Meyering.
50865
50866 2008-04-12  Bruno Haible  <bruno@clisp.org>
50867
50868         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50869         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50870
50871 2008-04-12  Jim Meyering  <meyering@redhat.com>
50872
50873         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50874
50875 2008-04-12  Bruno Haible  <bruno@clisp.org>
50876
50877         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50878         Reported by Elbert Pol <e.pol@chello.nl>.
50879
50880 2008-04-12  Eric Blake  <ebb9@byu.net>
50881
50882         Work around Solaris 10 math.h bug.
50883         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50884         (gl_MATH_H_DEFAULTS): Set up default.
50885         * modules/math (Makefile.am): Replace new indicators.
50886         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50887         * tests/test-math.c (main): Test this.
50888         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50889         * doc/posix-headers/math.texi (math.h): Mention bug.
50890         Reported by Nelson H. F. Beebe and Jim Meyering.
50891
50892 2008-04-11  Bruno Haible  <bruno@clisp.org>
50893
50894         Adapt to future versions of Apple GCC.
50895         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50896         Reported by Peter O'Gorman <peter@pogma.com>.
50897
50898 2008-04-11  Bruno Haible  <bruno@clisp.org>
50899
50900         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50901
50902 2008-04-11  Bruno Haible  <bruno@clisp.org>
50903
50904         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50905
50906         * modules/getaddrinfo-tests (Makefile.am): Define
50907         test_getaddrinfo_LDADD.
50908
50909 2008-04-11  Bruno Haible  <bruno@clisp.org>
50910
50911         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50912         (init): Fix syntax error.
50913         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50914         is declared.
50915
50916 2008-04-11  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50919         * modules/glob (Depends-on): Add stdbool.
50920
50921 2008-04-11  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/trim.c: Include <string.h>.
50924
50925 2008-04-11  Eric Blake  <ebb9@byu.net>
50926
50927         Avoid compile failure on OS/2.
50928         * lib/regex_internal.h (internal_function): Disable optimization
50929         on OS/2 (__EMX__), where it caused compiler error.
50930         Reported by Elbert Pol.
50931
50932 2008-04-11  Bruno Haible  <bruno@clisp.org>
50933
50934         Flush the standard error stream before aborting. Needed on mingw.
50935         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50936         * tests/test-array_list.c (ASSERT): Likewise.
50937         * tests/test-array_oset.c (ASSERT): Likewise.
50938         * tests/test-avltree_list.c (ASSERT): Likewise.
50939         * tests/test-avltree_oset.c (ASSERT): Likewise.
50940         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50941         * tests/test-binary-io.c (ASSERT): Likewise.
50942         * tests/test-byteswap.c (ASSERT): Likewise.
50943         * tests/test-c-ctype.c (ASSERT): Likewise.
50944         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50945         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50946         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50947         * tests/test-c-strstr.c (ASSERT): Likewise.
50948         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50949         * tests/test-canonicalize.c (ASSERT): Likewise.
50950         * tests/test-carray_list.c (ASSERT): Likewise.
50951         * tests/test-ceilf1.c (ASSERT): Likewise.
50952         * tests/test-ceilf2.c (ASSERT): Likewise.
50953         * tests/test-ceill.c (ASSERT): Likewise.
50954         * tests/test-count-one-bits.c (ASSERT): Likewise.
50955         * tests/test-fbufmode.c (ASSERT): Likewise.
50956         * tests/test-fflush2.c (ASSERT): Likewise.
50957         * tests/test-floorf1.c (ASSERT): Likewise.
50958         * tests/test-floorf2.c (ASSERT): Likewise.
50959         * tests/test-floorl.c (ASSERT): Likewise.
50960         * tests/test-fopen.c (ASSERT): Likewise.
50961         * tests/test-fpending.c (ASSERT): Likewise.
50962         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50963         * tests/test-fpurge.c (ASSERT): Likewise.
50964         * tests/test-freadable.c (ASSERT): Likewise.
50965         * tests/test-freadahead.c (ASSERT): Likewise.
50966         * tests/test-freading.c (ASSERT): Likewise.
50967         * tests/test-freadptr.c (ASSERT): Likewise.
50968         * tests/test-freadptr2.c (ASSERT): Likewise.
50969         * tests/test-freadseek.c (ASSERT): Likewise.
50970         * tests/test-freopen.c (ASSERT): Likewise.
50971         * tests/test-frexp.c (ASSERT): Likewise.
50972         * tests/test-frexpl.c (ASSERT): Likewise.
50973         * tests/test-fseek.c (ASSERT): Likewise.
50974         * tests/test-fseeko.c (ASSERT): Likewise.
50975         * tests/test-fstrcmp.c (ASSERT): Likewise.
50976         * tests/test-ftell.c (ASSERT): Likewise.
50977         * tests/test-ftello.c (ASSERT): Likewise.
50978         * tests/test-func.c (ASSERT): Likewise.
50979         * tests/test-fwritable.c (ASSERT): Likewise.
50980         * tests/test-fwriting.c (ASSERT): Likewise.
50981         * tests/test-getdelim.c (ASSERT): Likewise.
50982         * tests/test-getline.c (ASSERT): Likewise.
50983         * tests/test-i-ring.c (ASSERT): Likewise.
50984         * tests/test-iconv-utf.c (ASSERT): Likewise.
50985         * tests/test-iconv.c (ASSERT): Likewise.
50986         * tests/test-isfinite.c (ASSERT): Likewise.
50987         * tests/test-isnand.c (ASSERT): Likewise.
50988         * tests/test-isnanf.c (ASSERT): Likewise.
50989         * tests/test-isnanl.h (ASSERT): Likewise.
50990         * tests/test-ldexpl.c (ASSERT): Likewise.
50991         * tests/test-linked_list.c (ASSERT): Likewise.
50992         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50993         * tests/test-localename.c (ASSERT): Likewise.
50994         * tests/test-lseek.c (ASSERT): Likewise.
50995         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50996         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50997         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50998         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50999         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51000         * tests/test-mbschr.c (ASSERT): Likewise.
51001         * tests/test-mbscspn.c (ASSERT): Likewise.
51002         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51003         * tests/test-mbspbrk.c (ASSERT): Likewise.
51004         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51005         * tests/test-mbsrchr.c (ASSERT): Likewise.
51006         * tests/test-mbsspn.c (ASSERT): Likewise.
51007         * tests/test-mbsstr1.c (ASSERT): Likewise.
51008         * tests/test-mbsstr2.c (ASSERT): Likewise.
51009         * tests/test-mbsstr3.c (ASSERT): Likewise.
51010         * tests/test-memchr2.c (ASSERT): Likewise.
51011         * tests/test-memmem.c (ASSERT): Likewise.
51012         * tests/test-open.c (ASSERT): Likewise.
51013         * tests/test-printf-frexp.c (ASSERT): Likewise.
51014         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51015         * tests/test-printf-posix.c (ASSERT): Likewise.
51016         * tests/test-quotearg.c (ASSERT): Likewise.
51017         * tests/test-rbtree_list.c (ASSERT): Likewise.
51018         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51019         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51020         * tests/test-round1.c (ASSERT): Likewise.
51021         * tests/test-roundf1.c (ASSERT): Likewise.
51022         * tests/test-roundl.c (ASSERT): Likewise.
51023         * tests/test-signbit.c (ASSERT): Likewise.
51024         * tests/test-sleep.c (ASSERT): Likewise.
51025         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51026         * tests/test-snprintf.c (ASSERT): Likewise.
51027         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51028         * tests/test-stat-time.c (ASSERT): Likewise.
51029         * tests/test-strcasestr.c (ASSERT): Likewise.
51030         * tests/test-strerror.c (ASSERT): Likewise.
51031         * tests/test-striconv.c (ASSERT): Likewise.
51032         * tests/test-striconveh.c (ASSERT): Likewise.
51033         * tests/test-striconveha.c (ASSERT): Likewise.
51034         * tests/test-strsignal.c (ASSERT): Likewise.
51035         * tests/test-strstr.c (ASSERT): Likewise.
51036         * tests/test-strtod.c (ASSERT): Likewise.
51037         * tests/test-trunc1.c (ASSERT): Likewise.
51038         * tests/test-trunc2.c (ASSERT): Likewise.
51039         * tests/test-truncf1.c (ASSERT): Likewise.
51040         * tests/test-truncf2.c (ASSERT): Likewise.
51041         * tests/test-truncl.c (ASSERT): Likewise.
51042         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51043         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51044         * tests/test-vasnprintf.c (ASSERT): Likewise.
51045         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51046         * tests/test-vasprintf.c (ASSERT): Likewise.
51047         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51048         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51049         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51050         * tests/test-vsnprintf.c (ASSERT): Likewise.
51051         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51052         * tests/test-wcwidth.c (ASSERT): Likewise.
51053         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51054         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51055         * tests/test-xvasprintf.c (ASSERT): Likewise.
51056         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51057         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51058         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51059         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51060         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51061         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51062         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51063         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51064         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51065         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51066         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51067         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51068         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51069         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51070         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51071         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51072         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51073         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51074         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51075         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51076         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51077         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51078         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51079         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51080         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51081         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51082         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51083         * tests/unictype/test-combining.c (ASSERT): Likewise.
51084         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51085         * tests/unictype/test-digit.c (ASSERT): Likewise.
51086         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51087         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51088         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51089         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51090         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51091         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51092         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51093         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51094         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51095         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51096         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51097         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51098         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51099         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51100         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51101         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51102         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51103         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51104         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51105         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51106         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51107         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51108         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51109         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51110         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51111         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51112         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51113         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51114         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51115         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51116         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51117         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51118         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51119         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51120         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51121         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51122         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51123         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51124         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51125         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51126         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51127         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51128         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51129         Reported by Eric Blake.
51130
51131 2008-04-11  Bruno Haible  <bruno@clisp.org>
51132
51133         * lib/wchar.in.h: Tweak comment.
51134
51135 2008-04-11  Bruno Haible  <bruno@clisp.org>
51136
51137         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51138         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51139         gl_COMMON.
51140         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51141
51142 2008-04-11  Bruno Haible  <bruno@clisp.org>
51143
51144         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51145
51146 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51147
51148         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51149         of attempting to use non-existing /dev/*random.  Based on patch
51150         from Adam Strzelecki <ono@java.pl> in
51151         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51152
51153 2008-04-08  Bruno Haible  <bruno@clisp.org>
51154
51155         Add tentative support for emx+gcc.
51156         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51157         * lib/fpurge.c (fpurge): Likewise.
51158         * lib/freadable.c (freadable): Likewise.
51159         * lib/freadahead.c (freadahead): Likewise.
51160         * lib/freading.c (freading): Likewise.
51161         * lib/freadptr.c (freadptr): Likewise.
51162         * lib/freadseek.c (freadptrinc): Likewise.
51163         * lib/fseeko.c (rpl_fseeko): Likewise.
51164         * lib/fseterr.c (fseterr): Likewise.
51165         * lib/fwritable.c (fwritable): Likewise.
51166         * lib/fwriting.c (fwriting): Likewise.
51167         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51168
51169 2008-04-09  Eric Blake  <ebb9@byu.net>
51170
51171         Avoid some autoconf warnings.
51172         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51173         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51174         * m4/afs.m4 (gl_AFS): Likewise.
51175         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51176         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51177         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51178         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51179         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51180         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51181         (AC_CHECK_DECLS_ONCE): Likewise.
51182         Rename file...
51183         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51184         gnulib-tool requires autoconf 2.59 or better.
51185         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51186
51187 2008-04-08  Eric Blake  <ebb9@byu.net>
51188
51189         Use 'git describe --match' if present (added in git 1.5.5).
51190         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51191         if possible.
51192
51193 2008-04-08  Bruno Haible  <bruno@clisp.org>
51194
51195         Add tentative support for OpenServer.
51196         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51197         _ptr, _cnt.
51198         * lib/fpurge.c (fpurge): Likewise.
51199         * lib/freadable.c (freadable): Likewise.
51200         * lib/freadahead.c (freadahead): Likewise.
51201         * lib/freading.c (freading): Likewise.
51202         * lib/freadptr.c (freadptr): Likewise.
51203         * lib/freadseek.c (freadptrinc): Likewise.
51204         * lib/fseeko.c (rpl_fseeko): Likewise.
51205         * lib/fseterr.c (fseterr): Likewise.
51206         * lib/fwritable.c (fwritable): Likewise.
51207         * lib/fwriting.c (fwriting): Likewise.
51208         Reported by Roger Cornelius <rac@tenzing.org> and
51209         Brian K. White <brian@aljex.com>.
51210
51211 2008-04-06  Jim Meyering  <meyering@redhat.com>
51212
51213         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51214
51215 2008-04-06  Bruno Haible  <bruno@clisp.org>
51216
51217         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51218         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51219         * tests/test-printf-posix.sh: Likewise.
51220         * tests/test-vfprintf-posix.sh: Likewise.
51221         * tests/test-vprintf-posix.sh: Likewise.
51222         * tests/test-xprintf-posix.sh: Likewise.
51223
51224 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51225
51226         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51227         hide error from 'ls', needed on OS/2.
51228         Report by Elbert Pol <elbert.pol@gmail.com>.
51229
51230 2008-04-04  Eric Blake  <ebb9@byu.net>
51231
51232         Make test-fseeko.c failures meaningful.
51233         * tests/test-fseeko.c: Print line number on failure.
51234         * tests/test-fseek.c: Likewise.
51235         Reported by Nelson H. F. Beebe.
51236
51237         Improve strtod bug detection check.
51238         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51239         required for Solaris 10.
51240         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51241
51242 2008-04-04  Bruno Haible  <bruno@clisp.org>
51243
51244         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51245         by m4/setenv.m4.
51246
51247 2008-04-03  Eric Blake  <ebb9@byu.net>
51248
51249         Ensure sane .version contents.
51250         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51251         version string.
51252         * build-aux/git-version-gen: Improve documentation.
51253
51254         Make GNU make output nicer.
51255         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51256         MAKECMDGOALS to enforce message for all command line targets.  Set
51257         srcdir for use in maint.mk.
51258
51259         Another maintainer tweak.
51260         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51261         a target that regenerates version.
51262
51263 2008-04-03  Jim Meyering  <meyering@redhat.com>
51264
51265         vc-list-files: don't cause coreutils "make po-check" failure
51266         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51267
51268 2008-04-03  Eric Blake  <ebb9@byu.net>
51269
51270         Allow VPATH usage of vc-list-files.
51271         * build-aux/vc-list-files (scriptversion): Add timestamp.
51272         (options): Add --help, --version, -C.
51273         (CVS): Support installed cvsu.
51274
51275 2008-04-02  Bruno Haible  <bruno@clisp.org>
51276
51277         Avoid some "statement with no effect" warnings from gcc.
51278         * tests/test-wctype.c (main): Explicitly ignore unused values.
51279         Reported by Jim Meyering.
51280
51281 2008-04-02  Jim Meyering  <meyering@redhat.com>
51282
51283         Avoid some warnings from "gcc -Wshadow".
51284         * tests/test-frexp.c (exp): Define to a different identifier.
51285         * tests/test-frexpl.c (exp): Likewise.
51286
51287 2008-04-03  Jim Meyering  <meyering@redhat.com>
51288
51289         bootstrap: remove dangling *.[ch] symlinks from lib
51290         * build-aux/bootstrap [dangling symlink removal]: Move find's
51291         -depth option to precede all others, to avoid a warning.
51292         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51293
51294 2008-04-02  Bruno Haible  <bruno@clisp.org>
51295
51296         Avoid some warnings from "gcc -Wshadow".
51297         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51298         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51299         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51300         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51301         Reported by Jim Meyering.
51302
51303 2008-04-01  Bruno Haible  <bruno@clisp.org>
51304
51305         Fix test to work on IRIX 6.5 with cc.
51306         * tests/test-math.c (numeric_equal): New function.
51307         (main): Use it.
51308
51309 2008-04-01  Bruno Haible  <bruno@clisp.org>
51310
51311         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51312
51313 2008-04-01  Bruno Haible  <bruno@clisp.org>
51314
51315         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51316         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51317         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51318         (Depends-on): Remove math.
51319
51320         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51321         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51322         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51323         (Depends-on): Remove math.
51324
51325         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51326         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51327         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51328         (Depends-on): Remove math.
51329         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51330         (Depends-on): Remove math.
51331
51332         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51333         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51334         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51335         (Depends-on): Remove math.
51336         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51337         (Depends-on): Remove math.
51338
51339         * tests/test-round1.c: Include nan.h.
51340         (main): Use NaNd instead of NAN.
51341         * modules/round-tests (Files): Add tests/nan.h.
51342
51343         * tests/test-trunc1.c: Include nan.h.
51344         (main): Use NaNd instead of NAN.
51345         * modules/trunc-tests (Files): Add tests/nan.h.
51346
51347         * tests/test-roundf1.c: Include nan.h.
51348         (main): Use NaNf instead of NAN.
51349         * modules/roundf-tests (Files): Add tests/nan.h.
51350
51351         * tests/test-truncf1.c: Include nan.h.
51352         (main): Use NaNf instead of NAN.
51353         * modules/truncf-tests (Files): Add tests/nan.h.
51354
51355         * tests/test-ceilf1.c: Include nan.h.
51356         (main): Use NaNf instead of NAN.
51357         * modules/ceilf-tests (Files): Add tests/nan.h.
51358
51359         * tests/test-floorf1.c: Include nan.h.
51360         (main): Use NaNf instead of NAN.
51361         * modules/floorf-tests (Files): Add tests/nan.h.
51362
51363         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51364         (main): Use NaNf instead of NAN.
51365         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51366
51367         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51368         (main): Use NaNd instead of NAN.
51369         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51370
51371         * tests/test-frexp.c: Include nan.h.
51372         (main): Use NaNd instead of NAN.
51373         * modules/frexp-tests (Files): Add tests/nan.h.
51374
51375         * lib/isnan.c: Don't include <math.h>.
51376         (FUNC): Don't use NAN macro.
51377         * modules/isnand-nolibm (Depends-on): Remove math.
51378         * modules/isnanf-nolibm (Depends-on): Remove math.
51379         * modules/isnanl (Depends-on): Remove math.
51380         * modules/isnanl-nolibm (Depends-on): Remove math.
51381
51382         * tests/nan.h: New file.
51383
51384 2008-04-01  Eric Blake  <ebb9@byu.net>
51385
51386         Fix typos.
51387         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51388         values to be the right type.
51389
51390         For now, cater to gnulib strtod inaccuracies.
51391         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51392         fractional results.  While not as nice from a QoI perspective, it
51393         is a quicker patch than correctly implementing decimal to binary
51394         rounding.
51395
51396 2008-03-31  Eric Blake  <ebb9@byu.net>
51397
51398         Guarantee a definition of NAN.
51399         * lib/math.in.h (NAN): Define if missing.
51400         * tests/test-math.c (main): Test it.
51401         * doc/posix-headers/math.texi (math.h): Document this.
51402         * lib/isnan.c (rpl_isnand): Use it.
51403         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51404         * tests/test-floorf1.c (NaN): Likewise.
51405         * tests/test-frexp.c (NaN): Likewise.
51406         * tests/test-isnand.c (NaN): Likewise.
51407         * tests/test-isnanf.c (NaN): Likewise.
51408         * tests/test-round1.c (NaN): Likewise.
51409         * tests/test-roundf1.c (NaN): Likewise.
51410         * tests/test-snprintf-posix.h (NaN): Likewise.
51411         * tests/test-sprintf-posix.h (NaN): Likewise.
51412         * tests/test-trunc1.c (NaN): Likewise.
51413         * tests/test-truncf1.c (NaN): Likewise.
51414         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51415         * tests/test-vasprintf-posix.c (NaN): Likewise.
51416         * modules/isnand-nolibm (Depends-on): Add math.
51417         * modules/isnanf-nolibm (Depends-on): Likewise.
51418         * modules/isnanl (Depends-on): Likewise.
51419         * modules/isnanl-nolibm (Depends-on): Likewise.
51420         * modules/snprintf-posix-tests (Depends-on): Likewise.
51421         * modules/sprintf-posix-tests (Depends-on): Likewise.
51422         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51423         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51424         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51425         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51426
51427 2008-03-31  Bruno Haible  <bruno@clisp.org>
51428
51429         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51430         * doc/posix-functions/strtod.texi: Likewise.
51431
51432 2008-03-31  Bruno Haible  <bruno@clisp.org>
51433
51434         * tests/test-strtod.c (main): Don't use C99 syntax.
51435
51436 2008-03-31  Bruno Haible  <bruno@clisp.org>
51437
51438         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51439         Reported by Eric Blake.
51440
51441 2008-03-31  Jim Meyering  <meyering@redhat.com>
51442
51443         Don't compare actual signbit return values.
51444         * tests/test-strtod.c (main): Rather, compare only their
51445         zero/non-zero nature.
51446
51447 2008-03-31  Eric Blake  <ebb9@byu.net>
51448
51449         More strtod documentation.
51450         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51451         failures as distinct bugs.
51452
51453 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51456         Problem reported by Erik Benada in
51457         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51458
51459 2008-03-30  Bruno Haible  <bruno@clisp.org>
51460
51461         * tests/test-strtod.c: Add comments about which assertion fails on which
51462         platform.
51463         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51464
51465 2008-03-30  Eric Blake  <ebb9@byu.net>
51466
51467         Test signbit behavior on zeros.
51468         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51469         (test_signbitd, test_signbitl): Likewise.
51470
51471         More strtod touchups.
51472         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51473         sign of negative underflow, for now.  Use .5, not .1.
51474         * doc/posix-functions/strtod.texi (strtod): Mention these
51475         limitations.
51476         Reported by Jim Meyering.
51477
51478 2008-03-30  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51481         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51482
51483 2008-03-30  Bruno Haible  <bruno@clisp.org>
51484
51485         Avoid failure when attempting to return empty iconv results on some
51486         platforms.
51487         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51488         allocation, don't report ENOMEM when the resulting string is empty.
51489
51490 2008-03-30  Bruno Haible  <bruno@clisp.org>
51491
51492         Fix buffer overrun.
51493         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51494         Don't consider the width for tmp_length. Check count against tmp_length
51495         before doing the padding. Ensure enough allocation during padding.
51496
51497 2008-03-30  Eric Blake  <ebb9@byu.net>
51498
51499         strtod touchups.
51500         * lib/strtod.c (strtod): Avoid compiler warnings.
51501         Reported by Jim Meyering.
51502
51503 2008-03-30  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51506         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51507         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51508         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51509         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51510         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51511         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51512         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51513
51514         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51515         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51516         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51517         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51518         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51519         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51520         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51521         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51522
51523         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51524         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51525         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51526         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51527         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51528         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51529         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51530         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51531
51532         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51533         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51534
51535         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51536         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51537
51538         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51539         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51540
51541         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51543         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51544
51545         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51547         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51548
51549         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51551         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51552
51553         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51555         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51556
51557         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51558         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51560         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51561         (Depends-on): Add EOVERFLOW.
51562         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51563         (Depends-on): Add EOVERFLOW.
51564         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51565         (Depends-on): Add EOVERFLOW.
51566         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51567         (Depends-on): Add EOVERFLOW.
51568         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51569         (Depends-on): Add EOVERFLOW.
51570         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51571         (Depends-on): Add EOVERFLOW.
51572         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51573         (Depends-on): Add EOVERFLOW.
51574         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51575         (Depends-on): Add EOVERFLOW.
51576
51577         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51579         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51580
51581         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51582         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51583         * modules/snprintf (Depends-on): Add EOVERFLOW.
51584
51585         * lib/poll.c (EOVERFLOW): Remove fallback.
51586         * modules/poll (Depends-on): Add EOVERFLOW.
51587
51588         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51589         * modules/getugroups (Depends-on): Add EOVERFLOW.
51590
51591         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51592         * modules/getdelim (Depends-on): Add EOVERFLOW.
51593
51594         * lib/ftell.c (EOVERFLOW): Remove fallback.
51595         * modules/ftell (Depends-on): Add EOVERFLOW.
51596
51597         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51598         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51599         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51600
51601         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51602
51603         * modules/EOVERFLOW-tests: New file.
51604         * tests/test-EOVERFLOW.c: New file.
51605
51606         * modules/EOVERFLOW: New file.
51607         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51608
51609 2008-03-30  Bruno Haible  <bruno@clisp.org>
51610
51611         Fix bug introduced on 2007-06-10.
51612         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51613         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51614
51615 2008-03-30  Bruno Haible  <bruno@clisp.org>
51616
51617         Improve freadseek's efficiency after ungetc.
51618         * lib/freadseek.c: Include freadahead.h.
51619         (freadptrinc): New function, extracted from freadseek.
51620         (freadseek): Use it in a loop. Use freadahead to determine the number
51621         of loop iterations.
51622         * modules/freadseek (Depends-on): Add freadahead.
51623         (configure.ac): Require AC_C_INLINE.
51624
51625 2008-03-30  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/freadseek.c (freadseek): Don't ignore the return value of
51628         freadptr.
51629
51630 2008-03-29  Eric Blake  <ebb9@byu.net>
51631
51632         Add hex float support.
51633         * modules/strtod (Depends-on): Add c-ctype.
51634         (Link): Mention POW_LIB.
51635         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51636         whitespace between 'e' and exponent.
51637         * tests/test-strtod.c (main): Enable hex float tests.
51638         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51639         now provides.
51640
51641         Document various strtod bugs, with some fixes.
51642         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51643         "-0x", "inf", "nan", and hex constants.
51644         * doc/posix-functions/atof.texi (atof): Likewise.
51645         * modules/stdlib (Makefile.am): Support strtod.
51646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51647         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51648         detect additional strtod bugs.
51649         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51650         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51651         bool where appropriate.  Parse 'inf' and 'nan'.
51652         * tests/test-strtod.c: New file.
51653         * modules/strtod (Depends-on): Add stdbool, stdlib.
51654         (configure.ac): Turn on module indicator.
51655         * modules/strtod-tests: New module.
51656
51657 2008-03-29  Eric Blake  <ebb9@byu.net>
51658
51659         Fix ftell on mingw.
51660         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51661         * modules/ftell-tests (Depends-on): Add binary-io.
51662         * modules/ftello-tests (Depends-on): Likewise.
51663         * tests/test-ftell.c (main): Enhance test to cover behavior after
51664         ungetc.  Enforce binary mode.
51665         * tests/test-ftello.c (main): Likewise.
51666
51667         Pass test-freadseek on cygwin.
51668         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51669         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51670         ungetc buffer.
51671
51672         * tests/test-fflush2.c (main): Fix typo.
51673
51674 2008-03-29  Bruno Haible  <bruno@clisp.org>
51675
51676         * tests/test-fflush2.c (main): Temporarily disable the contents of
51677         this test.
51678         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51679         Reported by Eric Blake.
51680
51681 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51682
51683         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51684         (GC_SHA224_DIGEST_SIZE): Add.
51685
51686         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51687         (gc_hash_digest_length): Likewise.
51688         (gc_hash_buffer): Likewise.
51689
51690 2008-03-25  Bruno Haible  <bruno@clisp.org>
51691
51692         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51693         detail which gettext release to use.
51694         Reported by Simon Josefsson.
51695
51696 2008-03-26  Jim Meyering  <meyering@redhat.com>
51697
51698         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51699         * modules/gnumakefile (clean-GNUmakefile): Also, use
51700         test ... && ... || : syntax rather than if-then ... fi.
51701
51702         gnumakefile: Don't double-quote-expand $(VPATH) value.
51703         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51704
51705 2008-03-24  Eric Blake  <ebb9@byu.net>
51706
51707         Alter GNUmakefile to install into top directory.
51708         * modules/maintainer-makefile: Split, and add dependency...
51709         * modules/gnumakefile: to this new module.
51710         * build-aux/GNUmakefile: Move...
51711         * top/GNUmakefile: ...here.
51712         * build-aux/maint.mk: Move...
51713         * top/maint.mk: ...here.
51714         * MODULES.html.sh (Support for maintaining...): Document new
51715         module.
51716
51717 2008-03-23  Bruno Haible  <bruno@clisp.org>
51718
51719         * gnulib-tool: New options --vc-files, --no-vc-files.
51720         (func_usage): Document them.
51721         (vc_files): New variable.
51722         (func_import): Consider vc_files.
51723         (func_create_testdir): Set vc_files to empty.
51724         Suggested by Jim Meyering and Karl Berry.
51725
51726 2008-03-23  Bruno Haible  <bruno@clisp.org>
51727
51728         Fix regex compilation error on HP-UX 11.
51729         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51730         * modules/regex (Files): Add m4/mbstate_t.m4.
51731         Reported by Ton Voon <ton.voon@altinity.com>.
51732
51733 2008-03-23  Bruno Haible  <bruno@clisp.org>
51734
51735         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51736
51737 2008-03-23  Eric Blake  <ebb9@byu.net>
51738             Bruno Haible  <bruno@clisp.org>
51739
51740         Install files from top/ in the destination directory.
51741         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51742         augmentation also for the files from top/.
51743         (func_import, func_create_testdir): Rewrite file names:
51744         top/filename -> filename.
51745
51746 2008-03-23  Bruno Haible  <bruno@clisp.org>
51747
51748         Tweak "gnulib --version" output.
51749         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51750
51751 2008-03-23  Bruno Haible  <bruno@clisp.org>
51752
51753         Tweak "gnulib --version" output.
51754         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51755         rather than contents of ChangeLog, when possible.
51756
51757 2008-03-21  Eric Blake  <ebb9@byu.net>
51758
51759         More --version tweaks.
51760         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51761         date of last ChangeLog entry.
51762
51763 2008-03-21  Jim Meyering  <meyering@redhat.com>
51764
51765         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51766
51767 2008-03-20  Eric Blake  <ebb9@byu.net>
51768
51769         VPATH fix.
51770         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51771
51772 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51773
51774         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51775         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51776
51777 2008-03-20  Eric Blake  <ebb9@byu.net>
51778
51779         Sync GNUmakefile with coreutils.
51780         * build-aux/GNUmakefile (have-Makefile): Rename...
51781         (_have-Makefile): ...to this, for namespace consideration.
51782         (GNUmakefile.cfg): Include, if present.
51783         (_autoreconf): Define a default.
51784         (_is-dist-target): New rule for rebuilds to pick up intra-release
51785         version.
51786         (maint-cfg.mk): Rename...
51787         (cfg.mk): ...to this.
51788
51789 2008-03-18  Jim Meyering  <meyering@redhat.com>
51790
51791         New script and module: mktempd
51792         * MODULES.html.sh (maint+release support): Add mktempd.
51793         * build-aux/mktempd: New file.
51794         * modules/mktempd: New file.
51795
51796 2008-03-15  Jim Meyering  <meyering@redhat.com>
51797
51798         Undo last change.
51799         * lib/sha1.c, lib/md5.c: 63 != ~63.
51800         Reported by Andreas Schwab.
51801
51802         sha1.c, md5.c: Hoist a redundant expression.
51803         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51804         "ctx->buflen" only once, before calling *_process_block.
51805         * lib/md5.c (md5_process_bytes): Likewise.
51806
51807 2008-03-14  Eric Blake  <ebb9@byu.net>
51808
51809         Bump copyright year in files generated by gnulib-tool.
51810         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51811         gnulib-tool, rather than hard-coding it.
51812
51813         Fix 'gnulib-tool --version' output to work with git.
51814         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51815         (startup): ...here.
51816         (func_version): Use it to invoke git-version-gen, rather than
51817         relying on CVS keyword expansion.  Modernize wording.
51818         (cvsdatestamp, last_checkin_date, version): Kill unused
51819         variables.
51820
51821 2008-03-12  Jim Meyering  <meyering@redhat.com>
51822
51823         Recognize optional cast of the argument to free.
51824         * build-aux/useless-if-before-free: Update regexps.
51825
51826         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51827
51828 2008-03-11  Bruno Haible  <bruno@clisp.org>
51829
51830         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51831         by a single package.
51832         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51833         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51834         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51835         Reported by Sam Steingold <sds@gnu.org>.
51836
51837 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51838
51839         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51840         repositories.
51841
51842 2008-03-11  Bruno Haible  <bruno@clisp.org>
51843
51844         Avoid conflicts between local macro definitions.
51845         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51846         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51847
51848 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51849             Bruno Haible  <bruno@clisp.org>
51850
51851         Make va_copy work with some version of xlc on AIX 5.1.
51852         * lib/stdarg.in.h: New file.
51853         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51854         On AIX, use a <stdarg.h> file substitute.
51855         * modules/stdarg (Files): Add lib/stdarg.in.h.
51856         (Depends-on): Add include_next.
51857         (Makefile.am): Build a stdarg.h substitute if requested.
51858         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51859
51860 2008-03-10  Bruno Haible  <bruno@clisp.org>
51861
51862         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51863         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51864         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51865
51866 2008-03-10  Bruno Haible  <bruno@clisp.org>
51867
51868         * modules/stdlib (Depends-on): Add include_next, remove
51869         absolute-header.
51870
51871 2008-03-09  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/freadahead.h (freadahead): Document more precisely.
51874         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51875         the sum of both buffer sizes.
51876         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51877         * NEWS: Document the change.
51878
51879 2008-03-09  Bruno Haible  <bruno@clisp.org>
51880
51881         Extend freadptr to return also the buffer size.
51882         * lib/freadptr.h (freadptr): Add sizep argument.
51883         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51884         (freadptr): Add sizep argument. Determine buffer size like freadahead
51885         does.
51886         * tests/test-freadptr.c: Don't include freadahead.h.
51887         (main): Adapt for new calling convention of freadptr.
51888         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51889         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51890         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51891         tests/test-freadptr2.sh.
51892         (Depends): Remove freadahead.
51893         (TESTS): Add test-freadptr2.sh.
51894         (check_PROGRAMS): Add test-freadptr2.
51895
51896 2008-03-09  Bruno Haible  <bruno@clisp.org>
51897
51898         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51899         Report and solution by Simon Josefsson.
51900
51901 2008-03-06  Bruno Haible  <bruno@clisp.org>
51902
51903         Make fflush after ungetc work on BSD platforms.
51904         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51905         * tests/test-fflush2.c: New file.
51906         * tests/test-fflush2.sh: New file.
51907         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51908         tests/test-fflush2.c.
51909         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51910         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51911
51912 2008-03-06  Eric Blake  <ebb9@byu.net>
51913
51914         Likewise for ftello.
51915         * modules/ftello (Dependencies): Add extensions.
51916         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51917
51918 2008-03-06  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/fseeko (Dependencies): Add extensions.
51921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51922         Needed on glibc systems.
51923
51924 2008-03-06  Bruno Haible  <bruno@clisp.org>
51925
51926         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51927         email address.
51928         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51929
51930 2008-03-06  Bruno Haible  <bruno@clisp.org>
51931
51932         * users.txt: Add libgnupdf.
51933
51934 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51935
51936         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51937         (Header File Substitutes, Function Substitutes,
51938         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51939         (Build robot for gnulib): Fix typo.
51940
51941 2008-03-06  Bruno Haible  <bruno@clisp.org>
51942
51943         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51944         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51945
51946 2008-03-06  Bruno Haible  <bruno@clisp.org>
51947
51948         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51949         * doc/gnulib.texi: Include it.
51950
51951 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51952
51953         * modules/func (License): Change license to unlimited; there was
51954         no LGPL parts in the module anyway.
51955
51956 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51957
51958         * modules/__func__: Renamed to modules/func.
51959         * modules/__func__-tests: Renamed to modules/func-tests.
51960         * tests/test-__func__.c: Renamed to tests/test-func.c.
51961         * m4/__func__.m4: Renamed to m4/func.m4.
51962         * doc/gnulib.texi (__func__): Section renamed to func.
51963         Suggested by Eric Blake <ebb9@byu.net>.
51964
51965 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51966
51967         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51968         about __func__.  Make example self-contained.  Suggested by Eric
51969         Blake <ebb9@byu.net>.
51970
51971         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51972         Suggested by Eric Blake <ebb9@byu.net>.
51973
51974 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51975
51976         * modules/__func__: New file.
51977         * modules/__func__-tests: New file.
51978         * tests/test-__func__.c: New file.
51979         * m4/__func__.m4: New file.
51980         * doc/gnulib.texi (__func__): Document __func__ module.
51981
51982 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51983
51984         * modules/byteswap (License): Re-license as LGPLv2+.
51985
51986 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51987
51988         * doc/Makefile: Add pdf target.
51989
51990 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51991
51992         * modules/inline (License): Use 'unlimited', since there are only
51993         *.m4 files in this module.
51994
51995 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51996             Bruno Haible  <bruno@clisp.org>
51997
51998         Add support for HP C 7.1 on OpenVMS 8.3.
51999         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52000
52001 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52002
52003         Update VMS specifics.
52004         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52005
52006 2008-03-02  Jim Meyering  <meyering@redhat.com>
52007
52008         Remove the last dependency on the "free" module.
52009         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52010         Reported by Bob Proulx.
52011
52012         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52013
52014         Remove useless "if" tests before free.  Deprecate "free" module.
52015         * doc/posix-functions/free.texi: Mention that this
52016         module is no longer useful.
52017         * modules/free (Notice): Say this module is obsolete.
52018         * modules/readutmp (Depends-on): Remove free.
52019         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52020         * lib/putenv.c (putenv): Likewise.
52021         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52022         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52023         * tests/test-c-strcasestr.c (main): Likewise.
52024         * tests/test-c-strstr.c (main): Likewise.
52025         * tests/test-mbscasestr1.c (main): Likewise.
52026         * tests/test-mbscasestr2.c (main): Likewise.
52027         * tests/test-mbsstr1.c (main): Likewise.
52028         * tests/test-mbsstr2.c (main): Likewise.
52029         * tests/test-memmem.c (main): Likewise.
52030         * tests/test-strcasestr.c (main): Likewise.
52031         * tests/test-striconv.c (main): Likewise.
52032         * tests/test-striconveh.c (main): Likewise.
52033         * tests/test-striconveha.c (main): Likewise.
52034         * tests/test-strstr.c (main): Likewise.
52035
52036         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52037
52038         bootstrap: sync from coreutils again
52039         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52040
52041 2008-03-01  Jim Meyering  <meyering@redhat.com>
52042
52043         bootstrap: sync from coreutils
52044         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52045         also when the target doesn't exist.
52046
52047 2008-03-01  Eric Blake  <ebb9@byu.net>
52048
52049         Fix bugs in last patch.
52050         * lib/memchr2.c (memchr2): Fix typo.
52051         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52052         extension.
52053         Reported by Bruce Korb.
52054
52055         New module 'memchr2'.
52056         * modules/memchr2: New file.
52057         * modules/memchr2-tests: Likewise.
52058         * lib/memchr2.h: Likewise.
52059         * lib/memchr2.c: Likewise, based on memchr.c.
52060         * tests/test-memchr2.c: New test.
52061         * MODULES.html.sh (String handling): Add memchr2.
52062
52063 2008-02-29  Bruno Haible  <bruno@clisp.org>
52064
52065         * modules/freadseek-tests: New file.
52066         * tests/test-freadseek.sh: New file.
52067         * tests/test-freadseek.c: New file.
52068
52069         New module 'freadseek'.
52070         * modules/freadseek: New file.
52071         * lib/freadseek.h: New file.
52072         * lib/freadseek.c: New file.
52073         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52074
52075 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52076
52077         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52078         wydawca.
52079
52080         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52081         program_invocation_name and program_invocation_short_name are
52082         present.
52083
52084 2008-02-28  Bruno Haible  <bruno@clisp.org>
52085
52086         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52087         * tests/test-freadptr.sh: Also test non-seekable stdin.
52088
52089 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52090
52091         * build-aux/bootstrap (source_base, m4_base)
52092         (doc_base, tests_base): New variables.
52093         (gnulib_tool_options): Do not hardcode base directories, use
52094         the above variables instead.
52095
52096 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52097
52098         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52099
52100 2008-02-28  Bruno Haible  <bruno@clisp.org>
52101
52102         * modules/freadptr-tests: New file.
52103         * tests/test-freadptr.sh: New file.
52104         * tests/test-freadptr.c: New file.
52105
52106         New module 'freadptr'.
52107         * modules/freadptr: New file.
52108         * lib/freadptr.h: New file.
52109         * lib/freadptr.c: New file.
52110         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52111
52112 2008-02-26  Karl Berry  <karl@freefriends.org>
52113
52114         Sync from Libtool:
52115         * libltdl/argz.c (argz_add, argz_count): New functions.
52116         * libltdl/argz.in.h: Declare them.
52117         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52118
52119 2008-02-22  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52122         is a pointer type.  Needed for HP-UX 10.
52123         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52124         * doc/posix-functions/gmtime_r.texi: Likewise.
52125         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52126
52127 2008-02-24  Bruno Haible  <bruno@clisp.org>
52128
52129         * modules/environ-tests: New file.
52130         * tests/test-environ.c: New file.
52131
52132         New module 'environ'.
52133         * modules/environ: New file.
52134         * lib/unistd.in.h (environ): New declaration.
52135         * m4/environ.m4: New file.
52136         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52137         after use.
52138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52139         HAVE_DECL_ENVIRON.
52140         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52141         HAVE_DECL_ENVIRON.
52142         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52143         wrong claim that 'environ' is missing on some systems.
52144         * modules/execute (Depends-on): Add environ.
52145         * lib/execute.c (environ): Remove fallback declaration.
52146         * modules/pipe (Depends-on): Add environ.
52147         * lib/pipe.c (environ): Remove fallback declaration.
52148         * modules/setenv (Depends-on): Add environ.
52149         * lib/setenv.c (environ): Remove fallback declaration.
52150         * modules/unsetenv (Depends-on): Add environ.
52151         * lib/unsetenv.c (environ): Remove fallback declaration.
52152         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52153         m4/environ.m4.
52154         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52155         (gl_PREREQ_UNSETENV): Likewise.
52156
52157 2008-02-24  Bruno Haible  <bruno@clisp.org>
52158
52159         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52160
52161 2008-02-20  Bob Proulx  <bob@proulx.com>
52162
52163         Enable use of older two part flavor 'git describe'.
52164         * build-aux/git-version-gen: If using the older two part flavor of
52165         git version then recreate the third part now present in the
52166         newer three part flavor of git describe.
52167
52168 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52169
52170         * lib/fts.c (fts_build): Typo correction to comment.
52171
52172 2008-02-17  Bruno Haible  <bruno@clisp.org>
52173
52174         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52175         generating no-op conflicts.
52176
52177 2008-02-17  Bruno Haible  <bruno@clisp.org>
52178
52179         Speed up by 10%.
52180         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52181         result_entries, rather than an index-based loop.
52182
52183 2008-02-17  Bruno Haible  <bruno@clisp.org>
52184
52185         Speed up by 25%.
52186         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52187         'hashcode_cached'.
52188         (entry_create): New function.
52189         (entry_hashcode): Use the cached hashcode if possible.
52190         (read_changelog_file, try_split_merged_entry): Use entry_create.
52191
52192 2008-02-17  Bruno Haible  <bruno@clisp.org>
52193
52194         Speed up from O(n^2) to O(n) for long ChangeLog files.
52195         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52196         (read_changelog_file): Change implementation of entries_reversed list
52197         to rbtreehash.
52198         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52199
52200 2008-02-17  Bruno Haible  <bruno@clisp.org>
52201
52202         New option --split-merged-entry.
52203         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52204         (find_paragraph_end, try_split_merged_entry): New functions.
52205         (long_options): Add option --split-merged-entry.
52206         (usage): Document option --split-merged-entry.
52207         (main): Implement option --split-merged-entry.
52208         Reported by Eric Blake.
52209
52210 2008-02-17  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/git-merge-changelog.c: Include c-strstr.h.
52213         (main): Support the "git pull --rebase" situation.
52214         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52215         Reported by Eric Blake.
52216
52217 2008-02-16  Eric Blake  <ebb9@byu.net>
52218
52219         Avoid doubling \ in common case of "c-maybe" quoting style.
52220         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52221         eliding outer quotes.
52222         * lib/quotearg.h: Document this.
52223         * tests/test-quotearg.c (result_strings, inputs, results_g)
52224         (flag_results, locale_results): Test it by adding a new string to
52225         each test group.
52226         (compare_strings): Test new string.
52227
52228 2008-02-13  Eric Blake  <ebb9@byu.net>
52229
52230         Avoid trigraph quoting in default output.
52231         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52232         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52233         unless explicitly requested.
52234         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52235
52236 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52237
52238         Don't rely on signed integer overflowing to negative value.
52239         * lib/getugroups.c (getugroups): Include <limits.h>.
52240         Instead, compare against INT_MAX, and increment only if the test passes.
52241
52242 2008-02-13  Jim Meyering  <meyering@redhat.com>
52243         and Eric Blake  <ebb9@byu.net>
52244
52245         Avoid shadowing warning and compile errors on Linux.
52246         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52247         forwarding macros on Linux.
52248         (dcgettext): Define a stub, for Linux.
52249         (results_g, main): Avoid warnings.
52250
52251 2008-02-12  Eric Blake  <ebb9@byu.net>
52252
52253         Silence warning in last patch.
52254         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52255
52256         Quotearg part 4: add tests, fix c-maybe colon quoting.
52257         * lib/quotearg.h: Improve documentation.
52258         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52259         escapes when adding outer quotes.  When quoting trigraphs, use
52260         valid C notation.  When quoting NUL, omit extra characters if next
52261         character is not digit.  Alter prototype.
52262         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52263         callers.
52264         * modules/quotearg-tests: New module.
52265         * tests/test-quotearg.c: New test.
52266
52267 2008-02-07  Eric Blake  <ebb9@byu.net>
52268
52269         Quotearg part 3: add flag to control outer quote elision.
52270         * lib/quotearg.h (c_maybe_quoting_style): New style.
52271         (enum quoting_flags): Better documentation of flags.
52272         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52273         c-maybe style.
52274         (quotearg_buffer_restyled): Handle new flag to elide outer
52275         quotes.
52276
52277         Quotearg part 2: add flag that can control NUL elision.
52278         * lib/quotearg.h (set_quoting_flags): New prototype.
52279         * lib/quotearg.c (struct quoting_options): Add flag field.
52280         (set_quoting_flags): New function.
52281         (quotearg_buffer_restyled): Add flags parameter.
52282         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52283         (quotearg_n_options): Set the flag, since length cannot be
52284         returned.
52285         (quoting_options_from_style): Default flags correctly.
52286
52287         Quotearg part 1: more wrappers, restore quotearg_char state.
52288         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52289         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52290         (quotearg_colon_mem): New wrappers.
52291         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52292         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52293         functions.
52294         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52295         (quotearg_colon_mem): New functions.
52296
52297 2008-02-11  Bruno Haible  <bruno@clisp.org>
52298
52299         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52300         library in the current directory: it does not work with parallel make.
52301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52302
52303 2008-02-11  Bruno Haible  <bruno@clisp.org>
52304
52305         * .gitattributes: New file.
52306
52307 2008-02-11  Jim Meyering  <meyering@redhat.com>
52308
52309         useless-if-before-free: Fix reversed exit values.
52310         * build-aux/useless-if-before-free: Use correct values
52311         for EXIT_MATCH and EXIT_NO_MATCH.
52312
52313         * build-aux/useless-if-before-free: Close stdout carefully.
52314
52315 2008-02-10  Bruno Haible  <bruno@clisp.org>
52316
52317         New module 'git-merge-changelog'.
52318         * modules/git-merge-changelog: New file.
52319         * lib/git-merge-changelog.c: New file.
52320
52321 2008-02-10  Jim Meyering  <meyering@redhat.com>
52322
52323         useless-if-before-free: New option: --list (-l).
52324
52325         useless-if-before-free: Don't exit immediately upon open failure.
52326         * build-aux/useless-if-before-free: Exit 2 for errors.
52327         Upon failure to open a file, don't exit immediately.
52328         Rather, just warn and continue with any remaining files.
52329
52330 2008-02-10  Bruno Haible  <bruno@clisp.org>
52331
52332         New abstract list operation 'node_set_value'.
52333         * lib/gl_list.h (gl_list_node_set_value): New function.
52334         (struct gl_list_implementation): New field node_set_value.
52335         * lib/gl_list.c (gl_list_node_set_value): New function.
52336         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52337         (gl_array_list_implementation): Update.
52338         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52339         (gl_carray_list_implementation): Update.
52340         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52341         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52342         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52343         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52344         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52345         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52346         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52347         Update.
52348         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52349         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52350         (gl_sublist_list_implementation): Update.
52351
52352 2008-02-10  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52355         Needed when ELEMENT is #defined to 'some_type *'.
52356
52357 2008-02-10  Jim Meyering  <meyering@redhat.com>
52358
52359         New script and module: useless-if-before-free
52360         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52361         * build-aux/useless-if-before-free: New file.
52362         * modules/useless-if-before-free: New file.
52363
52364         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52365
52366         xstrtol_error: Fix typo.
52367         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52368         s/exit_failure/exit_status/.
52369
52370 2008-02-09  Jim Meyering  <meyering@redhat.com>
52371
52372         New script and module: gitlog-to-changelog
52373         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52374         * modules/gitlog-to-changelog: New file.
52375         * build-aux/gitlog-to-changelog: New file.
52376
52377 2008-02-08  Jim Meyering  <meyering@redhat.com>
52378
52379         Avoid two "parameter unused" warnings.
52380         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52381         Mark "st" as used.
52382
52383         Use "git COMMAND", not "git-COMMAND".
52384         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52385         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52386         * build-aux/git-version-gen: Use "git status", not "git-status".
52387
52388 2008-02-07  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52391         Avoids a crash on Windows Vista.
52392         Reported by Adam Strzelecki <ono@java.pl> via
52393         Simon Josefsson <simon@josefsson.org>.
52394
52395 2008-02-06  Bruno Haible  <bruno@clisp.org>
52396
52397         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52398         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52399         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52401         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52403         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52404         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52405         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52406         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52407         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52408         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52412         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52413         left-adjust flag.
52414         * tests/test-snprintf-posix.h (test_function): Likewise.
52415         * tests/test-sprintf-posix.h (test_function): Likewise.
52416         * tests/test-vasprintf-posix.c (test_function): Likewise.
52417         * doc/posix-functions/fprintf.texi: Update.
52418         * doc/posix-functions/printf.texi: Update.
52419         * doc/posix-functions/snprintf.texi: Update.
52420         * doc/posix-functions/sprintf.texi: Update.
52421         * doc/posix-functions/vfprintf.texi: Update.
52422         * doc/posix-functions/vprintf.texi: Update.
52423         * doc/posix-functions/vsnprintf.texi: Update.
52424         * doc/posix-functions/vsprintf.texi: Update.
52425         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52426
52427 2008-02-06  Bruno Haible  <bruno@clisp.org>
52428
52429         Fix bug introduced on 2008-01-26.
52430         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52431
52432 2008-02-06  Bruno Haible  <bruno@clisp.org>
52433
52434         Fix bug introduced on 2007-06-10.
52435         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52436         !NEED_PRINTF_FLAG_ZERO.
52437
52438 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52439
52440         getloadavg: use libperfstat on AIX5
52441         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52442
52443 2008-02-03  Bruno Haible  <bruno@clisp.org>
52444
52445         * lib/diffseq.h: Add comments about required #includes.
52446         Reported by Michael Biggs <gnulib@doubleplum.net>.
52447
52448 2008-02-01  Bruno Haible  <bruno@clisp.org>
52449
52450         * users.txt: Add gnuit.
52451
52452 2008-01-31  Bruno Haible  <bruno@clisp.org>
52453
52454         * lib/md4.c (set_uint32): Mark as inline.
52455         * lib/md5.c (set_uint32): Likewise.
52456         * lib/sha1.c (set_uint32): Likewise.
52457         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52458         * m4/md5.m4 (gl_MD5): Likewise.
52459         * m4/sha1.m4 (gl_SHA1): Likewise.
52460
52461 2008-01-31  Jim Meyering  <meyering@redhat.com>
52462
52463         Use "sizeof VAR", rather than a literal "4".
52464         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52465         * lib/md4.c (md4_read_ctx): Likewise.
52466         * lib/sha1.c (sha1_read_ctx): Likewise.
52467
52468 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52469
52470         * tests/test-sha1.c: New file, based on test-md5.c.
52471
52472         * modules/crypto/sha1-tests: New file.
52473
52474 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52475
52476         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52477
52478 2008-01-31  Jim Meyering  <meyering@redhat.com>
52479
52480         Prefer "sizeof v" over the equivalent "4".
52481         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52482         * lib/md5.c (set_uint32): Likewise.
52483         * lib/sha1.c (set_uint32): Likewise.
52484
52485 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52486
52487         * lib/sha1.c (set_uint32): Mark function as static.
52488
52489 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52490
52491         md2: clarify comments to say that alignment is not required.
52492         * lib/md2.h: Remove warning about alignment in comment.
52493         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52494         never been required.
52495
52496 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52497
52498         md4: adapt alignment constraint fix from sha1.
52499         * lib/md4.c (set_uint32): New function, from sha1.c
52500         (md4_read_ctx): Use it.
52501         (md4_finish_ctx): Doc fix.
52502         * lib/md4.h: Doc fix.
52503
52504 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52505
52506         md5: adapt alignment constraint fix from sha1.
52507         * lib/md5.c (set_uint32): New function, from sha1.c
52508         (md5_read_ctx): Use it.
52509         (md5_finish_ctx): Doc fix.
52510         * lib/md5.h: Doc fix.
52511
52512 2008-01-30  Peter Palfrader  <weasel@debian.org>
52513
52514         sha1: remove the result buffer alignment constraint
52515         * lib/sha1.c (set_uint32): New function.
52516         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52517         constraint.
52518         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52519         * lib/sha1.h: Likewise.
52520
52521 2008-01-30  Andreas Schwab  <schwab@suse.de>
52522             Bruno Haible  <bruno@clisp.org>
52523
52524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52525         correct definition of LDBL_MIN_EXP.
52526
52527 2008-01-30  Karl Berry  <karl@gnu.org>
52528
52529         * config/srclist-update: try to preserve x bit on updates.
52530         * config/srclistvars.sh: update for karl.
52531
52532 2008-01-29  Jim Meyering  <meyering@redhat.com>
52533
52534         vasnprintf.c: Avoid warning about unused label
52535         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52536         "overflow" label definition and associated code with the
52537         same cpp condition that guards the sole use of that label.
52538
52539 2008-01-26  Bruno Haible  <bruno@clisp.org>
52540
52541         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52542         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52543         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52544         * lib/isnanl-nolibm.h (isnanl): Likewise.
52545         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52546
52547 2008-01-26  Bruno Haible  <bruno@clisp.org>
52548
52549         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52550         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52551
52552 2008-01-26  Bruno Haible  <bruno@clisp.org>
52553
52554         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52555         GCC >= 4.0 built-in.
52556         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52557
52558 2008-01-26  Bruno Haible  <bruno@clisp.org>
52559
52560         Rename isnan, applicable to 'double' only, to isnand.
52561         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52562         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52563         (configure.ac): Update.
52564         (Include): Replace "isnan.h" with "isnand.h".
52565         * m4/isnand.m4: Renamed from m4/isnan.m4.
52566         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52567         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52568         instead of isnan.c.
52569         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52570         instead of HAVE_ISNAN_IN_LIBC.
52571         (isnand): Renamed from isnan.
52572         * lib/isnand.c: New file.
52573         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52574         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52575         (Makefile.am): Update.
52576         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52577         Include isnand.h instead of isnan.h.
52578         (main): Test isnand instead of isnan.
52579         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52580         isnan-nolibm.
52581         * modules/frexp (Depends-on): Likewise.
52582         * modules/frexp-tests (Depends-on): Likewise.
52583         * modules/frexp-nolibm (Depends-on): Likewise.
52584         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52585         * modules/isfinite (Depends-on): Likewise.
52586         * modules/round-tests (Depends-on): Likewise.
52587         * modules/signbit (Depends-on): Likewise.
52588         * modules/signbit-tests (Depends-on): Likewise.
52589         * modules/snprintf-posix (Depends-on): Likewise.
52590         * modules/sprintf-posix (Depends-on): Likewise.
52591         * modules/trunc-tests (Depends-on): Likewise.
52592         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52593         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52594         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52595         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52596         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52597         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52598         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52599         * modules/vasnprintf-posix (Depends-on): Likewise.
52600         * modules/vasprintf-posix (Depends-on): Likewise.
52601         * modules/vfprintf-posix (Depends-on): Likewise.
52602         * modules/vsnprintf-posix (Depends-on): Likewise.
52603         * modules/vsprintf-posix (Depends-on): Likewise.
52604         * lib/frexp.c: Include isnand.h instead of isnan.h.
52605         (ISNAN): Set to isnand instead of isnan.
52606         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52607         (gl_isfinited): Use isnand instead of isnan.
52608         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52609         (gl_signbitd): Use isnand instead of isnan.
52610         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52611         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52612         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52613         (main): Use isnand instead of isnan.
52614         * tests/test-round1.c: Include isnand.h.
52615         (main): Use isnand instead of isnan.
52616         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52617         (ISNAN): Set to isnand instead of isnan.
52618         * tests/test-trunc1.c: Include isnand.h.
52619         (main): Use isnand instead of isnan.
52620         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52621         (equal): Use isnand instead of isnan.
52622         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52623         isnand-nolibm.
52624         * NEWS: Mention the change.
52625
52626 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52627             Bruno Haible  <bruno@clisp.org>
52628
52629         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52630         the GCC builtins for signbits are present and set
52631         REPLACE_SIGNBIT_USING_GCC if so.
52632         * lib/math.in.h (signbit): Define using GCC builtins if
52633         REPLACE_SIGNBIT_USING_GCC is set.
52634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52635         REPLACE_SIGNBIT_USING_GCC.
52636         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52637
52638 2008-01-25  Jim Meyering  <meyering@redhat.com>
52639
52640         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52641         * lib/poll.c: Include <config.h>, not "config.h".
52642         * tests/test-getaddrinfo.c: Likewise.
52643
52644 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52645
52646         * modules/sockets-tests: New file.
52647
52648 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52649
52650         * modules/sockets: New module, can be used to call WSA_Startup and
52651         WSA_Cleanup when needed.
52652
52653         * lib/sockets.h, lib/sockets.c: New files.
52654
52655         * m4/sockets.m4: New file.
52656
52657         * tests/test-sockets.c: New file.
52658
52659 2008-01-19  Bruno Haible  <bruno@clisp.org>
52660
52661         * doc/posix-headers: Renamed from doc/headers.
52662         * doc/posix-functions: Renamed from doc/functions.
52663         * doc/gnulib.texi: Update.
52664
52665 2008-01-19  Bruno Haible  <bruno@clisp.org>
52666
52667         * doc/glibc-functions/strcasestr.texi: Include contents of
52668         doc/functions/strcasestr.texi, fixing the list of platforms.
52669         * doc/functions/strcasestr.texi: Remove file.
52670
52671 2008-01-19  Bruno Haible  <bruno@clisp.org>
52672
52673         * doc/glibc-functions/memmem.texi: Include contents of
52674         doc/functions/memmem.texi.
52675         * doc/functions/memmem.texi: Remove file.
52676
52677 2008-01-18  Bruno Haible  <bruno@clisp.org>
52678
52679         * doc/glibc-functions/*.texi: New files.
52680         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52681         to use the new files.
52682
52683 2008-01-17  Bruno Haible  <bruno@clisp.org>
52684
52685         * tests/test-gethostname.c (main): Fix printf statement.
52686
52687 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52688
52689         * modules/gethostname-tests: New file.
52690
52691         * tests/test-gethostname.c: New file.
52692
52693 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52694
52695         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52696         used by the UNAME case.  Reported by Bruno Haible
52697         <bruno@clisp.org>.
52698
52699 2008-01-17  Eric Blake  <ebb9@byu.net>
52700
52701         Convert c-strcasestr to be more efficient.
52702         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52703         (Depends-on): Add c-strcase, remove malloca, strnlen.
52704         * tests/test-c-strcasestr.c (main): Enhance test.
52705         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52706
52707 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52708
52709         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52710         Use it in creating po/Makevars.
52711
52712 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52713
52714         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52715         Applications that requires it should initialize libgcrypt
52716         manually.
52717
52718 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52719
52720         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52721
52722 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52723
52724         Fix problem with getdate on mingw32 reported by Simon Josefsson
52725         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52726         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52727         tzname", when deciding whether to declare tzname.
52728         * lib/strftime.c (tzname): Likewise.
52729
52730 2008-01-15  Bruno Haible  <bruno@clisp.org>
52731
52732         Work around a MacOS X 10.5 bug in frexpl().
52733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52734         * doc/functions/frexpl.texi: Document the bug.
52735         Reported by Elias Pipping <pipping@gentoo.org>.
52736
52737 2008-01-14  Eric Blake  <ebb9@byu.net>
52738
52739         Touch up previous patch.
52740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52741         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52742
52743         Convert strcasestr module to use Two-Way algorithm.
52744         * modules/strcasestr-simple: New module, based on the old
52745         strcasestr, but with Two-Way rather than KMP.
52746         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52747         * lib/string.in.h (rpl_strcasestr): Declare.
52748         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52749         performance.
52750         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52751         * modules/string (Makefile.am): Support strcasestr.
52752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52753         * modules/strcasestr-tests (Depends-on): Check for alarm.
52754         * tests/test-strcasestr.c: Augment test.
52755         * lib/str-two-way.h: Clean up stray macro.
52756         * NEWS: Document new module.
52757         * MODULES.html.sh (string handling): Likewise.
52758         * doc/functions/strcasestr.texi: New file.
52759         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52760         here, since it is not a POSIX function.
52761
52762 2008-01-14  Colin Watson  <cjwatson@debian.org>
52763             Bruno Haible  <bruno@clisp.org>
52764
52765         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52766         works fine; if not, set REPLACE_STRSIGNAL.
52767         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52769         REPLACE_STRSIGNAL.
52770         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52771         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52772         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52773
52774 2008-01-14  Bruno Haible  <bruno@clisp.org>
52775
52776         * modules/strsignal (Include): Change to <string.h>.
52777
52778 2008-01-14  Colin Watson  <cjwatson@debian.org>
52779
52780         * modules/argp (Notice): Add a notice recommending to change
52781         XGETTEXT_OPTIONS.
52782         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52783
52784 2008-01-13  Colin Watson  <cjwatson@debian.org>
52785
52786         * modules/strsignal-tests: New file.
52787         * tests/test-strsignal.c: New file.
52788
52789         * lib/strsignal.c: New file, from glibc with modifications.
52790         * lib/siglist.h: New file, from glibc with modifications.
52791         * lib/string.in.h (strsignal): New declaration.
52792         * m4/strsignal.m4: New file.
52793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52794         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52795         * modules/strsignal: New file.
52796         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52797         HAVE_DECL_STRSIGNAL.
52798
52799 2008-01-13  Bruno Haible  <bruno@clisp.org>
52800
52801         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52802         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52803         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52805
52806 2008-01-13  Bruno Haible  <bruno@clisp.org>
52807
52808         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52809         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52810         * lib/argp.h (__attribute__): Likewise.
52811         * lib/c-stack.c (__attribute__): Likewise.
52812         * lib/error.h (__attribute__): Likewise.
52813         * lib/fts.c (__attribute__): Likewise.
52814         * lib/openat.h (__attribute__): Likewise.
52815         * lib/stdio.in.h (__attribute__): Likewise.
52816         * lib/string.in.h (__attribute__): Likewise.
52817         * lib/utimens.c (__attribute__): Likewise.
52818         * lib/vasnprintf.h (__attribute__): Likewise.
52819         * lib/xalloc.h (__attribute__): Likewise.
52820         * lib/xprintf.h (__attribute__): Likewise.
52821         * lib/xstrtol.h (__attribute__): Likewise.
52822         * lib/xvasprintf.h (__attribute__): Likewise.
52823
52824 2008-01-12  Bruno Haible  <bruno@clisp.org>
52825
52826         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52827         * doc/glibc-headers/a.out.texi: New file.
52828         * doc/glibc-headers/aliases.texi: New file.
52829         * doc/glibc-headers/alloca.texi: New file.
52830         * doc/glibc-headers/ar.texi: New file.
52831         * doc/glibc-headers/argp.texi: New file.
52832         * doc/glibc-headers/argz.texi: New file.
52833         * doc/glibc-headers/byteswap.texi: New file.
52834         * doc/glibc-headers/crypt.texi: New file.
52835         * doc/glibc-headers/endian.texi: New file.
52836         * doc/glibc-headers/envz.texi: New file.
52837         * doc/glibc-headers/err.texi: New file.
52838         * doc/glibc-headers/error.texi: New file.
52839         * doc/glibc-headers/execinfo.texi: New file.
52840         * doc/glibc-headers/fpu_control.texi: New file.
52841         * doc/glibc-headers/fstab.texi: New file.
52842         * doc/glibc-headers/fts.texi: New file.
52843         * doc/glibc-headers/getopt.texi: New file.
52844         * doc/glibc-headers/ieee754.texi: New file.
52845         * doc/glibc-headers/ifaddrs.texi: New file.
52846         * doc/glibc-headers/libintl.texi: New file.
52847         * doc/glibc-headers/mcheck.texi: New file.
52848         * doc/glibc-headers/mntent.texi: New file.
52849         * doc/glibc-headers/obstack.texi: New file.
52850         * doc/glibc-headers/paths.texi: New file.
52851         * doc/glibc-headers/printf.texi: New file.
52852         * doc/glibc-headers/pty.texi: New file.
52853         * doc/glibc-headers/resolv.texi: New file.
52854         * doc/glibc-headers/shadow.texi: New file.
52855         * doc/glibc-headers/sysexits.texi: New file.
52856         * doc/glibc-headers/ttyent.texi: New file.
52857
52858 2008-01-12  Jim Meyering  <meyering@redhat.com>
52859
52860         announce-gen: emit Gnulib's git-based version string.
52861         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52862         New option --gnulib-version=V, where V is expected to be
52863         the output of running git describe in the gnulib directory.
52864         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52865         not useful, and plan to stop publishing an xdelta file with each
52866         coreutils release.
52867
52868         * build-aux/announce-gen: Also check for lzma-compressed files.
52869
52870 2008-01-11  Bruno Haible  <bruno@clisp.org>
52871
52872         * tests/test-memmem.c (main): Increase maximum allowed time.
52873         * tests/test-strstr.c (main): Likewise.
52874
52875 2008-01-11  Bruno Haible  <bruno@clisp.org>
52876
52877         * doc/functions/memmem.texi: Add more precisions about platforms.
52878         * doc/functions/strstr.texi: Likewise.
52879
52880 2008-01-10  Eric Blake  <ebb9@byu.net>
52881
52882         * m4/strstr.m4: Delete cruft from copy-n-paste.
52883         Reported by Bruno Haible.
52884
52885 2008-01-10  Bruno Haible  <bruno@clisp.org>
52886
52887         Make c-strstr rely on strstr.
52888         * lib/c-strstr.c: Don't include str-kmp.h.
52889         (c_strstr): Define in terms of strstr.
52890         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52891         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52892
52893 2008-01-10  Bruno Haible  <bruno@clisp.org>
52894
52895         * doc/gnulib.texi (String Functions in C Locale): New section.
52896         * doc/c-ctype.texi: New file.
52897         * doc/c-strcase.texi: New file.
52898         * doc/c-strcaseeq.texi: New file.
52899         * doc/c-strcasestr.texi: New file.
52900         * doc/c-strstr.texi: New file.
52901         * doc/c-strtod.texi: New file.
52902         * doc/c-strtold.texi: New file.
52903
52904 2008-01-10  Eric Blake  <ebb9@byu.net>
52905
52906         * lib/relocatable.h: Fix a comment.
52907
52908 2008-01-10  Eric Blake  <ebb9@byu.net>
52909
52910         Share two-way algorithm.
52911         * lib/str-two-way.h: New file, merged from...
52912         * lib/memmem.c: ...here...
52913         * lib/strstr.c: ...and here.
52914         * modules/memmem (Files): Use it.
52915         * modules/strstr (Files): Likewise.
52916
52917         Avoid quadratic strstr implementations.
52918         * lib/strstr.c: New file.
52919         * m4/strstr.m4: Likewise.
52920         * modules/strstr: Likewise.
52921         * modules/strstr-tests: Likewise.
52922         * tests/test-strstr.c: Likewise.
52923         * lib/string.in.h (rpl_strstr): Declare.
52924         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52926         * modules/string (Makefile.am): Likewise.
52927         * MODULES.html.sh (string handling): Mention new module.
52928         * doc/functions/strstr.texi (strstr): Document the bug.
52929
52930 2008-01-10  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/relocatable.h (relocate): State whether result is freshly
52933         allocated or not.
52934         * lib/relocatable.c (relocate): Return a freshly allocated string
52935         instead of a pointer to a privately held string.
52936         Reported by Sylvain Beucler <beuc@gnu.org>.
52937
52938 2008-01-10  Colin Watson  <cjwatson@debian.org>
52939
52940         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52941         s/S_ISNLK/S_ISLNK/.
52942
52943 2008-01-09  Bruno Haible  <bruno@clisp.org>
52944
52945         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52946         and other files.
52947         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52948         if it's only a guess.
52949         * modules/memmem: Simplify by depending on memmem-simple.
52950
52951 2008-01-09  Bruno Haible  <bruno@clisp.org>
52952
52953         Work around OpenBSD 4.0 tdelete() bug.
52954         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52955         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52956         macros and don't redefine the enum values.
52957         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52958         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52959         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52960
52961 2008-01-09  Bruno Haible  <bruno@clisp.org>
52962
52963         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52964         (main): Don't perform the tests if setlocale did not install a UTF-8
52965         locale. Needed on OpenBSD 4.0.
52966         * modules/wcwidth-tests (Depends-on): Add localcharset.
52967
52968 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52971         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52972         * NEWS: announce this.
52973         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52974
52975 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52976         and Eric Blake  <ebb9@byu.net>
52977
52978         Add memmem-simple module.
52979         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52980         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52981         * modules/memmem-simple: New file.
52982         * modules/memmem (Description): Tweak.
52983         * MODULES.html.sh (string handling): Mention new module.
52984         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52985         addressed by memmem-simple.
52986         * NEWS: Document the difference.
52987
52988 2008-01-09  Eric Blake  <ebb9@byu.net>
52989
52990         Give gcc some memmem optimization hints.
52991         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52992         (strcasestr): Declare as pure.
52993         * modules/memmem (Maintainer): Claim my implementation.
52994
52995 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52996
52997         Support AIX 6.1 and higher.
52998         * build-aux/config.libpath: Likewise.
52999         * build-aux/config.rpath: Likewise.
53000
53001 2008-01-08  Jim Meyering  <meyering@redhat.com>
53002             Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53005         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53006         Reported by Peter Fales in
53007         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53008
53009 2008-01-08  Bruno Haible  <bruno@clisp.org>
53010
53011         * modules/unictype/category-of (Depends-on): Add
53012         unictype/category-none.
53013         * modules/unictype/category-and-tests (Depends-on): Add
53014         unictype/category-{L,N,Lu,Nd}.
53015         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53016         * modules/unictype/category-or-tests (Depends-on): Add
53017         unictype/category-{L,N}.
53018         * modules/unictype/category-name-tests (Depends-on): Add
53019         unictype/category-{Z,Nl}.
53020         Reported by Simon Josefsson.
53021
53022 2008-01-08  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53025         convention better.
53026         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53027         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53028         Reported by Peter Miller <millerp@canb.auug.org.au>.
53029
53030 2008-01-08  Eric Blake  <ebb9@byu.net>
53031
53032         Rewrite memmem to guarantee linear complexity without malloc.
53033         * lib/memmem.c (memmem): Use Two-Way rather than
53034         Knuth-Morris-Pratt, to allow O(1) space usage.
53035         (critical_factorization, two_way_short_needle)
53036         (two_way_long_needle): New functions.
53037         (knuth_morris_pratt): Delete.
53038         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53039         Add stdint.
53040         * tests/test-memmem.c (main): Add tests for periodic needle and
53041         sublinear performance.
53042         * doc/functions/memmem.texi (memmem): Document other deficiencies
53043         in cygwin and older glibc.
53044
53045 2008-01-08  Bruno Haible  <bruno@clisp.org>
53046
53047         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53048         augmentation.
53049
53050 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53051
53052         Add a configure time option: --disable-acl.
53053         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53054         AC_ARG_ENABLE(acl).
53055
53056 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53057
53058         * tests/test-localename.c: Don't include obsolete "setenv.h".
53059
53060         * modules/localename-tests (Depends-on): Need unsetenv.
53061
53062 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53063
53064         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53065
53066 2008-01-06  Colin Watson  <cjwatson@debian.org>
53067
53068         * users.txt: Add man-db.
53069
53070 2008-01-07  Bruno Haible  <bruno@clisp.org>
53071
53072         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53073         previous section name.
53074
53075 2008-01-07  Bruno Haible  <bruno@clisp.org>
53076
53077         * lib/progname.c (set_program_name): Don't strip off a leading
53078         "lt-" prefix outside a .libs directory.
53079         Suggested by Paul Eggert.
53080
53081 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53082             Bruno Haible  <bruno@clisp.org>
53083
53084         Improve memory cleanup in 'relocatable' module.
53085         * lib/relocatable.h (compute_curr_prefix): Change return type to
53086         'char *'.
53087         * lib/relocatable.c (compute_curr_prefix): Change return type to
53088         'char *'. Free curr_installdir after use.
53089         (relocate): Free curr_prefix_better after use.
53090         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53091
53092 2008-01-01  Bruno Haible  <bruno@clisp.org>
53093
53094         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53095         failure on older glibc systems.
53096         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53097
53098 2008-01-05  Eric Blake  <ebb9@byu.net>
53099
53100         Avoid quadratic system memmem.
53101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53102         Reported by Ralf Wildenhues.
53103
53104         Fix memmem test for mingw.
53105         * modules/memmem-tests (configure.ac): Check for alarm.
53106         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53107         it.
53108         * doc/functions/memmem.texi: New file.
53109         * doc/gnulib.texi (Function Substitutes): Add memmem.
53110         Reported by Bruno Haible.
53111
53112 2008-01-04  Bruno Haible  <bruno@clisp.org>
53113
53114         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53115         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53116         gl_HEADER_STRING_H_DEFAULTS.
53117
53118 2008-01-04  Eric Blake  <ebb9@byu.net>
53119
53120         Shorten duration of memmem test.
53121         * tests/test-memmem.c (main): Use alarm to declare failure if test
53122         is taking too long.
53123         Reported by Ralf Wildenhues.
53124
53125 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53126
53127         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53128         string, needed by strerror.
53129
53130 2008-01-03  Colin Watson  <cjwatson@debian.org>
53131             Bruno Haible  <bruno@clisp.org>
53132
53133         * doc/gnulib-tool.texi (Localization): New section.
53134
53135 2008-01-02  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53138         variables to 'unsigned char *' type.
53139         Reported by Paul Eggert.
53140
53141 2008-01-02  Jim Meyering  <jim@meyering.net>
53142
53143         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53144
53145 2007-12-31  Jim Meyering  <jim@meyering.net>
53146
53147         Avoid use of private FTS type name.
53148         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53149
53150 2007-12-30  Karl Berry  <karl@gnu.org>
53151
53152         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53153         work around defect in Texinfo and/or the standalone Info browser.
53154
53155 2007-12-30  Bruno Haible  <bruno@clisp.org>
53156
53157         Unify 5 copies of the KMP code.
53158         * lib/str-kmp.h: New file.
53159         * lib/c-strcasestr.c: Include str-kmp.h.
53160         (knuth_morris_pratt): Remove function.
53161         (c_strcasestr): Update.
53162         * lib/c-strstr.c: Include str-kmp.h.
53163         (knuth_morris_pratt): Remove function.
53164         (c_strcasestr): Update.
53165         * lib/mbscasestr.c: Include str-kmp.h.
53166         (knuth_morris_pratt_unibyte): Remove function.
53167         * lib/mbsstr.c: Include str-kmp.h.
53168         (knuth_morris_pratt_unibyte): Remove function.
53169         * lib/strcasestr.c: Include str-kmp.h.
53170         (knuth_morris_pratt): Remove function.
53171         (strcasestr): Update.
53172         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53173         * modules/c-strstr (Files): Likewise.
53174         * modules/mbscasestr (Files): Likewise.
53175         * modules/mbsstr (Files): Likewise.
53176         * modules/strcasestr (Files): Likewise.
53177         Suggested by Paul Eggert.
53178
53179 2007-12-30  Bruno Haible  <bruno@clisp.org>
53180
53181         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53182         defined.
53183
53184 2007-12-30  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/xmalloca.h: Include xalloc.h.
53187         (xnmalloca): New macro.
53188
53189 2007-12-30  Bruno Haible  <bruno@clisp.org>
53190
53191         * lib/malloca.h (nmalloca): New macro.
53192         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53193         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53194         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53195         knuth_morris_pratt_multibyte): Likewise.
53196         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53197         knuth_morris_pratt_multibyte): Likewise.
53198         * lib/memmem.c (knuth_morris_pratt): Likewise.
53199         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53200
53201 2007-12-25  Bruno Haible  <bruno@clisp.org>
53202
53203         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53204         * lib/glob.c: Don't include openat.h.
53205         (link_exists2_p): Add back the code that deals with the
53206         !GLOB_ALTDIRFUNC case.
53207         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53208         let it do the filename concatenation.
53209         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53210         * modules/glob (Depends-on): Remove openat.
53211
53212 2007-12-31  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/dirfd (License): Change to LGPLv2+.
53215         Approved by Jim Meyering.
53216
53217 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53218
53219         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53220         when multiplying M by sizeof (size_t).
53221
53222 2007-12-10  Martin Lambers  <marlam@marlam.de>
53223
53224         Override getpagesize on mingw.
53225         * lib/getpagesize.c: New file.
53226         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53227         * modules/getpagesize (Files): Add lib/getpagesize.c.
53228         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53230         REPLACE_GETPAGESIZE.
53231         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53232
53233 2007-12-25  Bruno Haible  <bruno@clisp.org>
53234
53235         * modules/localcharset (Notice): New field.
53236         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53237         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53238
53239 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53240             Bruno Haible  <bruno@clisp.org>
53241
53242         Avoid using the syntax symbol() in formatted documentation.
53243         * MODULES.html.sh (func_module): When replacing symbol() with a
53244         hyperlink, remove the parentheses. Show an error if some remain.
53245         Recognize and render the '...' syntax.
53246         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53247         Rework. Add paragraph about GCC's inlining.
53248         * doc/alloca.texi: Likewise.
53249         * doc/error.texi: Remove parentheses from symbol reference.
53250         * doc/gnulib-intro.texi: Likewise.
53251         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53252         * modules/fnmatch (Description): Reword to say "the ... function".
53253         * modules/full-read (Description): Likewise.
53254         * modules/full-write (Description): Likewise.
53255         * modules/safe-read (Description): Likewise.
53256         * modules/safe-write (Description): Likewise.
53257         * modules/strchrnul (Description): Likewise.
53258         * modules/trim (Description): Likewise.
53259         * modules/error (Description): Remove parentheses from symbol
53260         references.
53261         * modules/verror (Description): Likewise.
53262         Reported by Karl Berry.
53263
53264 2007-12-25  Bruno Haible  <bruno@clisp.org>
53265
53266         Fixup after 2007-10-16 commit.
53267         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53268
53269 2007-12-24  Bruno Haible  <bruno@clisp.org>
53270
53271         Make --enable-relocatable work with DESTDIR.
53272         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53273         to compute installdir from destprog.
53274         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53275         also set the RELOC_DESTDIR variable.
53276         Reported by Левашев Иван <octagram@bluebottle.com>.
53277
53278 2007-12-24  Bruno Haible  <bruno@clisp.org>
53279
53280         Fix link error due to xalloc_die().
53281         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53282         of xreadlink.
53283         * lib/relocwrapper.c: Update comments.
53284         * build-aux/install-reloc: Remove xreadlink.c from file list.
53285         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53286         xreadlink.c.
53287         Reported by Левашев Иван <octagram@bluebottle.com>.
53288
53289 2007-12-24  Bruno Haible  <bruno@clisp.org>
53290
53291         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53292         * lib/setenv.h: Remove file.
53293         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53294         lib/setenv.h.
53295         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53296         (Depends-on): Add stdlib.
53297         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53298         gl_FUNC_UNSETENV.
53299         (Include): Replace setenv.h with <stdlib.h>.
53300         * modules/unsetenv: New file.
53301         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53302         * lib/unsetenv.c: Include <stdlib.h> first.
53303         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53304         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53305         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53306         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53307         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53308         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53310         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53311         * doc/functions/unsetenv.texi: Update.
53312         * modules/xsetenv (Depends-on): Add unsetenv.
53313         * modules/getdate (Depends-on): Likewise.
53314         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53315         * lib/xsetenv.c: Don't include setenv.h.
53316         * lib/getdate.y: Likewise.
53317         * lib/relocwrapper.c: Likewise.
53318         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53319         (Depends-on): Add stdlib.
53320         * NEWS: Mention the changes.
53321         Reported by Левашев Иван <octagram@bluebottle.com>.
53322
53323 2007-12-23  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53326         indentation.
53327
53328 2007-12-23  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/c-strcasestr.c: Add more comments.
53331         * lib/c-strstr.c: Likewise.
53332         * lib/mbscasestr.c: Likewise.
53333         * lib/mbsstr.c: Likewise.
53334         * lib/strcasestr.c: Likewise.
53335         * lib/memmem.c: Likewise.
53336
53337 2007-12-23  Bruno Haible  <bruno@clisp.org>
53338
53339         * tests/test-memmem.c: Include <string.h> first.
53340
53341 2007-12-22  Bruno Haible  <bruno@clisp.org>
53342
53343         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53344         the contents of $testsbase.
53345         Reported by Ralf Wildenhues.
53346
53347 2007-12-22  Bruno Haible  <bruno@clisp.org>
53348
53349         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53350         two variables local_ldadd_before, local_ldadd_last.
53351
53352 2007-12-20  Eric Blake  <ebb9@byu.net>
53353
53354         Work around circular library issue when cross-compiling.
53355         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53356         that progname.o does not need to pull in rpl_memcmp.
53357
53358 2007-12-19  Eric Blake  <ebb9@byu.net>
53359
53360         Fix memmem to avoid O(n^2) worst-case complexity.
53361         * lib/memmem.c (knuth_morris_pratt): New function.
53362         (memmem): Use it if first few naive iterations fail.
53363         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53364         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53365         * modules/memchr (License): Likewise.
53366         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53367         malloca.
53368         * tests/test-memmem.c: Rewrite, borrowing ideas from
53369         test-mbsstr1.c; the old version wouldn't even compile!
53370         * modules/memmem-tests: New file.
53371         * lib/string.in.h (rpl_memmem): Add declaration.
53372         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53374         REPLACE_MEMMEM.
53375
53376 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53379         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53380         before any system include files, and undef after them all.  This
53381         should fix a problem on VMS reported by John E. Malmberg in
53382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53383
53384 2007-12-17  Eric Blake  <ebb9@byu.net>
53385
53386         Revert addition of verify, for BSD/OS.
53387         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53388         can't handle large files, for the sake of obsolete platforms.
53389         * modules/fseeko (Depends-on): Remove verify.
53390         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53391         * doc/functions/ftello.texi (ftello): Likewise.
53392         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53393         Reported by Larry Jones.
53394
53395 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53396
53397         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53398         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53399
53400 2007-12-17  Jim Meyering  <meyering@redhat.com>
53401
53402         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53403         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53404         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53405         * modules/getcwd (Depends-on): Add openat.
53406         Reported by Petr Salinger.
53407
53408 2007-12-17  Bruno Haible  <bruno@clisp.org>
53409
53410         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53411         avoid a segmentation fault of the configure test on x86_64 systems.
53412
53413 2007-12-15  Jim Meyering  <meyering@redhat.com>
53414
53415         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53416
53417 2007-12-13  Eric Blake  <ebb9@byu.net>
53418
53419         Another fseek test.
53420         * tests/test-fseek.c (main): Also test ungetc handling.
53421         * tests/test-fseeko.c (main): Likewise.
53422         * modules/fseeko (Depends-on): Add verify.
53423         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53424         large.
53425         Reported by Larry Jones.
53426
53427         Fix fseeko on mingw.
53428         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53429         seek.
53430
53431         Beef up fseek tests.
53432         * tests/test-fseek.c (main): Also test eof handling.
53433         * tests/test-fseeko.c (main): Likewise.
53434         Reported by Larry Jones.
53435
53436 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53437
53438         Fix fseeko on BSD-based platforms.
53439         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53440         successful seek.
53441
53442 2007-12-12  Eric Blake  <ebb9@byu.net>
53443
53444         Allow circular dependency of separate libtests.a
53445         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53446         when use_libtests.
53447
53448 2007-12-11  Eric Blake  <ebb9@byu.net>
53449
53450         Fix bug with -0.0L in previous patch.
53451         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53452         * tests/test-isnan.c (main): Also test on zeroes.
53453         * tests/test-isnanf.c (main): Likewise.
53454         * tests/test-isnanl.h (main): Likewise.
53455
53456         Detect pseudo-denormals on x86 even when cross-compiling.
53457         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53458         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53459         invalid bit patterns that happen to satisfy ==.
53460
53461         Avoid link failures with separate libtests.a.
53462         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53463         last, to satisfy circular dependencies.
53464
53465 2007-12-11  Eric Blake  <ebb9@byu.net>
53466         and Bruno Haible  <bruno@clisp.org>
53467
53468         Fix OpenBSD 4.0 <float.h> handling of long double.
53469         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53470         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53471         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53472
53473 2007-12-11  Jim Meyering  <meyering@redhat.com>
53474
53475         * users.txt: Add libvirt.
53476
53477         Support versions of autoconf prior to 2.59c.
53478         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53479         if it is not already defined.
53480
53481 2007-12-09  Bruno Haible  <bruno@clisp.org>
53482
53483         Let 'gnulib-tool --import' collect sources needed for the tests in
53484         tests/ rather than in lib/.
53485         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53486         argument. If true, add rules to generate libtests.a, and put libtests.a
53487         into $(LDADD). Consider source files in subdirectories and set
53488         uses_subdirs.
53489         (func_emit_initmacro_start, func_emit_initmacro_end,
53490         func_emit_initmacro_done): Pass all arguments explicitly.
53491         (func_import): Determine two module lists main_modules,
53492         testsrelated_modules. Determine use_libtests. Determine two variables
53493         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53494         instead of just sed_transform_lib_file. Determine two variables
53495         main_files and testsrelated_files. Compute 'files' as the union of
53496         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53497         func_add_or_update. In the generated gnulib-comp.m4, collect the
53498         object files for tests/ in different variables than those for lib/.
53499         Substitute LIBTESTS_LIBDEPS.
53500         (func_create_testdir): Combine the uses_subdirs results from
53501         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53502
53503 2007-12-09  Bruno Haible  <bruno@clisp.org>
53504
53505         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53506         the build-aux directory.
53507
53508 2007-12-09  Bruno Haible  <bruno@clisp.org>
53509
53510         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53511         introduced on 2006-09-09.
53512
53513 2007-12-07  Jim Meyering  <meyering@redhat.com>
53514
53515         Let these macros work also with autoconf-2.59.
53516         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53517         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53518         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53519
53520 2007-12-06  Jim Meyering  <meyering@redhat.com>
53521
53522         Avoid a configure-time syntax error in gl_FUNC_ACL.
53523         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53524         function in each branch, before testing the cache variable.
53525
53526 2007-12-04  Eric Blake  <ebb9@byu.net>
53527
53528         Make scripts executable.
53529         * build-aux/config.guess: Add execute permissions.
53530         * build-aux/config.sub: Likewise.
53531         * build-aux/gendocs.sh: Likewise.
53532
53533         Fix frexp on mingw.
53534         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53535         cross-compiling.
53536         * doc/functions/frexp.texi (frexp): Document the bug.
53537
53538         Make cygwin fseeko check more reliable.
53539         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53540         version numbers, rather than unrelated feature check.
53541         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53542         * doc/functions/ftello.texi (ftello): Likewise.
53543         Reported by Bruno Haible.
53544
53545         * m4/strerror.m4: Bump version number.
53546
53547 2007-12-03  Bruno Haible  <bruno@clisp.org>
53548
53549         * doc/functions/mprotect.texi: Mention the mingw problem.
53550
53551 2007-12-03  Eric Blake  <ebb9@byu.net>
53552
53553         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53554         REPLACE_STRERROR is initialized before this macro.
53555
53556 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53557
53558         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53559         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53560         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53561         put -lsec in even for programs other than 'ls'.  This fixes a problem
53562         for gettext reported by Bruno Haible in
53563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53564         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53565         Add support for Solaris 10.  This isn't efficient, but should get the
53566         job done for now.
53567
53568 2007-12-03  James Youngman  <jay@gnu.org>
53569
53570         * doc/regexprops-generic.texi: change "an close-group" to "a
53571         close-group" and "illegal" to "not allowed".
53572
53573 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53574
53575         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53576         pr_byname.h. Needed for the rare case when the maintainer has done
53577         "make maintainer-clean" in the source directory and then attempts a
53578         build outside the source directory.
53579         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53580         scripts_byname.h.
53581
53582 2007-12-02  Martin Lambers <marlam@marlam.de>
53583             Bruno Haible  <bruno@clisp.org>
53584
53585         * lib/getpagesize.h: Remove file.
53586         * lib/unistd.in.h: Include declaration of getpagesize here.
53587         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53588         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53589         HAVE_SYS_PARAM_H.
53590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53591         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53592         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53593         (Depends-on): Add unistd.
53594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53595         (Include): Use <unistd.h> instead of getpagesize.h.
53596         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53597         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53598         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53599         gl_GETPAGESIZE invocation, already handled by module dependency.
53600         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53601
53602 2007-12-02  Bruno Haible  <bruno@clisp.org>
53603
53604         * modules/strings-tests: New file.
53605         * tests/test-strings.c: New file.
53606
53607         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53608         * lib/strings.in.h: New file.
53609         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53610         * m4/strings_h.m4: New file.
53611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53612         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53613         * modules/strings: New file.
53614         * modules/string (Makefile.am): Update.
53615         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53616         Reported by Karl Berry.
53617
53618 2007-12-01  Eric Blake  <ebb9@byu.net>
53619
53620         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53621         accomodate fix in cygwin 1.5.25.
53622
53623 2007-12-01  Jim Meyering  <meyering@redhat.com>
53624
53625         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53626         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53627         that would inhibit utf8-optimization of a regexp containing line-
53628         or buffer-anchors, e.g., `^', `$'.
53629
53630 2007-11-30  Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53633         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53634         glthread_recursive_lock_init.
53635         * lib/lock.c (glthread_recursive_lock_init)
53636         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53638
53639 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53640
53641         New function qset_acl, like set_acl but with syscall semantics.
53642         * lib/acl.h (qset_acl): New decl.
53643         * lib/acl.c (qset_acl): New function.
53644         (set_acl): Use new function.  Use more-consistent diagnostics.
53645
53646 2007-11-28  Jim Meyering  <meyering@redhat.com>
53647
53648         * modules/physmem (License): Change from GPL to LGPLv2+.
53649
53650 2007-11-26  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53653         'long double' type has excess precision.
53654         Reported by Jim Meyering in
53655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53656
53657 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53658
53659         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53660         Sync from <http://gnu.org/licenses>.
53661         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53662         with license text from same location.
53663         * doc/maintain.texi, doc/standards.texi:  Sync from
53664         <http://savannah.gnu.org/projects/gnustandards>.
53665
53666 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53667         and Jim Meyering  <meyering@redhat.com>
53668
53669         Adjust getdate' grammar to accept a slightly more regular language.
53670         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53671         Before, the former was rejected.
53672         * lib/getdate.y (digits_to_date_time): New function, factored
53673         out of ...
53674         (number): ...here.  Just call digits_to_date_time.
53675         (hybrid): New non-terminal to handle an <unsigned number,
53676         signed relative offset> sequence consistently.
53677
53678 2007-11-18  Jim Meyering  <meyering@redhat.com>
53679
53680         Pull my changes from coreutils:
53681         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53682         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53683         use of $gnulib_tool_option_extras, so that it's separated from the
53684         preceding argument.
53685
53686         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53687         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53688         parent destination directories before copying a file into place.
53689
53690 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53691
53692         bootstrap: work also with 4-argument variant of AC_INIT
53693         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53694
53695 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         Port test-getaddrinfo to Solaris.
53698         Problem reported by Bruno Haible in
53699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53700         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53701         explanation of setting 'hints'.
53702         Don't reject an implementation merely because it returns EAI_SERVICE.
53703         (EAI_SERVICE): Define to 0 if not defined.
53704
53705 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53706
53707         The license of gnu-make and posix-shell is now "GPLed build tool".
53708         * modules/gnu-make (License): Likewise.
53709         * modules/posix-shell (License): Likewise.
53710
53711         New module posix-shell, for determining a POSIX shell
53712         or perhaps something that is close enough to a POSIX shell.
53713         * m4/posix-shell.m4: New file.
53714         * modules/posix-shell: New file.
53715
53716         * MODULES.html.sh: Mention new module.
53717
53718         New module gnu-make, for determining whether we're using GNU Make.
53719         * m4/gnu-make.m4: New file.
53720         * modules/gnu-make: New file.
53721         * MODULES.html.sh: Mention new module.
53722
53723 2007-11-14  Jim Meyering  <meyering@redhat.com>
53724
53725         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53726         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53727         use this macro to create a function _definition_.
53728         Remove useless "#undef ARGMATCH_DIE".
53729
53730 2007-11-14  Bruno Haible  <bruno@clisp.org>
53731
53732         * lib/config.charset: Update for OpenBSD 4.1.
53733         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53734
53735 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53736
53737         Document 64-bit #if problems in stdint.texi.
53738         * doc/headers/stdint.texi (stdint.h): Mention problems with
53739         64-bit-#if, and how to work around them.
53740
53741         Don't insist on 'long long int' support in the preprocessor.  It
53742         breaks too many things.  For example, PRIdMAX still uses a 'long
53743         long int' format with the latest Sun compiler, even though
53744         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53745         preprocessor problem.  This causes the latest coreutils to dump
53746         core on Solaris 10 sparc with the Sun C compiler.
53747         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53748         the troublesome expressions at configure-time, not at #if-time.
53749         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53750         preprocessor.
53751         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53752         compile-time C checks, done at 'configure'-time.
53753         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53754         * modules/inttypes (Makefile): Substitute the new symbols that
53755         gl_INTTYPES_H now generates.
53756         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53757
53758 2007-11-12  Bruno Haible  <bruno@clisp.org>
53759
53760         Tests for Unicode character classification functions.
53761
53762         * modules/unictype/bidicategory-byname-tests: New file.
53763         * modules/unictype/bidicategory-name-tests: New file.
53764         * modules/unictype/bidicategory-of-tests: New file.
53765         * modules/unictype/bidicategory-test-tests: New file.
53766         * modules/unictype/block-list-tests: New file.
53767         * modules/unictype/block-of-tests: New file.
53768         * modules/unictype/block-test-tests: New file.
53769         * modules/unictype/category-C-tests: New file.
53770         * modules/unictype/category-Cc-tests: New file.
53771         * modules/unictype/category-Cf-tests: New file.
53772         * modules/unictype/category-Cn-tests: New file.
53773         * modules/unictype/category-Co-tests: New file.
53774         * modules/unictype/category-Cs-tests: New file.
53775         * modules/unictype/category-L-tests: New file.
53776         * modules/unictype/category-Ll-tests: New file.
53777         * modules/unictype/category-Lm-tests: New file.
53778         * modules/unictype/category-Lo-tests: New file.
53779         * modules/unictype/category-Lt-tests: New file.
53780         * modules/unictype/category-Lu-tests: New file.
53781         * modules/unictype/category-M-tests: New file.
53782         * modules/unictype/category-Mc-tests: New file.
53783         * modules/unictype/category-Me-tests: New file.
53784         * modules/unictype/category-Mn-tests: New file.
53785         * modules/unictype/category-N-tests: New file.
53786         * modules/unictype/category-Nd-tests: New file.
53787         * modules/unictype/category-Nl-tests: New file.
53788         * modules/unictype/category-No-tests: New file.
53789         * modules/unictype/category-P-tests: New file.
53790         * modules/unictype/category-Pc-tests: New file.
53791         * modules/unictype/category-Pd-tests: New file.
53792         * modules/unictype/category-Pe-tests: New file.
53793         * modules/unictype/category-Pf-tests: New file.
53794         * modules/unictype/category-Pi-tests: New file.
53795         * modules/unictype/category-Po-tests: New file.
53796         * modules/unictype/category-Ps-tests: New file.
53797         * modules/unictype/category-S-tests: New file.
53798         * modules/unictype/category-Sc-tests: New file.
53799         * modules/unictype/category-Sk-tests: New file.
53800         * modules/unictype/category-Sm-tests: New file.
53801         * modules/unictype/category-So-tests: New file.
53802         * modules/unictype/category-Z-tests: New file.
53803         * modules/unictype/category-Zl-tests: New file.
53804         * modules/unictype/category-Zp-tests: New file.
53805         * modules/unictype/category-Zs-tests: New file.
53806         * modules/unictype/category-and-not-tests: New file.
53807         * modules/unictype/category-and-tests: New file.
53808         * modules/unictype/category-byname-tests: New file.
53809         * modules/unictype/category-name-tests: New file.
53810         * modules/unictype/category-none-tests: New file.
53811         * modules/unictype/category-of-tests: New file.
53812         * modules/unictype/category-or-tests: New file.
53813         * modules/unictype/category-test-withtable-tests: New file.
53814         * modules/unictype/combining-class-tests: New file.
53815         * modules/unictype/ctype-alnum-tests: New file.
53816         * modules/unictype/ctype-alpha-tests: New file.
53817         * modules/unictype/ctype-blank-tests: New file.
53818         * modules/unictype/ctype-cntrl-tests: New file.
53819         * modules/unictype/ctype-digit-tests: New file.
53820         * modules/unictype/ctype-graph-tests: New file.
53821         * modules/unictype/ctype-lower-tests: New file.
53822         * modules/unictype/ctype-print-tests: New file.
53823         * modules/unictype/ctype-punct-tests: New file.
53824         * modules/unictype/ctype-space-tests: New file.
53825         * modules/unictype/ctype-upper-tests: New file.
53826         * modules/unictype/ctype-xdigit-tests: New file.
53827         * modules/unictype/decimal-digit-tests: New file.
53828         * modules/unictype/digit-tests: New file.
53829         * modules/unictype/mirror-tests: New file.
53830         * modules/unictype/numeric-tests: New file.
53831         * modules/unictype/property-alphabetic-tests: New file.
53832         * modules/unictype/property-ascii-hex-digit-tests: New file.
53833         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53834         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53835         * modules/unictype/property-bidi-block-separator-tests: New file.
53836         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53837         * modules/unictype/property-bidi-common-separator-tests: New file.
53838         * modules/unictype/property-bidi-control-tests: New file.
53839         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53840         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53841         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53842         * modules/unictype/property-bidi-european-digit-tests: New file.
53843         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53844         * modules/unictype/property-bidi-left-to-right-tests: New file.
53845         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53846         * modules/unictype/property-bidi-other-neutral-tests: New file.
53847         * modules/unictype/property-bidi-pdf-tests: New file.
53848         * modules/unictype/property-bidi-segment-separator-tests: New file.
53849         * modules/unictype/property-bidi-whitespace-tests: New file.
53850         * modules/unictype/property-byname-tests: New file.
53851         * modules/unictype/property-combining-tests: New file.
53852         * modules/unictype/property-composite-tests: New file.
53853         * modules/unictype/property-currency-symbol-tests: New file.
53854         * modules/unictype/property-dash-tests: New file.
53855         * modules/unictype/property-decimal-digit-tests: New file.
53856         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53857         * modules/unictype/property-deprecated-tests: New file.
53858         * modules/unictype/property-diacritic-tests: New file.
53859         * modules/unictype/property-extender-tests: New file.
53860         * modules/unictype/property-format-control-tests: New file.
53861         * modules/unictype/property-grapheme-base-tests: New file.
53862         * modules/unictype/property-grapheme-extend-tests: New file.
53863         * modules/unictype/property-grapheme-link-tests: New file.
53864         * modules/unictype/property-hex-digit-tests: New file.
53865         * modules/unictype/property-hyphen-tests: New file.
53866         * modules/unictype/property-id-continue-tests: New file.
53867         * modules/unictype/property-id-start-tests: New file.
53868         * modules/unictype/property-ideographic-tests: New file.
53869         * modules/unictype/property-ids-binary-operator-tests: New file.
53870         * modules/unictype/property-ids-trinary-operator-tests: New file.
53871         * modules/unictype/property-ignorable-control-tests: New file.
53872         * modules/unictype/property-iso-control-tests: New file.
53873         * modules/unictype/property-join-control-tests: New file.
53874         * modules/unictype/property-left-of-pair-tests: New file.
53875         * modules/unictype/property-line-separator-tests: New file.
53876         * modules/unictype/property-logical-order-exception-tests: New file.
53877         * modules/unictype/property-lowercase-tests: New file.
53878         * modules/unictype/property-math-tests: New file.
53879         * modules/unictype/property-non-break-tests: New file.
53880         * modules/unictype/property-not-a-character-tests: New file.
53881         * modules/unictype/property-numeric-tests: New file.
53882         * modules/unictype/property-other-alphabetic-tests: New file.
53883         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53884         * modules/unictype/property-other-grapheme-extend-tests: New file.
53885         * modules/unictype/property-other-id-continue-tests: New file.
53886         * modules/unictype/property-other-id-start-tests: New file.
53887         * modules/unictype/property-other-lowercase-tests: New file.
53888         * modules/unictype/property-other-math-tests: New file.
53889         * modules/unictype/property-other-uppercase-tests: New file.
53890         * modules/unictype/property-paired-punctuation-tests: New file.
53891         * modules/unictype/property-paragraph-separator-tests: New file.
53892         * modules/unictype/property-pattern-syntax-tests: New file.
53893         * modules/unictype/property-pattern-white-space-tests: New file.
53894         * modules/unictype/property-private-use-tests: New file.
53895         * modules/unictype/property-punctuation-tests: New file.
53896         * modules/unictype/property-quotation-mark-tests: New file.
53897         * modules/unictype/property-radical-tests: New file.
53898         * modules/unictype/property-sentence-terminal-tests: New file.
53899         * modules/unictype/property-soft-dotted-tests: New file.
53900         * modules/unictype/property-space-tests: New file.
53901         * modules/unictype/property-terminal-punctuation-tests: New file.
53902         * modules/unictype/property-test-tests: New file.
53903         * modules/unictype/property-titlecase-tests: New file.
53904         * modules/unictype/property-unassigned-code-value-tests: New file.
53905         * modules/unictype/property-unified-ideograph-tests: New file.
53906         * modules/unictype/property-uppercase-tests: New file.
53907         * modules/unictype/property-variation-selector-tests: New file.
53908         * modules/unictype/property-white-space-tests: New file.
53909         * modules/unictype/property-xid-continue-tests: New file.
53910         * modules/unictype/property-xid-start-tests: New file.
53911         * modules/unictype/property-zero-width-tests: New file.
53912         * modules/unictype/scripts-tests: New file.
53913         * modules/unictype/syntax-c-ident-tests: New file.
53914         * modules/unictype/syntax-c-whitespace-tests: New file.
53915         * modules/unictype/syntax-java-ident-tests: New file.
53916         * modules/unictype/syntax-java-whitespace-tests: New file.
53917         * tests/unictype/test-bidi_byname.c: New file.
53918         * tests/unictype/test-bidi_name.c: New file.
53919         * tests/unictype/test-bidi_of.c: New file.
53920         * tests/unictype/test-bidi_test.c: New file.
53921         * tests/unictype/test-block_list.c: New file.
53922         * tests/unictype/test-block_of.c: New file.
53923         * tests/unictype/test-block_test.c: New file.
53924         * tests/unictype/test-categ_and.c: New file.
53925         * tests/unictype/test-categ_and_not.c: New file.
53926         * tests/unictype/test-categ_byname.c: New file.
53927         * tests/unictype/test-categ_name.c: New file.
53928         * tests/unictype/test-categ_none.c: New file.
53929         * tests/unictype/test-categ_of.c: New file.
53930         * tests/unictype/test-categ_or.c: New file.
53931         * tests/unictype/test-categ_test_withtable.c: New file.
53932         * tests/unictype/test-combining.c: New file.
53933         * tests/unictype/test-decdigit.c: New file.
53934         * tests/unictype/test-digit.c: New file.
53935         * tests/unictype/test-mirror.c: New file.
53936         * tests/unictype/test-numeric.c: New file.
53937         * tests/unictype/test-pr_byname.c: New file.
53938         * tests/unictype/test-pr_test.c: New file.
53939         * tests/unictype/test-predicate-part1.h: New file.
53940         * tests/unictype/test-predicate-part2.h: New file.
53941         * tests/unictype/test-scripts.c: New file.
53942         * tests/unictype/test-sy_c_ident.c: New file.
53943         * tests/unictype/test-sy_java_ident.c: New file.
53944
53945         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53946         for Unicode 5.0.0.
53947         * tests/unictype/test-categ_Cc.c: Likewise.
53948         * tests/unictype/test-categ_Cf.c: Likewise.
53949         * tests/unictype/test-categ_Cn.c: Likewise.
53950         * tests/unictype/test-categ_Co.c: Likewise.
53951         * tests/unictype/test-categ_Cs.c: Likewise.
53952         * tests/unictype/test-categ_L.c: Likewise.
53953         * tests/unictype/test-categ_Ll.c: Likewise.
53954         * tests/unictype/test-categ_Lm.c: Likewise.
53955         * tests/unictype/test-categ_Lo.c: Likewise.
53956         * tests/unictype/test-categ_Lt.c: Likewise.
53957         * tests/unictype/test-categ_Lu.c: Likewise.
53958         * tests/unictype/test-categ_M.c: Likewise.
53959         * tests/unictype/test-categ_Mc.c: Likewise.
53960         * tests/unictype/test-categ_Me.c: Likewise.
53961         * tests/unictype/test-categ_Mn.c: Likewise.
53962         * tests/unictype/test-categ_N.c: Likewise.
53963         * tests/unictype/test-categ_Nd.c: Likewise.
53964         * tests/unictype/test-categ_Nl.c: Likewise.
53965         * tests/unictype/test-categ_No.c: Likewise.
53966         * tests/unictype/test-categ_P.c: Likewise.
53967         * tests/unictype/test-categ_Pc.c: Likewise.
53968         * tests/unictype/test-categ_Pd.c: Likewise.
53969         * tests/unictype/test-categ_Pe.c: Likewise.
53970         * tests/unictype/test-categ_Pf.c: Likewise.
53971         * tests/unictype/test-categ_Pi.c: Likewise.
53972         * tests/unictype/test-categ_Po.c: Likewise.
53973         * tests/unictype/test-categ_Ps.c: Likewise.
53974         * tests/unictype/test-categ_S.c: Likewise.
53975         * tests/unictype/test-categ_Sc.c: Likewise.
53976         * tests/unictype/test-categ_Sk.c: Likewise.
53977         * tests/unictype/test-categ_Sm.c: Likewise.
53978         * tests/unictype/test-categ_So.c: Likewise.
53979         * tests/unictype/test-categ_Z.c: Likewise.
53980         * tests/unictype/test-categ_Zl.c: Likewise.
53981         * tests/unictype/test-categ_Zp.c: Likewise.
53982         * tests/unictype/test-categ_Zs.c: Likewise.
53983         * tests/unictype/test-ctype_alnum.c: Likewise.
53984         * tests/unictype/test-ctype_alpha.c: Likewise.
53985         * tests/unictype/test-ctype_blank.c: Likewise.
53986         * tests/unictype/test-ctype_cntrl.c: Likewise.
53987         * tests/unictype/test-ctype_digit.c: Likewise.
53988         * tests/unictype/test-ctype_graph.c: Likewise.
53989         * tests/unictype/test-ctype_lower.c: Likewise.
53990         * tests/unictype/test-ctype_print.c: Likewise.
53991         * tests/unictype/test-ctype_punct.c: Likewise.
53992         * tests/unictype/test-ctype_space.c: Likewise.
53993         * tests/unictype/test-ctype_upper.c: Likewise.
53994         * tests/unictype/test-ctype_xdigit.c: Likewise.
53995         * tests/unictype/test-decdigit.h: Likewise.
53996         * tests/unictype/test-digit.h: Likewise.
53997         * tests/unictype/test-numeric.h: Likewise.
53998         * tests/unictype/test-pr_alphabetic.c: Likewise.
53999         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54000         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54001         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54002         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54003         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54004         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54005         * tests/unictype/test-pr_bidi_control.c: Likewise.
54006         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54007         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54008         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54009         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54010         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54011         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54012         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54013         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54014         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54015         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54016         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54017         * tests/unictype/test-pr_combining.c: Likewise.
54018         * tests/unictype/test-pr_composite.c: Likewise.
54019         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54020         * tests/unictype/test-pr_dash.c: Likewise.
54021         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54022         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54023         * tests/unictype/test-pr_deprecated.c: Likewise.
54024         * tests/unictype/test-pr_diacritic.c: Likewise.
54025         * tests/unictype/test-pr_extender.c: Likewise.
54026         * tests/unictype/test-pr_format_control.c: Likewise.
54027         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54028         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54029         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54030         * tests/unictype/test-pr_hex_digit.c: Likewise.
54031         * tests/unictype/test-pr_hyphen.c: Likewise.
54032         * tests/unictype/test-pr_id_continue.c: Likewise.
54033         * tests/unictype/test-pr_id_start.c: Likewise.
54034         * tests/unictype/test-pr_ideographic.c: Likewise.
54035         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54036         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54037         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54038         * tests/unictype/test-pr_iso_control.c: Likewise.
54039         * tests/unictype/test-pr_join_control.c: Likewise.
54040         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54041         * tests/unictype/test-pr_line_separator.c: Likewise.
54042         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54043         * tests/unictype/test-pr_lowercase.c: Likewise.
54044         * tests/unictype/test-pr_math.c: Likewise.
54045         * tests/unictype/test-pr_non_break.c: Likewise.
54046         * tests/unictype/test-pr_not_a_character.c: Likewise.
54047         * tests/unictype/test-pr_numeric.c: Likewise.
54048         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54049         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54050         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54051         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54052         * tests/unictype/test-pr_other_id_start.c: Likewise.
54053         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54054         * tests/unictype/test-pr_other_math.c: Likewise.
54055         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54056         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54057         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54058         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54059         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54060         * tests/unictype/test-pr_private_use.c: Likewise.
54061         * tests/unictype/test-pr_punctuation.c: Likewise.
54062         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54063         * tests/unictype/test-pr_radical.c: Likewise.
54064         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54065         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54066         * tests/unictype/test-pr_space.c: Likewise.
54067         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54068         * tests/unictype/test-pr_titlecase.c: Likewise.
54069         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54070         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54071         * tests/unictype/test-pr_uppercase.c: Likewise.
54072         * tests/unictype/test-pr_variation_selector.c: Likewise.
54073         * tests/unictype/test-pr_white_space.c: Likewise.
54074         * tests/unictype/test-pr_xid_continue.c: Likewise.
54075         * tests/unictype/test-pr_xid_start.c: Likewise.
54076         * tests/unictype/test-pr_zero_width.c: Likewise.
54077         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54078         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54079
54080 2007-11-12  Bruno Haible  <bruno@clisp.org>
54081
54082         Unicode character classification functions.
54083         * lib/unictype.h: New file.
54084         * modules/unictype/base: New file.
54085         * modules/unictype/category-L: New file.
54086         * modules/unictype/category-Lu: New file.
54087         * modules/unictype/category-Ll: New file.
54088         * modules/unictype/category-Lt: New file.
54089         * modules/unictype/category-Lm: New file.
54090         * modules/unictype/category-Lo: New file.
54091         * modules/unictype/category-M: New file.
54092         * modules/unictype/category-Mn: New file.
54093         * modules/unictype/category-Mc: New file.
54094         * modules/unictype/category-Me: New file.
54095         * modules/unictype/category-N: New file.
54096         * modules/unictype/category-Nd: New file.
54097         * modules/unictype/category-Nl: New file.
54098         * modules/unictype/category-No: New file.
54099         * modules/unictype/category-P: New file.
54100         * modules/unictype/category-Pc: New file.
54101         * modules/unictype/category-Pd: New file.
54102         * modules/unictype/category-Ps: New file.
54103         * modules/unictype/category-Pe: New file.
54104         * modules/unictype/category-Pi: New file.
54105         * modules/unictype/category-Pf: New file.
54106         * modules/unictype/category-Po: New file.
54107         * modules/unictype/category-S: New file.
54108         * modules/unictype/category-Sm: New file.
54109         * modules/unictype/category-Sc: New file.
54110         * modules/unictype/category-Sk: New file.
54111         * modules/unictype/category-So: New file.
54112         * modules/unictype/category-Z: New file.
54113         * modules/unictype/category-Zs: New file.
54114         * modules/unictype/category-Zl: New file.
54115         * modules/unictype/category-Zp: New file.
54116         * modules/unictype/category-C: New file.
54117         * modules/unictype/category-Cc: New file.
54118         * modules/unictype/category-Cf: New file.
54119         * modules/unictype/category-Cs: New file.
54120         * modules/unictype/category-Co: New file.
54121         * modules/unictype/category-Cn: New file.
54122         * modules/unictype/category-or: New file.
54123         * modules/unictype/category-of: New file.
54124         * modules/unictype/category-test: New file.
54125         * modules/unictype/category-test-withtable: New file.
54126         * modules/unictype/category-byname: New file.
54127         * modules/unictype/category-none: New file.
54128         * modules/unictype/category-and: New file.
54129         * modules/unictype/category-and-not: New file.
54130         * modules/unictype/category-name: New file.
54131         * modules/unictype/combining-class: New file.
54132         * modules/unictype/category-all: New file.
54133         * modules/unictype/bidicategory-all: New file.
54134         * modules/unictype/bidicategory-byname: New file.
54135         * modules/unictype/bidicategory-name: New file.
54136         * modules/unictype/bidicategory-of: New file.
54137         * modules/unictype/bidicategory-test: New file.
54138         * modules/unictype/decimal-digit: New file.
54139         * modules/unictype/digit: New file.
54140         * modules/unictype/numeric: New file.
54141         * modules/unictype/mirror: New file.
54142         * modules/unictype/property-white-space: New file.
54143         * modules/unictype/property-alphabetic: New file.
54144         * modules/unictype/property-other-alphabetic: New file.
54145         * modules/unictype/property-not-a-character: New file.
54146         * modules/unictype/property-default-ignorable-code-point: New file.
54147         * modules/unictype/property-other-default-ignorable-code-point: New
54148         file.
54149         * modules/unictype/property-deprecated: New file.
54150         * modules/unictype/property-logical-order-exception: New file.
54151         * modules/unictype/property-variation-selector: New file.
54152         * modules/unictype/property-private-use: New file.
54153         * modules/unictype/property-unassigned-code-value: New file.
54154         * modules/unictype/property-uppercase: New file.
54155         * modules/unictype/property-other-uppercase: New file.
54156         * modules/unictype/property-lowercase: New file.
54157         * modules/unictype/property-other-lowercase: New file.
54158         * modules/unictype/property-titlecase: New file.
54159         * modules/unictype/property-soft-dotted: New file.
54160         * modules/unictype/property-id-start: New file.
54161         * modules/unictype/property-other-id-start: New file.
54162         * modules/unictype/property-id-continue: New file.
54163         * modules/unictype/property-other-id-continue: New file.
54164         * modules/unictype/property-xid-start: New file.
54165         * modules/unictype/property-xid-continue: New file.
54166         * modules/unictype/property-pattern-white-space: New file.
54167         * modules/unictype/property-pattern-syntax: New file.
54168         * modules/unictype/property-join-control: New file.
54169         * modules/unictype/property-grapheme-base: New file.
54170         * modules/unictype/property-grapheme-extend: New file.
54171         * modules/unictype/property-other-grapheme-extend: New file.
54172         * modules/unictype/property-grapheme-link: New file.
54173         * modules/unictype/property-bidi-control: New file.
54174         * modules/unictype/property-bidi-left-to-right: New file.
54175         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54176         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54177         * modules/unictype/property-bidi-european-digit: New file.
54178         * modules/unictype/property-bidi-eur-num-separator: New file.
54179         * modules/unictype/property-bidi-eur-num-terminator: New file.
54180         * modules/unictype/property-bidi-arabic-digit: New file.
54181         * modules/unictype/property-bidi-common-separator: New file.
54182         * modules/unictype/property-bidi-block-separator: New file.
54183         * modules/unictype/property-bidi-segment-separator: New file.
54184         * modules/unictype/property-bidi-whitespace: New file.
54185         * modules/unictype/property-bidi-non-spacing-mark: New file.
54186         * modules/unictype/property-bidi-boundary-neutral: New file.
54187         * modules/unictype/property-bidi-pdf: New file.
54188         * modules/unictype/property-bidi-embedding-or-override: New file.
54189         * modules/unictype/property-bidi-other-neutral: New file.
54190         * modules/unictype/property-hex-digit: New file.
54191         * modules/unictype/property-ascii-hex-digit: New file.
54192         * modules/unictype/property-ideographic: New file.
54193         * modules/unictype/property-unified-ideograph: New file.
54194         * modules/unictype/property-radical: New file.
54195         * modules/unictype/property-ids-binary-operator: New file.
54196         * modules/unictype/property-ids-trinary-operator: New file.
54197         * modules/unictype/property-zero-width: New file.
54198         * modules/unictype/property-space: New file.
54199         * modules/unictype/property-non-break: New file.
54200         * modules/unictype/property-iso-control: New file.
54201         * modules/unictype/property-format-control: New file.
54202         * modules/unictype/property-dash: New file.
54203         * modules/unictype/property-hyphen: New file.
54204         * modules/unictype/property-punctuation: New file.
54205         * modules/unictype/property-line-separator: New file.
54206         * modules/unictype/property-paragraph-separator: New file.
54207         * modules/unictype/property-quotation-mark: New file.
54208         * modules/unictype/property-sentence-terminal: New file.
54209         * modules/unictype/property-terminal-punctuation: New file.
54210         * modules/unictype/property-currency-symbol: New file.
54211         * modules/unictype/property-math: New file.
54212         * modules/unictype/property-other-math: New file.
54213         * modules/unictype/property-paired-punctuation: New file.
54214         * modules/unictype/property-left-of-pair: New file.
54215         * modules/unictype/property-combining: New file.
54216         * modules/unictype/property-composite: New file.
54217         * modules/unictype/property-decimal-digit: New file.
54218         * modules/unictype/property-numeric: New file.
54219         * modules/unictype/property-diacritic: New file.
54220         * modules/unictype/property-extender: New file.
54221         * modules/unictype/property-ignorable-control: New file.
54222         * modules/unictype/property-test: New file.
54223         * modules/unictype/property-byname: New file.
54224         * modules/unictype/property-all: New file.
54225         * modules/unictype/scripts: New file.
54226         * modules/unictype/scripts-all: New file.
54227         * modules/unictype/block-of: New file.
54228         * modules/unictype/block-test: New file.
54229         * modules/unictype/block-list: New file.
54230         * modules/unictype/block-all: New file.
54231         * modules/unictype/syntax-c-whitespace: New file.
54232         * modules/unictype/syntax-java-whitespace: New file.
54233         * modules/unictype/syntax-c-ident: New file.
54234         * modules/unictype/syntax-java-ident: New file.
54235         * modules/unictype/ctype-alnum: New file.
54236         * modules/unictype/ctype-alpha: New file.
54237         * modules/unictype/ctype-cntrl: New file.
54238         * modules/unictype/ctype-digit: New file.
54239         * modules/unictype/ctype-graph: New file.
54240         * modules/unictype/ctype-lower: New file.
54241         * modules/unictype/ctype-print: New file.
54242         * modules/unictype/ctype-punct: New file.
54243         * modules/unictype/ctype-space: New file.
54244         * modules/unictype/ctype-upper: New file.
54245         * modules/unictype/ctype-xdigit: New file.
54246         * modules/unictype/ctype-blank: New file.
54247         * lib/unictype/bidi_byname.c: New file.
54248         * lib/unictype/bidi_name.c: New file.
54249         * lib/unictype/bidi_of.c: New file.
54250         * lib/unictype/bidi_test.c: New file.
54251         * lib/unictype/bitmap.h: New file.
54252         * lib/unictype/block_test.c: New file.
54253         * lib/unictype/blocks.c: New file.
54254         * lib/unictype/categ_C.c: New file.
54255         * lib/unictype/categ_Cc.c: New file.
54256         * lib/unictype/categ_Cf.c: New file.
54257         * lib/unictype/categ_Cn.c: New file.
54258         * lib/unictype/categ_Co.c: New file.
54259         * lib/unictype/categ_Cs.c: New file.
54260         * lib/unictype/categ_L.c: New file.
54261         * lib/unictype/categ_Ll.c: New file.
54262         * lib/unictype/categ_Lm.c: New file.
54263         * lib/unictype/categ_Lo.c: New file.
54264         * lib/unictype/categ_Lt.c: New file.
54265         * lib/unictype/categ_Lu.c: New file.
54266         * lib/unictype/categ_M.c: New file.
54267         * lib/unictype/categ_Mc.c: New file.
54268         * lib/unictype/categ_Me.c: New file.
54269         * lib/unictype/categ_Mn.c: New file.
54270         * lib/unictype/categ_N.c: New file.
54271         * lib/unictype/categ_Nd.c: New file.
54272         * lib/unictype/categ_Nl.c: New file.
54273         * lib/unictype/categ_No.c: New file.
54274         * lib/unictype/categ_P.c: New file.
54275         * lib/unictype/categ_Pc.c: New file.
54276         * lib/unictype/categ_Pd.c: New file.
54277         * lib/unictype/categ_Pe.c: New file.
54278         * lib/unictype/categ_Pf.c: New file.
54279         * lib/unictype/categ_Pi.c: New file.
54280         * lib/unictype/categ_Po.c: New file.
54281         * lib/unictype/categ_Ps.c: New file.
54282         * lib/unictype/categ_S.c: New file.
54283         * lib/unictype/categ_Sc.c: New file.
54284         * lib/unictype/categ_Sk.c: New file.
54285         * lib/unictype/categ_Sm.c: New file.
54286         * lib/unictype/categ_So.c: New file.
54287         * lib/unictype/categ_Z.c: New file.
54288         * lib/unictype/categ_Zl.c: New file.
54289         * lib/unictype/categ_Zp.c: New file.
54290         * lib/unictype/categ_Zs.c: New file.
54291         * lib/unictype/categ_and.c: New file.
54292         * lib/unictype/categ_and_not.c: New file.
54293         * lib/unictype/categ_byname.c: New file.
54294         * lib/unictype/categ_name.c: New file.
54295         * lib/unictype/categ_none.c: New file.
54296         * lib/unictype/categ_of.c: New file.
54297         * lib/unictype/categ_or.c: New file.
54298         * lib/unictype/categ_test.c: New file.
54299         * lib/unictype/combining.c: New file.
54300         * lib/unictype/ctype_alnum.c: New file.
54301         * lib/unictype/ctype_alpha.c: New file.
54302         * lib/unictype/ctype_blank.c: New file.
54303         * lib/unictype/ctype_cntrl.c: New file.
54304         * lib/unictype/ctype_digit.c: New file.
54305         * lib/unictype/ctype_graph.c: New file.
54306         * lib/unictype/ctype_lower.c: New file.
54307         * lib/unictype/ctype_print.c: New file.
54308         * lib/unictype/ctype_punct.c: New file.
54309         * lib/unictype/ctype_space.c: New file.
54310         * lib/unictype/ctype_upper.c: New file.
54311         * lib/unictype/ctype_xdigit.c: New file.
54312         * lib/unictype/decdigit.c: New file.
54313         * lib/unictype/digit.c: New file.
54314         * lib/unictype/identsyntaxmap.h: New file.
54315         * lib/unictype/mirror.c: New file.
54316         * lib/unictype/numeric.c: New file.
54317         * lib/unictype/pr_alphabetic.c: New file.
54318         * lib/unictype/pr_ascii_hex_digit.c: New file.
54319         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54320         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54321         * lib/unictype/pr_bidi_block_separator.c: New file.
54322         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54323         * lib/unictype/pr_bidi_common_separator.c: New file.
54324         * lib/unictype/pr_bidi_control.c: New file.
54325         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54326         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54327         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54328         * lib/unictype/pr_bidi_european_digit.c: New file.
54329         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54330         * lib/unictype/pr_bidi_left_to_right.c: New file.
54331         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54332         * lib/unictype/pr_bidi_other_neutral.c: New file.
54333         * lib/unictype/pr_bidi_pdf.c: New file.
54334         * lib/unictype/pr_bidi_segment_separator.c: New file.
54335         * lib/unictype/pr_bidi_whitespace.c: New file.
54336         * lib/unictype/pr_byname.c: New file.
54337         * lib/unictype/pr_byname.gperf: New file.
54338         * lib/unictype/pr_combining.c: New file.
54339         * lib/unictype/pr_composite.c: New file.
54340         * lib/unictype/pr_currency_symbol.c: New file.
54341         * lib/unictype/pr_dash.c: New file.
54342         * lib/unictype/pr_decimal_digit.c: New file.
54343         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54344         * lib/unictype/pr_deprecated.c: New file.
54345         * lib/unictype/pr_diacritic.c: New file.
54346         * lib/unictype/pr_extender.c: New file.
54347         * lib/unictype/pr_format_control.c: New file.
54348         * lib/unictype/pr_grapheme_base.c: New file.
54349         * lib/unictype/pr_grapheme_extend.c: New file.
54350         * lib/unictype/pr_grapheme_link.c: New file.
54351         * lib/unictype/pr_hex_digit.c: New file.
54352         * lib/unictype/pr_hyphen.c: New file.
54353         * lib/unictype/pr_id_continue.c: New file.
54354         * lib/unictype/pr_id_start.c: New file.
54355         * lib/unictype/pr_ideographic.c: New file.
54356         * lib/unictype/pr_ids_binary_operator.c: New file.
54357         * lib/unictype/pr_ids_trinary_operator.c: New file.
54358         * lib/unictype/pr_ignorable_control.c: New file.
54359         * lib/unictype/pr_iso_control.c: New file.
54360         * lib/unictype/pr_join_control.c: New file.
54361         * lib/unictype/pr_left_of_pair.c: New file.
54362         * lib/unictype/pr_line_separator.c: New file.
54363         * lib/unictype/pr_logical_order_exception.c: New file.
54364         * lib/unictype/pr_lowercase.c: New file.
54365         * lib/unictype/pr_math.c: New file.
54366         * lib/unictype/pr_non_break.c: New file.
54367         * lib/unictype/pr_not_a_character.c: New file.
54368         * lib/unictype/pr_numeric.c: New file.
54369         * lib/unictype/pr_other_alphabetic.c: New file.
54370         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54371         * lib/unictype/pr_other_grapheme_extend.c: New file.
54372         * lib/unictype/pr_other_id_continue.c: New file.
54373         * lib/unictype/pr_other_id_start.c: New file.
54374         * lib/unictype/pr_other_lowercase.c: New file.
54375         * lib/unictype/pr_other_math.c: New file.
54376         * lib/unictype/pr_other_uppercase.c: New file.
54377         * lib/unictype/pr_paired_punctuation.c: New file.
54378         * lib/unictype/pr_paragraph_separator.c: New file.
54379         * lib/unictype/pr_pattern_syntax.c: New file.
54380         * lib/unictype/pr_pattern_white_space.c: New file.
54381         * lib/unictype/pr_private_use.c: New file.
54382         * lib/unictype/pr_punctuation.c: New file.
54383         * lib/unictype/pr_quotation_mark.c: New file.
54384         * lib/unictype/pr_radical.c: New file.
54385         * lib/unictype/pr_sentence_terminal.c: New file.
54386         * lib/unictype/pr_soft_dotted.c: New file.
54387         * lib/unictype/pr_space.c: New file.
54388         * lib/unictype/pr_terminal_punctuation.c: New file.
54389         * lib/unictype/pr_test.c: New file.
54390         * lib/unictype/pr_titlecase.c: New file.
54391         * lib/unictype/pr_unassigned_code_value.c: New file.
54392         * lib/unictype/pr_unified_ideograph.c: New file.
54393         * lib/unictype/pr_uppercase.c: New file.
54394         * lib/unictype/pr_variation_selector.c: New file.
54395         * lib/unictype/pr_white_space.c: New file.
54396         * lib/unictype/pr_xid_continue.c: New file.
54397         * lib/unictype/pr_xid_start.c: New file.
54398         * lib/unictype/pr_zero_width.c: New file.
54399         * lib/unictype/scripts.c: New file.
54400         * lib/unictype/sy_c_ident.c: New file.
54401         * lib/unictype/sy_c_whitespace.c: New file.
54402         * lib/unictype/sy_java_ident.c: New file.
54403         * lib/unictype/sy_java_whitespace.c: New file.
54404
54405         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54406         Unicode 5.0.0.
54407         * lib/unictype/blocks.h: Likewise.
54408         * lib/unictype/categ_C.h: Likewise.
54409         * lib/unictype/categ_Cc.h: Likewise.
54410         * lib/unictype/categ_Cf.h: Likewise.
54411         * lib/unictype/categ_Cn.h: Likewise.
54412         * lib/unictype/categ_Co.h: Likewise.
54413         * lib/unictype/categ_Cs.h: Likewise.
54414         * lib/unictype/categ_L.h: Likewise.
54415         * lib/unictype/categ_Ll.h: Likewise.
54416         * lib/unictype/categ_Lm.h: Likewise.
54417         * lib/unictype/categ_Lo.h: Likewise.
54418         * lib/unictype/categ_Lt.h: Likewise.
54419         * lib/unictype/categ_Lu.h: Likewise.
54420         * lib/unictype/categ_M.h: Likewise.
54421         * lib/unictype/categ_Mc.h: Likewise.
54422         * lib/unictype/categ_Me.h: Likewise.
54423         * lib/unictype/categ_Mn.h: Likewise.
54424         * lib/unictype/categ_N.h: Likewise.
54425         * lib/unictype/categ_Nd.h: Likewise.
54426         * lib/unictype/categ_Nl.h: Likewise.
54427         * lib/unictype/categ_No.h: Likewise.
54428         * lib/unictype/categ_P.h: Likewise.
54429         * lib/unictype/categ_Pc.h: Likewise.
54430         * lib/unictype/categ_Pd.h: Likewise.
54431         * lib/unictype/categ_Pe.h: Likewise.
54432         * lib/unictype/categ_Pf.h: Likewise.
54433         * lib/unictype/categ_Pi.h: Likewise.
54434         * lib/unictype/categ_Po.h: Likewise.
54435         * lib/unictype/categ_Ps.h: Likewise.
54436         * lib/unictype/categ_S.h: Likewise.
54437         * lib/unictype/categ_Sc.h: Likewise.
54438         * lib/unictype/categ_Sk.h: Likewise.
54439         * lib/unictype/categ_Sm.h: Likewise.
54440         * lib/unictype/categ_So.h: Likewise.
54441         * lib/unictype/categ_Z.h: Likewise.
54442         * lib/unictype/categ_Zl.h: Likewise.
54443         * lib/unictype/categ_Zp.h: Likewise.
54444         * lib/unictype/categ_Zs.h: Likewise.
54445         * lib/unictype/categ_of.h: Likewise.
54446         * lib/unictype/combining.h: Likewise.
54447         * lib/unictype/ctype_alnum.h: Likewise.
54448         * lib/unictype/ctype_alpha.h: Likewise.
54449         * lib/unictype/ctype_blank.h: Likewise.
54450         * lib/unictype/ctype_cntrl.h: Likewise.
54451         * lib/unictype/ctype_digit.h: Likewise.
54452         * lib/unictype/ctype_graph.h: Likewise.
54453         * lib/unictype/ctype_lower.h: Likewise.
54454         * lib/unictype/ctype_print.h: Likewise.
54455         * lib/unictype/ctype_punct.h: Likewise.
54456         * lib/unictype/ctype_space.h: Likewise.
54457         * lib/unictype/ctype_upper.h: Likewise.
54458         * lib/unictype/ctype_xdigit.h: Likewise.
54459         * lib/unictype/decdigit.h: Likewise.
54460         * lib/unictype/digit.h: Likewise.
54461         * lib/unictype/mirror.h: Likewise.
54462         * lib/unictype/numeric.h: Likewise.
54463         * lib/unictype/pr_alphabetic.h: Likewise.
54464         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54465         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54466         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54467         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54468         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54469         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54470         * lib/unictype/pr_bidi_control.h: Likewise.
54471         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54472         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54473         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54474         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54475         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54476         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54477         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54478         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54479         * lib/unictype/pr_bidi_pdf.h: Likewise.
54480         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54481         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54482         * lib/unictype/pr_combining.h: Likewise.
54483         * lib/unictype/pr_composite.h: Likewise.
54484         * lib/unictype/pr_currency_symbol.h: Likewise.
54485         * lib/unictype/pr_dash.h: Likewise.
54486         * lib/unictype/pr_decimal_digit.h: Likewise.
54487         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54488         * lib/unictype/pr_deprecated.h: Likewise.
54489         * lib/unictype/pr_diacritic.h: Likewise.
54490         * lib/unictype/pr_extender.h: Likewise.
54491         * lib/unictype/pr_format_control.h: Likewise.
54492         * lib/unictype/pr_grapheme_base.h: Likewise.
54493         * lib/unictype/pr_grapheme_extend.h: Likewise.
54494         * lib/unictype/pr_grapheme_link.h: Likewise.
54495         * lib/unictype/pr_hex_digit.h: Likewise.
54496         * lib/unictype/pr_hyphen.h: Likewise.
54497         * lib/unictype/pr_id_continue.h: Likewise.
54498         * lib/unictype/pr_id_start.h: Likewise.
54499         * lib/unictype/pr_ideographic.h: Likewise.
54500         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54501         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54502         * lib/unictype/pr_ignorable_control.h: Likewise.
54503         * lib/unictype/pr_iso_control.h: Likewise.
54504         * lib/unictype/pr_join_control.h: Likewise.
54505         * lib/unictype/pr_left_of_pair.h: Likewise.
54506         * lib/unictype/pr_line_separator.h: Likewise.
54507         * lib/unictype/pr_logical_order_exception.h: Likewise.
54508         * lib/unictype/pr_lowercase.h: Likewise.
54509         * lib/unictype/pr_math.h: Likewise.
54510         * lib/unictype/pr_non_break.h: Likewise.
54511         * lib/unictype/pr_not_a_character.h: Likewise.
54512         * lib/unictype/pr_numeric.h: Likewise.
54513         * lib/unictype/pr_other_alphabetic.h: Likewise.
54514         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54515         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54516         * lib/unictype/pr_other_id_continue.h: Likewise.
54517         * lib/unictype/pr_other_id_start.h: Likewise.
54518         * lib/unictype/pr_other_lowercase.h: Likewise.
54519         * lib/unictype/pr_other_math.h: Likewise.
54520         * lib/unictype/pr_other_uppercase.h: Likewise.
54521         * lib/unictype/pr_paired_punctuation.h: Likewise.
54522         * lib/unictype/pr_paragraph_separator.h: Likewise.
54523         * lib/unictype/pr_pattern_syntax.h: Likewise.
54524         * lib/unictype/pr_pattern_white_space.h: Likewise.
54525         * lib/unictype/pr_private_use.h: Likewise.
54526         * lib/unictype/pr_punctuation.h: Likewise.
54527         * lib/unictype/pr_quotation_mark.h: Likewise.
54528         * lib/unictype/pr_radical.h: Likewise.
54529         * lib/unictype/pr_sentence_terminal.h: Likewise.
54530         * lib/unictype/pr_soft_dotted.h: Likewise.
54531         * lib/unictype/pr_space.h: Likewise.
54532         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54533         * lib/unictype/pr_titlecase.h: Likewise.
54534         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54535         * lib/unictype/pr_unified_ideograph.h: Likewise.
54536         * lib/unictype/pr_uppercase.h: Likewise.
54537         * lib/unictype/pr_variation_selector.h: Likewise.
54538         * lib/unictype/pr_white_space.h: Likewise.
54539         * lib/unictype/pr_xid_continue.h: Likewise.
54540         * lib/unictype/pr_xid_start.h: Likewise.
54541         * lib/unictype/pr_zero_width.h: Likewise.
54542         * lib/unictype/scripts.h: Likewise.
54543         * lib/unictype/scripts_byname.gperf: Likewise.
54544         * lib/unictype/sy_c_ident.h: Likewise.
54545         * lib/unictype/sy_c_whitespace.h: Likewise.
54546         * lib/unictype/sy_java_ident.h: Likewise.
54547         * lib/unictype/sy_java_whitespace.h: Likewise.
54548
54549         * lib/unictype/Makefile: New file.
54550         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54551         glibc.
54552         * lib/unictype/3level.h: New file, copied from glibc.
54553         * lib/unictype/3levelbit.h: New file.
54554
54555 2007-11-11  Bruno Haible  <bruno@clisp.org>
54556
54557         * modules/gperf: New file.
54558         * modules/iconv_open (Depends-on): Add it.
54559         (Makefile.am): Remove the GPERF definition.
54560
54561 2007-11-11  Bruno Haible  <bruno@clisp.org>
54562
54563         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54564         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54565
54566 2007-11-11  Bruno Haible  <bruno@clisp.org>
54567
54568         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54569         (usage): Remove function.
54570
54571 2007-11-11  Bruno Haible  <bruno@clisp.org>
54572
54573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54574         gl_FUNC_CEILF_LIBS.
54575         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54576         gl_FUNC_CEIL_LIBS.
54577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54578         gl_FUNC_CEILL_LIBS.
54579         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54580         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54581         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54582
54583 2007-11-11  Bruno Haible  <bruno@clisp.org>
54584
54585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54586         roundf were declared but do not exist on functions.
54587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54588         roundl were declared but do not exist on functions.
54589         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54590         HAVE_FLOORL_AND_CEILL, respectively.
54591         Needed for Sun C on Solaris 10.
54592
54593 2007-11-11  Bruno Haible  <bruno@clisp.org>
54594
54595         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54596         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54597         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54598         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54599         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54600         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54601         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54602         HAVE_DECL_ROUNDF.
54603         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54604         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54606         of HAVE_DECL_ROUND*.
54607         * modules/math (Makefile.am): Update.
54608
54609 2007-11-10  Bruno Haible  <bruno@clisp.org>
54610
54611         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54612         ptrdiff_t as m4/intl.m4.
54613
54614 2007-11-10  Jim Meyering  <meyering@redhat.com>
54615
54616         Avoid link failure for the argmatch test.
54617         * tests/test-argmatch.c (usage): Define function to avoid a link
54618         failure: argmatch_die requires a usage function.
54619
54620 2007-11-09  Bruno Haible  <bruno@clisp.org>
54621
54622         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54623         * doc/functions/vsnprintf.texi: Likewise.
54624         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54625         with a size argument < 2.
54626
54627 2007-11-09  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54630         buffer. Fixes an inefficiency introduced on 2007-11-03.
54631
54632 2007-11-09  Bruno Haible  <bruno@clisp.org>
54633
54634         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54635         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54636
54637 2007-11-08  Jim Meyering  <meyering@redhat.com>
54638
54639         Change cache variable name prefix "jm_" to "gl_" everywhere.
54640         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54641         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54642         * m4/uptime.m4: s/gl_/jm_/
54643
54644 2007-11-07  Bruno Haible  <bruno@clisp.org>
54645
54646         Update to GNU gettext 0.17.
54647         * m4/intl.m4: Update to GNU gettext 0.17.
54648         * m4/po.m4: Likewise.
54649         * modules/gettext (Files): Remove m4/ulonglong.m4.
54650         (configure.ac): Require gettext infrastructure from version 0.17.
54651
54652 2007-11-06  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54655         symbolic values are not defined in a public header.
54656         * lib/freadable.c (freadable) [QNX]: Likewise.
54657         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54658         * lib/freading.c (freading) [QNX]: Likewise.
54659         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54660         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54661         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54662         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54663         Reported by Alain Magloire.
54664
54665         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54666
54667 2007-11-05  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54670         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54671         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54672         Reported by Eric Blake.
54673
54674 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54675             Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54678         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54679         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54680         (malloc): Undefine also before including <stdlib.h>.
54681         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54682         Needed on OSF/1 4.0.
54683
54684 2007-11-05  Jim Meyering  <meyering@redhat.com>
54685
54686         git-version-gen: sync from coreutils.
54687         * build-aux/git-version-gen: Add comments.
54688         Change the first '-' to '.' in the snapshot version string,
54689         e.g., 6.9-377-08144 -> 6.9.377-08144
54690         Remove first parameter.
54691         Don't declare a version "-dirty" merely because a time
54692         stamp has changed.
54693
54694 2007-11-04  Bruno Haible  <bruno@clisp.org>
54695
54696         * lib/lock.h: Protect all macro definitions containing an 'if'
54697         statement through a "do { ... } while (0)".
54698         * lib/tls.h: Likewise.
54699
54700 2007-11-04  Bruno Haible  <bruno@clisp.org>
54701
54702         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54703
54704 2007-11-04  Bruno Haible  <bruno@clisp.org>
54705
54706         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54707         * modules/fprintf-posix (Depends-on): Add nocrash.
54708         * modules/snprintf-posix (Depends-on): Likewise.
54709         * modules/sprintf-posix (Depends-on): Likewise.
54710         * modules/vasnprintf-posix (Depends-on): Likewise.
54711         * modules/vasprintf-posix (Depends-on): Likewise.
54712         * modules/vfprintf-posix (Depends-on): Likewise.
54713         * modules/vsnprintf-posix (Depends-on): Likewise.
54714         * modules/vsprintf-posix (Depends-on): Likewise.
54715         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54716         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54717         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54718         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54719         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54720         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54721         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54722
54723 2007-11-04  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/nocrash: New file.
54726         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54727         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54728
54729 2007-11-04  Bruno Haible  <bruno@clisp.org>
54730
54731         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54732         precision handling.
54733         * tests/test-vasprintf-posix.c (test_function): Likewise.
54734         * tests/test-snprintf-posix.h (test_function): Likewise.
54735         * tests/test-sprintf-posix.h (test_function): Likewise.
54736
54737         Fix *printf behaviour for large precisions on mingw and BeOS.
54738         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54739         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54741         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54743         gl_PRINTF_PRECISION and test its result. Invoke
54744         gl_PREREQ_VASNPRINTF_PRECISION.
54745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54752         * doc/functions/fprintf.texi: Update.
54753         * doc/functions/printf.texi: Update.
54754         * doc/functions/snprintf.texi: Update.
54755         * doc/functions/sprintf.texi: Update.
54756         * doc/functions/vfprintf.texi: Update.
54757         * doc/functions/vprintf.texi: Update.
54758         * doc/functions/vsnprintf.texi: Update.
54759         * doc/functions/vsprintf.texi: Update.
54760
54761 2007-11-04  Bruno Haible  <bruno@clisp.org>
54762
54763         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54764
54765 2007-11-04  Bruno Haible  <bruno@clisp.org>
54766
54767         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54768         Reported by Sylvain Beucler <beuc@gnu.org>.
54769
54770 2007-11-03  Bruno Haible  <bruno@clisp.org>
54771
54772         * tests/test-fprintf-posix2.sh: New file.
54773         * tests/test-fprintf-posix2.c: New file.
54774         * modules/fprintf-posix-tests (Files): Add them.
54775         (TESTS): Add test-fprintf-posix2.sh.
54776         (configure.ac): Check for getrlimit and setrlimit.
54777         (check_PROGRAMS): Add test-fprintf-posix2.
54778
54779         * tests/test-printf-posix2.sh: New file.
54780         * tests/test-printf-posix2.c: New file.
54781         * modules/printf-posix-tests (Files): Add them.
54782         (TESTS): Add test-printf-posix2.sh.
54783         (configure.ac): Check for getrlimit and setrlimit.
54784         (check_PROGRAMS): Add test-printf-posix2.
54785
54786         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54787         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54788         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54789         (decode_double): New function, copied from decode_long_double.
54790         (scale10_round_decimal_decoded): New function, extracted from
54791         scale10_round_decimal_long_double.
54792         (scale10_round_decimal_long_double): Use it.
54793         (scale10_round_decimal_double): New function.
54794         (floorlog10): New function.
54795         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54797         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54799         gl_PRINTF_ENOMEM and test its result. Invoke
54800         gl_PREREQ_VASNPRINTF_ENOMEM.
54801         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54808         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54809         * modules/snprintf-posix (Depends-on): Likewise.
54810         * modules/sprintf-posix (Depends-on): Likewise.
54811         * modules/vasnprintf-posix (Depends-on): Likewise.
54812         * modules/vasprintf-posix (Depends-on): Likewise.
54813         * modules/vfprintf-posix (Depends-on): Likewise.
54814         * modules/vsnprintf-posix (Depends-on): Likewise.
54815         * modules/vsprintf-posix (Depends-on): Likewise.
54816         * doc/functions/fprintf.texi: Update.
54817         * doc/functions/printf.texi: Update.
54818         * doc/functions/snprintf.texi: Update.
54819         * doc/functions/sprintf.texi: Update.
54820         * doc/functions/vfprintf.texi: Update.
54821         * doc/functions/vprintf.texi: Update.
54822         * doc/functions/vsnprintf.texi: Update.
54823         * doc/functions/vsprintf.texi: Update.
54824
54825 2007-11-03  Bruno Haible  <bruno@clisp.org>
54826
54827         * modules/frexp-nolibm-tests: New file.
54828
54829         * modules/frexp-nolibm: New file.
54830         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54831
54832 2007-11-03  Bruno Haible  <bruno@clisp.org>
54833
54834         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54835         value is C99 compliant.
54836         Needed for OSF/1 5.1.
54837
54838 2007-11-03  Bruno Haible  <bruno@clisp.org>
54839
54840         Fix out-of-memory handling of vasnprintf.
54841         * lib/printf-parse.c: Include <errno.h>.
54842         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54843         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54844         is already set.
54845
54846 2007-11-02  Eric Blake  <ebb9@byu.net>
54847
54848         Fix tests on cygwin.
54849         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54850
54851 2007-11-01  Bruno Haible  <bruno@clisp.org>
54852
54853         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54854         warning.
54855         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54856         needed for POSIX compatibility.
54857
54858 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54859
54860         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54861         for compatibility with GNU.
54862
54863 2007-11-01  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54866         (putenv): Renamed from rpl_putenv. Change argument type from
54867         'const char *' to 'char *'.
54868         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54869         of defining putenv in config.h, just set REPLACE_PUTENV.
54870         * modules/putenv (Depends-on): Add stdlib.
54871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54872         (Include): Use <stdlib.h>.
54873         * lib/stdlib.in.h (putenv): New declaration.
54874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54875         REPLACE_PUTENV.
54876         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54877         REPLACE_PUTENV.
54878         Needed for MacOS X 10.5.0.
54879         Reported by Peter O'Gorman <peter@pogma.com>.
54880
54881 2007-11-01  Jim Meyering  <meyering@redhat.com>
54882
54883         Treat an empty date string exactly like "0".
54884         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54885         if the remaining date string (to be parsed) is empty, use "0".
54886         Reported by Mischa Molhoek and discussed in this thread:
54887         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54888
54889 2007-10-31  Bruno Haible  <bruno@clisp.org>
54890
54891         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54892         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54893         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54894         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54895         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54896         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54897
54898 2007-10-31  Bruno Haible  <bruno@clisp.org>
54899
54900         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54901         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54902         (AC_TYPE_LONG_LONG_INT): Use it.
54903         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54904         it as well.
54905         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54906         to m4/longlong.m4.
54907         * modules/stdint (Files): Remove m4/ulonglong.m4.
54908         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54909         m4/ulonglong.m4.
54910         * modules/strtoumax (Files): Likewise.
54911
54912 2007-10-30  Bruno Haible  <bruno@clisp.org>
54913
54914         * modules/xvasprintf-posix: New file.
54915         Suggested by Eric Blake.
54916
54917 2007-10-30  Bruno Haible  <bruno@clisp.org>
54918
54919         * modules/xprintf-posix-tests: New file.
54920         * tests/test-xprintf-posix.sh: New file.
54921         * tests/test-xprintf-posix.c: New file.
54922         * tests/test-xfprintf-posix.c: New file.
54923
54924         * modules/xprintf-posix: New file.
54925
54926 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54927
54928         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54929         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54930         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54931
54932 2007-10-29  Bruno Haible  <bruno@clisp.org>
54933
54934         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54935         contain the special marker '_cv_'.
54936         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54937         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54938         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54939         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54940         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54941         Reported by Ralf Wildenhues.
54942
54943 2007-10-29  Bruno Haible  <bruno@clisp.org>
54944
54945         * gnulib-tool (func_import): When --lgpl is not specified, set
54946         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54947         GPLv3.
54948         Reported by Simon Josefsson.
54949
54950 2007-10-28  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54953         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54954         HAVE_DECL_ISFINITE.
54955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54956         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54957         HAVE_DECL_ISFINITE.
54958
54959 2007-10-28  Bruno Haible  <bruno@clisp.org>
54960
54961         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54962         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54963
54964 2007-10-28  Bruno Haible  <bruno@clisp.org>
54965
54966         Fix link errors with Sun C 5.0 on Solaris 10.
54967         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54968         function is declared but not present in the compiler's libm.
54969         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54970         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54971         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54972         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54973         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54974         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54975         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54977         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54978         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54979         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54980         HAVE_DECL_FLOORL.
54981
54982 2007-10-28  Bruno Haible  <bruno@clisp.org>
54983
54984         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54985         gl_FUNC_FLOORL. Cache the result.
54986         (gl_FUNC_FLOORL): Use it.
54987         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54988         gl_FUNC_CEILL. Cache the result.
54989         (gl_FUNC_CEILL): Use it.
54990
54991         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54992         gl_FUNC_FLOOR. Cache the result.
54993         (gl_FUNC_FLOOR): Use it.
54994         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54995         gl_FUNC_CEIL. Cache the result.
54996         (gl_FUNC_CEIL): Use it.
54997
54998         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54999         gl_FUNC_FLOORF. Cache the result.
55000         (gl_FUNC_FLOORF): Use it.
55001         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55002         gl_FUNC_CEILF. Cache the result.
55003         (gl_FUNC_CEILF): Use it.
55004
55005 2007-10-28  Bruno Haible  <bruno@clisp.org>
55006
55007         * gnulib-tool: Allow specifying the LGPL version number through
55008         --lgpl=2 or --lgpl=3.
55009         (func_usage): Document --lgpl with argument.
55010         Handle --lgpl=... arguments.
55011         (func_import): Recognize also gl_LGPL calls with an argument. When
55012         --lgpl=2 is used and the module's license is just LGPL, report an
55013         error. Set sed_transform_lib_file according to the lgpl variable. In
55014         the generated files, use --lgpl or gl_LGPL invocations with argument,
55015         if necessary.
55016         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55017         an LGPv2+ license.
55018         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55019         gl_LGPL macro.
55020
55021 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55022             Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55025         (u16_uctomb_aux): Likewise.
55026         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55027         !HAVE_INLINE.
55028         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55029
55030 2007-10-28  Bruno Haible  <bruno@clisp.org>
55031
55032         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55033         Invoke AM_GETTEXT_OPTION if it exists.
55034         * modules/vasprintf: Likewise.
55035         * modules/verror: Likewise.
55036         * modules/xprintf: Likewise.
55037         * modules/xvasprintf: Likewise.
55038
55039 2007-10-27  Ben Pfaff  <blp@gnu.org>
55040
55041         * lib/math.in.h: Define isfinite macro and prototypes for
55042         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55043         implementations.
55044         * m4/math_h.m4: New substitutions for isfinite module.
55045         * lib/isfinite.c: New file.
55046         * m4/isfinite.m4: New file.
55047         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55048         * modules/isfinite: New file.
55049         * modules/isfinite-tests: New file.
55050         * tests/tests-isfinite.c: New file.
55051         * doc/functions/isfinite.texi: Mention isfinite module.
55052         * MODULES.html.sh: Mention new module.
55053
55054 2007-10-27  Ben Pfaff  <blp@gnu.org>
55055
55056         Ralf Wildenhues reported that Tru64 4.0D declares the round
55057         functions but does not have definitions.
55058         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55059         cannot be found in any library, set the output variable to
55060         "missing" instead of "".
55061         * m4/round.m4: Also use our substitute if we cannot find round in
55062         any library, even if it is declared.
55063         * m4/roundf.m4: Likewise for roundf.
55064         * m4/roundl.m4: Likewise for roundl.
55065         * lib/math.in.h: Undefine roundf, round, roundl before defining
55066         their replacements, to allow for hypothetical systems where these
55067         may be defined as macros but not available in libraries.
55068
55069 2007-10-27  Bruno Haible  <bruno@clisp.org>
55070
55071         * doc/gnulib.texi: Invoke @firstparagraphindent.
55072         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55073         changes in gnulib.
55074         (Source changes): New section.
55075
55076 2007-10-26  Bruno Haible  <bruno@clisp.org>
55077
55078         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55079         borrowed from autoconf.
55080
55081 2007-10-26  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55084         strerror returned the empty string. Needed on HP-UX 11.00.
55085
55086 2007-10-24  Micah Cowan  <micah@cowan.name>
55087
55088         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55089         * build-aux/bootstrap: Remove support for now-unnecessary option,
55090         --cvs-user, and envvars CVS_USER, CVS_RSH.
55091
55092 2007-10-24  Jim Meyering  <meyering@redhat.com>
55093
55094         Avoid diagnostics from sha1sum when there is no cached checksum.
55095         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55096         if the po.s1 file hasn't been created yet.
55097
55098         * build-aux/bootstrap: Sync from coreutils:
55099         2007-10-24  Jim Meyering  <meyering@redhat.com>
55100         Get gnulib from the git repository, not from an obsolete cvs one.
55101         * build-aux/bootstrap: Suggestion from Micah Cowan.
55102         2007-10-04  Jim Meyering  <jim@meyering.net>
55103         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55104         (update_po_files): Work also when there are no .po files in po/.
55105
55106 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         * README: Append ".git" to git and cg examples.
55109         Problem reported by Benoit Sigoure.
55110
55111 2007-10-23  Micah Cowan  <micah@cowan.name>
55112
55113         * users.txt: Add wget.
55114
55115 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55116
55117         Fix linking of some unistdio tests on FreeBSD.
55118         * modules/unistdio/u16-vsnprintf-tests
55119         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55120         * modules/unistdio/u16-vsprintf-tests
55121         (test_u16_vsnprintf1_LDADD): Likewise.
55122         * modules/unistdio/u32-vsnprintf-tests
55123         (test_u32_vsnprintf1_LDADD): Likewise.
55124         * modules/unistdio/u32-vsprintf-tests
55125         (test_u32_vsprintf1_LDADD): Likewise.
55126         * modules/unistdio/u8-vsnprintf-tests
55127         (test_u8_vsnprintf1_LDADD): Likewise.
55128         * modules/unistdio/u8-vsprintf-tests
55129         (test_u8_vsprintf1_LDADD): Likewise.
55130         * modules/unistdio/ulc-vsnprintf-tests
55131         (test_ulc_vsnprintf1_LDADD): Likewise.
55132         * modules/unistdio/ulc-vsprintf-tests
55133         (test_ulc_vsprintf1_LDADD): Likewise.
55134
55135         Fix linking of some uniconv tests on FreeBSD.
55136         * modules/uniconv/u16-conv-from-enc-tests
55137         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55138         * modules/uniconv/u16-conv-to-enc-tests
55139         (test_u16_conv_to_enc_LDADD): Likewise.
55140         * modules/uniconv/u16-strconv-from-enc-tests
55141         (test_u16_strconv_from_enc_LDADD): Likewise.
55142         * modules/uniconv/u16-strconv-to-enc-tests
55143         (test_u16_strconv_to_enc_LDADD): Likewise.
55144         * modules/uniconv/u32-conv-from-enc-tests
55145         (test_u32_conv_from_enc_LDADD): Likewise.
55146         * modules/uniconv/u32-conv-to-enc-tests
55147         (test_u32_conv_to_enc_LDADD): Likewise.
55148         * modules/uniconv/u32-strconv-from-enc-tests
55149         (test_u32_strconv_from_enc_LDADD): Likewise.
55150         * modules/uniconv/u32-strconv-to-enc-tests
55151         (test_u32_strconv_to_enc_LDADD): Likewise.
55152         * modules/uniconv/u8-conv-from-enc-tests
55153         (test_u8_conv_from_enc_LDADD): Likewise.
55154         * modules/uniconv/u8-conv-to-enc-tests
55155         (test_u8_conv_to_enc_LDADD): Likewise.
55156         * modules/uniconv/u8-strconv-from-enc-tests
55157         (test_u8_strconv_from_enc_LDADD): Likewise.
55158         * modules/uniconv/u8-strconv-to-enc-tests
55159         (test_u8_strconv_to_enc_LDADD): Likewise.
55160
55161 2007-10-22  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55164         size.
55165
55166 2007-10-22  Eric Blake  <ebb9@byu.net>
55167
55168         Tweak x*printf documentation.
55169         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55170         variable name and comments.
55171         Suggested by Bruno Haible.
55172
55173 2007-10-22  Bruno Haible  <bruno@clisp.org>
55174
55175         * lib/acl.c (copy_acl): Fix file name in comment.
55176
55177 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         Fix Tru64 problem with stdbool.h.
55180         * lib/stdbool.in.h (false, true):
55181         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55182         Don't declare as an enum in this situation; it runs afoul of Tru64.
55183         Problem reported by Steven M. Schweda in
55184         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55185
55186 2007-10-22  Eric Blake  <ebb9@byu.net>
55187
55188         Also wrap vf?printf.
55189         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55190         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55191         (xvprintf, xvfprintf): New functions.
55192
55193 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55194
55195         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55196         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55197
55198         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55199         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55200
55201 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55202
55203         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55204         by Bruno Haible.
55205
55206 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55207
55208         * lib/getloadavg.c
55209         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55210         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55211
55212         * tests/test-i-ring.c: Work for C89.
55213
55214 2007-10-22  Bruno Haible  <bruno@clisp.org>
55215
55216         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55217         -1u, in preprocessor expression, so that we don't test for the bug
55218         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55220
55221 2007-10-22  Eric Blake  <ebb9@byu.net>
55222
55223         * tests/test-yesno.sh: Silence stderr during test.
55224
55225 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55226
55227         * modules/crypto/gc-camellia: New file.
55228
55229         * m4/gc-camellia.m4: New file.
55230
55231         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55232
55233         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55234
55235 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55236
55237         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55238         --help to stdout.  Reported by sms@antinode.org (Steven
55239         M. Schweda).
55240
55241 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55242
55243         * users.txt: Fix link to libksba.
55244
55245 2007-10-21  Ben Pfaff  <blp@gnu.org>
55246
55247         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55248         round.c roundf implementation that depends on floorf and ceilf to
55249         be tested unconditionally.
55250
55251 2007-10-21  Ben Pfaff  <blp@gnu.org>
55252
55253         * m4/check-libm-func.m4: Removed.
55254         * m4/check-math-lib.m4: New file.
55255         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55256         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55257         definition and lack of AC_LIBOBJ([roundf]).
55258         * m4/roundl.m4: Ditto, and similarly for roundl.
55259         * modules/round: Reference new m4 file.
55260         * modules/roundf: Ditto.
55261         * modules/roundl: Ditto.
55262         * tests/test-round2.c (main): Use ROUND instead of round.
55263         Bug report from Bruno Haible.
55264
55265 2007-10-21  Bruno Haible  <bruno@clisp.org>
55266
55267         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55268         context.
55269
55270 2007-10-21  Bruno Haible  <bruno@clisp.org>
55271
55272         * tests/test-wcwidth.c (main): Allow negative result for some control
55273         characters.
55274
55275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55276         Needed on OSF/1 5.1.
55277
55278 2007-10-21  Bruno Haible  <bruno@clisp.org>
55279
55280         * tests/test-floorf1.c: Include isnanf.h.
55281         (main): Use isnanf() instead of isnan().
55282         * tests/test-ceilf1.c: Include isnanf.h.
55283         (main): Use isnanf() instead of isnan().
55284         * tests/test-truncf1.c: Include isnanf.h.
55285         (main): Use isnanf() instead of isnan().
55286         * tests/test-roundf1.c: Include isnanf.h.
55287         (main): Use isnanf() instead of isnan().
55288
55289 2007-10-21  Eric Blake  <ebb9@byu.net>
55290
55291         * users.txt: Update URL for m4.
55292
55293 2007-10-21  Bruno Haible  <bruno@clisp.org>
55294
55295         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55296
55297 2007-10-21  Bruno Haible  <bruno@clisp.org>
55298
55299         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55300         Git's management files if the CVS files are not present.
55301
55302 2007-10-20  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55305         gcc-3.4.x.
55306
55307 2007-10-20  Ben Pfaff  <blp@gnu.org>
55308
55309         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55310         implementations.
55311         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55312         * lib/round.c: New file.
55313         * lib/roundf.c: New file.
55314         * lib/roundl.c: New file.
55315         * m4/round.m4: New file.
55316         * m4/roundf.m4: New file.
55317         * m4/roundl.m4: New file.
55318         * m4/check-libm-func-m4: New file.
55319         * modules/math: Replace round, roundf, roundl related @VARS@ in
55320         math.in.h.
55321         * modules/round: New file.
55322         * modules/round-tests: New file.
55323         * modules/roundf: New file.
55324         * modules/roundf-tests: New file.
55325         * modules/roundl: New file.
55326         * modules/roundl-tests: New file.
55327         * tests/test-round1.c: New file.
55328         * tests/test-round2.c: New file.
55329         * tests/test-roundf1.c: New file.
55330         * tests/test-roundf2.c: New file.
55331         * tests/test-roundl.c: New file.
55332         * doc/functions/round.texi: Mention round module.
55333         * doc/functions/roundf.texi: Mention roundf module.
55334         * doc/functions/roundl.texi: Mention roundl module.
55335         * MODULES.html.sh: Mention new modules.
55336         Thanks to Bruno Haible for suggestions.
55337
55338 2007-10-20  Jim Meyering  <meyering@redhat.com>
55339
55340         * lib/xprintf.c: Include <config.h> unconditionally.
55341
55342         Change xprintf's license to GPL.
55343         * modules/xprintf (License): s/LGPL/GPL/, since this module
55344         depends on modules (exit and exitfail) which are GPL.
55345         Suggestion from Bruno Haible.
55346
55347         xprintf fixes.
55348         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55349         Use a clearer diagnostic.
55350         Patch from Bruno Haible.
55351
55352 2007-10-20  Bruno Haible  <bruno@clisp.org>
55353
55354         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55355         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55356         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55357
55358 2007-10-20  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55361         precision in the comparison result > x - 1 or similar.
55362         * tests/test-ceilf2.c (correct_result_p): Likewise.
55363         * tests/test-truncf2.c (correct_result_p): Likewise.
55364         * tests/test-trunc2.c (correct_result_p): Likewise.
55365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55366
55367 2007-10-20  Bruno Haible  <bruno@clisp.org>
55368
55369         * modules/ceil: New file.
55370         * m4/ceil.m4: New file.
55371         * doc/functions/ceil.texi: Mention the 'ceil' module.
55372
55373 2007-10-20  Bruno Haible  <bruno@clisp.org>
55374
55375         * modules/floor: New file.
55376         * m4/floor.m4: New file.
55377         * doc/functions/floor.texi: Mention the 'floor' module.
55378
55379 2007-10-20  Bruno Haible  <bruno@clisp.org>
55380
55381         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55382         of %a.
55383         * modules/floorf-tests (Depends-on): Likewise.
55384         * modules/truncf-tests (Depends-on): Likewise.
55385         * modules/trunc-tests (Depends-on): Likewise.
55386         Reported by Ben Pfaff.
55387
55388 2007-10-19  Jim Meyering  <meyering@redhat.com>
55389
55390         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55391         Don't bother testing specific errno values.  Just test ferror.
55392
55393         New module: xprintf
55394         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55395
55396 2007-10-19  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55399         syntax.
55400         * modules/javaexec (Makefile.am): Likewise.
55401         * modules/relocatable-prog (Makefile.am): Likewise.
55402         Suggested by Jim Meyering.
55403
55404 2007-10-18  Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55407         Reported by Jim Meyering.
55408
55409 2007-10-18  Eric Blake  <ebb9@byu.net>
55410
55411         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55412
55413 2007-10-18  Bruno Haible  <bruno@clisp.org>
55414
55415         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55416         the format string into writable memory. Needed in Fortify conditions.
55417
55418 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55419             Bruno Haible  <bruno@clisp.org>
55420
55421         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55422         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55423         * modules/trim (Depends-on): Add mbchar.
55424         (configure.ac): Add gl_FUNC_MBRTOWC.
55425         (Makefile.am): Augment lib_SOURCES.
55426
55427 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         Modify glob.c to use fstatat and dirfd, to simplify it.
55430         Suggested by Eric Blake.
55431         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55432         Don't include <stdbool.h>; not used.
55433         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55434         (link_exists_p): Simplify implementation, since we can now assume
55435         dirfd and fstatat.
55436         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55437
55438 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55439
55440         * gnulib-tool (func_get_dependencies): Fix sed script to
55441         match only tests.
55442
55443 2007-10-17  Bruno Haible  <bruno@clisp.org>
55444
55445         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55446         allow locale names without encoding suffix.
55447         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55448         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55449
55450 2007-10-16  Bruno Haible  <bruno@clisp.org>
55451
55452         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55453         * lib/getgroups.c (getgroups): Likewise.
55454         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55455
55456 2007-10-16  Bruno Haible  <bruno@clisp.org>
55457
55458         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55459         * modules/malloc-posix (License): Likewise.
55460         * modules/realloc-posix (License): Likewise.
55461         * modules/calloc-posix (License): Likewise.
55462         * modules/intprops (License): Change from GPL to LGPL, with
55463         Paul Eggert's approval.
55464
55465 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55466
55467         Merge glibc changes into lib/glob.c.
55468
55469         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55470         2007-10-15 04:59:03 UTC.  Here are the changes:
55471
55472         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55473
55474         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55475
55476         * lib/glob.c: Add some branch prediction throughout.
55477
55478         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55479
55480         [BZ #5103]
55481         * lib/glob.c (glob): Recognize patterns starting \/.
55482
55483         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55484
55485         [BZ #3996]
55486         * lib/glob.c (attribute_hidden): Define if not defined.
55487         (glob): Unescape dirname, filename or username when needed and not
55488         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55489         is NULL.  Handle unescaped [ in pattern without closing ].
55490         Don't pass GLOB_CHECK down to recursive glob for directories.
55491         (__glob_pattern_type): New function.
55492         (__glob_pattern_p): Implement using __glob_pattern_type.
55493         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55494         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55495         Remove unreachable code.
55496
55497         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55498
55499         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55500         explain why there are no leaks.
55501
55502         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55503
55504         [BZ #3253]
55505         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55506         time, rather allocate increasingly bigger arrays of pointers, if
55507         possible with alloca, if too large with malloc.
55508
55509 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55510
55511         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55512         Problem reported by H.Merijn Brand in
55513         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55514         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55515         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55516
55517 2007-10-15  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55520         with explicit rpl_ prefix.
55521         * lib/fopen.c (fopen): Likewise.
55522         * lib/freopen.c (freopen): Likewise.
55523         * lib/iconv.c (iconv): Likewise.
55524         * lib/iconv_close.c (iconv_close): Likewise.
55525
55526 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55527
55528         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55529
55530 2007-10-15  Bruno Haible  <bruno@clisp.org>
55531
55532         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55533         <stddef.h> instead of <stdlib.h> since we only need NULL.
55534         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55535
55536 2007-10-15  Bruno Haible  <bruno@clisp.org>
55537
55538         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55539         Replace paragraph talking about LIBOBJS.
55540         Reported by Colin Watson <cjwatson@debian.org>.
55541
55542 2007-10-15  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55545         <stdlib.h> before using NULL.
55546
55547 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55548
55549         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55550         Reported by Albert Chin <china@thewrittenword.com>.
55551
55552 2007-10-14  Bruno Haible  <bruno@clisp.org>
55553
55554         * modules/iconv_open-utf-tests: New file.
55555         * tests/test-iconv-utf.c: New file.
55556
55557         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55558         * modules/iconv_open-utf: New file.
55559         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55560         (iconv, iconv_close): New declarations.
55561         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55562         be defined.
55563         (iconv_open): Add special handling of conversion between UTF-8 and
55564         UTF-{16,32}{BE,LE}.
55565         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55566         * lib/iconv_close.c: New file.
55567         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55568         gl_FUNC_ICONV_OPEN.
55569         (gl_FUNC_ICONV_OPEN): Use it.
55570         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55571         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55572         and REPLACE_ICONV_UTF.
55573         * modules/iconv_open (Depends-on): Add c-strcase.
55574         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55575         ICONV_CONST.
55576         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55577
55578 2007-10-13  Albert Chin  <china@thewrittenword.com>
55579             Bruno Haible  <bruno@clisp.org>
55580
55581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55582         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55583
55584 2007-10-13  Bruno Haible  <bruno@clisp.org>
55585
55586         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55587         defined, use the ISO C99 inline semantics.
55588         * lib/argp.h (ARGP_EI): Likewise.
55589
55590 2007-10-13  Bruno Haible  <bruno@clisp.org>
55591
55592         Handle 'inline' change in gcc 4.3.0.
55593         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55594         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55595         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55596         argp_fmtstream_point): Disable 'extern' declaration if the function
55597         definition is going to be provided inline.
55598         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55599         semantics, not the ISO C99 inline semantics.
55600         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55601         'extern' declaration if the function definition is going to be provided
55602         inline.
55603         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55604         the GNU C inline semantics, not the ISO C99 inline semantics. With
55605         GCC 4.2, avoid a warning.
55606
55607 2007-10-13  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/freading.h (freading): Enable the use of __freading for
55610         glibc >= 2.7.
55611         * lib/freading.c (freading): Likewise.
55612
55613 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55614
55615         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55616         "warning: C99 inline functions are not supported; using GNU89".
55617
55618 2007-10-12  Bruno Haible  <bruno@clisp.org>
55619
55620         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55621         of 2.
55622         * tests/test-ceilf2.c: New file.
55623         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55624
55625         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55626         * modules/ceilf-tests: Update.
55627
55628 2007-10-12  Bruno Haible  <bruno@clisp.org>
55629
55630         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55631         of 2.
55632         * tests/test-floorf2.c: New file.
55633         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55634
55635         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55636         * modules/floorf-tests: Update.
55637
55638 2007-10-12  Bruno Haible  <bruno@clisp.org>
55639
55640         * tests/test-trunc2.c: New file.
55641         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55642
55643         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55644         * modules/trunc-tests: Update.
55645
55646 2007-10-12  Bruno Haible  <bruno@clisp.org>
55647
55648         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55649         of 2.
55650         * tests/test-truncf2.c: New file.
55651         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55652
55653         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55654         * modules/truncf-tests: Update.
55655
55656 2007-10-11  Eric Blake  <ebb9@byu.net>
55657
55658         Don't claim strerror is broken on Interix.
55659         * doc/functions/strerror.texi (strerror): Known broken systems are
55660         now Solaris 8, and not Interix.
55661         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55662         Interix on cross-compile.
55663         Reported by Martin Koeppe in
55664         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55665
55666 2007-10-11  Bruno Haible  <bruno@clisp.org>
55667
55668         * modules/i-ring-tests: New file.
55669         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55670         instead of assert.
55671
55672 2007-10-11  Bruno Haible  <bruno@clisp.org>
55673
55674         * modules/filenamecat-tests: New file.
55675         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55676         * lib/filenamecat.c: Remove test code.
55677
55678 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55681
55682         * lib/strerror.c: Include <string.h> always, to test interface,
55683         and to remove the need for the dummy.
55684         Include intprops.h to compute width instead of doing it ourselves
55685         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55686         (strerror): Define it to return NULL if there's no system strerror.
55687         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55688         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55689         ancient pre-strerror Unix systems well any more.  Saying "unknown
55690         system error" is enough.
55691         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55692         simpler strerror.c implementation.
55693         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55694         Simplify the tests to reflect the simpler strerror implementation.
55695         * modules/strerror (Depends-on): Add intprops.
55696
55697 2007-10-09  Eric Blake  <ebb9@byu.net>
55698
55699         Silence test-fpending.
55700         * modules/fpending-tests (Files): Add wrapper script.
55701         * tests/test-fpending.sh: New file.
55702
55703 2007-10-09  Bruno Haible  <bruno@clisp.org>
55704
55705         * MODULES.html.sh (func_module): Don't create a hyperlink for
55706         function names like 'printf_frexp'.
55707         (Misc): Add crc, memxor.
55708         (Characteristics of floating types): New section.
55709         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55710         isnanf-nolibm, signbit, trunc, truncf, truncl.
55711         (Enhancements for ISO C 99 functions): New subsection Input/output.
55712         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55713         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55714         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55715         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55716         (Enhancements for POSIX:2001 functions): Add chdir-long.
55717         (File system functions): Add areadlink, chdir-safer, read-file.
55718         Remove cycle-check.
55719         (File system as inode set): New section.
55720         (Date and time): Add gethrxtime.
55721         (Multithreading): Add openmp.
55722         (Internationalization functions): Add localename.
55723         (Unicode string functions): Add unistr/u*-mbsnlen.
55724         (Support for maintaining and releasing projects): Add git-version-gen.
55725         (Lone files): Remove directories.
55726
55727 2007-10-08  Ben Pfaff  <blp@gnu.org>
55728
55729         * lib/xmalloca.h: Fix typo in comment.
55730
55731 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55732
55733         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55734         when avoiding problems with integer overflow.  Use a portable test
55735         instead.
55736
55737 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55738
55739         * modules/dummy (License): Change to LGPLv2+.
55740         * modules/float (License): Likewise
55741         * modules/realloc (License): Likewise
55742         * modules/stdlib (License): Likewise
55743
55744 2007-10-07  Bruno Haible  <bruno@clisp.org>
55745
55746         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55747         * floor.c (TWO_MANT_DIG): Likewise.
55748         * ceil.c (TWO_MANT_DIG): Likewise.
55749         Reported by Ben Pfaff.
55750
55751 2007-10-07  Bruno Haible  <bruno@clisp.org>
55752
55753         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55754         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55755         * lib/frexp.c (FUNC): Likewise.
55756         * lib/printf-frexp.h (printf_frexp): Likewise.
55757         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55758         * lib/printf-frexp.c (FUNC): Likewise.
55759         Suggested by Jim Meyering.
55760
55761 2007-10-07  Jim Meyering  <meyering@redhat.com>
55762
55763         Make xnanosleep's integer overflow test more robust.
55764         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55765         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55766
55767 2007-10-07  Bruno Haible  <bruno@clisp.org>
55768
55769         * NEWS: Mention the license change.
55770
55771         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55772         abbreviations in the modules files.
55773
55774         Change copyright notice from GPLv2+ to GPLv3+.
55775         * README: Change copyright notice.
55776         * MODULES.html.sh: Likewise.
55777         * build-aux/bootstrap.conf: Likewise.
55778         * build-aux/config.libpath: Likewise.
55779         * build-aux/csharpcomp.sh.in: Likewise.
55780         * build-aux/csharpexec.sh.in: Likewise.
55781         * build-aux/install-reloc: Likewise.
55782         * build-aux/javacomp.sh.in: Likewise.
55783         * build-aux/javaexec.sh.in: Likewise.
55784         * build-aux/ldd.sh.in: Likewise.
55785         * build-aux/reloc-ldflags: Likewise.
55786         * build-aux/relocatable.sh.in: Likewise.
55787         * build-aux/x-to-1.in: Likewise.
55788         * check-module: Likewise.
55789         * config/srclistvars.sh: Likewise.
55790         * gnulib-tool: Likewise.
55791         * lib/acl-internal.h: Likewise.
55792         * lib/acl.c: Likewise.
55793         * lib/acl.h: Likewise.
55794         * lib/acl_entries.c: Likewise.
55795         * lib/areadlink-with-size.c: Likewise.
55796         * lib/areadlink.c: Likewise.
55797         * lib/areadlink.h: Likewise.
55798         * lib/argmatch.c: Likewise.
55799         * lib/argmatch.h: Likewise.
55800         * lib/argp-ba.c: Likewise.
55801         * lib/argp-eexst.c: Likewise.
55802         * lib/argp-fmtstream.c: Likewise.
55803         * lib/argp-fmtstream.h: Likewise.
55804         * lib/argp-fs-xinl.c: Likewise.
55805         * lib/argp-help.c: Likewise.
55806         * lib/argp-namefrob.h: Likewise.
55807         * lib/argp-parse.c: Likewise.
55808         * lib/argp-pin.c: Likewise.
55809         * lib/argp-pv.c: Likewise.
55810         * lib/argp-pvh.c: Likewise.
55811         * lib/argp-xinl.c: Likewise.
55812         * lib/argp.h: Likewise.
55813         * lib/at-func.c: Likewise.
55814         * lib/atanl.c: Likewise.
55815         * lib/backupfile.c: Likewise.
55816         * lib/backupfile.h: Likewise.
55817         * lib/basename.c: Likewise.
55818         * lib/binary-io.h: Likewise.
55819         * lib/byteswap.in.h: Likewise.
55820         * lib/c-stack.c: Likewise.
55821         * lib/c-stack.h: Likewise.
55822         * lib/c-strcasestr.c: Likewise.
55823         * lib/c-strcasestr.h: Likewise.
55824         * lib/c-strstr.c: Likewise.
55825         * lib/c-strstr.h: Likewise.
55826         * lib/c-strtod.c: Likewise.
55827         * lib/calloc.c: Likewise.
55828         * lib/canon-host.c: Likewise.
55829         * lib/canon-host.h: Likewise.
55830         * lib/canonicalize-lgpl.c: Likewise.
55831         * lib/canonicalize.c: Likewise.
55832         * lib/canonicalize.h: Likewise.
55833         * lib/ceil.c: Likewise.
55834         * lib/ceilf.c: Likewise.
55835         * lib/ceill.c: Likewise.
55836         * lib/chdir-long.c: Likewise.
55837         * lib/chdir-long.h: Likewise.
55838         * lib/chdir-safer.c: Likewise.
55839         * lib/chdir-safer.h: Likewise.
55840         * lib/chown.c: Likewise.
55841         * lib/classpath.c: Likewise.
55842         * lib/classpath.h: Likewise.
55843         * lib/clean-temp.c: Likewise.
55844         * lib/clean-temp.h: Likewise.
55845         * lib/cloexec.c: Likewise.
55846         * lib/close-stream.c: Likewise.
55847         * lib/closein.c: Likewise.
55848         * lib/closein.h: Likewise.
55849         * lib/closeout.c: Likewise.
55850         * lib/closeout.h: Likewise.
55851         * lib/concat-filename.c: Likewise.
55852         * lib/copy-file.c: Likewise.
55853         * lib/copy-file.h: Likewise.
55854         * lib/count-one-bits.h: Likewise.
55855         * lib/crc.c: Likewise.
55856         * lib/crc.h: Likewise.
55857         * lib/creat-safer.c: Likewise.
55858         * lib/csharpcomp.c: Likewise.
55859         * lib/csharpcomp.h: Likewise.
55860         * lib/csharpexec.c: Likewise.
55861         * lib/csharpexec.h: Likewise.
55862         * lib/cycle-check.c: Likewise.
55863         * lib/cycle-check.h: Likewise.
55864         * lib/diacrit.c: Likewise.
55865         * lib/diacrit.h: Likewise.
55866         * lib/diffseq.h: Likewise.
55867         * lib/dirchownmod.c: Likewise.
55868         * lib/dirent.in.h: Likewise.
55869         * lib/dirfd.c: Likewise.
55870         * lib/dirfd.h: Likewise.
55871         * lib/dirname.c: Likewise.
55872         * lib/dirname.h: Likewise.
55873         * lib/dummy.c: Likewise.
55874         * lib/dup-safer.c: Likewise.
55875         * lib/dup2.c: Likewise.
55876         * lib/eealloc.h: Likewise.
55877         * lib/error.c: Likewise.
55878         * lib/error.h: Likewise.
55879         * lib/euidaccess.c: Likewise.
55880         * lib/exclude.c: Likewise.
55881         * lib/exclude.h: Likewise.
55882         * lib/execute.c: Likewise.
55883         * lib/execute.h: Likewise.
55884         * lib/exitfail.c: Likewise.
55885         * lib/exitfail.h: Likewise.
55886         * lib/expl.c: Likewise.
55887         * lib/fatal-signal.c: Likewise.
55888         * lib/fatal-signal.h: Likewise.
55889         * lib/fbufmode.c: Likewise.
55890         * lib/fbufmode.h: Likewise.
55891         * lib/fchdir.c: Likewise.
55892         * lib/fchmodat.c: Likewise.
55893         * lib/fchownat.c: Likewise.
55894         * lib/fcntl--.h: Likewise.
55895         * lib/fcntl-safer.h: Likewise.
55896         * lib/fcntl.in.h: Likewise.
55897         * lib/fd-safer.c: Likewise.
55898         * lib/fflush.c: Likewise.
55899         * lib/file-has-acl.c: Likewise.
55900         * lib/file-set.c: Likewise.
55901         * lib/file-type.c: Likewise.
55902         * lib/file-type.h: Likewise.
55903         * lib/fileblocks.c: Likewise.
55904         * lib/filemode.c: Likewise.
55905         * lib/filemode.h: Likewise.
55906         * lib/filename.h: Likewise.
55907         * lib/filenamecat.c: Likewise.
55908         * lib/filenamecat.h: Likewise.
55909         * lib/findprog.c: Likewise.
55910         * lib/findprog.h: Likewise.
55911         * lib/float.in.h: Likewise.
55912         * lib/floor.c: Likewise.
55913         * lib/floorf.c: Likewise.
55914         * lib/floorl.c: Likewise.
55915         * lib/fopen-safer.c: Likewise.
55916         * lib/fopen.c: Likewise.
55917         * lib/fpending.c: Likewise.
55918         * lib/fpending.h: Likewise.
55919         * lib/fprintf.c: Likewise.
55920         * lib/fprintftime.h: Likewise.
55921         * lib/fpucw.h: Likewise.
55922         * lib/fpurge.c: Likewise.
55923         * lib/fpurge.h: Likewise.
55924         * lib/freadable.c: Likewise.
55925         * lib/freadable.h: Likewise.
55926         * lib/freadahead.c: Likewise.
55927         * lib/freadahead.h: Likewise.
55928         * lib/freading.c: Likewise.
55929         * lib/freading.h: Likewise.
55930         * lib/free.c: Likewise.
55931         * lib/freopen.c: Likewise.
55932         * lib/frexp.c: Likewise.
55933         * lib/frexpl.c: Likewise.
55934         * lib/fseek.c: Likewise.
55935         * lib/fseterr.c: Likewise.
55936         * lib/fseterr.h: Likewise.
55937         * lib/fstatat.c: Likewise.
55938         * lib/fstrcmp.c: Likewise.
55939         * lib/fstrcmp.h: Likewise.
55940         * lib/fsusage.c: Likewise.
55941         * lib/fsusage.h: Likewise.
55942         * lib/ftell.c: Likewise.
55943         * lib/ftello.c: Likewise.
55944         * lib/fts-cycle.c: Likewise.
55945         * lib/fts.c: Likewise.
55946         * lib/fts_.h: Likewise.
55947         * lib/full-read.c: Likewise.
55948         * lib/full-read.h: Likewise.
55949         * lib/full-write.c: Likewise.
55950         * lib/full-write.h: Likewise.
55951         * lib/fwritable.c: Likewise.
55952         * lib/fwritable.h: Likewise.
55953         * lib/fwriteerror.c: Likewise.
55954         * lib/fwriteerror.h: Likewise.
55955         * lib/fwriting.c: Likewise.
55956         * lib/fwriting.h: Likewise.
55957         * lib/gcd.c: Likewise.
55958         * lib/gcd.h: Likewise.
55959         * lib/getcwd.c: Likewise.
55960         * lib/getdate.h: Likewise.
55961         * lib/getdate.y: Likewise.
55962         * lib/getdomainname.c: Likewise.
55963         * lib/getdomainname.h: Likewise.
55964         * lib/getgroups.c: Likewise.
55965         * lib/gethostname.c: Likewise.
55966         * lib/gethrxtime.c: Likewise.
55967         * lib/gethrxtime.h: Likewise.
55968         * lib/getloadavg.c: Likewise.
55969         * lib/getndelim2.c: Likewise.
55970         * lib/getndelim2.h: Likewise.
55971         * lib/getnline.c: Likewise.
55972         * lib/getnline.h: Likewise.
55973         * lib/getopt.c: Likewise.
55974         * lib/getopt.in.h: Likewise.
55975         * lib/getopt1.c: Likewise.
55976         * lib/getopt_int.h: Likewise.
55977         * lib/getpagesize.h: Likewise.
55978         * lib/getsubopt.c: Likewise.
55979         * lib/gettime.c: Likewise.
55980         * lib/getugroups.c: Likewise.
55981         * lib/getugroups.h: Likewise.
55982         * lib/getusershell.c: Likewise.
55983         * lib/gl_anyavltree_list1.h: Likewise.
55984         * lib/gl_anyavltree_list2.h: Likewise.
55985         * lib/gl_anyhash_list1.h: Likewise.
55986         * lib/gl_anyhash_list2.h: Likewise.
55987         * lib/gl_anylinked_list1.h: Likewise.
55988         * lib/gl_anylinked_list2.h: Likewise.
55989         * lib/gl_anyrbtree_list1.h: Likewise.
55990         * lib/gl_anyrbtree_list2.h: Likewise.
55991         * lib/gl_anytree_list1.h: Likewise.
55992         * lib/gl_anytree_list2.h: Likewise.
55993         * lib/gl_anytree_oset.h: Likewise.
55994         * lib/gl_anytreehash_list1.h: Likewise.
55995         * lib/gl_anytreehash_list2.h: Likewise.
55996         * lib/gl_array_list.c: Likewise.
55997         * lib/gl_array_list.h: Likewise.
55998         * lib/gl_array_oset.c: Likewise.
55999         * lib/gl_array_oset.h: Likewise.
56000         * lib/gl_avltree_list.c: Likewise.
56001         * lib/gl_avltree_list.h: Likewise.
56002         * lib/gl_avltree_oset.c: Likewise.
56003         * lib/gl_avltree_oset.h: Likewise.
56004         * lib/gl_avltreehash_list.c: Likewise.
56005         * lib/gl_avltreehash_list.h: Likewise.
56006         * lib/gl_carray_list.c: Likewise.
56007         * lib/gl_carray_list.h: Likewise.
56008         * lib/gl_linked_list.c: Likewise.
56009         * lib/gl_linked_list.h: Likewise.
56010         * lib/gl_linkedhash_list.c: Likewise.
56011         * lib/gl_linkedhash_list.h: Likewise.
56012         * lib/gl_list.c: Likewise.
56013         * lib/gl_list.h: Likewise.
56014         * lib/gl_oset.c: Likewise.
56015         * lib/gl_oset.h: Likewise.
56016         * lib/gl_rbtree_list.c: Likewise.
56017         * lib/gl_rbtree_list.h: Likewise.
56018         * lib/gl_rbtree_oset.c: Likewise.
56019         * lib/gl_rbtree_oset.h: Likewise.
56020         * lib/gl_rbtreehash_list.c: Likewise.
56021         * lib/gl_rbtreehash_list.h: Likewise.
56022         * lib/gl_sublist.c: Likewise.
56023         * lib/gl_sublist.h: Likewise.
56024         * lib/group-member.c: Likewise.
56025         * lib/group-member.h: Likewise.
56026         * lib/hard-locale.c: Likewise.
56027         * lib/hard-locale.h: Likewise.
56028         * lib/hash-pjw.c: Likewise.
56029         * lib/hash-pjw.h: Likewise.
56030         * lib/hash-triple.c: Likewise.
56031         * lib/hash.c: Likewise.
56032         * lib/hash.h: Likewise.
56033         * lib/human.c: Likewise.
56034         * lib/human.h: Likewise.
56035         * lib/i-ring.c: Likewise.
56036         * lib/i-ring.h: Likewise.
56037         * lib/idcache.c: Likewise.
56038         * lib/imaxabs.c: Likewise.
56039         * lib/imaxdiv.c: Likewise.
56040         * lib/inet_pton.c: Likewise.
56041         * lib/inet_pton.h: Likewise.
56042         * lib/intprops.h: Likewise.
56043         * lib/inttostr.c: Likewise.
56044         * lib/inttostr.h: Likewise.
56045         * lib/inttypes.in.h: Likewise.
56046         * lib/isapipe.c: Likewise.
56047         * lib/isdir.c: Likewise.
56048         * lib/isnan.c: Likewise.
56049         * lib/isnan.h: Likewise.
56050         * lib/isnanf.c: Likewise.
56051         * lib/isnanf.h: Likewise.
56052         * lib/isnanl-nolibm.h: Likewise.
56053         * lib/isnanl.c: Likewise.
56054         * lib/isnanl.h: Likewise.
56055         * lib/javacomp.c: Likewise.
56056         * lib/javacomp.h: Likewise.
56057         * lib/javaexec.c: Likewise.
56058         * lib/javaexec.h: Likewise.
56059         * lib/javaversion.c: Likewise.
56060         * lib/javaversion.h: Likewise.
56061         * lib/javaversion.java: Likewise.
56062         * lib/lbrkprop.h: Likewise.
56063         * lib/lchmod.h: Likewise.
56064         * lib/lchown.c: Likewise.
56065         * lib/ldexpl.c: Likewise.
56066         * lib/linebreak.c: Likewise.
56067         * lib/linebreak.h: Likewise.
56068         * lib/linebuffer.c: Likewise.
56069         * lib/linebuffer.h: Likewise.
56070         * lib/locale.in.h: Likewise.
56071         * lib/logl.c: Likewise.
56072         * lib/long-options.c: Likewise.
56073         * lib/long-options.h: Likewise.
56074         * lib/lstat.c: Likewise.
56075         * lib/lstat.h: Likewise.
56076         * lib/math.in.h: Likewise.
56077         * lib/mbchar.c: Likewise.
56078         * lib/mbchar.h: Likewise.
56079         * lib/mbfile.h: Likewise.
56080         * lib/mbiter.h: Likewise.
56081         * lib/mbscasecmp.c: Likewise.
56082         * lib/mbscasestr.c: Likewise.
56083         * lib/mbschr.c: Likewise.
56084         * lib/mbscspn.c: Likewise.
56085         * lib/mbslen.c: Likewise.
56086         * lib/mbsncasecmp.c: Likewise.
56087         * lib/mbsnlen.c: Likewise.
56088         * lib/mbspbrk.c: Likewise.
56089         * lib/mbspcasecmp.c: Likewise.
56090         * lib/mbsrchr.c: Likewise.
56091         * lib/mbssep.c: Likewise.
56092         * lib/mbsspn.c: Likewise.
56093         * lib/mbsstr.c: Likewise.
56094         * lib/mbstok_r.c: Likewise.
56095         * lib/mbswidth.c: Likewise.
56096         * lib/mbswidth.h: Likewise.
56097         * lib/mbuiter.h: Likewise.
56098         * lib/memcasecmp.c: Likewise.
56099         * lib/memcasecmp.h: Likewise.
56100         * lib/memchr.c: Likewise.
56101         * lib/memcmp.c: Likewise.
56102         * lib/memcoll.c: Likewise.
56103         * lib/memcoll.h: Likewise.
56104         * lib/memcpy.c: Likewise.
56105         * lib/memrchr.c: Likewise.
56106         * lib/mkancesdirs.c: Likewise.
56107         * lib/mkdir-p.c: Likewise.
56108         * lib/mkdir-p.h: Likewise.
56109         * lib/mkdir.c: Likewise.
56110         * lib/mkdirat.c: Likewise.
56111         * lib/mkdtemp.c: Likewise.
56112         * lib/mkstemp-safer.c: Likewise.
56113         * lib/mkstemp.c: Likewise.
56114         * lib/modechange.c: Likewise.
56115         * lib/modechange.h: Likewise.
56116         * lib/mountlist.c: Likewise.
56117         * lib/mountlist.h: Likewise.
56118         * lib/mpsort.c: Likewise.
56119         * lib/nanosleep.c: Likewise.
56120         * lib/obstack.c: Likewise.
56121         * lib/obstack.h: Likewise.
56122         * lib/open-safer.c: Likewise.
56123         * lib/open.c: Likewise.
56124         * lib/openat-die.c: Likewise.
56125         * lib/openat-priv.h: Likewise.
56126         * lib/openat-proc.c: Likewise.
56127         * lib/openat.c: Likewise.
56128         * lib/openat.h: Likewise.
56129         * lib/pagealign_alloc.c: Likewise.
56130         * lib/pagealign_alloc.h: Likewise.
56131         * lib/physmem.c: Likewise.
56132         * lib/physmem.h: Likewise.
56133         * lib/pipe-safer.c: Likewise.
56134         * lib/pipe.c: Likewise.
56135         * lib/pipe.h: Likewise.
56136         * lib/posixtm.c: Likewise.
56137         * lib/posixtm.h: Likewise.
56138         * lib/posixver.c: Likewise.
56139         * lib/printf-frexp.c: Likewise.
56140         * lib/printf-frexp.h: Likewise.
56141         * lib/printf-frexpl.c: Likewise.
56142         * lib/printf-frexpl.h: Likewise.
56143         * lib/printf.c: Likewise.
56144         * lib/progname.c: Likewise.
56145         * lib/progname.h: Likewise.
56146         * lib/progreloc.c: Likewise.
56147         * lib/putenv.c: Likewise.
56148         * lib/quote.c: Likewise.
56149         * lib/quote.h: Likewise.
56150         * lib/quotearg.c: Likewise.
56151         * lib/quotearg.h: Likewise.
56152         * lib/raise.c: Likewise.
56153         * lib/readline.c: Likewise.
56154         * lib/readline.h: Likewise.
56155         * lib/readlink.c: Likewise.
56156         * lib/readtokens.c: Likewise.
56157         * lib/readtokens.h: Likewise.
56158         * lib/readtokens0.c: Likewise.
56159         * lib/readtokens0.h: Likewise.
56160         * lib/readutmp.c: Likewise.
56161         * lib/readutmp.h: Likewise.
56162         * lib/realloc.c: Likewise.
56163         * lib/relocwrapper.c: Likewise.
56164         * lib/rename-dest-slash.c: Likewise.
56165         * lib/rename.c: Likewise.
56166         * lib/rmdir.c: Likewise.
56167         * lib/rpmatch.c: Likewise.
56168         * lib/safe-read.c: Likewise.
56169         * lib/safe-read.h: Likewise.
56170         * lib/safe-write.c: Likewise.
56171         * lib/safe-write.h: Likewise.
56172         * lib/same-inode.h: Likewise.
56173         * lib/same.c: Likewise.
56174         * lib/same.h: Likewise.
56175         * lib/save-cwd.c: Likewise.
56176         * lib/save-cwd.h: Likewise.
56177         * lib/savedir.c: Likewise.
56178         * lib/savedir.h: Likewise.
56179         * lib/savewd.c: Likewise.
56180         * lib/savewd.h: Likewise.
56181         * lib/search.in.h: Likewise.
56182         * lib/setenv.c: Likewise.
56183         * lib/setenv.h: Likewise.
56184         * lib/settime.c: Likewise.
56185         * lib/sh-quote.c: Likewise.
56186         * lib/sh-quote.h: Likewise.
56187         * lib/sig2str.c: Likewise.
56188         * lib/sig2str.h: Likewise.
56189         * lib/signal.in.h: Likewise.
56190         * lib/signbitd.c: Likewise.
56191         * lib/signbitf.c: Likewise.
56192         * lib/signbitl.c: Likewise.
56193         * lib/sigprocmask.c: Likewise.
56194         * lib/sincosl.c: Likewise.
56195         * lib/sleep.c: Likewise.
56196         * lib/sprintf.c: Likewise.
56197         * lib/sqrtl.c: Likewise.
56198         * lib/stat-time.h: Likewise.
56199         * lib/stdio--.h: Likewise.
56200         * lib/stdio-safer.h: Likewise.
56201         * lib/stdlib--.h: Likewise.
56202         * lib/stdlib-safer.h: Likewise.
56203         * lib/stdlib.in.h: Likewise.
56204         * lib/stpcpy.c: Likewise.
56205         * lib/stpncpy.c: Likewise.
56206         * lib/strchrnul.c: Likewise.
56207         * lib/strcspn.c: Likewise.
56208         * lib/strerror.c: Likewise.
56209         * lib/strftime.c: Likewise.
56210         * lib/strftime.h: Likewise.
56211         * lib/striconveh.c: Likewise.
56212         * lib/striconveh.h: Likewise.
56213         * lib/striconveha.c: Likewise.
56214         * lib/striconveha.h: Likewise.
56215         * lib/stripslash.c: Likewise.
56216         * lib/strnlen1.c: Likewise.
56217         * lib/strnlen1.h: Likewise.
56218         * lib/strtod.c: Likewise.
56219         * lib/strtoimax.c: Likewise.
56220         * lib/strtok_r.c: Likewise.
56221         * lib/strtol.c: Likewise.
56222         * lib/strtoll.c: Likewise.
56223         * lib/strtoul.c: Likewise.
56224         * lib/strtoull.c: Likewise.
56225         * lib/sysexits.in.h: Likewise.
56226         * lib/tempname.c: Likewise.
56227         * lib/tempname.h: Likewise.
56228         * lib/timespec.h: Likewise.
56229         * lib/tls.c: Likewise.
56230         * lib/tls.h: Likewise.
56231         * lib/tmpdir.c: Likewise.
56232         * lib/tmpdir.h: Likewise.
56233         * lib/tmpfile-safer.c: Likewise.
56234         * lib/tmpfile.c: Likewise.
56235         * lib/trigl.c: Likewise.
56236         * lib/trigl.h: Likewise.
56237         * lib/trim.c: Likewise.
56238         * lib/trim.h: Likewise.
56239         * lib/trunc.c: Likewise.
56240         * lib/truncf.c: Likewise.
56241         * lib/truncl.c: Likewise.
56242         * lib/tsearch.c: Likewise.
56243         * lib/unicodeio.c: Likewise.
56244         * lib/unicodeio.h: Likewise.
56245         * lib/unistd--.h: Likewise.
56246         * lib/unistd-safer.h: Likewise.
56247         * lib/unistdio/ulc-fprintf.c: Likewise.
56248         * lib/unistdio/ulc-vfprintf.c: Likewise.
56249         * lib/unlinkdir.c: Likewise.
56250         * lib/unlinkdir.h: Likewise.
56251         * lib/unlocked-io.h: Likewise.
56252         * lib/unsetenv.c: Likewise.
56253         * lib/userspec.c: Likewise.
56254         * lib/utime.c: Likewise.
56255         * lib/utimecmp.c: Likewise.
56256         * lib/utimecmp.h: Likewise.
56257         * lib/utimens.c: Likewise.
56258         * lib/verify.h: Likewise.
56259         * lib/verror.c: Likewise.
56260         * lib/verror.h: Likewise.
56261         * lib/version-etc-fsf.c: Likewise.
56262         * lib/version-etc.c: Likewise.
56263         * lib/version-etc.h: Likewise.
56264         * lib/vfprintf.c: Likewise.
56265         * lib/vprintf.c: Likewise.
56266         * lib/vsprintf.c: Likewise.
56267         * lib/w32spawn.h: Likewise.
56268         * lib/wait-process.c: Likewise.
56269         * lib/wait-process.h: Likewise.
56270         * lib/wcwidth.c: Likewise.
56271         * lib/write-any-file.c: Likewise.
56272         * lib/xalloc-die.c: Likewise.
56273         * lib/xalloc.h: Likewise.
56274         * lib/xasprintf.c: Likewise.
56275         * lib/xgetcwd.c: Likewise.
56276         * lib/xgetcwd.h: Likewise.
56277         * lib/xgetdomainname.c: Likewise.
56278         * lib/xgetdomainname.h: Likewise.
56279         * lib/xgethostname.c: Likewise.
56280         * lib/xmalloc.c: Likewise.
56281         * lib/xmalloca.c: Likewise.
56282         * lib/xmalloca.h: Likewise.
56283         * lib/xmemcoll.c: Likewise.
56284         * lib/xnanosleep.c: Likewise.
56285         * lib/xreadlink.c: Likewise.
56286         * lib/xreadlink.h: Likewise.
56287         * lib/xsetenv.c: Likewise.
56288         * lib/xsetenv.h: Likewise.
56289         * lib/xstriconv.c: Likewise.
56290         * lib/xstriconv.h: Likewise.
56291         * lib/xstrndup.c: Likewise.
56292         * lib/xstrndup.h: Likewise.
56293         * lib/xstrtod.c: Likewise.
56294         * lib/xstrtod.h: Likewise.
56295         * lib/xstrtol-error.c: Likewise.
56296         * lib/xstrtol.c: Likewise.
56297         * lib/xstrtol.h: Likewise.
56298         * lib/xtime.h: Likewise.
56299         * lib/xvasprintf.c: Likewise.
56300         * lib/xvasprintf.h: Likewise.
56301         * lib/yesno.c: Likewise.
56302         * lib/yesno.h: Likewise.
56303         * posix-modules: Likewise.
56304         * tests/test-alloca-opt.c: Likewise.
56305         * tests/test-arcfour.c: Likewise.
56306         * tests/test-arctwo.c: Likewise.
56307         * tests/test-argmatch.c: Likewise.
56308         * tests/test-argp-2.sh: Likewise.
56309         * tests/test-argp.c: Likewise.
56310         * tests/test-arpa_inet.c: Likewise.
56311         * tests/test-array_list.c: Likewise.
56312         * tests/test-array_oset.c: Likewise.
56313         * tests/test-atexit.c: Likewise.
56314         * tests/test-avltree_list.c: Likewise.
56315         * tests/test-avltree_oset.c: Likewise.
56316         * tests/test-avltreehash_list.c: Likewise.
56317         * tests/test-base64.c: Likewise.
56318         * tests/test-binary-io.c: Likewise.
56319         * tests/test-byteswap.c: Likewise.
56320         * tests/test-c-ctype.c: Likewise.
56321         * tests/test-c-strcasecmp.c: Likewise.
56322         * tests/test-c-strcasestr.c: Likewise.
56323         * tests/test-c-strncasecmp.c: Likewise.
56324         * tests/test-c-strstr.c: Likewise.
56325         * tests/test-canonicalize-lgpl.c: Likewise.
56326         * tests/test-canonicalize.c: Likewise.
56327         * tests/test-carray_list.c: Likewise.
56328         * tests/test-ceilf.c: Likewise.
56329         * tests/test-ceill.c: Likewise.
56330         * tests/test-count-one-bits.c: Likewise.
56331         * tests/test-crc.c: Likewise.
56332         * tests/test-dirname.c: Likewise.
56333         * tests/test-fbufmode.c: Likewise.
56334         * tests/test-fcntl.c: Likewise.
56335         * tests/test-fflush.c: Likewise.
56336         * tests/test-floorf.c: Likewise.
56337         * tests/test-floorl.c: Likewise.
56338         * tests/test-fopen.c: Likewise.
56339         * tests/test-fprintf-posix.c: Likewise.
56340         * tests/test-fprintf-posix.h: Likewise.
56341         * tests/test-fpurge.c: Likewise.
56342         * tests/test-freadable.c: Likewise.
56343         * tests/test-freadahead.c: Likewise.
56344         * tests/test-freading.c: Likewise.
56345         * tests/test-freopen.c: Likewise.
56346         * tests/test-frexp.c: Likewise.
56347         * tests/test-frexpl.c: Likewise.
56348         * tests/test-fseek.c: Likewise.
56349         * tests/test-fseeko.c: Likewise.
56350         * tests/test-fseterr.c: Likewise.
56351         * tests/test-fstrcmp.c: Likewise.
56352         * tests/test-ftell.c: Likewise.
56353         * tests/test-ftello.c: Likewise.
56354         * tests/test-fwritable.c: Likewise.
56355         * tests/test-fwriting.c: Likewise.
56356         * tests/test-getaddrinfo.c: Likewise.
56357         * tests/test-getpass.c: Likewise.
56358         * tests/test-gettimeofday.c: Likewise.
56359         * tests/test-hmac-md5.c: Likewise.
56360         * tests/test-hmac-sha1.c: Likewise.
56361         * tests/test-iconv.c: Likewise.
56362         * tests/test-iconvme.c: Likewise.
56363         * tests/test-inttypes.c: Likewise.
56364         * tests/test-isnan.c: Likewise.
56365         * tests/test-isnanf.c: Likewise.
56366         * tests/test-isnanl-nolibm.c: Likewise.
56367         * tests/test-isnanl.c: Likewise.
56368         * tests/test-isnanl.h: Likewise.
56369         * tests/test-ldexpl.c: Likewise.
56370         * tests/test-linked_list.c: Likewise.
56371         * tests/test-linkedhash_list.c: Likewise.
56372         * tests/test-locale.c: Likewise.
56373         * tests/test-localename.c: Likewise.
56374         * tests/test-lock.c: Likewise.
56375         * tests/test-lseek.c: Likewise.
56376         * tests/test-malloca.c: Likewise.
56377         * tests/test-math.c: Likewise.
56378         * tests/test-mbscasecmp.c: Likewise.
56379         * tests/test-mbscasestr1.c: Likewise.
56380         * tests/test-mbscasestr2.c: Likewise.
56381         * tests/test-mbscasestr3.c: Likewise.
56382         * tests/test-mbscasestr4.c: Likewise.
56383         * tests/test-mbschr.c: Likewise.
56384         * tests/test-mbscspn.c: Likewise.
56385         * tests/test-mbsncasecmp.c: Likewise.
56386         * tests/test-mbspbrk.c: Likewise.
56387         * tests/test-mbspcasecmp.c: Likewise.
56388         * tests/test-mbsrchr.c: Likewise.
56389         * tests/test-mbsspn.c: Likewise.
56390         * tests/test-mbsstr1.c: Likewise.
56391         * tests/test-mbsstr2.c: Likewise.
56392         * tests/test-mbsstr3.c: Likewise.
56393         * tests/test-md5.c: Likewise.
56394         * tests/test-memmem.c: Likewise.
56395         * tests/test-netinet_in.c: Likewise.
56396         * tests/test-open.c: Likewise.
56397         * tests/test-printf-frexp.c: Likewise.
56398         * tests/test-printf-frexpl.c: Likewise.
56399         * tests/test-printf-posix.c: Likewise.
56400         * tests/test-printf-posix.h: Likewise.
56401         * tests/test-rbtree_list.c: Likewise.
56402         * tests/test-rbtree_oset.c: Likewise.
56403         * tests/test-rbtreehash_list.c: Likewise.
56404         * tests/test-read-file.c: Likewise.
56405         * tests/test-rijndael.c: Likewise.
56406         * tests/test-search.c: Likewise.
56407         * tests/test-signbit.c: Likewise.
56408         * tests/test-sleep.c: Likewise.
56409         * tests/test-snprintf-posix.c: Likewise.
56410         * tests/test-snprintf-posix.h: Likewise.
56411         * tests/test-snprintf.c: Likewise.
56412         * tests/test-sprintf-posix.c: Likewise.
56413         * tests/test-sprintf-posix.h: Likewise.
56414         * tests/test-stat-time.c: Likewise.
56415         * tests/test-stdbool.c: Likewise.
56416         * tests/test-stdint.c: Likewise.
56417         * tests/test-stdio.c: Likewise.
56418         * tests/test-stdlib.c: Likewise.
56419         * tests/test-stpncpy.c: Likewise.
56420         * tests/test-strcasestr.c: Likewise.
56421         * tests/test-striconv.c: Likewise.
56422         * tests/test-striconveh.c: Likewise.
56423         * tests/test-striconveha.c: Likewise.
56424         * tests/test-string.c: Likewise.
56425         * tests/test-sys_select.c: Likewise.
56426         * tests/test-sys_socket.c: Likewise.
56427         * tests/test-sys_stat.c: Likewise.
56428         * tests/test-sys_time.c: Likewise.
56429         * tests/test-sysexits.c: Likewise.
56430         * tests/test-time.c: Likewise.
56431         * tests/test-tls.c: Likewise.
56432         * tests/test-trunc.c: Likewise.
56433         * tests/test-truncf.c: Likewise.
56434         * tests/test-truncl.c: Likewise.
56435         * tests/test-unistd.c: Likewise.
56436         * tests/test-vasnprintf-posix.c: Likewise.
56437         * tests/test-vasnprintf-posix2.c: Likewise.
56438         * tests/test-vasnprintf.c: Likewise.
56439         * tests/test-vasprintf-posix.c: Likewise.
56440         * tests/test-vasprintf.c: Likewise.
56441         * tests/test-verify.c: Likewise.
56442         * tests/test-vfprintf-posix.c: Likewise.
56443         * tests/test-vprintf-posix.c: Likewise.
56444         * tests/test-vsnprintf-posix.c: Likewise.
56445         * tests/test-vsnprintf.c: Likewise.
56446         * tests/test-vsprintf-posix.c: Likewise.
56447         * tests/test-wchar.c: Likewise.
56448         * tests/test-wctype.c: Likewise.
56449         * tests/test-wcwidth.c: Likewise.
56450         * tests/test-xstrtol.c: Likewise.
56451         * tests/test-xvasprintf.c: Likewise.
56452         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56453         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56454         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56455         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56456         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56457         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56458         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56459         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56460         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56461         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56462         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56463         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56464         * tests/uniname/test-uninames.c: Likewise.
56465         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56466         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56467         * tests/unistdio/test-u16-printf1.h: Likewise.
56468         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56469         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56470         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56471         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56472         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56473         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56474         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56475         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56476         * tests/unistdio/test-u32-printf1.h: Likewise.
56477         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56478         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56479         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56480         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56481         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56482         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56483         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56484         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56485         * tests/unistdio/test-u8-printf1.h: Likewise.
56486         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56487         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56488         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56489         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56490         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56491         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56492         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56493         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56494         * tests/unistdio/test-ulc-printf1.h: Likewise.
56495         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56496         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56497         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56498         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56499         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56500         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56501         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56502         * tests/uniwidth/test-u16-width.c: Likewise.
56503         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56504         * tests/uniwidth/test-u32-width.c: Likewise.
56505         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56506         * tests/uniwidth/test-u8-width.c: Likewise.
56507         * tests/uniwidth/test-uc_width.c: Likewise.
56508         * config/srclist-update: Likewise.
56509         (fixlicense): Update to GPLv3+.
56510
56511         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56512         * tests/test-tsearch.c: Change copyright notice.
56513
56514         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56515         * lib/c-strcaseeq.h: Change copyright notice.
56516         * lib/streq.h: Likewise.
56517         * lib/uniconv.h: Likewise.
56518         * lib/uniconv/u-conv-from-enc.h: Likewise.
56519         * lib/uniconv/u-conv-to-enc.h: Likewise.
56520         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56521         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56522         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56523         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56524         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56525         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56526         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56527         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56528         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56529         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56530         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56531         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56532         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56533         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56534         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56535         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56536         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56537         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56538         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56539         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56540         * lib/uniname.h: Likewise.
56541         * lib/uniname/uniname.c: Likewise.
56542         * lib/unistdio.h: Likewise.
56543         * lib/unistdio/u-asnprintf.h: Likewise.
56544         * lib/unistdio/u-asprintf.h: Likewise.
56545         * lib/unistdio/u-printf-args.c: Likewise.
56546         * lib/unistdio/u-printf-args.h: Likewise.
56547         * lib/unistdio/u-printf-parse.h: Likewise.
56548         * lib/unistdio/u-snprintf.h: Likewise.
56549         * lib/unistdio/u-sprintf.h: Likewise.
56550         * lib/unistdio/u-vasprintf.h: Likewise.
56551         * lib/unistdio/u-vsnprintf.h: Likewise.
56552         * lib/unistdio/u-vsprintf.h: Likewise.
56553         * lib/unistdio/u16-asnprintf.c: Likewise.
56554         * lib/unistdio/u16-asprintf.c: Likewise.
56555         * lib/unistdio/u16-printf-parse.c: Likewise.
56556         * lib/unistdio/u16-snprintf.c: Likewise.
56557         * lib/unistdio/u16-sprintf.c: Likewise.
56558         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56559         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56560         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56561         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56562         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56563         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56564         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56565         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56566         * lib/unistdio/u16-vasnprintf.c: Likewise.
56567         * lib/unistdio/u16-vasprintf.c: Likewise.
56568         * lib/unistdio/u16-vsnprintf.c: Likewise.
56569         * lib/unistdio/u16-vsprintf.c: Likewise.
56570         * lib/unistdio/u32-asnprintf.c: Likewise.
56571         * lib/unistdio/u32-asprintf.c: Likewise.
56572         * lib/unistdio/u32-printf-parse.c: Likewise.
56573         * lib/unistdio/u32-snprintf.c: Likewise.
56574         * lib/unistdio/u32-sprintf.c: Likewise.
56575         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56576         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56577         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56578         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56579         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56580         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56581         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56582         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56583         * lib/unistdio/u32-vasnprintf.c: Likewise.
56584         * lib/unistdio/u32-vasprintf.c: Likewise.
56585         * lib/unistdio/u32-vsnprintf.c: Likewise.
56586         * lib/unistdio/u32-vsprintf.c: Likewise.
56587         * lib/unistdio/u8-asnprintf.c: Likewise.
56588         * lib/unistdio/u8-asprintf.c: Likewise.
56589         * lib/unistdio/u8-printf-parse.c: Likewise.
56590         * lib/unistdio/u8-snprintf.c: Likewise.
56591         * lib/unistdio/u8-sprintf.c: Likewise.
56592         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56593         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56594         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56595         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56596         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56597         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56598         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56599         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56600         * lib/unistdio/u8-vasnprintf.c: Likewise.
56601         * lib/unistdio/u8-vasprintf.c: Likewise.
56602         * lib/unistdio/u8-vsnprintf.c: Likewise.
56603         * lib/unistdio/u8-vsprintf.c: Likewise.
56604         * lib/unistdio/ulc-asnprintf.c: Likewise.
56605         * lib/unistdio/ulc-asprintf.c: Likewise.
56606         * lib/unistdio/ulc-printf-parse.c: Likewise.
56607         * lib/unistdio/ulc-snprintf.c: Likewise.
56608         * lib/unistdio/ulc-sprintf.c: Likewise.
56609         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56610         * lib/unistdio/ulc-vasprintf.c: Likewise.
56611         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56612         * lib/unistdio/ulc-vsprintf.c: Likewise.
56613         * lib/unistr.h: Likewise.
56614         * lib/unistr/u-cpy-alloc.h: Likewise.
56615         * lib/unistr/u-cpy.h: Likewise.
56616         * lib/unistr/u-endswith.h: Likewise.
56617         * lib/unistr/u-move.h: Likewise.
56618         * lib/unistr/u-set.h: Likewise.
56619         * lib/unistr/u-startswith.h: Likewise.
56620         * lib/unistr/u-stpcpy.h: Likewise.
56621         * lib/unistr/u-stpncpy.h: Likewise.
56622         * lib/unistr/u-strcat.h: Likewise.
56623         * lib/unistr/u-strcpy.h: Likewise.
56624         * lib/unistr/u-strcspn.h: Likewise.
56625         * lib/unistr/u-strdup.h: Likewise.
56626         * lib/unistr/u-strlen.h: Likewise.
56627         * lib/unistr/u-strncat.h: Likewise.
56628         * lib/unistr/u-strncpy.h: Likewise.
56629         * lib/unistr/u-strnlen.h: Likewise.
56630         * lib/unistr/u-strpbrk.h: Likewise.
56631         * lib/unistr/u-strspn.h: Likewise.
56632         * lib/unistr/u-strstr.h: Likewise.
56633         * lib/unistr/u-strtok.h: Likewise.
56634         * lib/unistr/u16-check.c: Likewise.
56635         * lib/unistr/u16-chr.c: Likewise.
56636         * lib/unistr/u16-cmp.c: Likewise.
56637         * lib/unistr/u16-cpy-alloc.c: Likewise.
56638         * lib/unistr/u16-cpy.c: Likewise.
56639         * lib/unistr/u16-endswith.c: Likewise.
56640         * lib/unistr/u16-mblen.c: Likewise.
56641         * lib/unistr/u16-mbsnlen.c: Likewise.
56642         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56643         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56644         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56645         * lib/unistr/u16-mbtouc.c: Likewise.
56646         * lib/unistr/u16-mbtoucr.c: Likewise.
56647         * lib/unistr/u16-move.c: Likewise.
56648         * lib/unistr/u16-next.c: Likewise.
56649         * lib/unistr/u16-prev.c: Likewise.
56650         * lib/unistr/u16-set.c: Likewise.
56651         * lib/unistr/u16-startswith.c: Likewise.
56652         * lib/unistr/u16-stpcpy.c: Likewise.
56653         * lib/unistr/u16-stpncpy.c: Likewise.
56654         * lib/unistr/u16-strcat.c: Likewise.
56655         * lib/unistr/u16-strchr.c: Likewise.
56656         * lib/unistr/u16-strcmp.c: Likewise.
56657         * lib/unistr/u16-strcpy.c: Likewise.
56658         * lib/unistr/u16-strcspn.c: Likewise.
56659         * lib/unistr/u16-strdup.c: Likewise.
56660         * lib/unistr/u16-strlen.c: Likewise.
56661         * lib/unistr/u16-strmblen.c: Likewise.
56662         * lib/unistr/u16-strmbtouc.c: Likewise.
56663         * lib/unistr/u16-strncat.c: Likewise.
56664         * lib/unistr/u16-strncmp.c: Likewise.
56665         * lib/unistr/u16-strncpy.c: Likewise.
56666         * lib/unistr/u16-strnlen.c: Likewise.
56667         * lib/unistr/u16-strpbrk.c: Likewise.
56668         * lib/unistr/u16-strrchr.c: Likewise.
56669         * lib/unistr/u16-strspn.c: Likewise.
56670         * lib/unistr/u16-strstr.c: Likewise.
56671         * lib/unistr/u16-strtok.c: Likewise.
56672         * lib/unistr/u16-to-u32.c: Likewise.
56673         * lib/unistr/u16-to-u8.c: Likewise.
56674         * lib/unistr/u16-uctomb-aux.c: Likewise.
56675         * lib/unistr/u16-uctomb.c: Likewise.
56676         * lib/unistr/u32-check.c: Likewise.
56677         * lib/unistr/u32-chr.c: Likewise.
56678         * lib/unistr/u32-cmp.c: Likewise.
56679         * lib/unistr/u32-cpy-alloc.c: Likewise.
56680         * lib/unistr/u32-cpy.c: Likewise.
56681         * lib/unistr/u32-endswith.c: Likewise.
56682         * lib/unistr/u32-mblen.c: Likewise.
56683         * lib/unistr/u32-mbsnlen.c: Likewise.
56684         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56685         * lib/unistr/u32-mbtouc.c: Likewise.
56686         * lib/unistr/u32-mbtoucr.c: Likewise.
56687         * lib/unistr/u32-move.c: Likewise.
56688         * lib/unistr/u32-next.c: Likewise.
56689         * lib/unistr/u32-prev.c: Likewise.
56690         * lib/unistr/u32-set.c: Likewise.
56691         * lib/unistr/u32-startswith.c: Likewise.
56692         * lib/unistr/u32-stpcpy.c: Likewise.
56693         * lib/unistr/u32-stpncpy.c: Likewise.
56694         * lib/unistr/u32-strcat.c: Likewise.
56695         * lib/unistr/u32-strchr.c: Likewise.
56696         * lib/unistr/u32-strcmp.c: Likewise.
56697         * lib/unistr/u32-strcpy.c: Likewise.
56698         * lib/unistr/u32-strcspn.c: Likewise.
56699         * lib/unistr/u32-strdup.c: Likewise.
56700         * lib/unistr/u32-strlen.c: Likewise.
56701         * lib/unistr/u32-strmblen.c: Likewise.
56702         * lib/unistr/u32-strmbtouc.c: Likewise.
56703         * lib/unistr/u32-strncat.c: Likewise.
56704         * lib/unistr/u32-strncmp.c: Likewise.
56705         * lib/unistr/u32-strncpy.c: Likewise.
56706         * lib/unistr/u32-strnlen.c: Likewise.
56707         * lib/unistr/u32-strpbrk.c: Likewise.
56708         * lib/unistr/u32-strrchr.c: Likewise.
56709         * lib/unistr/u32-strspn.c: Likewise.
56710         * lib/unistr/u32-strstr.c: Likewise.
56711         * lib/unistr/u32-strtok.c: Likewise.
56712         * lib/unistr/u32-to-u16.c: Likewise.
56713         * lib/unistr/u32-to-u8.c: Likewise.
56714         * lib/unistr/u32-uctomb.c: Likewise.
56715         * lib/unistr/u8-check.c: Likewise.
56716         * lib/unistr/u8-chr.c: Likewise.
56717         * lib/unistr/u8-cmp.c: Likewise.
56718         * lib/unistr/u8-cpy-alloc.c: Likewise.
56719         * lib/unistr/u8-cpy.c: Likewise.
56720         * lib/unistr/u8-endswith.c: Likewise.
56721         * lib/unistr/u8-mblen.c: Likewise.
56722         * lib/unistr/u8-mbsnlen.c: Likewise.
56723         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56724         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56725         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56726         * lib/unistr/u8-mbtouc.c: Likewise.
56727         * lib/unistr/u8-mbtoucr.c: Likewise.
56728         * lib/unistr/u8-move.c: Likewise.
56729         * lib/unistr/u8-next.c: Likewise.
56730         * lib/unistr/u8-prev.c: Likewise.
56731         * lib/unistr/u8-set.c: Likewise.
56732         * lib/unistr/u8-startswith.c: Likewise.
56733         * lib/unistr/u8-stpcpy.c: Likewise.
56734         * lib/unistr/u8-stpncpy.c: Likewise.
56735         * lib/unistr/u8-strcat.c: Likewise.
56736         * lib/unistr/u8-strchr.c: Likewise.
56737         * lib/unistr/u8-strcmp.c: Likewise.
56738         * lib/unistr/u8-strcpy.c: Likewise.
56739         * lib/unistr/u8-strcspn.c: Likewise.
56740         * lib/unistr/u8-strdup.c: Likewise.
56741         * lib/unistr/u8-strlen.c: Likewise.
56742         * lib/unistr/u8-strmblen.c: Likewise.
56743         * lib/unistr/u8-strmbtouc.c: Likewise.
56744         * lib/unistr/u8-strncat.c: Likewise.
56745         * lib/unistr/u8-strncmp.c: Likewise.
56746         * lib/unistr/u8-strncpy.c: Likewise.
56747         * lib/unistr/u8-strnlen.c: Likewise.
56748         * lib/unistr/u8-strpbrk.c: Likewise.
56749         * lib/unistr/u8-strrchr.c: Likewise.
56750         * lib/unistr/u8-strspn.c: Likewise.
56751         * lib/unistr/u8-strstr.c: Likewise.
56752         * lib/unistr/u8-strtok.c: Likewise.
56753         * lib/unistr/u8-to-u16.c: Likewise.
56754         * lib/unistr/u8-to-u32.c: Likewise.
56755         * lib/unistr/u8-uctomb-aux.c: Likewise.
56756         * lib/unistr/u8-uctomb.c: Likewise.
56757         * lib/unitypes.h: Likewise.
56758         * lib/uniwidth.h: Likewise.
56759         * lib/uniwidth/cjk.h: Likewise.
56760         * lib/uniwidth/u16-strwidth.c: Likewise.
56761         * lib/uniwidth/u16-width.c: Likewise.
56762         * lib/uniwidth/u32-strwidth.c: Likewise.
56763         * lib/uniwidth/u32-width.c: Likewise.
56764         * lib/uniwidth/u8-strwidth.c: Likewise.
56765         * lib/uniwidth/u8-width.c: Likewise.
56766         * lib/uniwidth/width.c: Likewise.
56767
56768 2007-10-07  Bruno Haible  <bruno@clisp.org>
56769
56770         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56771         The file is still under LGPL (see modules/inttypes).
56772
56773 2007-10-06  Bruno Haible  <bruno@clisp.org>
56774
56775         * modules/trunc (Dependencies): Add 'extensions'.
56776         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56777         Reported by Ben Pfaff <blp@gnu.org>.
56778
56779 2007-10-06  Bruno Haible  <bruno@clisp.org>
56780
56781         * modules/freopen-tests: New file.
56782         * tests/test-freopen.c: New file.
56783
56784         * modules/fopen-tests: New file.
56785         * tests/test-fopen.c: New file.
56786
56787         * modules/fopen: New file.
56788         * lib/fopen.c: New file.
56789         * m4/fopen.m4: New file.
56790         * modules/freopen: New file.
56791         * lib/freopen.c: New file.
56792         * m4/freopen.m4: New file.
56793         * lib/stdio.in.h (fopen, freopen): New declarations.
56794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56795         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56796         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56797         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56798         * doc/functions/fopen.texi: Mention the 'fopen' module.
56799         * doc/functions/freopen.texi: Mention the 'freopen' module.
56800
56801 2007-10-06  Bruno Haible  <bruno@clisp.org>
56802
56803         * modules/open-tests: New file.
56804         * tests/test-open.c: New file.
56805
56806         * modules/open: New file.
56807         * lib/open.c: New file.
56808         * m4/open.m4: New file.
56809         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56810         lib/open.c does.
56811         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56812         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56813         macros.
56814         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56815         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56816         REPLACE_OPEN.
56817         * doc/functions/open.texi: Mention the 'open' module.
56818
56819 2007-10-04  Bruno Haible  <bruno@clisp.org>
56820
56821         * modules/ceill-tests: New file.
56822         * tests/test-ceill.c: New file.
56823
56824         * modules/ceill: New file.
56825         * lib/ceill.c: Replace entire file.
56826         * m4/ceill.m4: New file.
56827         * lib/math.in.h (ceill): Replace declaration.
56828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56829         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56830         * doc/functions/ceill.texi: Mention the 'ceill' module.
56831         * modules/mathl (Files): Remove lib/ceill.c.
56832         (Depends-on): Add ceill.
56833
56834 2007-10-04  Bruno Haible  <bruno@clisp.org>
56835
56836         * modules/ceilf-tests: New file.
56837         * tests/test-ceilf.c: New file.
56838
56839         * modules/ceilf: New file.
56840         * lib/ceil.c: New file.
56841         * lib/ceilf.c: New file.
56842         * m4/ceilf.m4: New file.
56843         * lib/math.in.h (ceilf): New declaration.
56844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56845         HAVE_DECL_CEILF.
56846         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56847         HAVE_DECL_CEILF.
56848         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56849
56850 2007-10-04  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/floorl-tests: New file.
56853         * tests/test-floorl.c: New file.
56854
56855         * modules/floorl: New file.
56856         * lib/floorl.c: Replace entire file.
56857         * m4/floorl.m4: New file.
56858         * lib/math.in.h (floorl): Replace declaration.
56859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56860         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56861         * doc/functions/floorl.texi: Mention the 'floorl' module.
56862         * modules/mathl (Files): Remove lib/floorl.c.
56863         (Depends-on): Add floorl.
56864
56865 2007-10-04  Bruno Haible  <bruno@clisp.org>
56866
56867         * modules/floorf-tests: New file.
56868         * tests/test-floorf.c: New file.
56869
56870         * modules/floorf: New file.
56871         * lib/floor.c: New file.
56872         * lib/floorf.c: New file.
56873         * m4/floorf.m4: New file.
56874         * lib/math.in.h (floorf): New declaration.
56875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56876         HAVE_DECL_FLOORF.
56877         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56878         HAVE_DECL_FLOORF.
56879         * doc/functions/floorf.texi: Mention the 'floorf' module.
56880
56881 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56882             Bruno Haible  <bruno@clisp.org>
56883
56884         Advertise for the Git server instead of the CVS server.
56885         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56886         repository instead of the CVS one.
56887         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56888         about all VCS systems generically.
56889         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56890
56891 2007-10-04  Bruno Haible  <bruno@clisp.org>
56892
56893         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56894         means.
56895         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56896
56897 2007-10-04  Bruno Haible  <bruno@clisp.org>
56898
56899         * modules/truncl-tests: New file.
56900         * tests/test-truncl.c: New file.
56901
56902         * modules/truncl: New file.
56903         * lib/truncl.c: New file.
56904         * m4/truncl.m4: New file.
56905         * lib/math.in.h (truncl): New declaration.
56906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56907         HAVE_DECL_TRUNCL.
56908         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56909         HAVE_DECL_TRUNCL.
56910         * doc/functions/truncl.texi: Mention the 'truncl' module.
56911
56912 2007-10-04  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/truncf-tests: New file.
56915         * tests/test-truncf.c: New file.
56916
56917         * modules/truncf: New file.
56918         * lib/trunc.c: Make paramerizable through USE_* macros.
56919         * lib/truncf.c: New file.
56920         * m4/truncf.m4: New file.
56921         * lib/math.in.h (truncf): New declaration.
56922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56923         HAVE_DECL_TRUNCF.
56924         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56925         HAVE_DECL_TRUNCF.
56926         * doc/functions/truncf.texi: Mention the 'truncf' module.
56927
56928 2007-10-03  Bruno Haible  <bruno@clisp.org>
56929
56930         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56931         augmentation also for tests modules.
56932         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56933         * modules/atexit-tests (Makefile.am): Likewise.
56934         * modules/binary-io-tests (Makefile.am): Likewise.
56935         * modules/c-strcase-tests (Makefile.am): Likewise.
56936         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56937         * modules/canonicalize-tests (Makefile.am): Likewise.
56938         * modules/closein-tests (Makefile.am): Likewise.
56939         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56940         * modules/freadahead-tests (Makefile.am): Likewise.
56941         * modules/fseek-tests (Makefile.am): Likewise.
56942         * modules/fseeko-tests (Makefile.am): Likewise.
56943         * modules/ftell-tests (Makefile.am): Likewise.
56944         * modules/ftello-tests (Makefile.am): Likewise.
56945         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56946         * modules/isnanl-tests (Makefile.am): Likewise.
56947         * modules/lseek-tests (Makefile.am): Likewise.
56948         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56949         * modules/mbscasestr-tests (Makefile.am): Likewise.
56950         * modules/mbschr-tests (Makefile.am): Likewise.
56951         * modules/mbscspn-tests (Makefile.am): Likewise.
56952         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56953         * modules/mbspbrk-tests (Makefile.am): Likewise.
56954         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56955         * modules/mbsrchr-tests (Makefile.am): Likewise.
56956         * modules/mbsspn-tests (Makefile.am): Likewise.
56957         * modules/mbsstr-tests (Makefile.am): Likewise.
56958         * modules/printf-posix-tests (Makefile.am): Likewise.
56959         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56960         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56961         * modules/tsearch-tests (Makefile.am): Likewise.
56962         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56963         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56964         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56965         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56966         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56967         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56968         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56969         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56970         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56971         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56972         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56973         * modules/xstrtol-tests (Makefile.am): Likewise.
56974         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56975         * modules/yesno-tests (Makefile.am): Likewise.
56976
56977 2007-10-03  Bruno Haible  <bruno@clisp.org>
56978
56979         * modules/trunc-tests: New file.
56980         * tests/test-trunc.c: New file.
56981
56982         * modules/trunc: New file.
56983         * lib/trunc.c: New file.
56984         * m4/trunc.m4: New file.
56985         * lib/math.in.h (trunc): New declaration.
56986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56987         HAVE_DECL_TRUNC.
56988         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56989         HAVE_DECL_TRUNC.
56990         * doc/functions/trunc.texi: Mention the 'trunc' module.
56991
56992 2007-10-03  Bruno Haible  <bruno@clisp.org>
56993
56994         * tests/test-fpending.c: New file, mostly copied
56995         from coreutils/lib/t-fpending.c.
56996         * modules/fpending-tests: New file.
56997
56998 2007-10-03  Bruno Haible  <bruno@clisp.org>
56999
57000         Port the stdio extensions to QNX (untested).
57001         * lib/fseterr.c (fseterr): Add support for QNX.
57002         * lib/fbufmode.c (fbufmode): Likewise.
57003         * lib/freadable.c (freadable): Likewise.
57004         * lib/fwritable.c (fwritable): Likewise.
57005         * lib/freading.c (freading): Likewise.
57006         * lib/fwriting.c (fwriting): Likewise.
57007         * lib/freadahead.c (freadahed): Likewise.
57008         * lib/fpurge.c (fpurge): Likewise.
57009         * lib/fseeko.c (rpl_fseeko): Likewise.
57010
57011 2007-10-03  Bruno Haible  <bruno@clisp.org>
57012             Jim Meyering  <jim@meyering.net>
57013             Eric Blake  <ebb9@byu.net>
57014
57015         * doc/relocatable.texi: Use @command instead of @program.
57016
57017 2007-10-02  Jim Meyering  <jim@meyering.net>
57018
57019         Perform one more "_.h" -> ".in.h" substitution.
57020         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57021         instead of unistd_.h here, too.
57022
57023 2007-10-01  Bruno Haible  <bruno@clisp.org>
57024
57025         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57026         Needed for the alloca-opt module.
57027
57028 2007-09-30  Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57031         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57032         alloca_.h.
57033         * lib/argz.in.h: Renamed from lib/argz_.h.
57034         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57035         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57036         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57037         byteswap_.h.
57038         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57039         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57040         dirent_.h.
57041         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57042         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57043         fcntl_.h.
57044         * lib/float.in.h: Renamed from lib/float_.h.
57045         * modules/float (Files, Makefile.am): Use float.in.h instead of
57046         float_.h.
57047         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57048         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57049         fnmatch_.h.
57050         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57051         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57052         getopt_.h.
57053         * lib/glob.in.h: Renamed from lib/glob_.h.
57054         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57055         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57056         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57057         iconv_.h.
57058         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57059         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57060         inttypes_.h.
57061         * lib/locale.in.h: Renamed from lib/locale_.h.
57062         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57063         locale_.h.
57064         * lib/math.in.h: Renamed from lib/math_.h.
57065         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57066         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57067         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57068         of netinet_in_.h. Add dependency.
57069         * lib/poll.in.h: Renamed from lib/poll_.h.
57070         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57071         * lib/search.in.h: Renamed from lib/search_.h.
57072         * modules/search (Files, Makefile.am): Use search.in.h instead of
57073         search_.h.
57074         * lib/signal.in.h: Renamed from lib/signal_.h.
57075         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57076         _signal.h.
57077         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57078         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57079         stdbool_.h.
57080         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57081         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57082         stdint_.h.
57083         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57084         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57085         stdio_.h.
57086         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57087         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57088         stdlib_.h.
57089         * lib/string.in.h: Renamed from lib/string_.h.
57090         * modules/string (Files, Makefile.am): Use string.in.h instead of
57091         string_.h.
57092         * doc/gnulib-tool.texi (Initial import): Update.
57093         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57094         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57095         of sys_select_.h. Add dependency.
57096         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57097         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57098         of sys_socket_.h.
57099         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57100         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57101         sys_stat_.h.
57102         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57103         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57104         sys_time_.h.
57105         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57106         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57107         sysexits_.h.
57108         * lib/time.in.h: Renamed from lib/time_.h.
57109         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57110         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57111         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57112         unistd_.h.
57113         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57114         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57115         wchar_.h.
57116         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57117         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57118         wctype_.h.
57119         * build-aux/bootstrap (slurp): Update.
57120         * lib/.cppi-disable: Update.
57121
57122 2007-09-30  Bruno Haible  <bruno@clisp.org>
57123
57124         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57125         Needed on BeOS.
57126
57127 2007-09-30  Bruno Haible  <bruno@clisp.org>
57128
57129         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57130
57131 2007-09-29  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57134
57135 2007-09-29  Bruno Haible  <bruno@clisp.org>
57136
57137         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57138         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57139         * build-aux/install-reloc: Compile also areadlink.c.
57140         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57141
57142 2007-09-29  Bruno Haible  <bruno@clisp.org>
57143
57144         * gnulib-tool (func_emit_initmacro_done): Indentation.
57145
57146 2007-09-29  Bruno Haible  <bruno@clisp.org>
57147
57148         * README: Add CVS checkout update instructions.
57149         Info from Bob Proulx <bob@proulx.com>.
57150
57151 2007-09-28  Eric Blake  <ebb9@byu.net>
57152
57153         Provide move-if-change.
57154         * build-aux/move-if-change: New file, based on best practice
57155         rather than any canonical upstream location.
57156
57157 2007-09-28  Jim Meyering  <jim@meyering.net>
57158
57159         Fix canonicalize loop-detection corner case.
57160         Do not attempt to stat the symlink values stored via seen_triple.
57161         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57162         on linux-2.6.18, (but not 2.6.22).
57163         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57164         triple_compare.  The former compares dev,ino,filename, while the latter
57165         would actually stat dirname(filename) when dev and ino were equal.
57166         * lib/hash-triple.c: Install <string.h>.
57167         (STREQ): Define.
57168         (triple_compare_ino_str): New function.
57169         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57170
57171 2007-09-28  Eric Blake  <ebb9@byu.net>
57172
57173         Enforce that AC_REPLACE_FUNCS files exist.
57174         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57175         override check for typos.
57176
57177         Fix test-closein on Solaris 10.
57178         * tests/test-closein.c (main): Don't assume stdin can be inherited
57179         closed on all systems.
57180         * tests/test-closein.sh: Likewise.
57181         Reported by Piotr Tarnowski.
57182
57183 2007-09-28  Jim Meyering  <jim@meyering.net>
57184
57185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57186
57187 2007-09-27  Jim Meyering  <jim@meyering.net>
57188
57189         canonicalize: Avoid a false-positive cycle failure.
57190         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57191         Sort.  Remove cycle-check.
57192         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57193         not cycle-check.h.
57194         (seen_triple): New function.
57195         (canonicalize_filename_mode): Use it instead of cycle-check.
57196         * tests/test-canonicalize.c: Add a test for this bug.
57197         * tests/test-canonicalize.sh: Set up and run the test.
57198
57199         New module, file-set, from coreutils.
57200         * modules/file-set: Define it.
57201         * lib/file-set.c, lib/file-set.h: Implement.
57202
57203         New module, hash-triple, from coreutils.
57204         * modules/hash-triple: Define it.
57205         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57206
57207 2007-09-25  Eric Blake  <ebb9@byu.net>
57208
57209         Fix strerror on Interix.
57210         * lib/string_.h (strerror): Declare replacement.
57211         * doc/functions/strerror.texi (strerror): Document the Interix
57212         shortcoming.
57213         * modules/string (Makefile.am): Support new hooks.
57214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57215         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57216         gl_FUNC_STRERROR_SEPARATE.
57217         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57218         * lib/strerror.c (rpl_strerror): Provide replacement.
57219         * modules/strerror (Depends-on): Add string.
57220         (configure.ac): Detect use of module.
57221         * tests/test-strerror.c: New file.
57222         * modules/strerror-tests: New test module.
57223         * modules/argp (Depends-on): Add strerror.
57224         * modules/error (Depends-on): Likewise.
57225         Reported by Martin Koeppe.
57226
57227 2007-09-24  Bruno Haible  <bruno@clisp.org>
57228
57229         * README: Update git instructions.
57230
57231 2007-09-24  Eric Blake  <ebb9@byu.net>
57232
57233         Revert fpending breakage from 2007-09-08.
57234         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57235         __fpending.c.
57236
57237 2007-09-24  Jim Meyering  <jim@meyering.net>
57238
57239         filenamecat.c: Add a test.
57240         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57241         showing how the function works when DIR is the empty string.
57242
57243 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57244
57245         * tests/test-canonicalize.sh: Turn on executable bit.
57246
57247 2007-09-19  Eric Blake  <ebb9@byu.net>
57248
57249         * README: Update CVS instructions.
57250
57251 2007-09-18  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/areadlink: New file.
57254         * lib/areadlink.h (areadlink): New declaration.
57255         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57256
57257 2007-09-17  Jim Meyering  <jim@meyering.net>
57258
57259         * lib/savewd.c (ESTALE) [!defined]: Define.
57260         Reported to be required on Interix by Martin Koeppe.
57261
57262 2007-09-17  Bruno Haible  <bruno@clisp.org>
57263
57264         * gnulib-tool (func_version): Use $version.
57265
57266 2007-09-16  Bruno Haible  <bruno@clisp.org>
57267
57268         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57269         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57270         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57271         Reported by Greg Schafer <gschafer@zip.com.au>.
57272
57273 2007-09-15  Bruno Haible  <bruno@clisp.org>
57274
57275         * gnulib-tool (sed): Try a little harder to make bash understand the
57276         alias.
57277         Reported by Bruce Korb <bruce.korb@gmail.com>.
57278
57279 2007-09-13  Eric Blake  <ebb9@byu.net>
57280
57281         * ChangeLog: Remove conflict markers.
57282
57283 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57284
57285         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57286         Reported by Bruno Haible <bruno@clisp.org>.
57287
57288 2007-09-12  Bruno Haible  <bruno@clisp.org>
57289
57290         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57291         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57292         is not defined.
57293
57294 2007-09-12  Eric Blake  <ebb9@byu.net>
57295
57296         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57298         Autoconf definition.
57299         * modules/euidaccess (Depends-on): Add extensions, for
57300         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57301         * modules/fnmatch (Depends-on): Likewise.
57302         * modules/getaddrinfo (Depends-on): Likewise.
57303         * modules/getdelim (Depends-on): Likewise.
57304         * modules/getline (Depends-on): Likewise.
57305         * modules/getsubopt (Depends-on): Likewise.
57306         * modules/gettext (Depends-on): Likewise.
57307         * modules/group-member (Depends-on): Likewise.
57308         * modules/mbchar (Depends-on): Likewise.
57309         * modules/memmem (Depends-on): Likewise.
57310         * modules/mempcpy (Depends-on): Likewise.
57311         * modules/memrchr (Depends-on): Likewise.
57312         * modules/pagealign_alloc (Depends-on): Likewise.
57313         * modules/readutmp (Depends-on): Likewise.
57314         * modules/stpcpy (Depends-on): Likewise.
57315         * modules/stpncpy (Depends-on): Likewise.
57316         * modules/strchrnul (Depends-on): Likewise.
57317         * modules/strndup (Depends-on): Likewise.
57318         * modules/strsep (Depends-on): Likewise.
57319         * modules/strverscmp (Depends-on): Likewise.
57320         * modules/vasprintf (Depends-on): Likewise.
57321         * modules/wcwidth (Depends-on): Likewise.
57322         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57323         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57324         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57327         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57328         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57329         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57330         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57331         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57332         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57333         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57334         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57335         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57336         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57337         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57338         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57339         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57341         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57342         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57343         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57344         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57345         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57346         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57348         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57349         so that lock.m4 can be used in gettext without extensions module.
57350
57351 2007-09-11  Bruno Haible  <bruno@clisp.org>
57352
57353         * m4/isc-posix.m4: Remove file.
57354         Suggested by Eric Blake.
57355
57356 2007-09-11  Eric Blake  <ebb9@byu.net>
57357
57358         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57359
57360 2007-09-10  Bruno Haible  <bruno@clisp.org>
57361
57362         * posix-modules: Fix typo in error message.
57363         Reported by Matt <mkraai@beckman.com>.
57364
57365 2007-09-09  Bruno Haible  <bruno@clisp.org>
57366
57367         * doc/functions/getdelim.texi: Update list of platforms lacking the
57368         function.
57369         * doc/functions/getline.texi: Likewise.
57370
57371 2007-09-09  Jim Meyering  <jim@meyering.net>
57372
57373         * lib/hash.c (hash_initialize): Detect calloc failure.
57374         Reported by Bruno Haible.
57375
57376 2007-09-09  Bruno Haible  <bruno@clisp.org>
57377
57378         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57379         malloc or realloc fails.
57380
57381 2007-09-09  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/getcwd (Depends-on): Add malloc-posix.
57384         * modules/glob (Depends-on): Likewise.
57385         * modules/putenv (Depends-on): Likewise.
57386         * modules/strdup (Depends-on): Likewise.
57387         * modules/getdelim (Depends-on): Add realloc-posix.
57388         * modules/read-file (Depends-on): Likewise.
57389
57390 2007-09-09  Bruno Haible  <bruno@clisp.org>
57391
57392         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57393         (gl_FUNC_MALLOC_POSIX): Require it.
57394         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57395         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57396         * modules/realloc (Files): Add m4/malloc.m4.
57397         * modules/calloc (Files): Likewise.
57398
57399 2007-09-09  Bruno Haible  <bruno@clisp.org>
57400
57401         * modules/malloc-posix: New file.
57402         * modules/malloc (Depends-on): Add malloc-posix.
57403         * lib/malloc.c: Include errno.h.
57404         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57405         and a POSIX-compatible malloc into a single function. Set ENOMEM
57406         when returning NULL.
57407         * m4/malloc.m4: New file.
57408         * doc/functions/malloc.texi: Mention the malloc-posix module.
57409         * lib/stdlib_.h (malloc): New declaration.
57410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57411         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57412         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57413         and HAVE_MALLOC_POSIX.
57414
57415 2007-09-09  Bruno Haible  <bruno@clisp.org>
57416
57417         * modules/realloc-posix: New file.
57418         * modules/realloc (Depends-on): Add realloc-posix.
57419         * lib/realloc.c: Include errno.h.
57420         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57421         and a POSIX-compatible realloc into a single function. Set ENOMEM
57422         when returning NULL.
57423         * m4/realloc.m4: New file.
57424         * doc/functions/realloc.texi: Mention the realloc-posix module.
57425         * lib/stdlib_.h (realloc): New declaration.
57426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57427         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57428         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57429         and HAVE_REALLOC_POSIX.
57430
57431 2007-09-09  Bruno Haible  <bruno@clisp.org>
57432
57433         * modules/calloc-posix: New file.
57434         * modules/calloc (Depends-on): Add calloc-posix.
57435         * lib/calloc.c: Include errno.h.
57436         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57437         and a POSIX-compatible calloc into a single function. Set ENOMEM
57438         when returning NULL.
57439         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57440         * doc/functions/calloc.texi: Mention the calloc-posix module.
57441         * lib/stdlib_.h (calloc): New declaration.
57442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57443         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57444         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57445         and HAVE_CALLOC_POSIX.
57446
57447 2007-09-09  Bruno Haible  <bruno@clisp.org>
57448
57449         Allow for modules to show an arbitrary notice.
57450         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57451         * gnulib-tool: New option --extract-notice.
57452         (func_usage): Document it.
57453         (sed_extract_prog): Update.
57454         (func_get_notice): New function.
57455         (func_modules_notice): New function.
57456         (func_import, func_create_testdir): Invoke it.
57457         Suggested by Jim Meyering.
57458
57459 2007-09-09  Bruno Haible  <bruno@clisp.org>
57460
57461         * gnulib-tool: New options --verbose, --quiet.
57462         (func_usage): Document them.
57463         (verbose): New variable.
57464         (func_execute_command): New function.
57465         (func_import): Don't show the module list and the file list if
57466         $verbose < 0.
57467         (func_create_testdir): Likewise. Use func_execute_command.
57468         (func_create_megatestdir): Use func_execute_command.
57469
57470 2007-09-08  Bruno Haible  <bruno@clisp.org>
57471
57472         * gnulib-tool (func_import): Prefer rsync over wget when available,
57473         for fetching the PO files.
57474
57475 2007-09-08  Bruno Haible  <bruno@clisp.org>
57476
57477         * posix-modules: New file. Portions copied from gnulib-tool.
57478         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57479
57480 2007-09-08  Jim Meyering  <jim@meyering.net>
57481
57482         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57483         * lib/fpending.h: Rename from __fpending.h.
57484         * lib/fpending.c: Rename from __fpending.c.
57485         Include "fpending.h", not "__fpending.h".
57486         * lib/__fpending.h, lib/__fpending.c: Remove files.
57487         * modules/fpending (Files): Reflect new file names.
57488         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57489
57490 2007-09-08  Bruno Haible  <bruno@clisp.org>
57491
57492         * m4/inttypes-h.m4: Remove stub file.
57493
57494 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57495
57496         * doc/headers/stdint.texi: Discuss #include_next issue.
57497
57498 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57501
57502 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57503
57504         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57505         in variable name.
57506
57507 2007-09-03  Jim Meyering  <jim@meyering.net>
57508
57509         New module: git-version-gen.
57510         * modules/git-version-gen: New file.
57511
57512         Import changes from coreutils for bootstrap script.
57513
57514         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57515
57516         bootstrap: uses rsync to download the .po files
57517         * build-aux/bootstrap (po_download_command_format): New global.
57518         (download_po_files): Use rsync.
57519         (update_po_files): Don't remove .po files after download,
57520         so future rsync runs can take advantage of the copies.
57521
57522         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57523
57524         Solve the unnecessary-.po-file-regeneration problem once and for all.
57525         * build-aux/bootstrap (download_po_files): New function, renamed from
57526         get_translations.  Now, downloads, but doesn't update LINGUAS.
57527         (update_po_files): New function.
57528
57529         bootstrap: Ignore more.
57530         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57531         uniwidth to e.g., lib/.gitignore.
57532         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57533
57534         * build-aux/bootstrap: New setting: vc_ignore.
57535         (insert_sorted_if_absent): Create $file if absent.
57536         Adapt to new, possibly empty, list: $vc_ignore.
57537
57538         bootstrap: generate more ignorable names
57539         * build-aux/bootstrap (slurp): When generating ignorable names,
57540         also map .sin to .sed, .gperf to .c, and .y to .c.
57541
57542 2007-09-03  Jim Meyering  <jim@meyering.net>
57543
57544         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57545         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57546
57547 2007-09-02  Bruno Haible  <bruno@clisp.org>
57548
57549         Fix mis-recognition of 'mcs' on QNX 6.
57550         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57551         output contains the string "Mono".
57552         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57553         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57554
57555 2007-09-01  Bruno Haible  <bruno@clisp.org>
57556
57557         Fix collision between uniwidth/* and linebreak modules.
57558         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57559         u32_width): Remove declarations.
57560         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57561         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57562         streq3, streq2, streq1, streq0): Remove functions.
57563         (STREQ): Remove macro.
57564         (is_cjk_encoding): Remove function.
57565         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57566         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57567         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57568         * NEWS: Document the change.
57569
57570 2007-09-01  Bruno Haible  <bruno@clisp.org>
57571
57572         * lib/streq.h: Add double-inclusion guard.
57573
57574 2007-09-01  Karl Berry  <karl@gnu.org>
57575
57576         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57577
57578 2007-08-28  Jim Meyering  <jim@meyering.net>
57579
57580         Rename mreadlink_with_size to areadlink_with_size.
57581         * NEWS: Document the change.
57582         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57583         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57584         * lib/mreadlink.h: Rename this to...
57585         * lib/areadlink.h: ...this.
57586         * modules/mreadlink-with-size: Rename this to...
57587         * modules/areadlink-with-size: ...this.
57588         * lib/canonicalize.c: Reflect the renaming.
57589         * modules/canonicalize: Likewise.
57590
57591 2007-08-26  Bruno Haible  <bruno@clisp.org>
57592
57593         * gnulib-tool (func_import): When deciding which files to remove,
57594         consider also dangling symbolic links.
57595         Reported by Eric Blake.
57596
57597 2007-08-26  Bruno Haible  <bruno@clisp.org>
57598
57599         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57600
57601 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57602
57603         * lib/readline.c: Don't include getline.h, the prototype is now
57604         found in stdio.h.
57605
57606 2007-08-23  Jim Meyering  <jim@meyering.net>
57607
57608         Getdelim touchup.
57609         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57610         around the funlockfile call, since funlockfile never sets errno.
57611         Don't set errno upon failed realloc.
57612
57613 2007-08-22  Eric Blake  <ebb9@byu.net>
57614
57615         Getline touchups.
57616         * lib/getdelim.c (getdelim): Revert regression that required *n to
57617         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57619         getdelim, rather than whether implementation is missing.
57620         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57621         * lib/stdio_.h (getline): Also declare if replacement is
57622         required.
57623         * doc/functions/getdelim.texi: New file.
57624         * doc/functions/getline.texi: Likewise.
57625         * doc/gnulib.texi (Function Substitutes): Add new files.
57626         Reported by Bruno Haible.
57627
57628 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57629
57630         * users.txt: Add Guile.
57631
57632 2007-08-22  Eric Blake  <ebb9@byu.net>
57633
57634         * tests/test-getdelim.c (main): Use remove, not unlink.
57635         * tests/test-getline.c (main): Likewise.
57636
57637         Move getline and getdelim into stdio.h, per POSIX 200x.
57638         * modules/getline (Files): Remove getline.h.
57639         (Depends-on): Add stdio.
57640         (configure.ac): Add module indicator.
57641         * modules/getdelim (Files): Remove getdelim.h.
57642         (Depends-on): Add stdio.
57643         (configure.ac): Add module indicator.
57644         * modules/stdio (Makefile.am): Work with new indicators.
57645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57646         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57647         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57648         * lib/getdelim.h: Delete.
57649         * lib/getline.h: Delete.
57650         * lib/stdio_.h (getdelim, getline): Declare.
57651         * modules/getdelim-tests: New module.
57652         * modules/getline-tests: Likewise.
57653         * tests/test-getdelim.c: New file.
57654         * tests/test-getline.c: Likewise.
57655         * NEWS: Document the change.
57656         * lib/getline.c: Update choice of header.
57657         * lib/csharpcomp.c: Likewise.
57658         * lib/getpass.c: Likewise.
57659         * lib/javacomp.c: Likewise.
57660         * lib/javaversion.c: Likewise.
57661         * lib/yesno.c: Likewise.
57662         * lib/getdelim.c: Likewise.
57663         (getdelim): Set errno on failure, and avoid memory leak.
57664
57665 2007-08-19  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/closein (Depends-on): Add freadahead.
57668         * lib/closein.c: Include freadahead.h.
57669         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57670         is zero.
57671
57672 2007-08-19  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/freadahead-tests: New file.
57675         * tests/test-freadahead.sh: New file.
57676         * tests/test-freadahead.c: New file.
57677
57678         * modules/freadahead: New file.
57679         * lib/freadahead.h: New file.
57680         * lib/freadahead.c: New file.
57681         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57682         fbufmode, fpurge, freadable, fwritable.
57683
57684 2007-08-19  Eric Blake  <ebb9@byu.net>
57685
57686         Test yesno in combination with closein.
57687         * lib/yesno.c (yesno): Document use of stdin.
57688         * modules/yesno-tests (Files): New module.
57689         * tests/test-yesno.c (main): New file.
57690         * tests/test-yesno.sh: Likewise.
57691
57692 2007-08-19  Bruno Haible  <bruno@clisp.org>
57693
57694         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57695         * lib/fseeko.c (rpl_fseeko): Likewise.
57696         * lib/fseterr.c (fseterr): Likewise.
57697
57698 2007-08-19  Bruno Haible  <bruno@clisp.org>
57699
57700         * tests/test-lseek.c (main): Disable a test for BeOS.
57701         * doc/functions/lseek.texi: Document the BeOS bug.
57702
57703 2007-08-19  Bruno Haible  <bruno@clisp.org>
57704             Eric Blake  <ebb9@byu.net>
57705
57706         * lib/lseek.c: Include <sys/stat.h>.
57707         (rpl_lseek): Add workaround code also for Unix platforms.
57708         Needed for BeOS.
57709         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57710         * doc/functions/lseek.texi: Document BeOS definiency.
57711
57712 2007-08-18  Bruno Haible  <bruno@clisp.org>
57713
57714         * modules/fstrcmp-tests: New file.
57715         * tests/test-fstrcmp.c: New file.
57716
57717 2007-08-18  Bruno Haible  <bruno@clisp.org>
57718
57719         * modules/fstrcmp: New file, from GNU gettext with modifications.
57720         * lib/fstrcmp.h: New file, from GNU gettext.
57721         * lib/fstrcmp.c: New file, from GNU gettext.
57722         * MODULES.html.sh (String handling): Add fstrcmp.
57723
57724 2007-08-18  Bruno Haible  <bruno@clisp.org>
57725
57726         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57727         'bool'.
57728         (diag, compareseq): Remove const from the ctxt argument.
57729         (USE_HEURISTIC): Undefine at the end.
57730
57731 2007-08-18  Jim Meyering  <jim@meyering.net>
57732
57733         New file: lib/idcache.h
57734         * NEWS: Mention the addition.
57735         * modules/idcache (Files): Add lib/idcache.h
57736         * lib/idcache.c: Include "idcache.h".
57737         Don't include <sys/types.h>.
57738         Add a FIXME comment.
57739         Move file-scoped "static" declarations to the top.
57740         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57741
57742 2007-08-17  Bruno Haible  <bruno@clisp.org>
57743         and Paul Eggert  <eggert@cs.ucla.edu>
57744
57745         * MODULES.html.sh: Add diffseq.
57746         * modules/diffseq: New file.
57747         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57748         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57749
57750 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         Import changes from coreutils for bootstrap script.
57753
57754         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         * build-aux/bootstrap (slurp): Work even in environments where
57757         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57758         current code does not slurp files whose names start with ".", and
57759         this looks like it might be a troublesome area.
57760
57761         2007-07-11  Jim Meyering  <jim@meyering.net>
57762
57763         If there's a GPL vN copyright comment, require that N == 3.
57764
57765         2007-07-08  Jim Meyering  <jim@meyering.net>
57766
57767         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57768         * build-aux/bootstrap (mam_template): Move definition out of loop.
57769
57770         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57771
57772         * build-aux/bootstrap (symlink_to_dir): Rename function from
57773         symlink_to_gnulib.  Add a directory parameter.  Update all
57774         callers.
57775         (cp_mark_as_generated): Also check for -- and link to -- files in
57776         gl/.
57777
57778         2007-07-08  Jim Meyering  <jim@meyering.net>
57779
57780         Adapt to deeper hierarchy in gnulib.
57781         * build-aux/bootstrap (symlink_to_dir): If the destination
57782         directory doesn't exist, create it. This is required at least for
57783         "lib/uniwidth/cjk.h".
57784
57785         2007-05-15  Jim Meyering  <jim@meyering.net>
57786
57787         * build-aux/bootstrap: Now that generated Makefile.am files
57788         are no longer under version control, they must be created at
57789         bootstrap time.
57790
57791 2007-08-14  Ben Pfaff  <blp@gnu.org>
57792
57793         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57794
57795 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57796
57797         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57798         given the changes below.
57799         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57800         even on hosts that have padding bits beyond the supported 64.
57801
57802 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57803
57804         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57805         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57806         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57807         depends on it.
57808         (xstrtol_error): Remove.
57809         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57810         but with a different signature.
57811         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57812         * lib/xstrtol-error.c: Include exitfail.h.
57813         (xstrtol_fatal): New function, with a different signature from the
57814         old xstrtol_error, so that the caller need not worry about passing
57815         in an exit status, or about storage management of the option argument.
57816         (xstrtol_error): Now a static function.  Redo signature to
57817         implement xstrtol_fatal.  Output the correct number of hyphens in
57818         front of the option so that the caller need not worry about
57819         storage management.
57820         (N_): New macro.
57821         (_): Remove; not used now.
57822         * modules/xstrtol: Depend on getopt.
57823         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57824         of old STRTOL_FATAL_ERROR macro.
57825         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57826         of test program.
57827         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57828         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57829
57830 2007-08-08  Eric Blake  <ebb9@byu.net>
57831
57832         * lib/xstrtol-error.c: Add missing include.
57833
57834         Move xstrtol messages into gnulib domain, when --pobase is used.
57835         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57836         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57837         * modules/xstrtol (Files): Distribute new file.
57838         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57839         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57840         * tests/test-xstrtol.c: ...into new file.
57841         * tests/test-xstrtoul.c: Also test xstrtoul.
57842         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57843         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57844         * tests/test-xstrtol.sh: Drive the tests.
57845         * tests/test-xstrtoimax.sh: Likewise.
57846         * tests/test-xstrtoumax.sh: Likewise.
57847         * modules/xstrtol-tests: New module.
57848         * modules/xstrtoimax-tests: Likewise.
57849         * modules/xstrtoumax-tests: Likewise.
57850
57851 2007-08-08  Jim Meyering  <jim@meyering.net>
57852
57853         New function: mfile_name_concat.
57854         * lib/filenamecat.c (mfile_name_concat): New function, just like
57855         file_name_concat, but return NULL upon failure rather than exiting
57856         with a diagnostic.
57857         * lib/filenamecat.h: Declare it.
57858
57859 2007-08-07  Bruno Haible  <bruno@clisp.org>
57860
57861         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57862         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57863         warning from gcc.
57864         Reported by Eric Blake.
57865
57866 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57867
57868         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57869         * modules/crypto/arcfour (License): Likewise.
57870         * modules/crypto/des-tests (License): Likewise.
57871         * modules/crypto/gc-arctwo-tests (License): Likewise.
57872         * modules/crypto/gc-des-tests (License): Likewise.
57873         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57874         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57875         * modules/crypto/gc-md2-tests (License): Likewise.
57876         * modules/crypto/gc-md4-tests (License): Likewise.
57877         * modules/crypto/gc-md5-tests (License): Likewise.
57878         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57879         * modules/crypto/gc-rijndael-tests (License): Likewise.
57880         * modules/crypto/gc-sha1-tests (License): Likewise.
57881         * modules/crypto/gc-tests (License): Likewise.
57882         * modules/crypto/hmac-md5 (License): Likewise.
57883         * modules/crypto/hmac-sha1 (License): Likewise.
57884         * modules/crypto/md2-tests (License): Likewise.
57885         * modules/crypto/md4-tests (License): Likewise.
57886         * modules/crypto/md5 (License): Likewise.
57887         * modules/crypto/rijndael (License): Likewise.
57888         * modules/crypto/sha1 (License): Likewise.
57889         * modules/memxor (License): Likewise.
57890
57891 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57892         and Bruno Haible  <bruno@clisp.org>
57893
57894         * NEWS: Describe interface changes to human, xstrtol.
57895         * lib/human.h: Include <xstrtol.h>.
57896         (human_options): Return enum strtol_error, not int.  Remove
57897         bool arg; take int * instead.
57898         * lib/human.c: Don't include "gettext.h".
57899         (_): Remove; no longer used.
57900         Don't include <xstrtol.h>, since human.h does it.
57901         (human_options): Adjust to abovementioned interface changes.
57902         Do not report error to stderr; that's now the caller's
57903         responsibility.
57904         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57905         interface change.
57906         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57907         Str, Argument_type_string.  All uses changed.  Put " argument"
57908         in diagnostics to make them clearer.  Change wording of suffix
57909         message for clarity.
57910         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57911         Argument_type_string.
57912         (STRTOL_FATAL_WARN): Remove; no longer used.
57913         * modules/human (Depends-on): Remove gettext-h.
57914
57915 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57916
57917         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57918
57919 2007-07-31  Bruno Haible  <bruno@clisp.org>
57920
57921         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57922         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57923         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57924
57925 2007-07-31  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57928         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57929
57930 2007-07-30  Bruno Haible  <bruno@clisp.org>
57931
57932         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57933         * modules/c-ctype (License): Likewise.
57934         * modules/c-strcase (License): Likewise.
57935         * modules/check-version (License): Likewise.
57936         * modules/iconv (License): Likewise.
57937         * modules/iconv_open (License): Likewise.
57938         * modules/read-file (License): Likewise.
57939         * modules/striconv (License): Likewise.
57940         * modules/strverscmp (License): Likewise.
57941         * modules/vasprintf (License): Likewise.
57942         * modules/crypto/des (License): Likewise.
57943         * modules/crypto/gc (License): Likewise.
57944         * modules/crypto/gc-arcfour (License): Likewise.
57945         * modules/crypto/gc-arctwo (License): Likewise.
57946         * modules/crypto/gc-des (License): Likewise.
57947         * modules/crypto/gc-hmac-md5 (License): Likewise.
57948         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57949         * modules/crypto/gc-md2 (License): Likewise.
57950         * modules/crypto/gc-md4 (License): Likewise.
57951         * modules/crypto/gc-md5 (License): Likewise.
57952         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57953         * modules/crypto/gc-random (License): Likewise.
57954         * modules/crypto/gc-rijndael (License): Likewise.
57955         * modules/crypto/gc-sha1 (License): Likewise.
57956         * modules/crypto/md2 (License): Likewise.
57957         * modules/crypto/md4 (License): Likewise.
57958
57959 2007-07-30  Jim Meyering  <jim@meyering.net>
57960
57961         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57962         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57963         it has valid stat data.  This bug would cause du not to count the
57964         sizes of inaccessible directories.
57965         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57966         in <http://bugzilla.redhat.com/250077>.
57967
57968 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57969             Bruno Haible  <bruno@clisp.org>
57970
57971         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57972         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57973         #include_next, gives a diagnostic about it, but reports no error in
57974         the exit code.
57975         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57976
57977 2007-07-24  Ben Pfaff  <blp@gnu.org>
57978
57979         Improve name: "count-one-bits" is better than "popcount".
57980         * MODULES.html.sh: Update name.
57981         * lib/popcount.h: Renamed lib/count-one-bits.h.
57982         (popcount): Renamed count_one_bits.
57983         (popcountl): Renamed count_one_bits_l.
57984         (popcountll): Renamed count_one_bits_ll.
57985         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57986         * modules/popcount: Renamed module/count-one-bits.
57987         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57988         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57989
57990 2007-07-23  Ben Pfaff  <blp@gnu.org>
57991
57992         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57993         better code generation, and add U to large constants to avoid
57994         warnings, in non-GCC case.
57995         Suggested by Bruno Haible.
57996
57997 2007-07-23  Ben Pfaff  <blp@gnu.org>
57998
57999         * lib/popcount.h: Use verify_true instead of if...abort.
58000         * modules/popcount: Depend on verify module.
58001         Suggested by Jim Meyering.
58002
58003 2007-07-23  Bruno Haible  <bruno@clisp.org>
58004
58005         * gnulib-tool (func_import): Create a .cvsignore file also when the
58006         directory is not yet in CVS but the toplevel directory is. When
58007         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58008         Reported by Karl Berry.
58009
58010 2007-07-22  Ben Pfaff  <blp@gnu.org>
58011
58012         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58013         case.
58014         Suggested by Eric Blake.
58015
58016 2007-07-22  Ben Pfaff  <blp@gnu.org>
58017
58018         New module: popcount.
58019         * MODULES.html.sh: Add popcount.
58020         * modules/popcount: New file.
58021         * modules/popcount-tests: New file.
58022         * tests/test-popcount.c: New file.
58023         * lib/popcount.h: New file.
58024         * m4/popcount.m4: New file.
58025
58026 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58027
58028         * build-aux/announce-gen: Update to GPLv3.
58029
58030         * build-aux/config.guess: Update from config.
58031
58032 2007-07-21  Bruno Haible  <bruno@clisp.org>
58033
58034         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58035         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58036
58037 2007-07-20  Jim Meyering  <jim@meyering.net>
58038
58039         * check-module: Diagnose a self-dependency.
58040
58041 2007-07-19  Bruno Haible  <bruno@clisp.org>
58042
58043         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58044         empty.
58045         Reported by Eric Blake.
58046
58047 2007-07-18  Bruno Haible  <bruno@clisp.org>
58048
58049         * gnulib-tool: New options --po-base, --po-domain.
58050         (func_usage): Document them.
58051         (pobase, po_domain): New variables.
58052         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58053         DEFAULT_TEXT_DOMAIN.
58054         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58055         (func_import): Consider pobase and po_domain. Create a po/ directory.
58056         (func_create_testdir): Set pobase and po_domain to empty.
58057         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58058         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58059
58060 2007-07-18  Bruno Haible  <bruno@clisp.org>
58061
58062         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58063         EXTRA_DIST augmentation for files in build-aux/.
58064
58065 2007-07-16  Bruno Haible  <bruno@clisp.org>
58066
58067         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58068         * modules/getdelim (License): Likewise.
58069
58070 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58071
58072         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58073         * modules/d-type (License): Likewise.
58074         * modules/extensions (License): Likewise.
58075         * modules/fnmatch (License): Likewise.
58076         * modules/fseeko (License): Likewise.
58077         * modules/getaddrinfo (License): Likewise.
58078         * modules/getline (License): Likewise.
58079         * modules/getlogin_r (License): Likewise.
58080         * modules/getpass (License): Likewise.
58081         * modules/gettimeofday (License): Likewise.
58082         * modules/glob (License): Likewise.
58083         * modules/inet_ntop (License): Likewise.
58084         * modules/malloc (License): Likewise.
58085         * modules/malloca (License): Likewise.
58086         * modules/memmem (License): Likewise.
58087         * modules/mempcpy (License): Likewise.
58088         * modules/memset (License): Likewise.
58089         * modules/minmax (License): Likewise.
58090         * modules/mktime (License): Likewise.
58091         * modules/netinet_in (License): Likewise.
58092         * modules/pathmax (License): Likewise.
58093         * modules/poll (License): Likewise.
58094         * modules/regex (License): Likewise.
58095         * modules/snprintf (License): Likewise.
58096         * modules/stdbool (License): Likewise.
58097         * modules/stdint (License): Likewise.
58098         * modules/stdio (License): Likewise.
58099         * modules/strcase (License): Likewise.
58100         * modules/strcasestr (License): Likewise.
58101         * modules/strdup (License): Likewise.
58102         * modules/string (License): Likewise.
58103         * modules/strndup (License): Likewise.
58104         * modules/strnlen (License): Likewise.
58105         * modules/strpbrk (License): Likewise.
58106         * modules/strptime (License): Likewise.
58107         * modules/strsep (License): Likewise.
58108         * modules/sys_select (License): Likewise.
58109         * modules/sys_socket (License): Likewise.
58110         * modules/sys_stat (License): Likewise.
58111         * modules/sys_time (License): Likewise.
58112         * modules/time (License): Likewise.
58113         * modules/time_r (License): Likewise.
58114         * modules/timegm (License): Likewise.
58115         * modules/unistd (License): Likewise.
58116         * modules/vsnprintf (License): Likewise.
58117         * modules/wctype (License): Likewise.
58118
58119 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58120
58121         * modules/argz (License): LGPLv2+.
58122
58123 2007-07-15  Karl Berry  <karl@gnu.org>
58124
58125         * doc/gnulib.texi: revise node structure per new fdl.texi.
58126
58127 2007-07-14  Bruno Haible  <bruno@clisp.org>
58128
58129         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58130         the output file.
58131         * lib/uniname/uninames.h: Regenerated.
58132
58133 2007-07-14  Karl Berry  <karl@gnu.org>
58134
58135         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58136         omitting sectioning and index commands.
58137
58138 2007-07-13  Bruno Haible  <bruno@clisp.org>
58139
58140         New gnulib-tool option --more-symlinks.
58141         * gnulib-tool (func_usage): Document --more-symlinks.
58142         (do_copyrights): New variable.
58143         Recognize option --more-symlinks.
58144         (func_import): Don't add a copyright notice transform to
58145         sed_transform_lib_file if do_copyrights is empty.
58146
58147 2007-07-13  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/vasnprintf.c (decimal_point_char): Define also if
58150         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58151         && !NEED_PRINTF_DIRECTIVE_A.
58152         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58153         Gary V. Vaughan <gary@gnu.org>.
58154
58155 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58156
58157         * lib/inttypes_.h: Undo previous change, since it was fixed
58158         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58159
58160 2007-07-13  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58163         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58164
58165 2007-07-13  Jim Meyering  <jim@meyering.net>
58166
58167         df: Don't fail for Tru64's "file-on-file mount".
58168         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58169         so we fall through and use statfs instead.  Details here:
58170         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58171         Reported by Albert Chin.
58172
58173 2007-07-13  Bruno Haible  <bruno@clisp.org>
58174
58175         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58176         * modules/configmake (License): Likewise.
58177         * modules/gettext (License): Likewise.
58178         * modules/gettext-h (License): Likewise.
58179         * modules/include_next (License): Likewise.
58180         * modules/link-warning (License): Likewise.
58181         * modules/localcharset (License): Likewise.
58182         * modules/localename (License): Likewise.
58183         * modules/lock (License): Likewise.
58184         * modules/relocatable-lib-lgpl (License): Likewise.
58185         * modules/size_max (License): Likewise.
58186         * modules/vasnprintf (License): Likewise.
58187         * modules/wchar (License): Likewise.
58188         * modules/xsize (License): Likewise.
58189
58190 2007-07-13  Bruno Haible  <bruno@clisp.org>
58191
58192         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58193         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58194
58195 2007-07-12  Bruno Haible  <bruno@clisp.org>
58196
58197         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58198         in the modules files.
58199
58200 2007-07-11  Karl Berry  <karl@gnu.org>
58201
58202         * MODULES.html.sh (func_module): use
58203          sed -e '\|^'"${includefile}"'$|d'
58204          instead of /.../d, to avoid errors on $includefile's containing /.
58205
58206 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58207
58208         * gnulib-tool (func_import): Avoid duplication of --avoid
58209         statements
58210         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58211         names to `_' in variable names.
58212
58213 2007-07-10  Eric Blake  <ebb9@byu.net>
58214
58215         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58216         * NEWS: Document this change.
58217
58218 2007-07-08  Bruno Haible  <bruno@clisp.org>
58219
58220         Update to Unicode 5.0.
58221         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58222         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58223         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58224         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58225         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58226         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58227         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58228         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58229         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58230         U+10A3F, U+1D242..U+1D244.
58231         (nonspacing_table_ind): Update.
58232         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58233         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58234
58235 2007-07-08  Bruno Haible  <bruno@clisp.org>
58236
58237         Update to Unicode 5.0.
58238         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58239         code transform. Extend the name index field of unicode_name_to_code and
58240         unicode_code_to_name from 16 to 24 bits.
58241         * lib/uniname/uniname.c (unicode_character_name,
58242         unicode_name_character): Add the range 0x12xxx to the code transform.
58243         * lib/uniname/uninames.h: Regenerated.
58244         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58245
58246 2007-07-07  Bruno Haible  <bruno@clisp.org>
58247
58248         * modules/wcwidth-tests: New file.
58249         * tests/test-wcwidth.c: New file.
58250
58251         Work around MacOS X wcwidth() bug.
58252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58253         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58254         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58255         original wcwidth in non-UTF-8 locales.
58256         * modules/wcwidth (Depends-on): Add localcharset, streq,
58257         uniwidth/width.
58258         * doc/functions/wcwidth.texi: Update.
58259
58260 2007-07-07  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58263         (wcwidth): New declaration.
58264         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58265         macros.
58266         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58267         here. Prepare for creating <wchar.h> unconditionally.
58268         * modules/wchar (Depends-on): Add link-warning.
58269         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58270         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58271         * lib/wcwidth.h: Remove file.
58272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58273         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58274         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58275         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58276         (Include): Replace wcwidth.h with <wchar.h>.
58277         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58278         * lib/mbchar.h: Don't include wcwidth.h.
58279         * lib/mbswidth.c: Likewise.
58280         * NEWS: Mention the change.
58281
58282 2007-07-07  Bruno Haible  <bruno@clisp.org>
58283
58284         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58285         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58286         definition with an external declaration.
58287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58288         defined as a function. Remove AC_C_INLINE requirement.
58289         * modules/wcwidth (Files): Add lib/wcwidth.c.
58290         (Makefile.am): Remove redundant statement.
58291
58292 2007-07-07  Bruno Haible  <bruno@clisp.org>
58293
58294         * MODULES.html.sh (Unicode string functions): Add the new modules.
58295
58296         * tests/uniwidth/test-u32-strwidth.c: New file.
58297         * modules/uniwidth/u32-strwidth-tests: New file.
58298
58299         * lib/uniwidth/u32-strwidth.c: New file.
58300         * modules/uniwidth/u32-strwidth: New file.
58301
58302         * tests/uniwidth/test-u16-strwidth.c: New file.
58303         * modules/uniwidth/u16-strwidth-tests: New file.
58304
58305         * lib/uniwidth/u16-strwidth.c: New file.
58306         * modules/uniwidth/u16-strwidth: New file.
58307
58308         * tests/uniwidth/test-u8-strwidth.c: New file.
58309         * modules/uniwidth/u8-strwidth-tests: New file.
58310
58311         * lib/uniwidth/u8-strwidth.c: New file.
58312         * modules/uniwidth/u8-strwidth: New file.
58313
58314         * tests/uniwidth/test-u32-width.c: New file.
58315         * modules/uniwidth/u32-width-tests: New file.
58316
58317         * lib/uniwidth/u32-width.c: New file.
58318         * modules/uniwidth/u32-width: New file.
58319
58320         * tests/uniwidth/test-u16-width.c: New file.
58321         * modules/uniwidth/u16-width-tests: New file.
58322
58323         * lib/uniwidth/u16-width.c: New file.
58324         * modules/uniwidth/u16-width: New file.
58325
58326         * tests/uniwidth/test-u8-width.c: New file.
58327         * modules/uniwidth/u8-width-tests: New file.
58328
58329         * lib/uniwidth/u8-width.c: New file.
58330         * modules/uniwidth/u8-width: New file.
58331
58332         * tests/uniwidth/test-uc_width.c: New file.
58333         * modules/uniwidth/width-tests: New file.
58334
58335         * lib/uniwidth/width.c: New file, from GNU libiconv.
58336         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58337         * modules/uniwidth/width: New file.
58338
58339         * lib/uniwidth.h: New file, from GNU libiconv.
58340         * modules/uniwidth/base: New file.
58341
58342 2007-07-07  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/uniname.h: New file, from GNU gettext.
58345         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58346         * lib/uniname/uninames.h: New file, from GNU gettext.
58347         * lib/uniname/uniname.c: New file, from GNU gettext.
58348         * tests/uniname/test-uninames.sh: New file.
58349         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58350         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58351         * modules/uniname/base: New file.
58352         * modules/uniname/uniname: New file.
58353         * modules/uniname/uniname-tests: New file.
58354         * MODULES.html.sh (Unicode string functions): Add the new modules.
58355
58356 2007-07-06  Bruno Haible  <bruno@clisp.org>
58357
58358         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58359
58360 2007-07-06  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58363         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58364         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58365         include <sys/time.h>.
58366         Reported by Eric Blake.
58367
58368 2007-07-06  Eric Blake  <ebb9@byu.net>
58369
58370         Fix testing canonicalize on cygwin.
58371         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58372         Revert patch from 2007-06-19.
58373         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58374         canonicalize module is also in use.
58375         * tests/test-canonicalize.c: New file.
58376         * tests/test-canonicalize.sh: Likewise.
58377         * modules/canonicalize-tests: Likewise.
58378
58379 2007-07-06  Jim Meyering  <jim@meyering.net>
58380
58381         * lib/getugroups.c (getugroups): Detect getgrent failure.
58382         Adjust comment to reflect reality: this function may return -1.
58383
58384 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58385
58386         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58387         the new TP address.
58388         (usage): Fix typo
58389         (gnulib_mk): New variable.
58390
58391 2007-07-05  Jim Meyering  <jim@meyering.net>
58392
58393         Don't let endgrent clobber errno, no matter how improbable.
58394         * lib/getugroups.c (getugroups): Save and restore errno around
58395         endgrent call.
58396
58397         Close the group DB even when failing with 2^31 or more members.
58398         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58399
58400 2007-07-04  Jim Meyering  <jim@meyering.net>
58401
58402         * lib/getugroups.h: New file.
58403         * lib/getugroups.c: Include "getugroups.h".
58404         Remove uses of "register" keyword.
58405         Move local variable, "cp", down into scope where used.
58406         Give "username" parameter the "const" attribute.
58407         * modules/getugroups (Files): Add lib/getugroups.h
58408
58409 2007-07-04  Karl Berry  <karl@gnu.org>
58410
58411         * MODULES.html.sh (func_all_modules): Complete rename of
58412         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58413
58414 2007-07-02  Bruno Haible  <bruno@clisp.org>
58415
58416         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58417         mode, when inttypes.h comes from gnulib.
58418         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58419
58420 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58421
58422         * NEWS: Mention lgpl module name change.
58423
58424         * modules/lgpl-2.1: Renamed from lgpl.
58425
58426         * NEWS: Mention gpl module name change.
58427
58428         * modules/gpl-3.0: New file, based on gpl-2.0.
58429
58430         * modules/gpl-2.0: Renamed from gpl.
58431
58432         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58433         doc/gpl-2.0.texi.
58434
58435 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58436
58437         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58438         #define __STDC_LIMIT_MACROS temporarily while including
58439         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58440         Problem reported by Joel E. Denny in
58441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58442
58443 2007-07-01  Bruno Haible  <bruno@clisp.org>
58444
58445         * lib/unistdio.h: New file.
58446         * lib/unistdio/u-asnprintf.h: New file.
58447         * lib/unistdio/u-asprintf.h: New file.
58448         * lib/unistdio/u-printf-args.c: New file.
58449         * lib/unistdio/u-printf-args.h: New file.
58450         * lib/unistdio/u-printf-parse.h: New file.
58451         * lib/unistdio/u-snprintf.h: New file.
58452         * lib/unistdio/u-sprintf.h: New file.
58453         * lib/unistdio/u-vasprintf.h: New file.
58454         * lib/unistdio/u-vsnprintf.h: New file.
58455         * lib/unistdio/u-vsprintf.h: New file.
58456         * lib/unistdio/ulc-asnprintf.c: New file.
58457         * lib/unistdio/ulc-asprintf.c: New file.
58458         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58459         * lib/unistdio/ulc-printf-parse.c: New file.
58460         * lib/unistdio/ulc-snprintf.c: New file.
58461         * lib/unistdio/ulc-sprintf.c: New file.
58462         * lib/unistdio/ulc-vasnprintf.c: New file.
58463         * lib/unistdio/ulc-vasprintf.c: New file.
58464         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58465         * lib/unistdio/ulc-vsnprintf.c: New file.
58466         * lib/unistdio/ulc-vsprintf.c: New file.
58467         * lib/unistdio/u8-asnprintf.c: New file.
58468         * lib/unistdio/u8-asprintf.c: New file.
58469         * lib/unistdio/u8-printf-parse.c: New file.
58470         * lib/unistdio/u8-snprintf.c: New file.
58471         * lib/unistdio/u8-sprintf.c: New file.
58472         * lib/unistdio/u8-vasnprintf.c: New file.
58473         * lib/unistdio/u8-vasprintf.c: New file.
58474         * lib/unistdio/u8-vsnprintf.c: New file.
58475         * lib/unistdio/u8-vsprintf.c: New file.
58476         * lib/unistdio/u8-u8-asnprintf.c: New file.
58477         * lib/unistdio/u8-u8-asprintf.c: New file.
58478         * lib/unistdio/u8-u8-snprintf.c: New file.
58479         * lib/unistdio/u8-u8-sprintf.c: New file.
58480         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58481         * lib/unistdio/u8-u8-vasprintf.c: New file.
58482         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58483         * lib/unistdio/u8-u8-vsprintf.c: New file.
58484         * lib/unistdio/u16-asnprintf.c: New file.
58485         * lib/unistdio/u16-asprintf.c: New file.
58486         * lib/unistdio/u16-printf-parse.c: New file.
58487         * lib/unistdio/u16-snprintf.c: New file.
58488         * lib/unistdio/u16-sprintf.c: New file.
58489         * lib/unistdio/u16-vasnprintf.c: New file.
58490         * lib/unistdio/u16-vasprintf.c: New file.
58491         * lib/unistdio/u16-vsnprintf.c: New file.
58492         * lib/unistdio/u16-vsprintf.c: New file.
58493         * lib/unistdio/u16-u16-asnprintf.c: New file.
58494         * lib/unistdio/u16-u16-asprintf.c: New file.
58495         * lib/unistdio/u16-u16-snprintf.c: New file.
58496         * lib/unistdio/u16-u16-sprintf.c: New file.
58497         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58498         * lib/unistdio/u16-u16-vasprintf.c: New file.
58499         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58500         * lib/unistdio/u16-u16-vsprintf.c: New file.
58501         * lib/unistdio/u32-asnprintf.c: New file.
58502         * lib/unistdio/u32-asprintf.c: New file.
58503         * lib/unistdio/u32-printf-parse.c: New file.
58504         * lib/unistdio/u32-snprintf.c: New file.
58505         * lib/unistdio/u32-sprintf.c: New file.
58506         * lib/unistdio/u32-vasnprintf.c: New file.
58507         * lib/unistdio/u32-vasprintf.c: New file.
58508         * lib/unistdio/u32-vsnprintf.c: New file.
58509         * lib/unistdio/u32-vsprintf.c: New file.
58510         * lib/unistdio/u32-u32-asnprintf.c: New file.
58511         * lib/unistdio/u32-u32-asprintf.c: New file.
58512         * lib/unistdio/u32-u32-snprintf.c: New file.
58513         * lib/unistdio/u32-u32-sprintf.c: New file.
58514         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58515         * lib/unistdio/u32-u32-vasprintf.c: New file.
58516         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58517         * lib/unistdio/u32-u32-vsprintf.c: New file.
58518         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58519         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58520         * tests/unistdio/test-ulc-printf1.h: New file.
58521         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58522         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58523         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58524         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58525         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58526         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58527         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58528         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58529         * tests/unistdio/test-u8-asnprintf1.c: New file.
58530         * tests/unistdio/test-u8-asnprintf1.h: New file.
58531         * tests/unistdio/test-u8-printf1.h: New file.
58532         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58533         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58534         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58535         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58536         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58537         * tests/unistdio/test-u8-vasprintf1.c: New file.
58538         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58539         * tests/unistdio/test-u8-vsprintf1.c: New file.
58540         * tests/unistdio/test-u16-asnprintf1.c: New file.
58541         * tests/unistdio/test-u16-asnprintf1.h: New file.
58542         * tests/unistdio/test-u16-printf1.h: New file.
58543         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58544         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58545         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58546         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58547         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58548         * tests/unistdio/test-u16-vasprintf1.c: New file.
58549         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58550         * tests/unistdio/test-u16-vsprintf1.c: New file.
58551         * tests/unistdio/test-u32-asnprintf1.c: New file.
58552         * tests/unistdio/test-u32-asnprintf1.h: New file.
58553         * tests/unistdio/test-u32-printf1.h: New file.
58554         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58555         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58556         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58557         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58558         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58559         * tests/unistdio/test-u32-vasprintf1.c: New file.
58560         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58561         * tests/unistdio/test-u32-vsprintf1.c: New file.
58562         * modules/unistdio/base: New file.
58563         * modules/unistdio/u-printf-args: New file.
58564         * modules/unistdio/ulc-asnprintf: New file.
58565         * modules/unistdio/ulc-asprintf: New file.
58566         * modules/unistdio/ulc-fprintf: New file.
58567         * modules/unistdio/ulc-printf-parse: New file.
58568         * modules/unistdio/ulc-snprintf: New file.
58569         * modules/unistdio/ulc-sprintf: New file.
58570         * modules/unistdio/ulc-vasnprintf: New file.
58571         * modules/unistdio/ulc-vasprintf: New file.
58572         * modules/unistdio/ulc-vfprintf: New file.
58573         * modules/unistdio/ulc-vsnprintf: New file.
58574         * modules/unistdio/ulc-vsprintf: New file.
58575         * modules/unistdio/u8-asnprintf: New file.
58576         * modules/unistdio/u8-asprintf: New file.
58577         * modules/unistdio/u8-printf-parse: New file.
58578         * modules/unistdio/u8-snprintf: New file.
58579         * modules/unistdio/u8-sprintf: New file.
58580         * modules/unistdio/u8-vasnprintf: New file.
58581         * modules/unistdio/u8-vasprintf: New file.
58582         * modules/unistdio/u8-vsnprintf: New file.
58583         * modules/unistdio/u8-vsprintf: New file.
58584         * modules/unistdio/u8-u8-asnprintf: New file.
58585         * modules/unistdio/u8-u8-asprintf: New file.
58586         * modules/unistdio/u8-u8-snprintf: New file.
58587         * modules/unistdio/u8-u8-sprintf: New file.
58588         * modules/unistdio/u8-u8-vasnprintf: New file.
58589         * modules/unistdio/u8-u8-vasprintf: New file.
58590         * modules/unistdio/u8-u8-vsnprintf: New file.
58591         * modules/unistdio/u8-u8-vsprintf: New file.
58592         * modules/unistdio/u16-asnprintf: New file.
58593         * modules/unistdio/u16-asprintf: New file.
58594         * modules/unistdio/u16-printf-parse: New file.
58595         * modules/unistdio/u16-snprintf: New file.
58596         * modules/unistdio/u16-sprintf: New file.
58597         * modules/unistdio/u16-vasnprintf: New file.
58598         * modules/unistdio/u16-vasprintf: New file.
58599         * modules/unistdio/u16-vsnprintf: New file.
58600         * modules/unistdio/u16-vsprintf: New file.
58601         * modules/unistdio/u16-u16-asnprintf: New file.
58602         * modules/unistdio/u16-u16-asprintf: New file.
58603         * modules/unistdio/u16-u16-snprintf: New file.
58604         * modules/unistdio/u16-u16-sprintf: New file.
58605         * modules/unistdio/u16-u16-vasnprintf: New file.
58606         * modules/unistdio/u16-u16-vasprintf: New file.
58607         * modules/unistdio/u16-u16-vsnprintf: New file.
58608         * modules/unistdio/u16-u16-vsprintf: New file.
58609         * modules/unistdio/u32-asnprintf: New file.
58610         * modules/unistdio/u32-asprintf: New file.
58611         * modules/unistdio/u32-printf-parse: New file.
58612         * modules/unistdio/u32-snprintf: New file.
58613         * modules/unistdio/u32-sprintf: New file.
58614         * modules/unistdio/u32-vasnprintf: New file.
58615         * modules/unistdio/u32-vasprintf: New file.
58616         * modules/unistdio/u32-vsnprintf: New file.
58617         * modules/unistdio/u32-vsprintf: New file.
58618         * modules/unistdio/u32-u32-asnprintf: New file.
58619         * modules/unistdio/u32-u32-asprintf: New file.
58620         * modules/unistdio/u32-u32-snprintf: New file.
58621         * modules/unistdio/u32-u32-sprintf: New file.
58622         * modules/unistdio/u32-u32-vasnprintf: New file.
58623         * modules/unistdio/u32-u32-vasprintf: New file.
58624         * modules/unistdio/u32-u32-vsnprintf: New file.
58625         * modules/unistdio/u32-u32-vsprintf: New file.
58626         * modules/unistdio/ulc-asnprintf-tests: New file.
58627         * modules/unistdio/ulc-vasnprintf-tests: New file.
58628         * modules/unistdio/ulc-vasprintf-tests: New file.
58629         * modules/unistdio/ulc-vsnprintf-tests: New file.
58630         * modules/unistdio/ulc-vsprintf-tests: New file.
58631         * modules/unistdio/u8-asnprintf-tests: New file.
58632         * modules/unistdio/u8-vasnprintf-tests: New file.
58633         * modules/unistdio/u8-vasprintf-tests: New file.
58634         * modules/unistdio/u8-vsnprintf-tests: New file.
58635         * modules/unistdio/u8-vsprintf-tests: New file.
58636         * modules/unistdio/u16-asnprintf-tests: New file.
58637         * modules/unistdio/u16-vasnprintf-tests: New file.
58638         * modules/unistdio/u16-vasprintf-tests: New file.
58639         * modules/unistdio/u16-vsnprintf-tests: New file.
58640         * modules/unistdio/u16-vsprintf-tests: New file.
58641         * modules/unistdio/u32-asnprintf-tests: New file.
58642         * modules/unistdio/u32-vasnprintf-tests: New file.
58643         * modules/unistdio/u32-vasprintf-tests: New file.
58644         * modules/unistdio/u32-vsnprintf-tests: New file.
58645         * modules/unistdio/u32-vsprintf-tests: New file.
58646         * MODULES.html.sh (Unicode string functions): Add the new modules.
58647
58648 2007-07-01  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/sprintf.c (sprintf): Limit the available length estimation,
58651         to avoid address wraparound.
58652         * lib/vsprintf.c (vsprintf): Likewise.
58653         * modules/sprintf-posix (Dependencies): Add stdint.
58654         * modules/vsprintf-posix (Dependencies): Likewise.
58655
58656 2007-07-01  Bruno Haible  <bruno@clisp.org>
58657
58658         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58659         Windows PATH as well. Conservative double-quoting. Comments.
58660
58661 2007-07-01  Bruno Haible  <bruno@clisp.org>
58662             Eric Blake  <ebb9@byu.net>
58663             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58664
58665         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58666         empty components in $PATH, denoting '.'.
58667
58668 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58669
58670         * gnulib-tool: Fix indentation.
58671         (func_create_megatestdir): Likewise.
58672         Report by Bruno Haible.
58673
58674 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58675
58676         Sync from Automake.
58677         * build-aux/gnupload: Fix shell portability issues with for loops.
58678         Report by Karl Berry.
58679
58680 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58681
58682         * build-aux/maint.mk (POURL): Use translationproject.org.
58683
58684 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58685             Bruno Haible  <bruno@clisp.org>
58686
58687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58688         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58689         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58690         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58691         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58692
58693 2007-06-27  Bruno Haible  <bruno@clisp.org>
58694
58695         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58696         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58697
58698 2007-06-26  Karl Berry  <karl@gnu.org>
58699
58700         * MODULES.html.sh: remove xreadlink-with-size.
58701
58702 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58705         method that I hope also handles the double-include problem noted
58706         by Bruno Haible in
58707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58708
58709 2007-06-23  Bruno Haible  <bruno@clisp.org>
58710
58711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58712         Don't let the 'mostlyclean' target fail if the last subdirectory could
58713         not be removed.
58714         Reported by Karl Berry.
58715
58716 2007-06-23  Bruno Haible  <bruno@clisp.org>
58717
58718         * gnulib-tool (echo): Add a speedier workaround for ksh.
58719         * tests/test-echo.sh: Likewise.
58720
58721 2007-06-23  Bruno Haible  <bruno@clisp.org>
58722
58723         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58724         * tests/test-echo.sh: Likewise.
58725
58726 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58727
58728         * gnulib-tool (IFS): Initialize early, so we don't set it to
58729         empty later.
58730         (self_abspathname): Rewrite algorithm to set it, reindent.
58731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58732         (func_create_megatestdir): Merge some sed scripts.
58733
58734 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58737         exposed by Sun Studio 11 cc on Solaris 8.
58738
58739 2007-06-22  Bruno Haible  <bruno@clisp.org>
58740
58741         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58742         backslashes.
58743         * tests/test-echo.sh: New file.
58744
58745 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58746
58747         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58748         simplify `sed_replace_build_aux' scripts, they are portable but
58749         echoing them with `echo' is not.
58750         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58751
58752 2007-06-21  Karl Berry  <karl@gnu.org>
58753
58754         * config/srclist.txt: guess we can't handle the licenses via
58755         srclist at the moment.
58756
58757 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         * MODULES.html.sh: Add include_next.
58760         * modules/include_next: New file.
58761
58762 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58763
58764         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58765         INCLUDE_NEXT.
58766         (gl_CHECK_NEXT_HEADERS): New macro.
58767         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58768         the obsolescent gl_ABSOLUTE_HEADER.
58769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58770         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58771         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58772         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58773         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58774         * m4/math_h.m4 (gl_MATH_H): Likewise.
58775         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58776         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58777         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58778         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58779         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58780         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58781         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58782         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58783         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58784         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58785         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58786         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58787         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58788         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58790         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58791         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58792         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58793         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58794         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58795         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58796         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58797         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58798         * lib/float_.h: Likewise.
58799         * lib/inttypes_.h: Likewise.
58800         * lib/math_.h: Likewise.
58801         * lib/search_.h: Likewise.
58802         * lib/signal_.h: Likewise.
58803         * lib/stdint_.h: Likewise.
58804         * lib/stdio_.h: Likewise.
58805         * lib/stdlib_.h: Likewise.
58806         * lib/string_.h: Likewise.
58807         * lib/sys_stat_.h: Likewise.
58808         * lib/sys_time_.h: Likewise.
58809         * lib/time_.h: Likewise.
58810         * lib/unistd_.h: Likewise.
58811         * lib/wchar_.h: Likewise.
58812         * lib/wctype_.h: Likewise.
58813         * lib/dirent_.h: Likewise.
58814         * lib/iconv_.h: Likewise.
58815         * lib/locale_.h: Likewise.
58816         * lib/netinet_in_.h: Likewise.
58817         * lib/sys_select_.h: Likewise.
58818         * lib/sys_socket_.h: Likewise.
58819         * lib/sysexits_.h: Likewise.
58820         * modules/fcntl (Depends-on): Depend on include_next, not
58821         absolute_header.
58822         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58823         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58824         * modules/fchdir: Likewise.
58825         * modules/float: Likewise.
58826         * modules/iconv_open: Likewise.
58827         * modules/inttypes: Likewise.
58828         * modules/locale: Likewise.
58829         * modules/math: Likewise.
58830         * modules/netinet_in: Likewise.
58831         * modules/search: Likewise.
58832         * modules/signal: Likewise.
58833         * modules/stdint: Likewise.
58834         * modules/stdio: Likewise.
58835         * modules/stdlib: Likewise.
58836         * modules/string: Likewise.
58837         * modules/sys_select: Likewise.
58838         * modules/sys_socket: Likewise.
58839         * modules/sys_stat: Likewise.
58840         * modules/sys_time: Likewise.
58841         * modules/sysexits: Likewise.
58842         * modules/time: Likewise.
58843         * modules/unistd: Likewise.
58844         * modules/wchar: Likewise.
58845         * modules/wctype: Likewise.
58846         * modules/sys_stat: Change maintainer to "all".
58847         * modules/unistd: Likewise.
58848
58849 2007-06-20  Karl Berry  <karl@gnu.org>
58850
58851         * config/srclist.txt: track www changes in license files.
58852
58853 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58854
58855         * build-aux/bootstrap: Remove stray dot.
58856         Make sure build_aux settings are honored when linking
58857         gnulib_extra_files.
58858
58859 2007-06-19  Eric Blake  <ebb9@byu.net>
58860
58861         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58862         Allow compilation on cygwin.
58863
58864 2007-06-19  Jim Meyering  <jim@meyering.net>
58865
58866         xreadlink-with-size: Remove module.  No longer used.
58867         Ex-callers now use xreadlink or mreadlink-with-size.
58868         * modules/xreadlink-with-size: Remove module.
58869         * lib/xreadlink-with-size.c: Remove file.
58870         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58871         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58872         just before the function definition *is* accurate.
58873
58874         Eliminate one way canonicalize_filename_mode could exit.
58875         * lib/canonicalize.c (canonicalize_filename_mode):
58876         Use mreadlink_with_size, not xreadlink_with_size.
58877
58878 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58879
58880         Detect porting problems to FreeBSD/arm, which has time_t wider than
58881         long int.  Original problem reported for GNU diff by Xin Li in
58882         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58883         * modules/getdate (Depends-on): Add intprops, verify.
58884         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58885         is an integer type no wider than long int.
58886
58887 2007-06-18  Jim Meyering  <jim@meyering.net>
58888
58889         New module: mreadlink-with-size.
58890         * MODULES.html.sh: Add mreadlink-with-size.
58891         * modules/mreadlink-with-size: New module
58892         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58893         not xreadlink-with-size.
58894         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58895
58896 2007-06-16  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58899         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58900         Reported by Gary V. Vaughan <gary@gnu.org>.
58901
58902 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58903
58904         Revamp lchown so that it lives in unistd.h where it belongs.
58905         * lib/lchown.h: Remove.
58906         * lib/dirchownmod.c: Don't include lib/lchown.h.
58907         * lib/fchownat.c: Likewise.
58908         * lib/openat.c: Likewise.
58909         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58910         does not follow symlinks.
58911         (EOPNOTSUPP): Define if not defined.
58912         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58913         is defined to 0.
58914         (lchown): New decl.
58915         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58916         Do not check for lchown decl.
58917         Set REPLACE_LCHOWN.
58918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58919         REPLACE_LCHOWN.
58920         * modules/chown: Make it clear it follows symlinks.
58921         * modules/lchown: Make it clear it doesn't follow symlinks.
58922         (Files): Remove lib/lchown.h
58923         (Depends-on): Add unistd.
58924         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58925         (Include): Include <unistd.h>, not "lchown.h".
58926         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58927         REPLACE_LCHOWN.
58928
58929 2007-06-15  Jim Meyering  <jim@meyering.net>
58930
58931         Change license (GPL to LGPL) of fsusage and dependents.
58932         * modules/fsusage (License): Change to LGPL.
58933         * modules/full-read (License): Likewise.
58934         * modules/full-write (License): Likewise.
58935         * modules/safe-read (License): Likewise.
58936         * modules/safe-write (License): Likewise.
58937
58938 2007-06-14  Ben Pfaff  <blp@gnu.org>
58939
58940         Missing part of allocsa -> malloca transition.
58941         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58942         gl_MALLOCA.
58943
58944 2007-06-12  Bruno Haible  <bruno@clisp.org>
58945
58946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58947         to ia64, x86_64, i386.
58948         Reported by Eric Blake.
58949
58950 2007-06-12  Bruno Haible  <bruno@clisp.org>
58951
58952         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58953         cross-compiling to x86_64.
58954
58955 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58956
58957         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58958         glitch reported by Ralf Wildenhues in
58959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58960
58961         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58962         Vin Shelton.
58963
58964 2007-06-11  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58967         replacement string.
58968         Reported by Eric Blake.
58969
58970 2007-06-10  Bruno Haible  <bruno@clisp.org>
58971
58972         Prepare vasnprintf code for use with Unicode strings.
58973         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58974         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58975         TYPE_U32_STRING.
58976         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58977         a_u32_string variants.
58978         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58979         * lib/printf-args.c: Don't include config.h and the specification
58980         header if PRINTF_FETCHARGS is already defined.
58981         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58982         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58983         TYPE_U16_STRING, TYPE_U32_STRING.
58984         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58985         u16_directive, u16_directives, u32_directive, u32_directives): New
58986         types.
58987         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58988         New declarations.
58989         * lib/printf-parse.c: Don't include config.h and the specification
58990         header if PRINTF_PARSE is already defined. Eliminate the set of
58991         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58992         them now. Include c-ctype.h.
58993         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58994         directive and CHAR_T_ONLY_ASCII.
58995         * lib/vasnprintf.c: Don't include config.h and the specification header
58996         if VASNPRINTF is already defined.
58997         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58998         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58999         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59000         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59001         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59002         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59003         code accordingly.
59004         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59005         pad_ourselves also in this case, with the 'c' and 's' directives, and
59006         with a different notion of "width".
59007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59008
59009 2007-06-10  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/unistr/u32-mbsnlen: New file.
59012         * lib/unistr/u32-mbsnlen.c: New file.
59013
59014         * modules/unistr/u16-mbsnlen: New file.
59015         * lib/unistr/u16-mbsnlen.c: New file.
59016
59017         * modules/unistr/u8-mbsnlen: New file.
59018         * lib/unistr/u8-mbsnlen.c: New file.
59019
59020         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59021         declarations.
59022
59023 2007-06-10  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/string_.h (mbsnlen): New declaration.
59026         * lib/mbsnlen.c: New file.
59027         * m4/mbsnlen.m4: New file.
59028         * modules/mbsnlen: New file.
59029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59030         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59031         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59032
59033 2007-06-10  Bruno Haible  <bruno@clisp.org>
59034
59035         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59036
59037 2007-06-10  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59040         * lib/mbuiter.h: Likewise.
59041
59042 2007-06-10  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59045         declaration.
59046
59047 2007-06-10  Karl Berry  <karl@gnu.org>
59048
59049         * config/srclist.txt: remove gettext entries, Bruno prefers
59050         to update individually.
59051
59052 2007-06-10  Bruno Haible  <bruno@clisp.org>
59053
59054         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59055         'maxlen'. Ensure only length + width bytes are allocated, not
59056         length + 1 + width.
59057
59058 2007-06-09  Bruno Haible  <bruno@clisp.org>
59059
59060         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59061         (CHAR_T): Remove macro.
59062         (VASNPRINTF): Update.
59063
59064 2007-06-09  Bruno Haible  <bruno@clisp.org>
59065
59066         * MODULES.html.sh (Unicode string functions): Add the new modules.
59067
59068         * modules/uniconv/u32-conv-to-enc: New file.
59069         * lib/uniconv/u32-conv-to-enc.c: New file.
59070         * modules/uniconv/u32-conv-to-enc-tests: New file.
59071         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59072
59073         * modules/uniconv/u16-conv-to-enc: New file.
59074         * lib/uniconv/u16-conv-to-enc.c: New file.
59075         * lib/uniconv/u-conv-to-enc.h: New file.
59076         * modules/uniconv/u16-conv-to-enc-tests: New file.
59077         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59078
59079         * modules/uniconv/u8-conv-to-enc: New file.
59080         * lib/uniconv/u8-conv-to-enc.c: New file.
59081         * modules/uniconv/u8-conv-to-enc-tests: New file.
59082         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59083
59084         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59085         u32_conv_to_encoding): New declarations.
59086
59087 2007-06-09  Bruno Haible  <bruno@clisp.org>
59088
59089         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59090
59091 2007-06-09  Bruno Haible  <bruno@clisp.org>
59092
59093         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59094         * modules/malloca: Renamed from modules/allocsa, updated.
59095         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59096         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59097         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59098         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59099         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59100         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59101         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59102         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59103         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59104         * modules/c-strcasestr (Depends-on): Update.
59105         * lib/c-strcasestr.c: Update.
59106         * modules/c-strstr (Depends-on): Update.
59107         * lib/c-strstr.c: Update.
59108         * modules/canonicalize-lgpl (Depends-on): Update.
59109         * lib/canonicalize-lgpl.c: Update.
59110         * modules/clean-temp (Depends-on): Update.
59111         * lib/clean-temp.c: Update.
59112         * modules/csharpcomp (Depends-on): Update.
59113         * lib/csharpcomp.c: Update.
59114         * modules/csharpexec (Depends-on): Update.
59115         * lib/csharpexec.c: Update.
59116         * modules/javacomp (Depends-on): Update.
59117         * lib/javacomp.c: Update.
59118         * modules/javaexec (Depends-on): Update.
59119         * lib/javaexec.c: Update.
59120         * modules/mbscasestr (Depends-on): Update.
59121         * lib/mbscasestr.c: Update.
59122         * modules/mbsstr (Depends-on): Update.
59123         * lib/mbsstr.c: Update.
59124         * modules/setenv (Depends-on): Update.
59125         * lib/setenv.c: Update.
59126         * modules/strcasestr (Depends-on): Update.
59127         * lib/strcasestr.c: Update.
59128         * modules/striconveha (Depends-on): Update.
59129         * lib/striconveha.c: Update.
59130         * modules/relocatable-prog-wrapper (Files): Update.
59131         * lib/relocwrapper.c: Update.
59132         * build-aux/install-reloc: Update.
59133         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59134
59135 2007-06-08  Bruno Haible  <bruno@clisp.org>
59136
59137         Port to uClibc.
59138         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59139         * lib/fpurge.c (fpurge): Likewise.
59140         * lib/freading.c (freading): Likewise.
59141         * lib/fseeko.c (rpl_fseeko): Likewise.
59142         * lib/fseterr.c (fseterr): Likewise.
59143         * lib/fwriting.c (fwriting): Likewise.
59144         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59145
59146 2007-06-08  Bruno Haible  <bruno@clisp.org>
59147
59148         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59149         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59150         * modules/gettext (Files): Add m4/intlmacosx.m4.
59151
59152 2007-06-07  Bruno Haible  <bruno@clisp.org>
59153
59154         * modules/localename-tests: New file.
59155         * tests/test-localename.c: New file.
59156
59157         New module 'localename'.
59158         * lib/localename.h: New file.
59159         * lib/localename.c: New file, from GNU gettext.
59160         * m4/localename.m4: New file.
59161         * modules/localename: New file.
59162
59163 2007-06-07  Bruno Haible  <bruno@clisp.org>
59164
59165         Work around the lack of <wchar.h> on some builds of uClibc.
59166         * doc/headers/wchar.texi: Update.
59167         * lib/wchar_.h: Include <wchar.h> only if it exists.
59168         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59169         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59170         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59171         doesn't exist.
59172         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59173         * modules/mbfile (Depends-on): Add wchar.
59174         * modules/mbiter (Depends-on): Likewise.
59175         * modules/mbuiter (Depends-on): Likewise.
59176         Reported by Simon Josefsson.
59177
59178 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59179
59180         Work around problem reported by Steven M. Schweda in
59181         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59182         Tru64 5.1B with the Compaq compiler environment installed declares
59183         an 'isblank' function but does not define it in the C library.
59184         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59185         * lib/regex_internal.h (isblank): Likewise.
59186         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59187         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59188
59189 2007-06-05  Bruno Haible  <bruno@clisp.org>
59190
59191         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59192         ia64.
59193         * modules/printf-safe: New file.
59194         * modules/fprintf-posix (Depends-on): Add printf-safe.
59195         * modules/printf-posix (Depends-on): Likewise.
59196         * modules/snprintf-posix (Depends-on): Likewise.
59197         * modules/sprintf-posix (Depends-on): Likewise.
59198         * modules/vasnprintf-posix (Depends-on): Likewise.
59199         * modules/vasprintf-posix (Depends-on): Likewise.
59200         * modules/vfprintf-posix (Depends-on): Likewise.
59201         * modules/vprintf-posix (Depends-on): Likewise.
59202         * modules/vsnprintf-posix (Depends-on): Likewise.
59203         * modules/vsprintf-posix (Depends-on): Likewise.
59204         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59205         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59206         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59207         "no" on i386, x86_64, ia64.
59208         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59209         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59210         on i386, x86_64, ia64.
59211         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59212         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59213         on i386, x86_64, ia64.
59214         * tests/test-vasnprintf-posix.c: Include float.h.
59215         (LDBL80_WORDS): New macro.
59216         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59217         on i386, x86_64, ia64.
59218         * tests/test-vasprintf-posix.c: Include float.h.
59219         (LDBL80_WORDS): New macro.
59220         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59221         on i386, x86_64, ia64.
59222         * tests/test-snprintf-posix.c: Include float.h.
59223         * tests/test-sprintf-posix.c: Likewise.
59224         * tests/test-vsnprintf-posix.c: Likewise.
59225         * tests/test-vsprintf-posix.c: Likewise.
59226
59227 2007-06-05  Bruno Haible  <bruno@clisp.org>
59228
59229         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59230         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59231         non-IEEE numbers on i386, x86_64, ia64.
59232         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59233         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59234         * tests/test-isnanl.h: Include float.h.
59235         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59236
59237 2007-06-05  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59240         also the %a / %A. Handle the %a / %A code before this extra handling.
59241
59242 2007-06-05  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59245         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59246
59247 2007-06-05  Bruno Haible  <bruno@clisp.org>
59248
59249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59250         typo in variable name.
59251
59252 2007-06-05  Eric Blake  <ebb9@byu.net>
59253
59254         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59255         Reported by Simon Josefsson.
59256
59257 2007-06-04  Bruno Haible  <bruno@clisp.org>
59258
59259         Avoid test failures on some PowerPC platforms.
59260         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59261         Define differently for PowerPC.
59262         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59263         Reported by Gary V. Vaughan <gary@gnu.org>.
59264
59265 2007-06-02  Bruno Haible  <bruno@clisp.org>
59266
59267         Fix test-stdint failure on FreeBSD/ia64.
59268         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59269         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59270         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59271         * doc/headers/stdint.texi: Update.
59272
59273 2007-06-01  Bruno Haible  <bruno@clisp.org>
59274
59275         * tests/test-binary-io.c (main): Pass a third argument to open().
59276         Reported by Gary V. Vaughan <gary@gnu.org>.
59277
59278 2007-06-01  Bruno Haible  <bruno@clisp.org>
59279
59280         * doc/functions/frexpl.texi: Update for mingw.
59281
59282 2007-06-01  Bruno Haible  <bruno@clisp.org>
59283
59284         * tests/test-lseek.c (main): Disable test of errno for invalid third
59285         argument.
59286         * doc/functions/lseek.texi: Update.
59287         Reported by Gary V. Vaughan <gary@gnu.org>.
59288
59289 2007-05-28  Bruno Haible  <bruno@clisp.org>
59290
59291         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59292
59293 2007-05-31  Eric Blake  <ebb9@byu.net>
59294
59295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59296         cross compiling.
59297
59298 2007-05-30  Eric Blake  <ebb9@byu.net>
59299         and Bruno Haible  <bruno@clisp.org>
59300
59301         Work around mingw test failures exposed by m4-1.4.9b.
59302         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59303         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59304         moment.
59305
59306 2007-05-30  Bruno Haible  <bruno@clisp.org>
59307
59308         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59309         assuming that they are closed. Needed on HP-UX 11.
59310
59311 2007-05-29  Bruno Haible  <bruno@clisp.org>
59312
59313         Fix a problem with #include_next.
59314         * lib/dirent_.h: Split the double-inclusion guard.
59315         * lib/fcntl_.h: Likewise.
59316         * lib/float_.h: Likewise.
59317         * lib/iconv_.h: Likewise.
59318         * lib/inttypes_.h: Likewise.
59319         * lib/locale_.h: Likewise.
59320         * lib/math_.h: Likewise.
59321         * lib/netinet_in_.h: Likewise.
59322         * lib/search_.h: Likewise.
59323         * lib/signal_.h: Likewise.
59324         * lib/stdint_.h: Likewise.
59325         * lib/stdio_.h: Likewise.
59326         * lib/stdlib_.h: Likewise.
59327         * lib/string_.h: Likewise.
59328         * lib/sys_select_.h: Likewise.
59329         * lib/sys_socket_.h: Likewise.
59330         * lib/sys_stat_.h: Likewise.
59331         * lib/sys_time_.h: Likewise.
59332         * lib/sysexits_.h: Likewise.
59333         * lib/time_.h: Likewise.
59334         * lib/unistd_.h: Likewise.
59335         * lib/wchar_.h: Likewise.
59336         * lib/wctype_.h: Likewise.
59337
59338 2007-05-29  Bruno Haible  <bruno@clisp.org>
59339
59340         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59341         for the moment.
59342
59343 2007-05-29  Bruno Haible  <bruno@clisp.org>
59344
59345         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59346         invocation.
59347         Reported by Eric Blake.
59348
59349 2007-05-29  Bruno Haible  <bruno@clisp.org>
59350
59351         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59352         compiling case.
59353
59354 2007-05-29  Eric Blake  <ebb9@byu.net>
59355             Bruno Haible  <bruno@clisp.org>
59356
59357         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59358         cross compiles.
59359
59360 2007-05-28  Eric Blake  <ebb9@byu.net>
59361
59362         * modules/closein-tests (test_closein_LDADD): Support test on
59363         cygwin with libtool.
59364
59365 2007-05-28  Bruno Haible  <bruno@clisp.org>
59366
59367         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59368         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59369         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59370         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59371         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59372         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59373         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59374         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59375         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59376
59377 2007-05-28  Eric Blake  <ebb9@byu.net>
59378
59379         Unconditionally include <config.h> in unit tests.
59380         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59381         * tests/test-allocsa.c, tests/test-arcfour.c,
59382         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59383         tests/test-array_list.c, tests/test-array_oset.c,
59384         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59385         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59386         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59387         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59388         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59389         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59390         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59391         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59392         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59393         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59394         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59395         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59396         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59397         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59398         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59399         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59400         test-md5.c, test-memmem.c, test-printf-posix.c,
59401         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59402         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59403         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59404         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59405         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59406         test-vasnprintf-posix2.c, test-vasnprintf.c,
59407         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59408         test-vfprintf-posix.c, test-vprintf-posix.c,
59409         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59410         test-xvasprintf.c: Likewise.
59411
59412 2007-05-28  Bruno Haible  <bruno@clisp.org>
59413
59414         * gnulib-tool (func_import): Remember the --with-tests command-line
59415         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59416         Reported by Eric Blake.
59417
59418 2007-05-28  Bruno Haible  <bruno@clisp.org>
59419
59420         * modules/ftell-tests: New file.
59421         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59422         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59423
59424         * lib/ftell.c: New file.
59425         * modules/ftell: New file.
59426         * m4/ftell.m4: New file.
59427         * doc/functions/ftell.texi: Update.
59428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59429         REPLACE_FTELL.
59430         * lib/stdio_.h (rpl_ftell): New declaration.
59431         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59432         REPLACE_FTELL.
59433
59434 2007-05-28  Eric Blake  <ebb9@byu.net>
59435
59436         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59437
59438 2007-05-28  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/fseek-tests: New file.
59441         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59442         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59443
59444         * lib/fseek.c: New file.
59445         * modules/fseek: New file.
59446         * m4/fseek.m4: New file.
59447         * doc/functions/fseek.texi: Update.
59448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59449         REPLACE_FSEEK.
59450         * lib/stdio_.h (rpl_fseek): New declaration.
59451         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59452         REPLACE_FSEEK.
59453
59454 2007-05-28  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/stdio_.h (fflush): More comments.
59457
59458 2007-05-28  Bruno Haible  <bruno@clisp.org>
59459
59460         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59461         runtime test.
59462
59463 2007-05-28  Eric Blake  <ebb9@byu.net>
59464
59465         Improve lseek module.
59466         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59467         * lib/unistd_.h (lseek): Scale back link warning message.
59468         * tests/test-lseek.c: Beef up test.
59469         * tests/test-lseek.sh: Exercise more facets of lseek.
59470         Reported by Bruno Haible.
59471
59472 2007-05-28  Bruno Haible  <bruno@clisp.org>
59473
59474         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59475         to define.
59476
59477 2007-05-27  Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59480
59481 2007-05-27  Bruno Haible  <bruno@clisp.org>
59482
59483         * modules/openmp: New file.
59484         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59485         Noah Misch.
59486
59487 2007-05-26  Bruno Haible  <bruno@clisp.org>
59488
59489         * modules/chdir-long (Depends-on): Add fchdir.
59490         * modules/chdir-safer (Depends-on): Likewise.
59491         * modules/fts (Depends-on): Likewise.
59492         * modules/fts-lgpl (Depends-on): Likewise.
59493         * modules/openat (Depends-on): Likewise.
59494         * modules/savewd (Depends-on): Likewise.
59495
59496 2007-05-24  Eric Blake  <ebb9@byu.net>
59497
59498         Fix lseek on mingw.
59499         * modules/lseek: New module.
59500         * m4/lseek.m4: New file.
59501         * lib/lseek.c: New file.
59502         * modules/lseek-tests: New file.
59503         * tests/test-lseek.c: New file.
59504         * tests/test-lseek.sh: New file.
59505         * MODULES.html.sh: Document lseek module.
59506         * modules/fflush (Depends-on): Add lseek, fseeko.
59507         * modules/fseeko (Depends-on): Likewise.
59508         * modules/ftello (Depends-on): Likewise.
59509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59510         broken.
59511         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59512         broken.
59513         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59514         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59515         * lib/ftello.c (rpl_ftello): Likewise.
59516         * tests/test-fseeko.c (main): Test this.
59517         * tests/test-fseeko.sh: Likewise.
59518         * tests/test-ftello.c (main): Likewise.
59519         * tests/test-ftello.sh: Likewise.
59520         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59521         implies replacing fseek.
59522         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59523         HAVE_FTELLO.
59524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59525         * modules/unistd (Makefile.am): Likewise.
59526         * lib/unistd_.h (lseek): Declare a replacement.
59527         * doc/functions/lseek.texi (lseek): Document this fix.
59528         * doc/functions/fseek.texi (fseek): Likewise.
59529         * doc/functions/ftell.texi (ftell): Likewise.
59530
59531 2007-05-24  Bruno Haible  <bruno@clisp.org>
59532
59533         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59534         in the printed representation of a NaN.
59535         * tests/test-vasprintf-posix.c (test_function): Likewise.
59536         * tests/test-snprintf-posix.h (test_function): Likewise.
59537         * tests/test-sprintf-posix.h (test_function): Likewise.
59538         Reported by Eric Blake.
59539
59540 2007-05-23  Eric Blake  <ebb9@byu.net>
59541
59542         Fix fseeko/ftello on cygwin 1.5.24.
59543         * doc/functions/fseeko.texi (fseeko): Document the fix.
59544         * doc/functions/ftello.texi (ftello): Document the fix.
59545         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59546         * doc/functions/stdout.text (stdout): New file.
59547         * doc/functions/stderr.text (stderr): New file.
59548         * doc/gnulib.texi (Function Substitutes): Use new files.
59549         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59550         prior to 1.7.0.
59551         * tests/test-ftello.c (main): Likewise for ftello.
59552         * tests/test-fseeko.sh: New file.
59553         * tests/test-ftello.sh: New file.
59554         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59555         with seekable stdin.
59556         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59558         (gl_REPLACE_FSEEKO): New macro.
59559         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59560         * modules/fseeko (Files): Distribute fseeko.c.
59561         * modules/ftello (Files): Distribute ftello.c.
59562         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59563         mode.
59564         * lib/ftello.c (rpl_ftello): New file.
59565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59566         fseeko, ftello.
59567         (gl_STDIN_LARGE_OFFSET): New macro.
59568         * modules/stdio (Makefile.am): Perform the replacement.
59569         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59570
59571 2007-05-23  Bruno Haible  <bruno@clisp.org>
59572
59573         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59574         GNULIB_POSIXCHECK is defined.
59575
59576 2007-05-21  Bruno Haible  <bruno@clisp.org>
59577
59578         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59579         Check also the output for NaN arguments. When cross-compiling, guess
59580         no on IRIX.
59581         * lib/vasnprintf.c: Update comments.
59582         * tests/test-vasnprintf-posix.c (strisnan): New function.
59583         (test_function): Use it.
59584         * tests/test-vasprintf-posix.c (strisnan): New function.
59585         (test_function): Use it.
59586         * tests/test-snprintf-posix.h (strisnan): New function.
59587         (test_function): Use it.
59588         * tests/test-sprintf-posix.h (strisnan): New function.
59589         (test_function): Use it.
59590         Reported by Eric Blake.
59591
59592 2007-05-20  Bruno Haible  <bruno@clisp.org>
59593
59594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59595         numbers that fails on BeOS.
59596         * doc/functions/frexpl.texi: Update.
59597
59598 2007-05-20  Jim Meyering  <jim@meyering.net>
59599
59600         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59601         forced upon us by glibc-2.6.
59602
59603 2007-05-20  Bruno Haible  <bruno@clisp.org>
59604
59605         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59606         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59607         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59608         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59609         NEED_PRINTF_INFINITE.
59610         (is_infinitel): New function.
59611         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59613         gl_PREREQ_VASNPRINTF_INFINITE.
59614         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59615         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59616         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59617         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59618         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59619         gl_PREREQ_VASNPRINTF_INFINITE.
59620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59621         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59622         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59627         * doc/functions/fprintf.texi: Update.
59628         * doc/functions/printf.texi: Update.
59629         * doc/functions/snprintf.texi: Update.
59630         * doc/functions/sprintf.texi: Update.
59631         * doc/functions/vfprintf.texi: Update.
59632         * doc/functions/vprintf.texi: Update.
59633         * doc/functions/vsnprintf.texi: Update.
59634         * doc/functions/vsprintf.texi: Update.
59635
59636 2007-05-20  Bruno Haible  <bruno@clisp.org>
59637
59638         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59639         was not found in libc.
59640         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59641
59642 2007-05-20  Bruno Haible  <bruno@clisp.org>
59643
59644         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59645         printed as "-nan" instead of "nan".
59646         * tests/test-vasprintf-posix.c (test_function): Likewise.
59647         * tests/test-snprintf-posix.h (test_function): Likewise.
59648         * tests/test-sprintf-posix.h (test_function): Likewise.
59649         Needed for HP-UX 11.
59650
59651 2007-05-20  Jim Meyering  <jim@meyering.net>
59652
59653         Fix buggy test for the fchownat-deref bug.
59654         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59655         symlink required for the run-test.  Without it, this test would
59656         always declare that fchownat doesn't work, and client code would
59657         unnecessarily use the replacement function with fixed libc.
59658         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59659         Reported by Greg Schafer.
59660
59661 2007-05-19  Bruno Haible  <bruno@clisp.org>
59662
59663         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59664         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59665         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59666         Needed for IRIX 6.5 and Solaris 2.5.1.
59667
59668 2007-05-19  Bruno Haible  <bruno@clisp.org>
59669
59670         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59671         (test_function): Skip tests involving -0.0 on platforms where
59672         -0.0 = 0.0.
59673         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59674         (test_function): Skip tests involving -0.0 on platforms where
59675         -0.0 = 0.0.
59676         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59677         (test_function): Skip tests involving -0.0 on platforms where
59678         -0.0 = 0.0.
59679         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59680         (test_function): Skip tests involving -0.0 on platforms where
59681         -0.0 = 0.0.
59682         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59683         tests.
59684         * tests/test-printf-posix.h (test_function): Likewise.
59685         * tests/test-printf-posix.output: Remove all -0.0 related results.
59686         Needed for IRIX 6.5.
59687
59688 2007-05-19  Bruno Haible  <bruno@clisp.org>
59689
59690         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59691         printed as "nan0x7fffffff" instead of "nan".
59692         * tests/test-vasprintf-posix.c (test_function): Likewise.
59693         * tests/test-snprintf-posix.h (test_function): Likewise.
59694         * tests/test-sprintf-posix.h (test_function): Likewise.
59695         * tests/test-fprintf-posix.h (NaN): Remove macro.
59696         (test_function): Remove all NaN related tests.
59697         * tests/test-printf-posix.h (NaN): Remove macro.
59698         (test_function): Remove all NaN related tests.
59699         * tests/test-printf-posix.output: Remove all NaN related results.
59700         Needed for IRIX 6.5.
59701
59702 2007-05-19  Bruno Haible  <bruno@clisp.org>
59703
59704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59706
59707 2007-05-19  Bruno Haible  <bruno@clisp.org>
59708
59709         * lib/float_.h: New file.
59710         * m4/float_h.m4: New file.
59711         * modules/float: New file.
59712         * modules/isnanl (Dependencies): Add float.
59713         * modules/isnanl-nolibm (Dependencies): Likewise.
59714         * modules/mathl (Dependencies): Likewise.
59715         * modules/printf-frexpl (Dependencies): Likewise.
59716         * modules/signbit (Dependencies): Likewise.
59717         * modules/vasnprintf (Dependencies): Likewise.
59718         * doc/headers/float.texi: Update.
59719
59720 2007-05-19  Jim Meyering  <jim@meyering.net>
59721
59722         * lib/utimens.c (gl_futimens): Rename from futimens,
59723         now that glibc-2.6 declares futimens.
59724         * lib/utimens.h: Likewise.
59725
59726 2007-05-19  Bruno Haible  <bruno@clisp.org>
59727
59728         Avoid test failures on mingw.
59729         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59730         * tests/test-printf-posix.sh: Likewise.
59731         * tests/test-vfprintf-posix.sh: Likewise.
59732         * tests/test-vprintf-posix.sh: Likewise.
59733
59734 2007-05-19  Bruno Haible  <bruno@clisp.org>
59735
59736         Fix *printf result for NaN, Inf, -0.0 on mingw.
59737         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59738         * lib/vasnprintf.c: Include math.h and isnan.h.
59739         (is_infinite_or_zero): New function.
59740         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59741         values in the %f, %F, %e, %E, %g, %G directives.
59742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59744         gl_PRINTF_INFINITE and test its result. Invoke
59745         gl_PREREQ_VASNPRINTF_INFINITE.
59746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59753         * doc/functions/fprintf.texi: Update.
59754         * doc/functions/printf.texi: Update.
59755         * doc/functions/snprintf.texi: Update.
59756         * doc/functions/sprintf.texi: Update.
59757         * doc/functions/vfprintf.texi: Update.
59758         * doc/functions/vprintf.texi: Update.
59759         * doc/functions/vsnprintf.texi: Update.
59760         * doc/functions/vsprintf.texi: Update.
59761
59762 2007-05-19  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59765         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59766         Instead of multiplying with 10^k, set extra_zeroes to k.
59767         (scale10_round_long_double): Remove function.
59768
59769 2007-05-18  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59772         introduced on 2007-05-06.
59773
59774 2007-05-18  Bruno Haible  <bruno@clisp.org>
59775
59776         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59777         %g directives.
59778         * tests/test-vasprintf-posix.c (test_function): Likewise.
59779         * tests/test-snprintf-posix.h (test_function): Likewise.
59780         * tests/test-sprintf-posix.h (test_function): Likewise.
59781
59782 2007-05-18  Bruno Haible  <bruno@clisp.org>
59783
59784         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59785         (strmatch): New function.
59786         (test_function): Test the %f directive on numbers of various exponents.
59787         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59788         (strmatch): New function.
59789         (test_function): Test the %f directive on numbers of various exponents.
59790         * tests/test-snprintf-posix.h (strmatch): New function.
59791         (test_function): Test the %f directive on numbers of various exponents.
59792         * tests/test-sprintf-posix.h (strmatch): New function.
59793         (test_function): Test the %f directive on numbers of various exponents.
59794         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59795         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59796         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59797         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59798
59799 2007-05-18  Bruno Haible  <bruno@clisp.org>
59800
59801         Add support for 'long double' number output.
59802         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59803         * lib/vasnprintf.c: Include math.h and float+.h.
59804         (mp_limb_t): New type.
59805         (GMP_LIMB_BITS): New macro.
59806         (mp_twolimb_t): New type.
59807         (GMP_TWOLIMB_BITS): New macro.
59808         (mpn_t): New type.
59809         (multiply, divide, convert_to_decimal, decode_long_double,
59810         scale10_round_long_double, scale10_round_decimal_long_double,
59811         floorlog10l): New functions.
59812         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59813         for the %f, %F, %e, %E, %g, %G directives.
59814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59816         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59817         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59825         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59826         * modules/snprintf-posix (Depends-on): Likewise.
59827         * modules/sprintf-posix (Depends-on): Likewise.
59828         * modules/vasnprintf-posix (Depends-on): Likewise.
59829         * modules/vasprintf-posix (Depends-on): Likewise.
59830         * modules/vfprintf-posix (Depends-on): Likewise.
59831         * modules/vsnprintf-posix (Depends-on): Likewise.
59832         * modules/vsprintf-posix (Depends-on): Likewise.
59833         * modules/vasnprintf (Files): Add lib/float+.h.
59834         * doc/functions/fprintf.texi: Update.
59835         * doc/functions/printf.texi: Update.
59836         * doc/functions/snprintf.texi: Update.
59837         * doc/functions/sprintf.texi: Update.
59838         * doc/functions/vfprintf.texi: Update.
59839         * doc/functions/vprintf.texi: Update.
59840         * doc/functions/vsnprintf.texi: Update.
59841         * doc/functions/vsprintf.texi: Update.
59842
59843 2007-05-18  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59846
59847 2007-05-18  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59850         for printing 64-bit integers. Needed for mingw.
59851
59852 2007-05-18  Bruno Haible  <bruno@clisp.org>
59853
59854         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59855         gl_FUNC_FREXPL_WORKS.
59856         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59857
59858 2007-05-18  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/frexpl-nolibm-tests: New file.
59861
59862         * modules/frexpl-nolibm: New file.
59863         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59864
59865 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59866
59867         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59868         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59869         GCC 4.2, which otherwise issues a lot of warnings.
59870         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59871         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59872         Likewise.
59873         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59874         * modules/iconv_open (iconv.h): Likewise.
59875         * modules/locale (locale.h): Likewise.
59876         * modules/netinet_in (netinet/in.h): Likewise.
59877         * modules/sys_select (sys_select.h): Likewise.
59878         * modules/sys_socket (sys/socket.h): Likewise.
59879         * modules/sys_stat (sys/stat.h): Likewise.
59880         * modules/sysexits (sysexits.h): Likewise.
59881         * modules/unistd (unistd.h): Likewise.
59882
59883 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59884
59885         * modules/closein-tests (Makefile.am): Distribute
59886         `test-closein.sh'.
59887
59888 2007-05-17  Bruno Haible  <bruno@clisp.org>
59889
59890         * tests/test-printf-posix.output: Renamed from
59891         tests/test-fprintf-posix.out.
59892         * modules/fprintf-posix-tests: Update.
59893         * modules/printf-posix-tests: Update.
59894         * modules/vfprintf-posix-tests: Update.
59895         * modules/vprintf-posix-tests: Update.
59896         * tests/test-fprintf-posix.sh: Update.
59897         * tests/test-printf-posix.sh: Update.
59898         * tests/test-vfprintf-posix.sh: Update.
59899         * tests/test-vprintf-posix.sh: Update.
59900         Reported by Ralf Wildenhues.
59901
59902 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59903
59904         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59905         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59906         GCC 4.2, which otherwise issues a lot of warnings.
59907         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59908         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59909         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59910         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59911         it should no longer be needed.
59912         * lib/string_.h: Likewise.
59913         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59914         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59915         * modules/inttypes (inttypes.h): Likewise.
59916         * modules/math (math.h): Likewise.
59917         * modules/search (search.h): Likewise.
59918         * modules/signal (signal.h): Likewise.
59919         * modules/stdint (stdint.h): Likewise.
59920         * modules/stdio (stdio.h): Likewise.
59921         * modules/stdlib (stdlib.h): Likewise.
59922         * modules/string (string.h): Likewise.
59923         * modules/sys_time (sys/time.h): Likewise.
59924         * modules/time (time.h): Likewise.
59925         * modules/wchar (wchar.h): Likewise.
59926         * modules/wctype (wtype.h): Likewise.
59927
59928 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59929
59930         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59931
59932 2007-05-13  Bruno Haible  <bruno@clisp.org>
59933
59934         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59935         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59936         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59937         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59938         (gl_PREREQ_STRTOK_R): Don't require it here.
59939
59940 2007-05-13  Bruno Haible  <bruno@clisp.org>
59941
59942         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59943         when used in C++ mode.
59944
59945 2007-05-12  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/linebuffer.h: Tweak doc.
59948         * lib/linebuffer.c: Likewise.
59949
59950 2007-05-12  James Youngman  <jay@gnu.org>
59951
59952         * lib/linebuffer.c (readlinebuffer_delim): New function,
59953         like readlinebuffer, but use a caller-specified delimiter.
59954         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59955         as the delimiter.
59956         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59957
59958 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59959
59960         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59961         * modules/openat (Files): Remove openat-die.c.
59962         (Depends-on): Add openat-die.
59963         * modules/openat-die: New module.
59964
59965 2007-05-06  Bruno Haible  <bruno@clisp.org>
59966
59967         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59968         Update with info about Cygwin.
59969         * doc/functions/fprintf.texi: Update.
59970         * doc/functions/printf.texi: Update.
59971         * doc/functions/snprintf.texi: Update.
59972         * doc/functions/sprintf.texi: Update.
59973         * doc/functions/vfprintf.texi: Update.
59974         * doc/functions/vprintf.texi: Update.
59975         * doc/functions/vsnprintf.texi: Update.
59976         * doc/functions/vsprintf.texi: Update.
59977         Reported by Eric Blake.
59978
59979 2007-05-06  Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59982         padding ourselves for the floating-point directives.
59983         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59986         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59987         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59989         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59990         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59991         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59992         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59993         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59994         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59995         * tests/test-snprintf-posix.h (test_function): Also check the width
59996         and some flags in the %f directive.
59997         * tests/test-sprintf-posix.h (test_function): Likewise.
59998         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59999         * tests/test-vasprintf-posix.c (test_function): Likewise.
60000         * doc/functions/fprintf.texi: Update.
60001         * doc/functions/printf.texi: Update.
60002         * doc/functions/snprintf.texi: Update.
60003         * doc/functions/sprintf.texi: Update.
60004         * doc/functions/vfprintf.texi: Update.
60005         * doc/functions/vprintf.texi: Update.
60006         * doc/functions/vsnprintf.texi: Update.
60007         * doc/functions/vsprintf.texi: Update.
60008
60009 2007-05-06  Bruno Haible  <bruno@clisp.org>
60010
60011         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60012         pass the ' flag character to sprintf or snprintf.
60013         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60016         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60017         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60018         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60025         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60026         flag.
60027         * tests/test-sprintf-posix.h (test_function): Likewise.
60028         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60029         * tests/test-vasprintf-posix.c (test_function): Likewise.
60030         * doc/functions/fprintf.texi: Update.
60031         * doc/functions/printf.texi: Update.
60032         * doc/functions/snprintf.texi: Update.
60033         * doc/functions/sprintf.texi: Update.
60034         * doc/functions/vfprintf.texi: Update.
60035         * doc/functions/vprintf.texi: Update.
60036         * doc/functions/vsnprintf.texi: Update.
60037         * doc/functions/vsprintf.texi: Update.
60038
60039 2007-05-01  Bruno Haible  <bruno@clisp.org>
60040
60041         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60042
60043 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60046         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60047
60048 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60049
60050         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60051         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60053
60054 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60055
60056         * lib/argp-help.c (struct hol_entry): New member `ord'.
60057         (HOL_ENTRY_PTRCMP): Use ord for comparison
60058         (hol_sort): Initialize ord.
60059
60060 2007-05-01  Bruno Haible  <bruno@clisp.org>
60061
60062         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60063         Reported by Eric Blake.
60064         * doc/gnulib.texi (Function Substitutes): Update.
60065
60066 2007-05-01  Bruno Haible  <bruno@clisp.org>
60067
60068         * doc/functions.texi: Remove file, now redundant through
60069         doc/functions/*.texi.
60070
60071 2007-05-01  Bruno Haible  <bruno@clisp.org>
60072
60073         * modules/argp (Depends-on): Add sleep.
60074
60075 2007-05-01  Bruno Haible  <bruno@clisp.org>
60076
60077         * modules/sleep-tests: New file.
60078         * tests/test-sleep.c: New file.
60079
60080         * modules/sleep: New file.
60081         * lib/sleep.c: New file.
60082         * m4/sleep.m4: New file.
60083         * lib/unistd_.h (sleep): New declaration.
60084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60085         HAVE_SLEEP.
60086         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60087         * doc/functions/sleep.texi: Document the sleep module.
60088
60089 2007-05-01  Bruno Haible  <bruno@clisp.org>
60090
60091         * lib/sigprocmask.h: Remove file.
60092         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60093         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60094         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60095         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60096         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60097         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60098         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60099         HAVE_SIGSET_T as a shell variable.
60100         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60101         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60102         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60103         (Depends-on): Add signal. Remove verify.
60104         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60105         (Include): Mention <signal.h> instead of sigprocmask.h.
60106         * NEWS: Mention the change.
60107         * lib/fatal-signal.c: Don't include sigprocmask.h.
60108
60109 2007-05-01  Bruno Haible  <bruno@clisp.org>
60110
60111         * modules/signal: New file.
60112         * lib/signal_.h: New file.
60113         * m4/signal_h.m4: New file.
60114
60115 2007-05-01  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60118         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60119         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60120         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60121
60122 2007-05-01  Bruno Haible  <bruno@clisp.org>
60123
60124         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60125         configure time.
60126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60127         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60128         * modules/sys_stat (Makefile.am): Substitute their values into
60129         sys/stat.h.
60130
60131 2007-05-01  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60134         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60135         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60136
60137 2007-05-01  Bruno Haible  <bruno@clisp.org>
60138
60139         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60140         'assert' module here.
60141
60142 2007-05-01  Bruno Haible  <bruno@clisp.org>
60143
60144         * doc/functions/*.texi: New files.
60145         * doc/functions/google-ranking.txt: New file.
60146         * doc/gnulib.texi (Function Substitutes): New chapter.
60147         (ctime, inet_ntoa): Remove sections.
60148         * doc/ctime.texi: Remove file.
60149         * doc/inet_ntoa.texi: Remove file.
60150         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60151         dependencies.
60152         (%.info): New rule, specifying a --reference-limit.
60153
60154 2007-05-01  Bruno Haible  <bruno@clisp.org>
60155
60156         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60157
60158 2007-05-01  Bruno Haible  <bruno@clisp.org>
60159
60160         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60161         the portability of 'mkdir' to mingw systems.
60162
60163 2007-05-01  Bruno Haible  <bruno@clisp.org>
60164
60165         * doc/headers/google-ranking.txt: New file.
60166
60167 2007-04-30  Eric Blake  <ebb9@byu.net>
60168
60169         Prefer fseeko to fseek.
60170         * modules/getpass (Depends-on): Add fseeko.
60171         * lib/getpass.c (getpass): Use fseeko, not fseek.
60172
60173 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60174
60175         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60176         assumes the sorting is stable, while most qsort implementations
60177         are not.  Use argument addresses to ensure they never compare as
60178         equal.
60179
60180         * tests/test-argp-2.sh (usage-indent test): Fix output
60181         (func_compare): Restore diff options
60182         * tests/test-argp.c: Restore #include "progname.h"
60183
60184 2007-04-29  Bruno Haible  <bruno@clisp.org>
60185
60186         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60188         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60190         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60191         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60192         (TESTS, check_PROGRAMS): Add test-snprintf.
60193         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60194         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60195         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60196         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60197         assertions that fail on HP-UX, OSF/1, or IRIX.
60198         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60199
60200 2007-04-29  Bruno Haible  <bruno@clisp.org>
60201
60202         * MODULES.html.sh (posix_functions): Remove 'contents'.
60203
60204 2007-04-29  Karl Berry  <karl@gnu.org>
60205
60206         * config/srclist.txt (gendocs_template_min): new entry.
60207
60208 2007-04-29  Bruno Haible  <bruno@clisp.org>
60209
60210         Work around fpurge bug on BSD systems.
60211         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60212         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60213         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60214         fpurge to rpl_fpurge if the system already has this function.
60215         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60216         the case where the system already has this function. Correct invariants
60217         on BSD systems.
60218         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60219         BSD systems.
60220
60221 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60222
60223         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60224         proposed by Sven Verdoolaege.
60225
60226         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60227         options.
60228         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60229         (usage and help tests): Update
60230
60231 2007-04-29  Bruno Haible  <bruno@clisp.org>
60232
60233         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60234         Print more information in case of failure. Disable a test on BeOS.
60235
60236 2007-04-29  Bruno Haible  <bruno@clisp.org>
60237
60238         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60239         This helps debugging on systems on which no gdb is available.
60240
60241 2007-04-29  Bruno Haible  <bruno@clisp.org>
60242
60243         * lib/freading.h: Improve comments.
60244         * lib/fwriting.h: Likewise.
60245         * tests/test-freading.c (main): Don't check freading immediately after
60246         repositioning. Needed for glibc.
60247
60248 2007-04-29  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/freading.c (freading): Trivial simplification.
60251
60252 2007-04-28  Bruno Haible  <bruno@clisp.org>
60253
60254         * tests/test-fwriting.c (main): Also test the interaction between
60255         fflush and fwriting.
60256         * modules/fwriting-tests (Depends-on): Add fflush.
60257
60258         * tests/test-freading.c (main): Also test the interaction between
60259         fflush and freading.
60260         * modules/freading-tests (Depends-on): Add fflush.
60261
60262 2007-04-28  Bruno Haible  <bruno@clisp.org>
60263
60264         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60265         fseeko and ftello.
60266         Suggested by Eric Blake.
60267
60268 2007-04-28  Jim Meyering  <jim@meyering.net>
60269
60270         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60271         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60272         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60273
60274 2007-04-27  Eric Blake  <ebb9@byu.net>
60275
60276         * doc/headers/assert.texi (assert.h): Document assert module use.
60277
60278 2007-04-27  Bruno Haible  <bruno@clisp.org>
60279
60280         * doc/headers/*.texi: New files.
60281         * doc/gnulib.texi (Header File Substitutes): New chapter.
60282         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60283         dependencies.
60284         (standards.info ,standards.html, standards.dvi): Update dependencies.
60285         (mostlyclean, clean): New targets.
60286
60287 2007-04-27  Bruno Haible  <bruno@clisp.org>
60288
60289         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60290         * modules/sysexits (Files, Makefile.am): Update.
60291
60292         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60293         * modules/sys_socket (Files, Makefile.am): Update.
60294
60295         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60296         * modules/sys_stat (Files, Makefile.am): Update.
60297
60298 2007-04-27  Eric Blake  <ebb9@byu.net>
60299
60300         * lib/freading.h: Improve comments.
60301         * lib/fwriting.h: Likewise.
60302         * lib/fflush.c: Likewise.
60303
60304         Fix closein for mingw.
60305         * modules/closein-tests: Add tests for closein.
60306         * tests/test-closein.c: New file.
60307         * tests/test-closein.sh: Likewise.
60308         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60309         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60310
60311 2007-04-27  Bruno Haible  <bruno@clisp.org>
60312
60313         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60314         version is < 6.
60315         * lib/math_.h [__DECC]: Likewise.
60316         * lib/stdio_.h [__DECC]: Likewise.
60317         * lib/stdlib_.h [__DECC]: Likewise.
60318         * lib/string_.h [__DECC]: Likewise.
60319         * lib/time_.h [__DECC]: Likewise.
60320         * lib/wchar_.h [__DECC]: Likewise.
60321         * lib/wctype_.h [__DECC]: Likewise.
60322
60323 2007-04-27  Bruno Haible  <bruno@clisp.org>
60324
60325         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60326
60327 2007-04-27  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/fflush.c: Add comments.
60330         * modules/fpurge-tests (Depends-on): Add fflush.
60331         * modules/freadable-tests (Depends-on): Likewise.
60332         * modules/fwritable-tests (Depends-on): Likewise.
60333
60334 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60335
60336         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60337         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60338         Report by Bruno Haible <bruno@clisp.org>.
60339
60340 2007-04-26  Eric Blake  <ebb9@byu.net>
60341
60342         Fix fflush on mingw.
60343         * modules/fflush (Depends-on): Add freading.
60344         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60345         but unread data.
60346
60347 2007-04-26  Eric Blake  <ebb9@byu.net>
60348         and Bruno Haible  <bruno@clisp.org>
60349
60350         Implement freading and fwriting.
60351         * lib/freading.c: New file.
60352         * lib/freading.h: Likewise.
60353         * m4/freading.m4: Likewise.
60354         * modules/freading: Likewise.
60355         * modules/freading-tests: Likewise.
60356         * tests/test-freading.c: Likewise.
60357         * lib/fwriting.c: New file.
60358         * lib/fwriting.h: Likewise.
60359         * m4/fwriting.m4: Likewise.
60360         * modules/fwriting: Likewise.
60361         * modules/fwriting-tests: Likewise.
60362         * tests/test-fwriting.c: Likewise.
60363         * MODULES.html.sh (File stream based Input/Output): Mention them.
60364
60365 2007-04-26  Bruno Haible  <bruno@clisp.org>
60366
60367         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60368         'long' when we assume it.
60369         Suggested by Eric Blake.
60370
60371 2007-04-26  Bruno Haible  <bruno@clisp.org>
60372
60373         Ensure fseeko, ftello are declared on glibc systems.
60374         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60375         * modules/fseeko (configure.ac-early): Likewise.
60376         * modules/ftello (configure.ac-early): Likewise.
60377         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60378         AC_FUNC_FSEEKO for this.
60379         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60380         (gl_CHECK_FSEEKO): Remove macro.
60381
60382 2007-04-26  Bruno Haible  <bruno@clisp.org>
60383
60384         * tests/test-fflush.c (main): Also check the ftell result after
60385         fflush and fseek/fseeko.
60386         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60387         file descriptor position cache in the stream.
60388         * lib/fseeko.c (rpl_fseeko): Likewise.
60389
60390 2007-04-26  Bruno Haible  <bruno@clisp.org>
60391
60392         * modules/fflush-tests (Depends-on): Add fseeko.
60393
60394 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60395             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60396
60397         * lib/argz_.h: ensure error_t definition is obtained in same
60398         mechanism system argz.h would have.
60399         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60400         argz facilities are known bad.  Err on the side of caution if
60401         cross-compiling.
60402
60403 2007-04-25  Eric Blake  <ebb9@byu.net>
60404
60405         * lib/fpurge.c (includes): Use stdlib.h for free.
60406         * tests/test-fflush.c (main): Also test fflush-fseeko.
60407
60408 2007-04-25  Bruno Haible  <bruno@clisp.org>
60409
60410         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60411         * lib/fseeko.c: New file.
60412         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60413         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60414         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60415         gl_FUNC_FSEEKO.
60416         (gl_FUNC_FSEEKO): Invoke it.
60417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60418         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60419         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60420
60421 2007-04-25  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/fflush (Depends-on): Add ftello.
60424
60425 2007-04-25  Bruno Haible  <bruno@clisp.org>
60426
60427         * modules/ftello-tests: New file.
60428         * tests/test-ftello.c: New file.
60429
60430         * modules/ftello: New file.
60431         * m4/ftello.m4: New file.
60432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60433         HAVE_FTELLO.
60434         * lib/stdio_.h (ftello): New declaration.
60435         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60436         HAVE_FTELLO.
60437
60438 2007-04-25  Bruno Haible  <bruno@clisp.org>
60439
60440         * modules/fseeko-tests: New file.
60441         * tests/test-fseeko.c: New file.
60442
60443         * modules/fseeko: New file.
60444         * m4/fseeko.m4: New file.
60445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60446         HAVE_FSEEKO.
60447         * lib/stdio_.h (fseeko): New declaration.
60448         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60449         HAVE_FSEEKO.
60450
60451 2007-04-25  Bruno Haible  <bruno@clisp.org>
60452
60453         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60454
60455 2007-04-25  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60458         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60459         * tests/test-unistd.c: Likewise.
60460         * tests/test-fcntl.c: Likewise.
60461
60462 2007-04-23  Eric Blake  <ebb9@byu.net>
60463
60464         * lib/fflush.c: Fix missing include.
60465         Reported by Bruno Haible.
60466
60467 2007-04-23  Bruno Haible  <bruno@clisp.org>
60468
60469         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60470         Reported by Eric Blake.
60471
60472 2007-04-23  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60475
60476 2007-04-23  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60479
60480 2007-04-23  Bruno Haible  <bruno@clisp.org>
60481
60482         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60483         Needed on HP-UX 11.
60484
60485 2007-04-16  Eric Blake  <ebb9@byu.net>
60486
60487         Make fflush rely on fpurge.
60488         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60489         open coding all variants.
60490         * modules/fflush (Depends-on): Add fpurge and unistd.
60491         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60492         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60493
60494         Fix --with-tests compilation on cygwin.
60495         * modules/argmatch-tests (Makefile.am): List gnulib library first
60496         in LDADD.
60497         * modules/argp-tests (Makefile.am): Likewise.
60498         * modules/array-list-tests (Makefile.am): Likewise.
60499         * modules/array-oset-tests (Makefile.am): Likewise.
60500         * modules/avltree-list-tests (Makefile.am): Likewise.
60501         * modules/avltree-oset-tests (Makefile.am): Likewise.
60502         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60503         * modules/carray-list-tests (Makefile.am): Likewise.
60504         * modules/dirname-tests (Makefile.am): Likewise.
60505         * modules/frexp-tests (Makefile.am): Likewise.
60506         * modules/isnanl-tests (Makefile.am): Likewise.
60507         * modules/linked-list-tests (Makefile.am): Likewise.
60508         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60509         * modules/lock-tests (Makefile.am): Likewise.
60510         * modules/rbtree-list-tests (Makefile.am): Likewise.
60511         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60512         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60513         * modules/tls-tests (Makefile.am): Likewise.
60514         * modules/tsearch-tests (Makefile.am): Likewise.
60515         * modules/xvasprintf-tests (Makefile.am): Likewise.
60516
60517         Fix fpurge for cygwin.
60518         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60519         value.
60520         * modules/fpurge-tests (Depends-on): Clean up trash.
60521
60522 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60523
60524         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60525
60526         * m4/autobuild.m4: Re-indent.
60527
60528 2007-04-13  Bruno Haible  <bruno@clisp.org>
60529
60530         * modules/fpurge-tests: New file.
60531         * tests/test-fpurge.c: New file.
60532
60533         * modules/fpurge: New file.
60534         * lib/fpurge.h: New file.
60535         * lib/fpurge.c: New file.
60536         * m4/fpurge.m4: New file.
60537
60538 2007-04-13  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/fbufmode-tests: New file.
60541         * tests/test-fbufmode.c: New file.
60542
60543         * modules/fbufmode: New file.
60544         * lib/fbufmode.h: New file.
60545         * lib/fbufmode.c: New file.
60546         * m4/fbufmode.m4: New file.
60547
60548 2007-04-13  Bruno Haible  <bruno@clisp.org>
60549
60550         * modules/fwritable-tests: New file.
60551         * tests/test-fwritable.c: New file.
60552
60553         * modules/fwritable: New file.
60554         * lib/fwritable.h: New file.
60555         * lib/fwritable.c: New file.
60556         * m4/fwritable.m4: New file.
60557
60558 2007-04-13  Bruno Haible  <bruno@clisp.org>
60559
60560         * modules/freadable-tests: New file.
60561         * tests/test-freadable.c: New file.
60562
60563         * modules/freadable: New file.
60564         * lib/freadable.h: New file.
60565         * lib/freadable.c: New file.
60566         * m4/freadable.m4: New file.
60567
60568 2007-04-13  Bruno Haible  <bruno@clisp.org>
60569
60570         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60571         MOSTLYCLEANFILES.
60572
60573 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60574
60575         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60576         gzip bootstrap.conf to avoid dragging in i18n machinery.
60577         (gnulib_tool_option): Use it.
60578
60579 2007-04-13  Bruno Haible  <bruno@clisp.org>
60580
60581         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60582         %F directives.
60583         * tests/test-vasprintf-posix.c (test_function): Likewise.
60584         * tests/test-snprintf-posix.h (test_function): Likewise.
60585         * tests/test-sprintf-posix.h (test_function): Likewise.
60586         * tests/test-fprintf-posix.h (test_function): Likewise.
60587         * tests/test-printf-posix.h (test_function): Likewise.
60588         * tests/test-fprintf-posix.out: Likewise.
60589
60590 2007-04-13  Bruno Haible  <bruno@clisp.org>
60591
60592         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60593         * modules/tls-tests (configure.ac): Likewise.
60594         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60595
60596 2007-04-13  Bruno Haible  <bruno@clisp.org>
60597
60598         * lib/tls.c (glthread_tls_get): Fix return type.
60599         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60600
60601 2007-04-12  Eric Blake  <ebb9@byu.net>
60602
60603         * modules/gettime (Depends-on): Remove gettime.
60604         Reported by Dmitry V. Levin.
60605
60606 2007-04-12  Bruno Haible  <bruno@clisp.org>
60607
60608         * modules/fflush (Include): Mention <stdio.h>.
60609         * modules/strtoimax (Include): Mention <inttypes.h>.
60610         * modules/strtoumax (Include): Likewise.
60611
60612 2007-04-12  Eric Blake  <ebb9@byu.net>
60613
60614         * .cvsignore: New file.
60615         * .gitignore: Likewise.
60616
60617 2007-04-12  Bruno Haible  <bruno@clisp.org>
60618
60619         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60620         not before, since $(LDADD) often contains libgnu.a.
60621         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60622         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60623         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60624         Needed on Cygwin.
60625
60626 2007-04-12  Eric Blake  <ebb9@byu.net>
60627
60628         Work around glibc's failure to flush stdin on fclose.
60629         * lib/closein.c (close_stdin): Flush stdin before closing.
60630
60631         Work around glibc's failure to reset seekable stdin on exit.
60632         * modules/closein: New module.
60633         * lib/closein.c: New file.
60634         * lib/closein.h: Likewise.
60635         * m4/closein.m4: Likewise.
60636         * MODULES.html.sh (File stream based Input/Output): Document it.
60637
60638 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60639
60640         * gnulib-tool: Rename generated 'autobuild' script to
60641         'do-autobuild' in --create-megatestdir output.
60642
60643         * doc/gnulib.texi (Build robot for gnulib): Fix.
60644
60645 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60646
60647         * modules/sysexits (Depends-on): Add absolute-header.
60648
60649 2007-04-12  Eric Blake  <ebb9@byu.net>
60650
60651         No need to preserve errno on success.
60652         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60653         Reported by Bruno Haible.
60654
60655 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60656
60657         * MODULES.html.sh (Support for maintaining and releasing
60658         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60659
60660 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60661
60662         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60663
60664 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60665
60666         * modules/autobuild: New module.
60667
60668         * m4/autobuild.m4: New file.
60669
60670 2007-04-11  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60673         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60674         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60676         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60677         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60678         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60679         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60680         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60681         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60682         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60683         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60684         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60685         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60686         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60687         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60689         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60690         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60692         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60693         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60695         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60696         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60698         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60699         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60700         Reported by Eric Blake.
60701
60702 2007-04-11  Bruno Haible  <bruno@clisp.org>
60703
60704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60705
60706 2007-04-10  Bruno Haible  <bruno@clisp.org>
60707
60708         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60709         for NaN and Infinity. Needed on FreeBSD 6.1.
60710         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60711         regarding results for "%010a" of Infinity and NaN.
60712         * tests/test-vasprintf-posix.c (test_function): Likewise.
60713         * tests/test-snprintf-posix.h (test_function): Likewise.
60714         * tests/test-sprintf-posix.h (test_function): Likewise.
60715         * tests/test-fprintf-posix.h (test_function): Likewise.
60716         * tests/test-printf-posix.h (test_function): Likewise.
60717         * tests/test-fprintf-posix.out: Likewise.
60718
60719 2007-04-10  Bruno Haible  <bruno@clisp.org>
60720
60721         * modules/locale-tests: New file.
60722         * tests/test-locale.c: New file.
60723
60724         * modules/locale: New file.
60725         * lib/locale_.h: New file.
60726         * m4/locale_h.m4: New file.
60727
60728 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60729             Bruno Haible  <bruno@clisp.org>
60730
60731         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60732         be determined, test for availability of the copysignf, copysign,
60733         copysignl functions.
60734         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60735         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60736         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60737
60738 2007-04-09  Eric Blake  <ebb9@byu.net>
60739
60740         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60741         * modules/stdio (Makefile.am): Support fflush.
60742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60743         * modules/fflush: New file.
60744         * lib/fflush.c: Likewise.
60745         * m4/fflush.m4: Likewise.
60746         * modules/fflush-tests: New test.
60747         * tests/test-fflush.c: Likewise.
60748         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60749
60750 2007-04-06  Bruno Haible  <bruno@clisp.org>
60751
60752         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60753         (VASNPRINTF): Use signbit for faster determination whether to print a
60754         minus sign.
60755         * modules/vasnprintf (Files): Remove lib/float+.h.
60756         * modules/fprintf-posix (Depends-on): Add signbit.
60757         * modules/snprintf-posix (Depends-on): Likewise.
60758         * modules/sprintf-posix (Depends-on): Likewise.
60759         * modules/vasnprintf-posix (Depends-on): Likewise.
60760         * modules/vasprintf-posix (Depends-on): Likewise.
60761         * modules/vfprintf-posix (Depends-on): Likewise.
60762         * modules/vsnprintf-posix (Depends-on): Likewise.
60763         * modules/vsprintf-posix (Depends-on): Likewise.
60764
60765 2007-04-06  Bruno Haible  <bruno@clisp.org>
60766
60767         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60768         * tests/test-frexpl.c (main): Likewise.
60769         * tests/test-ldexpl.c (main): Likewise.
60770         * modules/frexp-tests (Depends-on): Add signbit.
60771         * modules/frexpl-tests (Depdends-on): Likewise.
60772         * modules/ldexpl-tests (Depdends-on): Likewise.
60773
60774 2007-04-06  Bruno Haible  <bruno@clisp.org>
60775
60776         * modules/signbit-tests: New file.
60777         * tests/test-signbit.c: New file.
60778
60779         * modules/signbit: New file.
60780         * lib/signbitf.c: New file.
60781         * lib/signbitd.c: New file.
60782         * lib/signbitl.c: New file.
60783         * m4/signbit.m4: New file.
60784         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60785         (signbit): New macro.
60786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60787         REPLACE_SIGNBIT.
60788         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60789         REPLACE_FREXPL into math.h.
60790
60791 2007-04-06  Bruno Haible  <bruno@clisp.org>
60792
60793         * modules/isnanf-nolibm-tests: New file.
60794         * tests/test-isnanf.c: New file.
60795
60796         * modules/isnanf-nolibm: New file.
60797         * lib/isnanf.h: New file.
60798         * lib/isnanf.c: New file.
60799         * lib/isnan.c: Consider the USE_FLOAT macro.
60800         * m4/isnanf.m4: New file.
60801
60802 2007-04-06  Bruno Haible  <bruno@clisp.org>
60803
60804         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60805         (Link): New section.
60806
60807         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60808
60809 2007-04-06  Bruno Haible  <bruno@clisp.org>
60810
60811         Assume the 'long double' type.
60812         * m4/longdouble.m4: Remove file.
60813         * config/srclist.txt: Don't mention longdouble.m4.
60814         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60815         * lib/float+.h: Likewise.
60816         * lib/frexp.c: Likewise.
60817         * lib/printf-args.h: Likewise.
60818         * lib/printf-args.c: Likewise.
60819         * lib/printf-frexp.c: Likewise.
60820         * lib/printf-parse.c: Likewise.
60821         * lib/vasnprintf.c: Likewise.
60822         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60823         * m4/intl.m4: Likewise.
60824         * m4/isnanl.m4: Likewise.
60825         * m4/printf.m4: Likewise.
60826         * m4/printf-frexpl.m4: Likewise.
60827         * m4/vasnprintf.m4: Likewise.
60828         * modules/allocsa (Files): Remove m4/longdouble.m4.
60829         * modules/gettext (Files): Likewise.
60830         * modules/relocatable-prog-wrapper (Files): Likewise.
60831         * modules/vasnprintf (Files): Likewise.
60832         * modules/isnanl (Files): Likewise.
60833         (Include): Simplify.
60834         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60835         (Include): Simplify.
60836         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60837         (Include): Simplify.
60838         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60840         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60841         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60842         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60843         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60844         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60845         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60846         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60847         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60848         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60849         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60850         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60851         * tests/test-isnanl.c: Likewise.
60852         * tests/test-snprintf-posix.h: Likewise.
60853         * tests/test-sprintf-posix.h: Likewise.
60854         * tests/test-vasnprintf-posix.c: Likewise.
60855         * tests/test-vasnprintf-posix2.c: Likewise.
60856         * tests/test-vasprintf-posix.c: Likewise.
60857
60858 2007-04-06  Bruno Haible  <bruno@clisp.org>
60859
60860         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60861         * lib/math_.h [__DECC]: Include the overridden include file through
60862         #include_next, outside the double-inclusion guard.
60863         * lib/stdio_.h [__DECC]: Likewise.
60864         * lib/stdlib_.h [__DECC]: Likewise.
60865         * lib/string_.h [__DECC]: Likewise.
60866         * lib/time_.h [__DECC]: Likewise.
60867         * lib/wchar_.h [__DECC]: Likewise.
60868         * lib/wctype_.h [__DECC]: Likewise.
60869         * lib/inttypes_.h [__DECC]: Likewise.
60870         Reported by Albert Chin <china@thewrittenword.com> in
60871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60872
60873 2007-04-04  Eric Blake  <ebb9@byu.net>
60874
60875         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60876         1.5.x.
60877
60878 2007-04-04  Bruno Haible  <bruno@clisp.org>
60879
60880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60881         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60882
60883 2007-04-04  Bruno Haible  <bruno@clisp.org>
60884
60885         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60886         results for "%010a" of Infinity and NaN.
60887         * tests/test-vasprintf-posix.c (test_function): Likewise.
60888         * tests/test-snprintf-posix.h (test_function): Likewise.
60889         * tests/test-sprintf-posix.h (test_function): Likewise.
60890         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60891         * tests/test-printf-posix.h (test_function): Likewise.
60892         * tests/test-fprintf-posix.out: Update.
60893         Needed for FreeBSD 6.1.
60894
60895 2007-04-04  Bruno Haible  <bruno@clisp.org>
60896
60897         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60898         directly used by the gnulib modules nor by gnulib-tool.
60899
60900 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60901
60902         * DEPENDENCIES: Give overall description of version dependency
60903         desirability.  Use more-typical names for apps.
60904         Add shell, coreutils, diffutils, grep, tar, gzip.
60905
60906 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60907
60908         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60909
60910 2007-04-04  Karl Berry  <karl@gnu.org>
60911
60912         * MODULES.html.sh (func_module): missing '.
60913
60914 2007-04-03  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/argmatch-tests (Makefile.am): New variable
60917         test_argmatch_LDADD.
60918         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60919         * modules/array-list-tests (Makefile.am): New variable
60920         test_array_list_LDADD.
60921         * modules/array-oset-tests (Makefile.am): New variable
60922         test_array_oset_LDADD.
60923         * modules/avltree-list-tests (Makefile.am): New variable
60924         test_avltree_list_LDADD.
60925         * modules/avltree-oset-tests (Makefile.am): New variable
60926         test_avltree_oset_LDADD.
60927         * modules/avltreehash-list-tests (Makefile.am): New variable
60928         test_avltreehash_list_LDADD.
60929         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60930         test_canonicalize_lgpl_LDADD.
60931         * modules/carray-list-tests (Makefile.am): New variable
60932         test_carray_list_LDADD.
60933         * modules/dirname-tests (Makefile.am): New variable
60934         test_dirname_LDADD.
60935         * modules/linked-list-tests (Makefile.am): New variable
60936         test_linked_list_LDADD.
60937         * modules/linkedhash-list-tests (Makefile.am): New variable
60938         test_linkedhash_list_LDADD.
60939         * modules/rbtree-list-tests (Makefile.am): New variable
60940         test_rbtree_list_LDADD.
60941         * modules/rbtree-oset-tests (Makefile.am): New variable
60942         test_rbtree_oset_LDADD.
60943         * modules/rbtreehash-list-tests (Makefile.am): New variable
60944         test_rbtreehash_list_LDADD.
60945         * modules/xvasprintf-tests (Makefile.am): New variable
60946         test_xvasprintf_LDADD.
60947         Reported by Eric Blake.
60948
60949 2007-04-03  Eric Blake  <ebb9@byu.net>
60950
60951         * DEPENDENCIES: Weaken m4 requirements.
60952
60953 2007-04-03  Bruno Haible  <bruno@clisp.org>
60954
60955         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60956         * modules/isnanl-tests (configure.ac): Likewise.
60957
60958 2007-04-03  Ben Pfaff  <blp@gnu.org>
60959
60960         * modules/iconv_open: Add $(srcdir)/ to source directory
60961         references in Makefile fragments that call gperf, to fix VPATH
60962         builds.
60963
60964 2007-04-03  Bruno Haible  <bruno@clisp.org>
60965
60966         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60967         * lib/ldexpl.c: Undo last change.
60968
60969 2007-04-03  Bruno Haible  <bruno@clisp.org>
60970
60971         * modules/printf-frexpl (Depends-on): Undo last change.
60972         (Files): Add m4/ldexpl.m4.
60973
60974 2007-04-03  Bruno Haible  <bruno@clisp.org>
60975
60976         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60977         * modules/isnanl (Link): New section.
60978
60979         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60980         * modules/frexp (Link): New section.
60981
60982         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60983         * modules/frexpl (Link): New section.
60984
60985         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60986         * modules/ldexpl (Link): New section.
60987
60988 2007-04-03  Bruno Haible  <bruno@clisp.org>
60989
60990         * modules/TEMPLATE-EXTENDED: New file.
60991         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60992
60993 2007-04-03  Bruno Haible  <bruno@clisp.org>
60994
60995         * DEPENDENCIES: New file.
60996         Suggested by Simon Josefsson.
60997
60998 2007-04-03  Bruno Haible  <bruno@clisp.org>
60999
61000         * doc/gnulib.texi: Escape @.
61001
61002 2007-04-03  James Youngman  <jay@gnu.org>
61003         and Paul Eggert  <eggert@cs.ucla.edu>
61004
61005         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61006         birthtime on all systems that have birthtime, not just those which
61007         use st_birthtimensec rather than st_birthtim.  Putting zero in
61008         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61009         that the birth time is not available for files on an NFS mount.
61010
61011 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61012
61013         * modules/memxor: Move back from crypto/, suggested by Bruno.
61014         * modules/crypto/hmac-sha1: Fix memxor dependency.
61015
61016         * modules/crypto/gc: Moved from ../.
61017
61018 2007-04-02  Eric Blake  <ebb9@byu.net>
61019
61020         * lib/ldexpl.c (includes): Avoid libm.
61021
61022         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61023
61024 2007-04-02  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61027         on IRIX.
61028
61029 2007-04-02  Bruno Haible  <bruno@clisp.org>
61030
61031         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61032         x86 or x86_64 platforms running MacOS X.
61033         Reported by Ryan Schmidt <@ryandesign.com>.
61034
61035 2007-04-02  Bruno Haible  <bruno@clisp.org>
61036
61037         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61038         i386.
61039
61040 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61041
61042         * modules/crypto/arcfour: Moved from ../.
61043         * modules/crypto/arcfour-tests: Moved from ../.
61044         * modules/crypto/arctwo: Moved from ../.
61045         * modules/crypto/arctwo-tests: Moved from ../.
61046         * modules/crypto/des: Moved from ../.
61047         * modules/crypto/des-tests: Moved from ../.
61048         * modules/crypto/gc-arcfour: Moved from ../.
61049         * modules/crypto/gc-arcfour-tests: Moved from ../.
61050         * modules/crypto/gc-arctwo: Moved from ../.
61051         * modules/crypto/gc-arctwo-tests: Moved from ../.
61052         * modules/crypto/gc-des: Moved from ../.
61053         * modules/crypto/gc-des-tests: Moved from ../.
61054         * modules/crypto/gc-hmac-md5: Moved from ../.
61055         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61056         * modules/crypto/gc-hmac-sha1: Moved from ../.
61057         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61058         * modules/crypto/gc-md2: Moved from ../.
61059         * modules/crypto/gc-md2-tests: Moved from ../.
61060         * modules/crypto/gc-md4: Moved from ../.
61061         * modules/crypto/gc-md4-tests: Moved from ../.
61062         * modules/crypto/gc-md5: Moved from ../.
61063         * modules/crypto/gc-md5-tests: Moved from ../.
61064         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61065         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61066         * modules/crypto/gc-random: Moved from ../.
61067         * modules/crypto/gc-rijndael: Moved from ../.
61068         * modules/crypto/gc-rijndael-tests: Moved from ../.
61069         * modules/crypto/gc-sha1: Moved from ../.
61070         * modules/crypto/gc-sha1-tests: Moved from ../.
61071         * modules/crypto/gc-tests: Moved from ../.
61072         * modules/crypto/hmac-md5: Moved from ../.
61073         * modules/crypto/hmac-md5-tests: Moved from ../.
61074         * modules/crypto/hmac-sha1: Moved from ../.
61075         * modules/crypto/hmac-sha1-tests: Moved from ../.
61076         * modules/crypto/md2: Moved from ../.
61077         * modules/crypto/md2-tests: Moved from ../.
61078         * modules/crypto/md4: Moved from ../.
61079         * modules/crypto/md4-tests: Moved from ../.
61080         * modules/crypto/md5: Moved from ../.
61081         * modules/crypto/md5-tests: Moved from ../.
61082         * modules/crypto/memxor: Moved from ../.
61083         * modules/crypto/rijndael: Moved from ../.
61084         * modules/crypto/rijndael-tests: Moved from ../.
61085         * modules/crypto/sha1: Moved from ../.
61086
61087 2007-03-30  James Youngman  <jay@gnu.org>
61088
61089         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61090         rename() to change the ctime of a file (because ctime is unaffected
61091         by rename on jfs2 on AIX 5.1).
61092         (main): Start by doing cleanup, in case a previous run failed leaving
61093         test files behind.
61094
61095 2007-03-31  Bruno Haible  <bruno@clisp.org>
61096
61097         Support old proprietary implementations of iconv.
61098         * modules/iconv_open: New file.
61099         * lib/iconv_.h: New file.
61100         * m4/iconv_h.m4: New file.
61101         * lib/iconv_open.c: New file.
61102         * lib/iconv_open-aix.gperf: New file.
61103         * lib/iconv_open-hpux.gperf: New file.
61104         * lib/iconv_open-irix.gperf: New file.
61105         * lib/iconv_open-osf.gperf: New file.
61106         * m4/iconv_open.m4: New file.
61107         * modules/linebreak (Depends-on): Add iconv_open.
61108         * modules/striconv (Depends-on): Likewise.
61109         * modules/striconveh (Depends-on): Likewise.
61110         * modules/unicodeio (Depends-on): Likewise.
61111         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61112         (iconv_t)(-1).
61113         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61114         conversion if cd is (iconv_t)(-1).
61115         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61116         is not possible.
61117
61118 2007-03-31  Bruno Haible  <bruno@clisp.org>
61119
61120         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61121         work on Solaris either. Protect also second use of "autodetect_jp".
61122
61123 2007-03-31  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61126         the function is not present.
61127
61128 2007-03-31  Bruno Haible  <bruno@clisp.org>
61129
61130         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61131         the function is not present.
61132
61133 2007-03-31  Bruno Haible  <bruno@clisp.org>
61134
61135         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61136         a bug in HP-UX iconv_open().
61137
61138 2007-03-31  Bruno Haible  <bruno@clisp.org>
61139
61140         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61141         (Mathematics <math.h>): New section, add fpieee.
61142         (Input/output <stdio.h>): Add fseterr.
61143         (Mathematics <math.h>): New section, add printf-frexp.
61144         (Container data structures): Add sublist.
61145         (Core language properties): Add fpucw, inline.
61146         (Functions for greatest-width integer types <inttypes.h>): Add
61147         imaxabs, imaxdiv, inttypes.
61148         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61149         isnanl-nolibm, ldexp.
61150         (Mathematics <math.h>): New section, add printf-frexpl.
61151         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61152         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61153         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61154         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61155         (Unicode string functions): Add unistr/u*-mbtoucr.
61156         (Java): Add javacomp-script, javaexec-script.
61157         (C#): Add csharpcomp-script, csharpexec-script.
61158         (Support for building libraries and executables): Add havelib,
61159         relocatable-*.
61160         (Support for maintaining and releasing projects): Renamed from
61161         'Support for maintaining and release projects'. Add announce-gen.
61162
61163 2007-03-31  Bruno Haible  <bruno@clisp.org>
61164
61165         * README: Talk primarily about git.
61166         (git and CVS): Renamed from CVS.
61167         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61168         gnulib is available through git.
61169         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61170
61171 2007-03-30  Bruno Haible  <bruno@clisp.org>
61172
61173         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61174         * lib/poll_.h: Likewise.
61175         * lib/stat_.h: Likewise.
61176         * lib/sys_time_.h: Likewise.
61177         * lib/sysexit_.h: Likewise.
61178         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61179         * lib/stdbool_.h: Likewise.
61180         * lib/byteswap_.h: Add double-inclusion guard.
61181
61182 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61183
61184         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61185
61186 2007-03-30  Karl Berry  <karl@gnu.org>
61187
61188         * config/srclist-update: double space after USA in the license
61189         substitution, since that's how it's usually (?) written.
61190
61191 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61192
61193         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61194         reported by Bruno Haible.
61195
61196 2007-03-29  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61199         a bug in AIX iconv().
61200
61201 2007-03-29  Bruno Haible  <bruno@clisp.org>
61202
61203         * modules/ldexpl-tests: New file.
61204         * tests/test-ldexpl.c: New file.
61205
61206 2007-03-29  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/ldexpl.c: Include fpucw.h.
61209         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61210         multiplication.
61211         * modules/ldexpl (Depends-on): Add fpucw.
61212
61213 2007-03-29  Bruno Haible  <bruno@clisp.org>
61214
61215         * modules/ldexpl: New file.
61216         * m4/ldexpl.m4: New file.
61217         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61218         set.
61219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61220         REPLACE_LDEXPL.
61221         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61222         REPLACE_LDEXPL.
61223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61224         gl_FUNC_LDEXPL_WORKS.
61225         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61226         * modules/mathl (Files): Remove lib/ldexpl.c.
61227         (Depends-on): Add ldexpl.
61228
61229 2007-03-29  Bruno Haible  <bruno@clisp.org>
61230
61231         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61232
61233 2007-03-29  Bruno Haible  <bruno@clisp.org>
61234
61235         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61236         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61237         and possibly also HP-UX.
61238         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61239         work on AIX, IRIX, HP-UX, OSF/1.
61240         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61241         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61242         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61243         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61244         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61245         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61246
61247 2007-03-29  Bruno Haible  <bruno@clisp.org>
61248
61249         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61250
61251 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61254         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61255
61256 2007-03-29  Eric Blake  <ebb9@byu.net>
61257
61258         * lib/acl-internal.h: Remove redundant include.
61259         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61260         Cygwin when a file is locked.
61261
61262 2007-03-29  Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61265         file.
61266         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61267
61268 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61271         try to remove a parent directory if the child couldn't be removed
61272         (except for the first rmdir, which could fail because the child
61273         doesn't exist).  Problem reported by Jeff Blaine in
61274         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61275
61276 2007-03-28  Bruno Haible  <bruno@clisp.org>
61277
61278         * lib/striconveh.c (utf8conv_carefully): New function.
61279         (mem_cd_iconveh_internal): Invoke it.
61280
61281 2007-03-28  Bruno Haible  <bruno@clisp.org>
61282
61283         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61284         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61285         input.
61286         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61287         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61288         unistr/u8-uctomb.
61289
61290 2007-03-28  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/unistr/u8-mbtoucr: New file.
61293         * lib/unistr/u8-mbtoucr.c: New file.
61294         * modules/unistr/u16-mbtoucr: New file.
61295         * lib/unistr/u16-mbtoucr.c: New file.
61296         * modules/unistr/u16-mbtoucr: New file.
61297         * lib/unistr/u16-mbtoucr.c: New file.
61298         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61299
61300 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61301             Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61304         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61305         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61306
61307         * m4/stdio_h.m4: Add stubs for vasprintf too.
61308
61309         * modules/stdio: Support vasprintf in sed command.
61310
61311         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61312         vasprintf.h.  Add stdio module indicator.
61313
61314         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61315         vasprintf.h.
61316
61317         * lib/vasprintf.h: File removed.
61318
61319         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61320         * lib/vasprintf.c: Ditto.
61321         * lib/xvasprintf.c: Ditto.
61322         * tests/test-vasprintf-posix.c: Ditto.
61323         * tests/test-vasprintf.c: Ditto.
61324
61325 2007-03-27  Bruno Haible  <bruno@clisp.org>
61326
61327         Make vasnprintf multithread-safe.
61328         * lib/vasnprintf.c (decimal_point_char): New function.
61329         (VASNPRINTF): Use it.
61330         Suggested by Simon Josefsson.
61331
61332 2007-03-27  Eric Blake  <ebb9@byu.net>
61333
61334         Support sub-second birthtime on cygwin.
61335         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61336         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61337         (get_stat_birthtime): Also work with st_birthtim.
61338
61339 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61340
61341         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61342         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61343         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61344         (get_stat_birthtime_ns): Simplify compile-time tests.
61345         (get_stat_birthtime): Change the API to look like
61346         get_stat_mtime etc., except return a negative tv_nsec on error.
61347         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61348         Don't check for "spare" fields.
61349         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61350         or for struct stat.st_birthtime, as these tests aren't used.
61351         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61352
61353 2007-03-27  Bruno Haible  <bruno@clisp.org>
61354
61355         * lib/stat-time.h: Include <sys/stat.h>.
61356
61357 2007-03-27  James Youngman  <jay@gnu.org>
61358
61359         * lib/stat-time.h (get_stat_birthtime): New function for
61360           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61361         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61362           and its variants.
61363         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61364         * modules/stat-time-test: New file.
61365         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61366
61367 2007-03-26  Bruno Haible  <bruno@clisp.org>
61368
61369         Better support of signalling NaNs.
61370         * lib/atanl.c: Include isnanl.h.
61371         (atanl): Perform test for NaN at the beginning of the function and
61372         through a call to isnanl.
61373         * lib/cosl.c: Include isnanl.h.
61374         (cosl): Perform test for NaN at the beginning of the function and
61375         through a call to isnanl.
61376         * lib/ldexpl.c: Include isnanl.h.
61377         (ldexpl): Perform test for NaN through a call to isnanl.
61378         * lib/logl.c: Include isnanl.h.
61379         (logl): Perform test for NaN at the beginning of the function and
61380         through a call to isnanl.
61381         * lib/sinl.c: Include isnanl.h.
61382         (sinl): Perform test for NaN at the beginning of the function and
61383         through a call to isnanl.
61384         * lib/sqrtl.c: Include isnanl.h.
61385         (sqrtl): Perform test for NaN at the beginning of the function and
61386         through a call to isnanl.
61387         * lib/tanl.c: Include isnanl.h.
61388         (tanl): Perform test for NaN at the beginning of the function and
61389         through a call to isnanl.
61390         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61391         * modules/mathl (Depends-on): Add isnanl.
61392
61393 2007-03-26  Eric Blake  <ebb9@byu.net>
61394
61395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61396         regression in logic sense of previous patch.
61397
61398 2007-03-26  Bruno Haible  <bruno@clisp.org>
61399
61400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61401         unportable shell command "if ! ...".
61402         Reported by Ralf Wildenhues.
61403
61404 2007-03-25  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61407         <sysexits.h> file, and only add EX_CONFIG.
61408         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61409         absolute file name and whether it is sufficient. Substitute also
61410         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61411         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61412         ABSOLUTE_SYSEXITS_H into sysexits.h.
61413
61414 2007-03-25  Bruno Haible  <bruno@clisp.org>
61415
61416         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61417         hints is NULL.
61418
61419 2007-03-25  Bruno Haible  <bruno@clisp.org>
61420
61421         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61422         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61423
61424 2007-03-25  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/vasnprintf.c: Include langinfo.h.
61427         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61428         multithread-safe.
61429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61430         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61438         Reported by Simon Josefsson.
61439
61440 2007-03-25  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61443         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61444         * modules/vasnprintf (Depends-on): Add stdint.
61445
61446 2007-03-25  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/fpieee: New file.
61449         * m4/fpieee.m4: New file.
61450         * modules/isnan-nolibm (Depends-on): Add fpieee.
61451         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61452         * modules/isnanl (Depends-on): Add fpieee.
61453
61454 2007-03-25  Bruno Haible  <bruno@clisp.org>
61455
61456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61457
61458 2007-03-25  Bruno Haible  <bruno@clisp.org>
61459
61460         Avoid test failures on IRIX 6.5.
61461         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61462         (main): Use it.
61463         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61464         macros.
61465         (main): Use them.
61466
61467 2007-03-25  Bruno Haible  <bruno@clisp.org>
61468
61469         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61470         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61471         exists but doesn't work.
61472         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61473         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61475         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61476         math.h.
61477
61478 2007-03-25  Bruno Haible  <bruno@clisp.org>
61479
61480         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61481         returns inf. Needed on IRIX 6.5.
61482
61483 2007-03-25  Bruno Haible  <bruno@clisp.org>
61484
61485         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61486         (main): Use isnanl instead of x != x idiom.
61487         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61488
61489         * tests/test-frexp.c: Include isnan.h.
61490         (main): Use isnan instead of x != x idiom.
61491         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61492
61493 2007-03-25  Bruno Haible  <bruno@clisp.org>
61494
61495         * tests/test-frexp.c (NaN): New function/macro.
61496         (main): Use it instead of 0.0 / 0.0.
61497         * tests/test-isnan.c (NaN): New function/macro.
61498         (main): Use it instead of 0.0 / 0.0.
61499         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61500         (test_function): Use it instead of 0.0 / 0.0.
61501         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61502         (test_function): Use it instead of 0.0 / 0.0.
61503         * tests/test-snprintf-posix.h (NaN): New function/macro.
61504         (test_function): Use it instead of 0.0 / 0.0.
61505         * tests/test-sprintf-posix.h (NaN): New function/macro.
61506         (test_function): Use it instead of 0.0 / 0.0.
61507         * tests/test-fprintf-posix.h (NaN): New function/macro.
61508         (test_function): Use it instead of 0.0 / 0.0.
61509         * tests/test-printf-posix.h (NaN): New function/macro.
61510         (test_function): Use it instead of 0.0 / 0.0.
61511
61512         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61513
61514 2007-03-25  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61517
61518 2007-03-25  Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/regexec.c (merge_state_with_log): Make static.
61521
61522 2007-03-25  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/trigl.c (kernel_rem_pio2): Make static.
61525
61526 2007-03-25  Bruno Haible  <bruno@clisp.org>
61527
61528         * lib/sincosl.c (sincosl_table): Make static.
61529
61530 2007-03-25  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61533         if the compiler does not support C99.
61534
61535 2007-03-25  Bruno Haible  <bruno@clisp.org>
61536
61537         * modules/time (Makefile.am): Ensure all rule action lines start with a
61538         tab.
61539
61540 2007-03-24  Bruno Haible  <bruno@clisp.org>
61541
61542         * modules/tsearch-tests: New file.
61543         * tests/test-tsearch.sh: New file.
61544         * tests/test-tsearch.c: New file, mostly copied from glibc.
61545
61546         * modules/search-tests: New file.
61547         * tests/test-search.c: New file.
61548
61549         * modules/search: New file.
61550         * lib/search_.h: New file, incorporating lib/tsearch.h.
61551         * m4/search_h.m4: New file.
61552         * lib/tsearch.h: Remove file.
61553         * lib/tsearch.c: Include search.h instead of tsearch.h.
61554         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61555         HAVE_TSEARCH.
61556         * modules/tsearch (Files): Remove lib/tsearch.h.
61557         (Depends-on): Add search.
61558         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61559         (Include): Change tsearch.h into search.h.
61560
61561 2007-03-24  Bruno Haible  <bruno@clisp.org>
61562
61563         * modules/fpucw: New file.
61564         * lib/fpucw.h: New file.
61565         * lib/frexp.c: Include fpucw.h.
61566         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61567         (FUNC): Use them.
61568         * lib/printf-frexp.c: Include fpucw.h.
61569         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61570         (FUNC): Use them.
61571         * lib/vasnprintf.c: Include fpucw.h.
61572         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61573         'long double' calculations.
61574         * tests/test-frexpl.c: Include fpucw.h.
61575         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61576         * tests/test-printf-frexpl.c: Include fpucw.h.
61577         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61578         * modules/frexpl (Depends-on): Add fpucw.
61579         * modules/printf-frexpl (Depends-on): Likewise.
61580         * modules/fprintf-posix (Depends-on): Likewise.
61581         * modules/snprintf-posix (Depends-on): Likewise.
61582         * modules/sprintf-posix (Depends-on): Likewise.
61583         * modules/vasnprintf-posix (Depends-on): Likewise.
61584         * modules/vasprintf-posix (Depends-on): Likewise.
61585         * modules/vfprintf-posix (Depends-on): Likewise.
61586         * modules/vsnprintf-posix (Depends-on): Likewise.
61587         * modules/vsprintf-posix (Depends-on): Likewise.
61588         * modules/frexpl-tests (Depends-on): Likewise.
61589         * modules/printf-frexpl-tests (Depends-on): Likewise.
61590
61591 2007-03-24  Bruno Haible  <bruno@clisp.org>
61592
61593         * lib/float+.h: New file.
61594         * lib/isnan.c: Include float+.h.
61595         (SIZE): New macro.
61596         (FUNC): Compare only SIZE bytes of the value.
61597         * lib/vasnprintf.c: Include float+.h.
61598         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61599         SIZEOF_LDBL or SIZEOF_DBL bytes.
61600         * modules/isnan-nolibm (Files): Add lib/float+.h.
61601         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61602         * modules/isnanl (Files): Add lib/float+.h.
61603         * modules/vasnprintf (Files): Add lib/float+.h.
61604
61605 2007-03-24  Bruno Haible  <bruno@clisp.org>
61606
61607         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61608         include isnanl-nolibm.h.
61609
61610 2007-03-24  Bruno Haible  <bruno@clisp.org>
61611
61612         * tests/test-read-file.c (main): Don't produce spurious output for
61613         expected situations. Make the test fail if it encountered unexpected
61614         results.
61615
61616 2007-03-24  Bruno Haible  <bruno@clisp.org>
61617
61618         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61619         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61620
61621 2007-03-24  Bruno Haible  <bruno@clisp.org>
61622
61623         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61624
61625 2007-03-24  Bruno Haible  <bruno@clisp.org>
61626
61627         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61628         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61629
61630         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61631         * modules/utf8-ucs4: Turn into a symbolic link to module
61632         unistr/u8-mbtouc.
61633
61634         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61635         utf8-ucs4-unsafe.
61636         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61637         unistr/u8-mbtouc-unsafe.
61638
61639         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61640         * modules/utf16-ucs4: Turn into a symbolic link to module
61641         unistr/u16-mbtouc.
61642
61643         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61644         utf16-ucs4-unsafe.
61645         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61646         unistr/u16-mbtouc-unsafe.
61647
61648         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61649         * modules/ucs4-utf8: Turn into a symbolic link to module
61650         unistr/u8-ubtomb.
61651
61652         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61653         * modules/ucs4-utf16: Turn into a symbolic link to module
61654         unistr/u16-ubtomb.
61655
61656 2007-03-24  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61659         Enable the function only if HAVE_INLINE.
61660         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61661         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61662         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61663         Enable the function only if HAVE_INLINE.
61664         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61665         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61666         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61667         Enable the function only if HAVE_INLINE.
61668         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61669         Enable the function only if HAVE_INLINE.
61670         * modules/utf8-ucs4: Update.
61671         * modules/utf8-ucs4-unsafe: Update.
61672         * modules/utf16-ucs4: Update.
61673         * modules/utf16-ucs4-unsafe: Update.
61674         * modules/ucs4-utf8: Update.
61675         * modules/ucs4-utf16: Update.
61676
61677 2007-03-24  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/utf8-ucs4.h: Remove file.
61680         * lib/utf8-ucs4-unsafe.h: Remove file.
61681         * lib/utf16-ucs4.h: Remove file.
61682         * lib/utf16-ucs4-unsafe.h: Remove file.
61683         * lib/ucs4-utf8.h: Remove file.
61684         * lib/ucs4-utf16.h: Remove file.
61685         * lib/unistr.h: Include their previous contents.
61686         * m4/utf-ucs4.m4: Remove file.
61687         * m4/ucs4-utf.m4: Remove file.
61688         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61689         (Depends-on): Add unistr/base.
61690         (configure.ac): Remove gl_UTF_UCS4.
61691         (Makefile.am): Update.
61692         (Include): Change to unistr.h.
61693         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61694         (Depends-on): Add unistr/base.
61695         (configure.ac): Remove gl_UTF_UCS4.
61696         (Makefile.am): Update.
61697         (Include): Change to unistr.h.
61698         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61699         (Depends-on): Add unistr/base.
61700         (configure.ac): Remove gl_UTF_UCS4.
61701         (Makefile.am): Update.
61702         (Include): Change to unistr.h.
61703         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61704         (Depends-on): Add unistr/base.
61705         (configure.ac): Remove gl_UTF_UCS4.
61706         (Makefile.am): Update.
61707         (Include): Change to unistr.h.
61708         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61709         (Depends-on): Add unistr/base.
61710         (configure.ac): Remove gl_UCS4_UTF.
61711         (Makefile.am): Update.
61712         (Include): Change to unistr.h.
61713         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61714         (Depends-on): Add unistr/base.
61715         (configure.ac): Remove gl_UCS4_UTF.
61716         (Makefile.am): Update.
61717         (Include): Change to unistr.h.
61718         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61719         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61720         utf8-ucs4-unsafe.h.
61721         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61722         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61723         utf16-ucs4-unsafe.h.
61724         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61725         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61726         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61727         * lib/unistr/u8-strchr.c: Likewise.
61728         * lib/unistr/u8-strrchr.c: Likewise.
61729         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61730         * lib/unistr/u16-strchr.c: Likewise.
61731         * lib/unistr/u16-strrchr.c: Likewise.
61732         * lib/striconveh.c: Update.
61733         * lib/linebreak.c: Update.
61734
61735 2007-03-24  Bruno Haible  <bruno@clisp.org>
61736
61737         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61738         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61739
61740 2007-03-22  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61743
61744 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * MODULES.html.sh (File system functions): New module write-any-file.
61747         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61748         * m4/write-any-file.m4: New files.
61749
61750 2007-03-23  Eric Blake  <ebb9@byu.net>
61751
61752         * gnulib-tool: Rearrange space-tab sequences, since some editors
61753         like to eat them.
61754
61755 2007-03-23  Eric Blake  <ebb9@byu.net>
61756
61757         * lib/version-etc.c (version_etc_va): Update license wording to
61758         be more concise.  Recommended by Richard Stallman.
61759
61760 2007-03-22  Bruno Haible  <bruno@clisp.org>
61761
61762         * lib/poll.c (MSG_PEEK): New fallback definition.
61763
61764 2007-03-22  Bruno Haible  <bruno@clisp.org>
61765
61766         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61767         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61768         (main): Update.
61769         Fixes a compilation error on BeOS.
61770
61771 2007-03-22  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/frexpl-tests: New file.
61774         * tests/test-frexpl.c: New file.
61775
61776         * modules/frexpl: New file.
61777         * m4/frexpl.m4: New file.
61778         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61779         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61781         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61782         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61783         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61784
61785 2007-03-22  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/frexpl.c: Share code with lib/frexp.c.
61788         * modules/mathl (Files): Add lib/frexp.c.
61789         (Depends-on): Add isnanl-nolibm.
61790
61791 2007-03-22  Bruno Haible  <bruno@clisp.org>
61792
61793         * modules/printf-frexp (Files): Add m4/frexp.m4.
61794         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61795         only if the found frexp function actually works.
61796
61797 2007-03-22  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/frexp.c: Remove older implementation that uses divisions.
61800
61801 2007-03-21  Bruno Haible  <bruno@clisp.org>
61802
61803         * modules/frexp-tests: New file.
61804         * tests/test-frexp.c: New file.
61805
61806         * modules/frexp: New file.
61807         * lib/frexp.c: New file.
61808         * m4/frexp.m4: New file.
61809         * lib/math_.h (frexp): New declaration.
61810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61811         REPLACE_FREXP.
61812         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61813
61814 2007-03-21  Bruno Haible  <bruno@clisp.org>
61815
61816         * modules/isnanl-tests: New file.
61817         * tests/test-isnanl.c: New file.
61818
61819         * modules/isnanl: New file.
61820         * lib/isnanl.h: New file.
61821         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61822         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61823         gl_FUNC_ISNANL_WORKS.
61824         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61825         New macros.
61826
61827 2007-03-21  Bruno Haible  <bruno@clisp.org>
61828
61829         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61830         lib/isnanl.h.
61831         (Include): Update.
61832         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61833         * lib/vasnprintf.c: Update.
61834         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61835         tests/test-isnanl.h, remove tests/test-isnanl.c.
61836         (Makefile.am): Update.
61837         * tests/test-isnanl-nolibm.c: New file.
61838         * tests/test-isnanl.h: New file.
61839         * tests/test-isnanl.c: Remove file.
61840
61841 2007-03-21  Jim Meyering  <jim@meyering.net>
61842
61843         When trying to open ".", treat ESTALE like EACCES.
61844         * lib/savewd.c (savewd_save): Resort to forking not just upon
61845         failure with EACCES, but also when errno is ESTALE.
61846
61847 2007-03-20  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61850         Needed on AIX 5.1. Reported by Matthew Woehlke.
61851
61852 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         Suggestions by Bruno Haible:
61855         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61856         our own.
61857         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61858         * modules/acl (Depends-on): Add gettext.
61859
61860 2007-03-19  Bruno Haible  <bruno@clisp.org>
61861
61862         * modules/iconvme: Remove file.
61863         * lib/iconvme.h: Remove file.
61864         * lib/iconvme.c: Remove file.
61865         * m4/iconvme.m4: Remove file.
61866
61867 2007-03-19  Bruno Haible  <bruno@clisp.org>
61868
61869         * doc/relocatable-maint.texi: Break long shell script line.
61870         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61871
61872 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61873
61874         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61875         handle file_has_acl.
61876         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61877         * lib/acl.c: Move header inclusions and related macro defns into
61878         lib/acl-internal.h.
61879         (S_ISLNK): Remove defn, since that's now done for us.
61880         (file_has_acl): Move to lib/file-has-acl.c.
61881         Call acl_trivial if available.  This is the crucial part of the fix.
61882         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61883         shared within the library.  Rewrite a bit, partly to make it compatible
61884         with the GNU coding style.
61885         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61886         Remove unnecessary double-quotes.
61887         Don't test for acl_to_text; the build will catch that.
61888         Replace acl_entries if it doesn't exist and it is needed.
61889         Check for -lsec and acl_trivial (as used on Solaris 10).
61890         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61891         lib/file-has-acl.c.
61892         (Depends-on): Add sys_stat, for S_ISLNK.
61893
61894 2007-03-19  Ben Pfaff  <blp@gnu.org>
61895
61896         * doc/gnulib.texi: Fix typos.
61897         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61898
61899 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61902         If size is zero here, buf must be zero.
61903
61904 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61905
61906         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61907         <bruno@clisp.org>.
61908
61909 2007-03-18  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61912         Suggested by Eric Blake.
61913
61914 2007-03-18  Ben Pfaff  <blp@gnu.org>
61915
61916         * doc/relocatable.texi: Recommend using as prefix a directory
61917         that does not exist and will never be created.  Based on
61918         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61919         and others.
61920
61921 2007-03-17  Bruno Haible  <bruno@clisp.org>
61922
61923         * lib/fchownat.c: Include lchown.h.
61924
61925 2007-03-17  Bruno Haible  <bruno@clisp.org>
61926
61927         Fix endless loop when the given allocated size was > INT_MAX.
61928         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61929         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61930         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61931         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61932         * lib/sprintf.c (sprintf): Likewise.
61933
61934 2007-03-17  Bruno Haible  <bruno@clisp.org>
61935
61936         * tests/test-argp-2.sh (func_compare): Output a context diff.
61937
61938 2007-03-17  Bruno Haible  <bruno@clisp.org>
61939
61940         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61941         locale's decimal-point character.
61942
61943 2007-03-17  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61946         before comparing it. Needed because on some platforms (e.g. x86) a
61947         'long double' occupies less bytes than sizeof (long double).
61948
61949 2007-03-17  Bruno Haible  <bruno@clisp.org>
61950
61951         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61952         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61953         * tests/test-getaddrinfo.c (simple): Likewise.
61954         * tests/test-read-file.c (main): Likewise.
61955
61956 2007-03-17  Bruno Haible  <bruno@clisp.org>
61957
61958         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61959
61960 2007-03-17  Bruno Haible  <bruno@clisp.org>
61961
61962         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61963         unused variable.
61964
61965 2007-03-17  Bruno Haible  <bruno@clisp.org>
61966
61967         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61968         * tests/test-c-strncasecmp.c: Likewise.
61969
61970 2007-03-17  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/stdlib (Depends-on): Add unistd.
61973         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61974         Needed for MacOS X 10.3.
61975
61976 2007-03-17  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61979
61980 2007-03-17  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61983
61984 2007-03-17  Bruno Haible  <bruno@clisp.org>
61985
61986         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61987         to reflect files copied from gnulib (with or without modifications).
61988         Suggested by Jim Meyering.
61989
61990 2007-03-17  Eric Blake  <ebb9@byu.net>
61991
61992         * NEWS: Document stdlib change from 2007-02-18.
61993
61994 2007-03-17  Jim Meyering  <jim@meyering.net>
61995
61996         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61997         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61998         someone uses a name containing shell meta-characters.
61999         Reported by Alfred M. Szmidt.
62000
62001         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62002
62003 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62004
62005         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62006         and copy gettext configuration files only if configure.ac contains
62007         a use of AM_GNU_GETTEXT_VERSION.
62008
62009 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62010
62011         * build-aux/bootstrap (gnulib_name): New variable.
62012         (gnulib_tool_options): Use it.
62013
62014 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62015
62016         * tests/test-des.c: Use new namespace.
62017
62018 2007-03-15  Bruno Haible  <bruno@clisp.org>
62019
62020         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62021         Reported by James Youngman <jay@gnu.org>.
62022
62023 2007-03-15  Bruno Haible  <bruno@clisp.org>
62024
62025         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62026         declared prototype. Needed with cc on OSF/1 5.1.
62027
62028 2007-03-15  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62031         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62032         (struct gl_list_implementation): Add dispose_fn argument to the
62033         'create_empty', 'create' methods.
62034         (struct gl_list_impl_base): Add field 'dispose_fn'.
62035         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62036         argument.
62037         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62038         dispose_fn argument.
62039         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62040         dispose_fn on the dropped values.
62041         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62042         dispose_fn argument.
62043         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62044         dropped values.
62045         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62046         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62047         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62048         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62049         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62050         argument.
62051         (gl_tree_list_free): Call dispose_fn on the dropped values.
62052         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62053         the dropped values.
62054         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62055         Add dispose_fn argument.
62056         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62057         Call dispose_fn on the dropped values.
62058         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62059         Add dispose_fn argument.
62060         (gl_sublist_create): Initialize the 'dispose_fn' field.
62061         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62062         * tests/test-array_list.c (main): Update.
62063         * tests/test-carray_list.c (main): Update.
62064         * tests/test-avltree_list.c (main): Update.
62065         * tests/test-rbtree_list.c (main): Update.
62066         * tests/test-avltreehash_list.c (main): Update.
62067         * tests/test-rbtreehash_list.c (main): Update.
62068         * tests/test-linked_list.c (main): Update.
62069         * tests/test-linkedhash_list.c (main): Update.
62070         * tests/test-array_oset.c (main): Update.
62071
62072 2007-03-15  Bruno Haible  <bruno@clisp.org>
62073
62074         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62075         (gl_oset_create_empty): Add dispose_fn argument.
62076         (struct gl_oset_implementation): Add dispose_fn argument to
62077         'create_empty' method.
62078         (struct gl_oset_impl_base): Add dispose_fn field.
62079         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62080         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62081         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62082         values.
62083         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62084         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62085         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62086         dropped value.
62087         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62088         dropped value.
62089         * tests/test-array_oset.c (main): Update.
62090         * tests/test-avltree_oset.c (main): Update.
62091         * tests/test-rbtree_oset.c (main): Update.
62092         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62093
62094 2007-03-13  Bruno Haible  <bruno@clisp.org>
62095
62096         * tests/test-stdbool.c (i): Update after last patch.
62097
62098 2007-03-12  Bruno Haible  <bruno@clisp.org>
62099
62100         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62101         the iswprint macro. Needed on Solaris 2.5.1.
62102
62103 2007-03-12  Bruno Haible  <bruno@clisp.org>
62104
62105         * tests/test-printf-frexp.c (main): Declare x as volatile.
62106
62107 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62108
62109         * doc/gnulib.texi (Build robot for gnulib): New section.
62110
62111 2007-03-12  Jim Meyering  <jim@meyering.net>
62112
62113         * build-aux/bootstrap: New file.
62114         * build-aux/bootstrap.conf: New file, from coreutils.
62115
62116 2007-03-11  Bruno Haible  <bruno@clisp.org>
62117
62118         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62119
62120 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62121
62122         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62123         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62124         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62125
62126 2007-03-11  Bruno Haible  <bruno@clisp.org>
62127
62128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62129         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62130
62131 2007-03-11  Bruno Haible  <bruno@clisp.org>
62132
62133         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62134         formula. Needed for SunPRO C 5.0.
62135
62136 2007-03-11  Bruno Haible  <bruno@clisp.org>
62137
62138         * modules/long-options (Depends-on): Add getopt.
62139
62140 2007-03-11  Bruno Haible  <bruno@clisp.org>
62141
62142         * modules/modechange (Depends-on): Add stdbool.
62143
62144 2007-03-11  Bruno Haible  <bruno@clisp.org>
62145
62146         * modules/i-ring (Depends-on): Add stdbool.
62147
62148 2007-03-11  Bruno Haible  <bruno@clisp.org>
62149
62150         * modules/gc-des (Depends-on): Add stdbool.
62151
62152 2007-03-11  Bruno Haible  <bruno@clisp.org>
62153
62154         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62155
62156 2007-03-11  Bruno Haible  <bruno@clisp.org>
62157
62158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62159
62160 2007-03-11  Bruno Haible  <bruno@clisp.org>
62161
62162         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62163
62164 2007-03-11  Bruno Haible  <bruno@clisp.org>
62165
62166         * lib/vasnprintf.c (sprintf): Undefine.
62167
62168 2007-03-11  Bruno Haible  <bruno@clisp.org>
62169
62170         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62171         initializers in SunPRO C and Compaq C compilers.
62172
62173 2007-03-11  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62176         decrementing code ANSI C compliant.
62177
62178 2007-03-11  Bruno Haible  <bruno@clisp.org>
62179
62180         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62181         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62182
62183 2007-03-11  Bruno Haible  <bruno@clisp.org>
62184
62185         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62186         <stdbool.h> substitute doesn't pass.
62187
62188 2007-03-11  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62191
62192 2007-03-11  Bruno Haible  <bruno@clisp.org>
62193
62194         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62195         script, for submission to autobuild.josefsson.org.
62196
62197 2007-03-10  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/canonicalize-lgpl-tests: New file.
62200         * tests/test-canonicalize-lgpl.sh: New file.
62201         * tests/test-canonicalize-lgpl.c: New file.
62202
62203         * modules/c-strcase-tests: New file.
62204         * tests/test-c-strcase.sh: New file.
62205         * tests/test-c-strcasecmp.c: New file.
62206         * tests/test-c-strncasecmp.c: New file.
62207
62208         * modules/atexit-tests: New file.
62209         * tests/test-atexit.sh: New file.
62210         * tests/test-atexit.c: New file.
62211
62212 2007-03-10  Bruno Haible  <bruno@clisp.org>
62213
62214         * tests/test-binary-io.sh: Use temporary filenames that are not so
62215         likely to clash with those of other tests (in a parallel make).
62216         * tests/test-binary-io.c: Likewise.
62217
62218 2007-03-10  Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62221         fallback; use #error instead.
62222         Suggested by Simon Josefsson.
62223
62224 2007-03-10  Bruno Haible  <bruno@clisp.org>
62225
62226         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62227         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62228         first and the last.
62229
62230 2007-03-10  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62233
62234 2007-03-10  Bruno Haible  <bruno@clisp.org>
62235
62236         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62237         "make distcheck".
62238         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62239         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62240         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62241
62242 2007-03-10  Bruno Haible  <bruno@clisp.org>
62243
62244         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62245         variable.
62246         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62247         variable.
62248
62249 2007-03-09  Eric Blake  <ebb9@byu.net>
62250         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62251
62252         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62253         types are not being provided by gnulib.
62254         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62255         types are supported.
62256
62257 2007-03-10  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/stdio_.h (__attribute__): New macro.
62260         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62261         vsprintf): Specify __attribute__ __format__ for GCC.
62262         Suggested by Eric Blake.
62263
62264 2007-03-09  Bruno Haible  <bruno@clisp.org>
62265
62266         * modules/printf-posix-tests: New file.
62267         * tests/test-printf-posix.sh: New file.
62268         * tests/test-printf-posix.c: New file.
62269
62270         * modules/printf-posix: New file.
62271         * lib/printf.c: New file.
62272         * m4/printf-posix-rpl.m4: New file.
62273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62274         REPLACE_PRINTF.
62275         * lib/stdio_.h (printf): New declaration.
62276         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62277         ____strfmon____): New macros.
62278         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62279         REPLACE_PRINTF.
62280
62281 2007-03-09  Bruno Haible  <bruno@clisp.org>
62282
62283         * tests/test-vasnprintf-posix2.sh: New file.
62284         * tests/test-vasnprintf-posix2.c: New file.
62285         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62286         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62287         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62288
62289         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62290         a locale dependent decimal point, rather than always '.'.
62291
62292 2007-03-09  Eric Blake  <ebb9@byu.net>
62293
62294         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62295         spite of platforms like Tandem/NSK that define it to -1.
62296
62297 2007-03-08  Bruno Haible  <bruno@clisp.org>
62298
62299         * modules/vprintf-posix-tests: New file.
62300         * tests/test-vprintf-posix.sh: New file.
62301         * tests/test-vprintf-posix.c: New file.
62302         * tests/test-printf-posix.h: New file.
62303
62304         * modules/vprintf-posix: New file.
62305         * lib/vprintf.c: New file.
62306         * m4/vprintf-posix.m4: New file.
62307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62308         REPLACE_VPRINTF.
62309         * lib/stdio_.h (vprintf): New declaration.
62310         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62311         REPLACE_VPRINTF.
62312
62313 2007-03-08  Bruno Haible  <bruno@clisp.org>
62314
62315         * modules/fprintf-posix-tests: New file.
62316         * tests/test-fprintf-posix.sh: New file.
62317         * tests/test-fprintf-posix.c: New file.
62318
62319         * modules/fprintf-posix: New file.
62320         * lib/fprintf.c: New file.
62321         * m4/fprintf-posix.m4: New file.
62322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62323         REPLACE_FPRINTF.
62324         * lib/stdio_.h (fprintf): New declaration.
62325         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62326         REPLACE_FPRINTF.
62327
62328 2007-03-08  Bruno Haible  <bruno@clisp.org>
62329
62330         * modules/vfprintf-posix-tests: New file.
62331         * tests/test-vfprintf-posix.sh: New file.
62332         * tests/test-vfprintf-posix.c: New file.
62333         * tests/test-fprintf-posix.h: New file.
62334         * tests/test-fprintf-posix.out: New file.
62335
62336         * modules/vfprintf-posix: New file.
62337         * lib/vfprintf.c: New file.
62338         * m4/vfprintf-posix.m4: New file.
62339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62340         REPLACE_VFPRINTF.
62341         * lib/stdio_.h (vfprintf): New declaration.
62342         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62343         REPLACE_VFPRINTF.
62344
62345 2007-03-08  Bruno Haible  <bruno@clisp.org>
62346
62347         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62348
62349 2007-03-08  Bruno Haible  <bruno@clisp.org>
62350
62351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62352         instead of 'expr' invocations.
62353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62357         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62358         Suggested by Paul Eggert.
62359
62360 2007-03-08  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/fseterr-tests: New file.
62363         * tests/test-fseterr.c: New file.
62364
62365         * modules/fseterr: New file.
62366         * lib/fseterr.h: New file.
62367         * lib/fseterr.c: New file.
62368
62369 2007-03-08  Bruno Haible  <bruno@clisp.org>
62370
62371         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62372         * lib/getopt_.h: Likewise.
62373         * lib/mbswidth.h: Likewise.
62374         * lib/setenv.h: Likewise.
62375         * lib/vasnprintf.h: Likewise.
62376         * lib/vasprintf.h: Likewise.
62377         * lib/verror.h: Likewise.
62378         * lib/xsetenv.h: Likewise.
62379         * lib/xvasprintf.h: Likewise.
62380
62381 2007-03-08  Jim Meyering  <jim@meyering.net>
62382
62383         * users.txt: Add parted.
62384
62385         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62386
62387 2007-03-07  Bruno Haible  <bruno@clisp.org>
62388
62389         * m4/printf.m4: Make the shell script snippets copy&pastable.
62390
62391 2007-03-02  Bruno Haible  <bruno@clisp.org>
62392
62393         * lib/netinet_in_.h: New file.
62394         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62395         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62396         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62397         (Depends-on): Add absolute-header.
62398         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62399         into netinet/in.h.
62400
62401 2007-03-03  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/sys_select_.h: New file.
62404         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62405         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62406         * modules/sys_select (Files): Add lib/sys_select_.h.
62407         (Depends-on): Add absolute-header.
62408         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62409         into sys/select.h.
62410
62411 2007-03-02  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62414         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62415         values.
62416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62417         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62418         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62419         * modules/sys_socket (Depends-on): Add absolute-header.
62420         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62421         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62422         (Include): Remove requirement of inclusion of <sys/types.h>.
62423
62424 2007-03-02  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/byteswap_.h (bswap_32): Fix formula.
62427
62428 2007-03-06  Bruno Haible  <bruno@clisp.org>
62429
62430         * modules/sprintf-posix-tests: New file.
62431         * tests/test-sprintf-posix.c: New file.
62432
62433         * modules/sprintf-posix: New file.
62434         * lib/sprintf.c: New file.
62435         * m4/sprintf-posix.m4: New file.
62436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62437         REPLACE_SPRINTF.
62438         * lib/stdio_.h (sprintf): New declaration.
62439         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62440         REPLACE_SPRINTF.
62441
62442 2007-03-06  Bruno Haible  <bruno@clisp.org>
62443
62444         * modules/vsprintf-posix-tests: New file.
62445         * tests/test-vsprintf-posix.c: New file.
62446         * tests/test-sprintf-posix.h: New file.
62447
62448         * modules/vsprintf-posix: New file.
62449         * lib/vsprintf.c: New file.
62450         * m4/vsprintf-posix.m4: New file.
62451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62452         REPLACE_VSPRINTF.
62453         * lib/stdio_.h (vsprintf): New declaration.
62454         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62455         REPLACE_VSPRINTF.
62456
62457 2007-03-06  Bruno Haible  <bruno@clisp.org>
62458
62459         * modules/vsnprintf (Depend-on): Remove minmax.
62460
62461 2007-03-06  Bruno Haible  <bruno@clisp.org>
62462
62463         * modules/snprintf-posix-tests: New file.
62464         * tests/test-snprintf-posix.c: New file.
62465
62466         * modules/snprintf-posix: New file.
62467         * m4/snprintf-posix.m4: New file.
62468         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62469         gl_FUNC_SNPRINTF.
62470         (gl_FUNC_SNPRINTF): Invoke it.
62471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62472         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62473         is set.
62474         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62475
62476 2007-03-06  Bruno Haible  <bruno@clisp.org>
62477
62478         * modules/vsnprintf-posix-tests: New file.
62479         * tests/test-vsnprintf-posix.c: New file.
62480         * tests/test-snprintf-posix.h: New file.
62481
62482         * modules/vsnprintf-posix: New file.
62483         * m4/vsnprintf-posix.m4: New file.
62484         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62485         gl_FUNC_VSNPRINTF.
62486         (gl_FUNC_VSNPRINTF): Invoke it.
62487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62488         * lib/stdio_.h (vsnprintf): Define as a replacement if
62489         REPLACE_VSNPRINTF is set.
62490         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62491
62492 2007-03-06  Bruno Haible  <bruno@clisp.org>
62493
62494         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62496
62497 2007-03-06  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62500         (asinl): Declare also if HAVE_DECL_ASINL is set.
62501         (atanl): Declare also if HAVE_DECL_ATANL is set.
62502         (ceill): Declare also if HAVE_DECL_CEILL is set.
62503         (cosl): Declare also if HAVE_DECL_COSL is set.
62504         (expl): Declare also if HAVE_DECL_EXPL is set.
62505         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62506         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62507         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62508         (logl): Declare also if HAVE_DECL_LOGL is set.
62509         (sinl): Declare also if HAVE_DECL_SINL is set.
62510         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62511         (tanl): Declare also if HAVE_DECL_TANL is set.
62512         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62514         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62515         declaration of frexpl, ldexpl.
62516         * modules/printf-frexpl (Depends-on): Add math.
62517         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62518
62519 2007-03-05  Bruno Haible  <bruno@clisp.org>
62520
62521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62522         frexpl and ldexpl are declared.
62523         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62524
62525 2007-03-05  Bruno Haible  <bruno@clisp.org>
62526
62527         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62528         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62529
62530 2007-03-05  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/stdio_.h: Include <stddef.h>.
62533
62534 2007-03-05  Bruno Haible  <bruno@clisp.org>
62535
62536         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62537
62538 2007-03-05  Bruno Haible  <bruno@clisp.org>
62539
62540         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62541         NetBSD 4, from Ralf Wildenhues.
62542
62543 2007-03-04  Bruno Haible  <bruno@clisp.org>
62544
62545         * lib/vasprintf.h: Update #if logic for the case when the functions
62546         exist but are overridden.
62547
62548 2007-03-04  Bruno Haible  <bruno@clisp.org>
62549
62550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62551         implementations: glibc-2.4 and MacOS X 10.3.
62552         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62553         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62554         * tests/test-vasprintf-posix.c (test_function): Likewise.
62555
62556 2007-03-04  Bruno Haible  <bruno@clisp.org>
62557
62558         * modules/vasprintf-posix-tests: New file.
62559         * tests/test-vasprintf-posix.c: New file.
62560
62561         * modules/vasprintf-posix: New file.
62562         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62563         defined.
62564         * m4/vasprintf-posix.m4: New file.
62565         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62566         gl_FUNC_VASPRINTF.
62567         (gl_FUNC_VASPRINTF): Invoke it.
62568         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62569         here.
62570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62571
62572 2007-03-04  Bruno Haible  <bruno@clisp.org>
62573
62574         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62575         REPLACE_GETTIMEOFDAY.
62576         * modules/sys_time (Makefile.am): Likewise.
62577         * m4/sys_time_h.m4: Likewise.
62578         * m4/gettimeofday.m4: Likewise.
62579
62580 2007-03-04  Bruno Haible  <bruno@clisp.org>
62581
62582         * modules/vasnprintf-posix-tests: New file.
62583         * tests/test-vasnprintf-posix.c: New file.
62584
62585         * modules/vasnprintf-posix: New file.
62586         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62587         printf-frexpl.h.
62588         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62589         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62590         REPLACE_VASNPRINTF is defined.
62591         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62592         gl_FUNC_VASNPRINTF.
62593         (gl_FUNC_VASNPRINTF): Invoke it.
62594         * m4/vasnprintf-posix.m4: New file.
62595         * m4/printf.m4: New file.
62596
62597 2007-03-04  Bruno Haible  <bruno@clisp.org>
62598
62599         Compile progreloc.c only if --enable-relocatable is specified.
62600         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62601         if --enable-relocatable was specified.
62602         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62603         lib_SOURCES.
62604
62605 2007-03-04  Jim Meyering  <jim@meyering.net>
62606
62607         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62608         Use it consistently, rather than enumerating errno constants.
62609
62610 2007-03-04  Bruno Haible  <bruno@clisp.org>
62611
62612         * modules/xvasprintf-tests: New file.
62613         * tests/test-xvasprintf.c: New file.
62614
62615         * modules/vasprintf-tests: New file.
62616         * tests/test-vasprintf.c: New file.
62617
62618         * modules/vasnprintf-tests: New file.
62619         * tests/test-vasnprintf.c: New file.
62620
62621         * modules/vsnprintf-tests: New file.
62622         * tests/test-vsnprintf.c: New file.
62623
62624         * modules/snprintf-tests: New file.
62625         * tests/test-snprintf.c: New file.
62626
62627 2007-03-04  Bruno Haible  <bruno@clisp.org>
62628
62629         Compile relocatable.c only if --enable-relocatable is specified.
62630         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62631         gl_RELOCATABLE_LIBRARY.
62632         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62633         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62634         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62635         gl_RELOCATABLE_LIBRARY.
62636         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62637         (Makefile.am): Remove lib_SOURCES.
62638         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62639         gl_RELOCATABLE_LIBRARY.
62640         (Makefile.am): Remove lib_SOURCES.
62641         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62642         always.
62643         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62644         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62645
62646 2007-03-04  Bruno Haible  <bruno@clisp.org>
62647
62648         * modules/argmatch-tests: New file.
62649         * tests/test-argmatch.c: New file.
62650
62651         * tests/test-allocsa.c (main): Halve the number of loop runs.
62652
62653         * modules/alloca-opt-tests: New file.
62654         * tests/test-alloca-opt.c: New file.
62655
62656 2007-03-04  Jim Meyering  <jim@meyering.net>
62657
62658         Work around difference between Linux ACLs and Solaris 10 ZFS.
62659         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62660         for EINVAL.
62661
62662 2007-03-03  Bruno Haible  <bruno@clisp.org>
62663
62664         * modules/relocatable-prog (Depends-on): Add back progreloc's
62665         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62666
62667 2007-03-03  Bruno Haible  <bruno@clisp.org>
62668
62669         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62670         * modules/relocatable-lib: New file.
62671
62672 2007-03-03  Bruno Haible  <bruno@clisp.org>
62673
62674         * modules/relocatable-prog: Renamed from modules/relocatable.
62675         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62676
62677 2007-03-03  Bruno Haible  <bruno@clisp.org>
62678
62679         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62680         m4/relocatable-lib.m4.
62681         (Depends-on): Remove 'relocatable'.
62682         (configure.ac): Add gl_RELOCATABLE_NOP.
62683
62684 2007-03-03  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/relocatable-prog-wrapper: New file.
62687         * modules/relocatable (Depends-on): Add it. Remove all other
62688         dependencies except progname.
62689         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62690
62691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62692         (gl_FUNC_STRERROR): Nop.
62693         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62694
62695         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62696         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62697
62698         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62699         (gl_FUNC_READLINK): Update.
62700
62701         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62702
62703 2007-03-03  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62706         * modules/xreadlink (Depends-on): Add unistd.
62707         * modules/xreadlink-with-size (Depends-on): Likewise.
62708
62709 2007-03-03  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62712         extracted from gt_FUNC_SETENV.
62713         (gt_FUNC_SETENV): Remove macro.
62714         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62715         remove gt_FUNC_SETENV.
62716
62717 2007-03-03  Bruno Haible  <bruno@clisp.org>
62718
62719         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62720         ENABLE_RELOCATABLE here.
62721         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62722
62723 2007-03-03  Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62726         * tests/test-rbtreehash_list.c: Include progname.h.
62727         (main): Call set_program_name.
62728
62729         * modules/rbtree-oset-tests (Depends-on): Add progname.
62730         * tests/test-rbtree_oset.c: Include progname.h.
62731         (main): Call set_program_name.
62732
62733         * modules/rbtree-list-tests (Depends-on): Add progname.
62734         * tests/test-rbtree_list.c: Include progname.h.
62735         (main): Call set_program_name.
62736
62737         * modules/linked-list-tests (Depends-on): Add progname.
62738         * tests/test-linked_list.c: Include progname.h.
62739         (main): Call set_program_name.
62740
62741 2007-03-03  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62744         All uses of __restrict changed to _Restrict_.
62745         * lib/glob_.h (__restrict): Remove macro.
62746
62747 2007-03-02  Bruno Haible  <bruno@clisp.org>
62748
62749         * modules/gettext (configure.ac): Require gettext infrastructure
62750         from version 0.16.1.
62751
62752 2007-03-02  Bruno Haible  <bruno@clisp.org>
62753
62754         * modules/linkedhash-list-tests (Depends-on): Add progname.
62755         * tests/test-linkedhash_list.c: Include progname.h.
62756         (main): Call set_program_name.
62757
62758         * modules/carray-list-tests (Depends-on): Add progname.
62759         * tests/test-carray_list.c: Include progname.h.
62760         (main): Call set_program_name.
62761
62762         * modules/avltreehash-list-tests (Depends-on): Add progname.
62763         * tests/test-avltreehash_list.c: Include progname.h.
62764         (main): Call set_program_name.
62765
62766         * modules/avltree-oset-tests (Depends-on): Add progname.
62767         * tests/test-avltree_oset.c: Include progname.h.
62768         (main): Call set_program_name.
62769
62770         * modules/avltree-list-tests (Depends-on): Add progname.
62771         * tests/test-avltree_list.c: Include progname.h.
62772         (main): Call set_program_name.
62773
62774         * modules/array-oset-tests (Depends-on): Add progname.
62775         * tests/test-array_oset.c: Include progname.h.
62776         (main): Call set_program_name.
62777
62778         * modules/array-list-tests (Depends-on): Add progname.
62779         * tests/test-array_list.c: Include progname.h.
62780         (main): Call set_program_name.
62781
62782         * modules/argp-tests (Depends-on): Add progname.
62783         * tests/test-argp.c: Include argp.h first. Include progname.h.
62784         (main): Call set_program_name.
62785
62786 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62787
62788         * doc/gnulib-tool.texi (Initial import): Reword description of
62789         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62790         limited effect even if defined after the first system include.
62791
62792 2007-03-01  Bruno Haible  <bruno@clisp.org>
62793
62794         * build-aux/config.libpath: Update to libtool-1.5.22.
62795         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62796
62797 2007-03-01  Bruno Haible  <bruno@clisp.org>
62798
62799         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62800         foo_CFLAGS.
62801         Reported by Ralf Wildenhues.
62802
62803 2007-03-01  Bruno Haible  <bruno@clisp.org>
62804
62805         * build-aux/install-reloc: Remove object files left over by some
62806         compilers.
62807         Reported by Ralf Wildenhues.
62808
62809 2007-03-01  Bruno Haible  <bruno@clisp.org>
62810
62811         * build-aux/install-reloc: Break long lines.
62812
62813 2007-03-01  Bruno Haible  <bruno@clisp.org>
62814
62815         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62816         Reported by Ralf Wildenhues.
62817
62818 2007-03-01  Bruno Haible  <bruno@clisp.org>
62819
62820         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62821         include ordering constraints.
62822
62823 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62827         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62828         as another example.
62829         * lib/time_.h: Fix misspelling.
62830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62831         Require gl_HEADER_TIME_H_DEFAULTS.
62832         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62833         * m4/time_r.m4 (gl_TIME_R): Likewise.
62834         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62835
62836 2007-03-01  Bruno Haible  <bruno@clisp.org>
62837
62838         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62839         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62840
62841 2007-03-01  Jim Meyering  <jim@meyering.net>
62842
62843         * modules/xreadlink (Maintainer): Add my name.
62844         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62845
62846 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62847             Bruno Haible  <bruno@clisp.org>
62848
62849         * build-aux/install-reloc: Compile also c-ctype.c.
62850         * build-aux/relocatable.sh.in: New file.
62851         * doc/relocatable.texi: New file.
62852         * doc/relocatable-maint.texi: New file.
62853         * doc/gnulib.texi: Include relocatable-maint.texi.
62854         * lib/progreloc.c: Include unistd.h unconditionally.
62855         * lib/relocwrapper.c: Include unistd.h unconditionally.
62856         Include c-ctype.h.
62857         (add_dotbin): Use c_tolower.
62858         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62859         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62860         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62861         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62862         to m4/relocatable-lib.m4.
62863         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62864         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62865         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62866         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62867         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62868         * modules/relocatable: New file.
62869         * modules/relocatable-lib: New file.
62870         * modules/relocatable-script: New file.
62871
62872 2007-02-28  Bruno Haible  <bruno@clisp.org>
62873
62874         Import --enable-relocatable infrastructure.
62875         * build-aux/config.libpath: New file, from GNU gettext.
62876         * build-aux/install-reloc: New file, from GNU gettext.
62877         * build-aux/reloc-ldflags: New file, from GNU gettext.
62878         * lib/relocatable.h: New file, from GNU gettext.
62879         * lib/relocatable.c: New file, from GNU gettext.
62880         * lib/relocwrapper.c: New file, from GNU gettext.
62881         * m4/relocatable.m4: New file, from GNU gettext.
62882
62883 2007-02-28  Bruno Haible  <bruno@clisp.org>
62884
62885         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62886
62887         * modules/xreadlink: New file, from GNU gettext with modifications.
62888         * lib/xreadlink.c: New file, from GNU gettext.
62889         * lib/xreadlink.h: Add comments.
62890         (xreadlink): New declaration.
62891
62892         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62893         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62894         lib/xreadlink-with-size.c.
62895         (configure.ac): Remove gl_XREADLINK invocation.
62896         (Makefile.am): Augment lib_SOURCES.
62897         * m4/xreadlink.m4: Remove file.
62898         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62899         (xreadlink_with_size): Renamed from xreadink.
62900         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62901         * modules/canonicalize (Depends-on): Replace xreadlink with
62902         xreadlink-with-size.
62903         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62904
62905 2007-02-25  Jim Meyering  <jim@meyering.net>
62906
62907         * build-aux/announce-gen: When complaining about excess arguments,
62908         list them.
62909
62910 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62911
62912         * README: Document signed integer overflow situation more
62913         accurately.
62914
62915 2007-02-25  Bruno Haible  <bruno@clisp.org>
62916
62917         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62918         'a' or 'A' conversion.
62919
62920 2007-02-25  Bruno Haible  <bruno@clisp.org>
62921
62922         * modules/filename: Renamed from modules/pathname.
62923         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62924         lib/concatpath.c with lib/concat-filename.c.
62925         (Makefile.am): Update.
62926         (Include): Replace pathname.h with filename.h.
62927         * lib/filename.h: Renamed from lib/pathname.h.
62928         (concatenated_filename): Renamed from concatenated_pathname.
62929         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62930         (concatenated_filename): Renamed from concatenated_pathname.
62931         * lib/findprog.c: Include filename.h instead of pathname.h.
62932         (find_in_path): Update.
62933         * lib/javacomp.c: Include filename.h instead of pathname.h.
62934         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62935         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62936         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62937         is_oldgcj_14_13_usable, is_javac_usable): Update.
62938         * lib/javaexec.c: Include filename.h instead of pathname.h.
62939         (execute_java_class): Update.
62940         * modules/findprog: Update.
62941         * modules/javacomp: Update.
62942         * modules/javaexec: Update.
62943         * MODULES.html.sh (File system functions): Add 'filename', remove
62944         'pathname'.
62945
62946 2007-02-25  Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/printf-frexpl-tests: New file.
62949         * tests/test-printf-frexpl.c: New file.
62950
62951         * modules/printf-frexpl: New file.
62952         * lib/printf-frexpl.h: New file.
62953         * lib/printf-frexpl.c: New file.
62954         * m4/printf-frexpl.m4: New file.
62955
62956 2007-02-25  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/printf-frexp-tests: New file.
62959         * tests/test-printf-frexp.c: New file.
62960
62961         * modules/printf-frexp: New file.
62962         * lib/printf-frexp.h: New file.
62963         * lib/printf-frexp.c: New file.
62964         * m4/printf-frexp.m4: New file.
62965
62966 2007-02-25  Bruno Haible  <bruno@clisp.org>
62967
62968         Assume automake >= 1.10 for the tests.
62969         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62970         * modules/arctwo-tests: Likewise.
62971         * modules/argp-tests: Likewise.
62972         * modules/avltree-list-tests: Likewise.
62973         * modules/avltree-oset-tests: Likewise.
62974         * modules/avltreehash-list-tests: Likewise.
62975         * modules/carray-list-tests: Likewise.
62976         * modules/crc-tests: Likewise.
62977         * modules/des-tests: Likewise.
62978         * modules/gc-arcfour-tests: Likewise.
62979         * modules/gc-arctwo-tests: Likewise.
62980         * modules/gc-des-tests: Likewise.
62981         * modules/gc-hmac-md5-tests: Likewise.
62982         * modules/gc-hmac-sha1-tests: Likewise.
62983         * modules/gc-md2-tests: Likewise.
62984         * modules/gc-md4-tests: Likewise.
62985         * modules/gc-md5-tests: Likewise.
62986         * modules/gc-pbkdf2-sha1-tests: Likewise.
62987         * modules/gc-rijndael-tests: Likewise.
62988         * modules/gc-sha1-tests: Likewise.
62989         * modules/gc-tests: Likewise.
62990         * modules/getaddrinfo-tests: Likewise.
62991         * modules/hmac-md5-tests: Likewise.
62992         * modules/hmac-sha1-tests: Likewise.
62993         * modules/linked-list-tests: Likewise.
62994         * modules/linkedhash-list-tests: Likewise.
62995         * modules/lock-tests: Likewise.
62996         * modules/md2-tests: Likewise.
62997         * modules/md4-tests: Likewise.
62998         * modules/md5-tests: Likewise.
62999         * modules/rbtree-list-tests: Likewise.
63000         * modules/rbtree-oset-tests: Likewise.
63001         * modules/rbtreehash-list-tests: Likewise.
63002         * modules/read-file-tests: Likewise.
63003         * modules/rijndael-tests: Likewise.
63004         * modules/stdint-tests: Likewise.
63005         * modules/tls-tests: Likewise.
63006
63007 2007-02-24  Bruno Haible  <bruno@clisp.org>
63008
63009         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63010         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63011         function; instead check whether isnan with a double argument links.
63012         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63013         function; instead check whether isnan with a 'long double' argument
63014         links.
63015         Reported by Eric Blake <ebb9@byu.net>.
63016
63017 2007-02-24  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63020         defined.
63021         * lib/isnanl.c: Remove all code. Just include isnan.c.
63022         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63023
63024 2007-02-25  Jim Meyering  <jim@meyering.net>
63025
63026         Avoid conflicting types for 'unsetenv' on FreeBSD.
63027         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63028         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63029         in stdlib.h.
63030
63031 2007-02-24  Bruno Haible  <bruno@clisp.org>
63032
63033         * modules/isnanl-nolibm-tests: New file.
63034         * tests/test-isnanl.c: New file.
63035
63036         * modules/isnanl-nolibm: New file.
63037         * lib/isnanl.h: New file.
63038         * lib/isnanl.c: New file.
63039         * m4/isnanl.m4: New file.
63040
63041 2007-02-24  Bruno Haible  <bruno@clisp.org>
63042
63043         * modules/isnan-nolibm-tests: New file.
63044         * tests/test-isnan.c: New file.
63045
63046         * modules/isnan-nolibm: New file.
63047         * lib/isnan.h: New file.
63048         * lib/isnan.c: New file.
63049         * m4/isnan.m4: New file.
63050
63051 2007-02-24  Bruno Haible  <bruno@clisp.org>
63052
63053         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63054         assume that an exponent fits in 20 bits.
63055
63056 2007-02-24  Jim Meyering  <jim@meyering.net>
63057
63058         * m4/regex.m4: Update the description of the configure-time option,
63059         --without-included-regex, to state accurately what the defaults are,
63060         and perhaps to give people an idea why using this option is risky.
63061
63062 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63063
63064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63065         loops on small arguments.  This attempts to avoid the problem
63066         Bruno Haible reported for AIX 4.3.2 in
63067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63068
63069 2007-02-23  Bruno Haible  <bruno@clisp.org>
63070
63071         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63072         Needed for help2man.
63073
63074 2007-02-23  Karl Berry  <karl@gnu.org>
63075
63076         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63077         exists, foo.h should be cvs-ignored, not committed.
63078
63079 2007-02-23  Eric Blake  <ebb9@byu.net>
63080
63081         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63082         * lib/stat-time.h (includes): Likewise.
63083         * lib/utimecmp.c (includes): Likewise.
63084         * lib/utimens.h (includes): Likewise.
63085         * lib/getdate.y (includes): Also include "timespec.h" for use
63086         internal to the module.
63087         * modules/utimens (Depends-on): Revert yesterday's patch.
63088         * modules/nanosleep (Depends-on): Add missing dependency.
63089
63090 2007-02-22  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/glob.c: Don't include getlogin_r.h.
63093
63094 2007-02-22  Jim Meyering  <jim@meyering.net>
63095
63096         * modules/utimens (Depends-on): Add timespec, required for
63097         utimens.h's inclusion of timespec.h.
63098
63099 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63100
63101         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63102         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63103         Schwab in
63104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63105         I'll try to think of a better way to fix the Solaris problem.
63106
63107         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63108         like glibc; on Solaris 10, it fails with errno == EINVAL.
63109         POSIX says the behavior is unspecified if the first argument is NULL,
63110         so play it safe and never pass NULL to the system getcwd.
63111
63112 2007-02-21  Jim Meyering  <jim@meyering.net>
63113
63114         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63115         of gettimeofday.  It would conflict with the one now always
63116         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63117         an IRIX 6.5 build failure.
63118
63119 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63120
63121         Minor fixups to port to Solaris 10 with Sun C 5.8.
63122         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63123         * modules/getcwd (Depends-on): Add dirfd.
63124         * lib/putenv.c (putenv): #undef it.
63125         (rpl_putenv): New decl.
63126         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63127
63128 2007-02-20  Bruno Haible  <bruno@clisp.org>
63129
63130         * modules/stdio-tests: New file.
63131         * tests/test-stdio.c: New file.
63132
63133         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63134         (Depends-on): Add stdio.
63135         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63136         (Include): Use <stdio.h> instead of vsnprintf.h.
63137         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63138         HAVE_DECL_VSNPRINTF.
63139         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63140
63141         * modules/snprintf (Files): Remove lib/snprintf.h.
63142         (Depends-on): Add stdio.
63143         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63144         (Include): Use <stdio.h> instead of snprintf.h.
63145         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63146         HAVE_DECL_SNPRINTF.
63147         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63148         * lib/getaddrinfo.c: Likewise.
63149
63150         * modules/stdio: New file.
63151         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63152         * lib/snprintf.h: Remove file.
63153         * lib/vsnprintf.h: Remove file.
63154         * lib/.cppi-disable: Remove snprintf.h.
63155         * m4/stdio_h.m4: New file.
63156         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63157
63158 2007-02-20  Jim Meyering  <jim@meyering.net>
63159
63160         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63161         used by e.g., mingw.  From Bruno Haible.
63162
63163 2007-02-19  Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63166         warnings.
63167         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63168
63169 2007-02-19  Bruno Haible  <bruno@clisp.org>
63170
63171         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63172         from mingw users.
63173
63174 2007-02-19  Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63177         warnings.
63178         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63179
63180 2007-02-19  Jim Meyering  <jim@meyering.net>
63181
63182         Don't use FD after a successful "fdopendir (fd)".
63183         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63184         Reset it by calling dirfd on the just-obtained DIR*.
63185
63186         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63187         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63188
63189 2007-02-18  Bruno Haible  <bruno@clisp.org>
63190
63191         * lib/readlink.c: Include <unistd.h>.
63192         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63193         HAVE_READLINK.
63194         * modules/readlink (Depends-on): Add unistd.
63195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63196         (Include): Add <unistd.h>.
63197
63198         * lib/getlogin_r.h: Remove file.
63199         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63200         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63201         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63202         HAVE_DECL_GETLOGIN_R.
63203         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63205         (Include): Use <unistd.h> instead of getlogin_r.h.
63206
63207         * lib/getcwd.h: Remove file.
63208         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63209         * lib/xgetcwd.c: Likewise.
63210         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63211         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63212         * modules/getcwd (Files): Remove lib/getcwd.h.
63213         (Depends-on): Add unistd.
63214         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63215         (Include): Use <unistd.h> instad of getcwd.h.
63216
63217         * lib/ftruncate.c: Include <unistd.h> first.
63218         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63219         Set HAVE_FTRUNCATE.
63220         * modules/ftruncate (Depends-on): Add unistd.
63221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63222
63223         * lib/fchdir.c: Include <unistd.h> first.
63224         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63226         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63227         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63228         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63229
63230         * lib/dup2.c: Include <unistd.h> first.
63231         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63232         HAVE_DUP2.
63233         * modules/dup2 (Depends-on): Add unistd.
63234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63235
63236         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63237         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63238         REPLACE_CHOWN. Don't define chown as a macro here.
63239         * modules/chown (Depends-on): Add unistd.
63240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63241
63242         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63243         Add definition for GL_LINK_WARNING.
63244         (chown, dup2): New declarations.
63245         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63246         link warning.
63247         (ftruncate): New declaration.
63248         (getcwd): New declaration, taken from old getcwd.h.
63249         (getlogin_r): New declaration, taken from old getlogin_r.h.
63250         (readlink): New declaration.
63251         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63252         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63253         (gl_PREREQ_UNISTD): Remove macro.
63254         (gl_UNISTD_MODULE_INDICATOR): New macro.
63255         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63256         many new variables. Don't set UNISTD_H.
63257         * modules/unistd (Description): Change.
63258         (Depends-on): Add link-warning.
63259         (configure.ac): Update.
63260         (Makefile.am): Create unistd.h always. Substitute many new variables
63261         into it.
63262
63263 2007-02-18  Bruno Haible  <bruno@clisp.org>
63264
63265         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63266         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63267         HAVE_GETSUBOPT.
63268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63269         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63270         * lib/getsubopt.h: Remove file.
63271         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63272         (Depends-on): Add stdlib.
63273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63274         (Includes): Use <stdlib.h> instead of getsubopt.h.
63275         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63276         Set HAVE_GETSUBOPT.
63277         * lib/getsubopt.c: Don't include getsubopt.h.
63278
63279 2007-02-18  Bruno Haible  <bruno@clisp.org>
63280
63281         * modules/fchdir (Depends-on): Add dup2.
63282
63283 2007-02-18  Bruno Haible  <bruno@clisp.org>
63284
63285         * lib/stdlib_.h: Handle glibc's special invocation convention
63286         specially.
63287
63288 2007-02-18  Bruno Haible  <bruno@clisp.org>
63289
63290         * modules/stdlib-tests: New file.
63291         * tests/test-stdlib.c: New file.
63292
63293         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63294         (Depends-on): Add stdlib.
63295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63296         (Includes): Use <stdlib.h> instead of mkstemp.h.
63297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63298         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63299         * lib/mkstemp.c: Don't include mkstemp.h.
63300         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63301         * lib/stdlib--.h: Don't include mkstemp.h.
63302
63303         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63304         (Depends-on): Add stdlib.
63305         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63306         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63307         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63308         HAVE_MKDTEMP.
63309         * lib/mkdtemp.c: Don't include mkdtemp.h.
63310         * lib/clean-temp.c: Don't include mkdtemp.h.
63311
63312         * modules/exit (Files): Remove lib/exit.h.
63313         (Depends-on): Add stdlib.
63314         (Makefile.am): Remove lib_SOURCES.
63315         (Include): Use <stdlib.h> instead of exit.h.
63316         * lib/argmatch.c: Don't include exit.h.
63317         * lib/execute.c: Likewise.
63318         * lib/pagealign_alloc.c: Likewise.
63319         * lib/pipe.c: Likewise.
63320         * lib/wait-process.c: Likewise.
63321         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63322         * lib/exitfail.c: Likewise.
63323         * lib/savewd.c: Likewise.
63324         * lib/xsetenv.c: Likewise.
63325
63326         * modules/stdlib: New file.
63327         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63328         and extra comments about mkstemp().
63329         * lib/exit.h: Remove file.
63330         * lib/mkdtemp.h: Remove file.
63331         * lib/mkstemp.h: Remove file.
63332         * m4/stdlib_h.m4: New file.
63333         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63334
63335 2007-02-18  Bruno Haible  <bruno@clisp.org>
63336
63337         * modules/math-tests: New file.
63338         * tests/test-math.c: New file.
63339
63340         * modules/math: New file.
63341         * modules/mathl (Files): Remove lib/mathl.h.
63342         (Depends-on): Add math.
63343         (Makefile.am): Don't mention mathl.h.
63344         (Include): Use <math.h> instead of mathl.h.
63345         * lib/math_.h: New file.
63346         * lib/mathl.h: Remove file.
63347         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63348         mathl.h.
63349         * lib/asinl.c: Likewise.
63350         * lib/atanl.c: Likewise.
63351         * lib/ceill.c: Likewise.
63352         * lib/cosl.c: Likewise.
63353         * lib/expl.c: Likewise.
63354         * lib/floorl.c: Likewise.
63355         * lib/frexpl.c: Likewise.
63356         * lib/ldexpl.c: Likewise.
63357         * lib/logl.c: Likewise.
63358         * lib/sincosl.c: Likewise.
63359         * lib/sinl.c: Likewise.
63360         * lib/sqrtl.c: Likewise.
63361         * lib/tanl.c: Likewise.
63362         * lib/trigl.c: Likewise.
63363         * m4/math_h.m4: New file.
63364         * MODULES.html.sh (Mathematics): Add math.
63365
63366 2007-02-17  Bruno Haible  <bruno@clisp.org>
63367
63368         * modules/wctype-tests: New file.
63369         * tests/test-wctype.c: New file.
63370
63371         * modules/wchar-tests: New file.
63372         * tests/test-wchar.c: New file.
63373
63374         * modules/unistd-tests: New file.
63375         * tests/test-unistd.c: New file.
63376
63377         * modules/time-tests: New file.
63378         * tests/test-time.c: New file.
63379
63380         * modules/sysexits-tests: New file.
63381         * tests/test-sysexits.c: New file.
63382
63383         * modules/sys_time-tests: New file.
63384         * tests/test-sys_time.c: New file.
63385
63386         * modules/sys_stat-tests: New file.
63387         * tests/test-sys_stat.c: New file.
63388
63389         * modules/sys_socket-tests: New file.
63390         * tests/test-sys_socket.c: New file.
63391
63392         * modules/sys_select-tests: New file.
63393         * tests/test-sys_select.c: New file.
63394
63395         * modules/string-tests: New file.
63396         * tests/test-string.c: New file.
63397
63398         * modules/stdbool-tests: New file.
63399         * tests/test-stdbool.c: New file.
63400
63401         * modules/netinet_in-tests: New file.
63402         * tests/test-netinet_in.c: New file.
63403
63404         * modules/inttypes-tests: New file.
63405         * tests/test-inttypes.c: New file.
63406
63407         * modules/fcntl-tests: New file.
63408         * tests/test-fcntl.c: New file.
63409
63410         * modules/byteswap-tests: New file.
63411         * tests/test-byteswap.c: New file.
63412
63413         * modules/arpa_inet-tests: New file.
63414         * tests/test-arpa_inet.c: New file.
63415
63416 2007-02-17  Bruno Haible  <bruno@clisp.org>
63417
63418         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63419         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63420         if the corresponding module is not enabled. Emit link warnings if
63421         the function is used nevertheless.
63422         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63423         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63424         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63425         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63426         * modules/inttypes (Depends-on): Add link-warning.
63427         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63428         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63429         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63430         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63431         * modules/imaxdiv (configure.ac): Likewise.
63432         * modules/strtoimax (configure.ac): Likewise.
63433         * modules/strtoumax (configure.ac): Likewise.
63434
63435 2007-02-17  Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63438         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63439         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63440         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63441
63442 2007-02-17  Bruno Haible  <bruno@clisp.org>
63443
63444         * modules/link-warning: New file.
63445         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63446         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63447         * modules/string (Depends-on): Add link-warning.
63448         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63449         string.h.
63450         * MODULES.html.sh (Support for building libraries and executables): Add
63451         link-warning.
63452
63453 2007-02-17  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63456         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63457         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63458         long lines.
63459
63460 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63461             Bruno Haible  <bruno@clisp.org>
63462
63463         * modules/tmpfile: New file.
63464         * lib/tmpfile.c: New file.
63465         * m4/tmpfile.m4: New file.
63466         * MODULES.html.sh (func_all_modules): New section "Input/output".
63467
63468 2007-02-15  Bruno Haible  <bruno@clisp.org>
63469
63470         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63471         (supports_delete_on_close): New function.
63472         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63473
63474 2007-02-14  Bruno Haible  <bruno@clisp.org>
63475
63476         * modules/mbspcasecmp-tests: New file.
63477         * tests/test-mbspcasecmp.sh: New file.
63478         * tests/test-mbspcasecmp.c: New file.
63479
63480         New module mbspcasecmp.
63481         * modules/mbspcasecmp: New file.
63482         * lib/mbspcasecmp.c: New file.
63483         * lib/string_.h (strncasecmp): Change warning message.
63484         (mbspcasecmp): New declaration.
63485         * m4/mbspcasecmp.m4: New file.
63486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63487         GNULIB_MBSPCASECMP.
63488         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63489         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63490
63491 2007-02-14  Bruno Haible  <bruno@clisp.org>
63492
63493         * modules/mbsncasecmp-tests: New file.
63494         * tests/test-mbsncasecmp.sh: New file.
63495         * tests/test-mbsncasecmp.c: New file.
63496
63497         New module mbsncasecmp.
63498         * modules/mbsncasecmp: New file.
63499         * lib/mbsncasecmp.c: New file.
63500         * lib/string_.h (mbsncasecmp): New declaration.
63501         * m4/mbsncasecmp.m4: New file.
63502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63503         GNULIB_MBSNCASECMP.
63504         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63505         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63506
63507 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63510         Verify that it doesn't overlap with our flags.
63511         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63512         do not have the desired effect in multibyte locales; instead, use
63513         mbscasecmp.
63514         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63515         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63516         we don't require GNU fnmatch ourselves (if our users require it, they
63517         should do so explicitly).
63518
63519         Fix regex code so it doesn't rely on strcasecmp.
63520         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63521         Otherwise, include gnulib's langinfo.h.
63522         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63523         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63524         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63525         * modules/regex (FILES): Remove m4/codeset.m4.
63526         (Depends-on): Add localcharset.  Remove strcase.
63527
63528 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63529
63530         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63531         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63532
63533 2007-02-13  Bruno Haible  <bruno@clisp.org>
63534
63535         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63536         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63537
63538 2007-02-12  Bruno Haible  <bruno@clisp.org>
63539
63540         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63541         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63542         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63543         time warning rather than a link error.
63544
63545 2007-02-12  Bruno Haible  <bruno@clisp.org>
63546
63547         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63550
63551 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63552
63553         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63554         args, not 2.
63555
63556 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63557
63558         New module 'time', so that apps can include <time.h> as per
63559         POSIX and GNU instead of separate include files like time_r.h
63560         and timegm.h.  This implementation tries out a simpler approach
63561         for replacing decls in standard include files (as compared to
63562         the string module), somewhat as an experiment.
63563
63564         * config/srclist.txt: Comment out mktime.c for now.
63565         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63566         since it doesn't apply any more.  Use generic wording instead.
63567         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63568         'time'.
63569         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63570         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63571         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63572         Don't include <sys/types.h>; no longer needed since we assume C89.
63573         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63574         * lib/strftime.c: Likewise.
63575         * lib/time_r.c: Likewise.
63576         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63577         * lib/nanosleep.c: Include <time.h> first, to check interface.
63578         * lib/strptime.c: Likewise.
63579         * lib/time_r.c: Likewise.
63580         * lib/timegm.c: Likewise.
63581         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63582         needed.
63583         * lib/timegm.c: Don't include timegm.h; no longer needed.
63584         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63585         time.h now handles any problems in that area.
63586         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63587         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63588         that time.h defines struct timespec.
63589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63590         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63591         handles that.
63592         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63593         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63594         needed.  Set REPLACE_LOCALTIME.
63595         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63596         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63597         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63598         nanosleep; time_h.m4 now does that.  Don't require
63599         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63600         module handles this now.
63601         * modules/getdate (Depends-on): Remove timespec.  Add time.
63602         * modules/nanosleep (Depends-on): Likewise.
63603         * modules/stat-time (Depends-on): Likewise.
63604         * modules/nanosleep (Include): Include time.h, not timespec.h.
63605         * modules/strptime (Files): Remove lib/strptime.h.
63606         (Depends-on): Add extensions, time.
63607         (Include): Include time.h, not strptime.h.
63608         * modules/time_r (Files): Remove lib/time_r.h.
63609         (Depends-on): Add time.
63610         (Include): Include time.h, not time_r.h.
63611         * modules/timegm: Likewise.
63612         * modules/timespec (Description): Now does timespec-related decls
63613         of our own, instead of struct timespec itself.
63614         (Depends-on): Add time; remove extensions.
63615         (Maintainer): Add self.
63616         * modules/utimecmp (Depends-on): Add time; remove timespec.
63617         * modules/utimens (Depends-on): Likewise.
63618         * modules/xnanosleep (Depends-on): Likewise.
63619
63620 2007-02-11  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/c-strstr.c: Include allocsa.h.
63623         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63624         * lib/c-strcasestr.c: Include allocsa.h.
63625         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63626         * lib/strcasestr.c: Include allocsa.h.
63627         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63628         * lib/mbsstr.c: Include allocsa.h.
63629         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63630         allocsa/freesa instead of malloc/free.
63631         * lib/mbscasestr.c: Include allocsa.h.
63632         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63633         allocsa/freesa instead of malloc/free.
63634         * modules/c-strstr (Depends-on): Add allocsa.
63635         * modules/c-strcasestr (Depends-on): Likewise.
63636         * modules/strcasestr (Depends-on): Likewise.
63637         * modules/mbsstr (Depends-on): Likewise.
63638         * modules/mbscasestr (Depends-on): Likewise.
63639
63640 2007-02-11  Bruno Haible  <bruno@clisp.org>
63641
63642         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63643
63644         * modules/mbsspn-tests: New file.
63645         * tests/test-mbsspn.sh: New file.
63646         * tests/test-mbsspn.c: New file.
63647
63648 2007-02-11  Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63651
63652         * modules/mbspbrk-tests: New file.
63653         * tests/test-mbspbrk.sh: New file.
63654         * tests/test-mbspbrk.c: New file.
63655
63656 2007-02-11  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63659         unneeded cast.
63660
63661         * modules/mbscspn-tests: New file.
63662         * tests/test-mbscspn.sh: New file.
63663         * tests/test-mbscspn.c: New file.
63664
63665 2007-02-11  Bruno Haible  <bruno@clisp.org>
63666
63667         * modules/mbscasecmp-tests: New file.
63668         * tests/test-mbscasecmp.sh: New file.
63669         * tests/test-mbscasecmp.c: New file.
63670
63671 2007-02-11  Bruno Haible  <bruno@clisp.org>
63672
63673         Ensure O(n) worst-case complexity of mbscasestr.
63674         * lib/mbscasestr.c: Include stdbool.h.
63675         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63676         functions.
63677         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63678         the bookkeeping indicates that it's worth it.
63679         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63680
63681         * modules/mbscasestr-tests: New file.
63682         * tests/test-mbscasestr1.c: New file.
63683         * tests/test-mbscasestr2.sh: New file.
63684         * tests/test-mbscasestr2.c: New file.
63685         * tests/test-mbscasestr3.sh: New file.
63686         * tests/test-mbscasestr3.c: New file.
63687         * tests/test-mbscasestr4.sh: New file.
63688         * tests/test-mbscasestr4.c: New file.
63689         * m4/locale-tr.m4: New file.
63690
63691 2007-02-11  Bruno Haible  <bruno@clisp.org>
63692
63693         Ensure O(n) worst-case complexity of mbsstr.
63694         * lib/mbsstr.c: Include stdbool.h.
63695         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63696         functions.
63697         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63698         bookkeeping indicates that it's worth it.
63699         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63700
63701         * modules/mbsstr-tests: New file.
63702         * tests/test-mbsstr1.c: New file.
63703         * tests/test-mbsstr2.sh: New file.
63704         * tests/test-mbsstr2.c: New file.
63705         * tests/test-mbsstr3.sh: New file.
63706         * tests/test-mbsstr3.c: New file.
63707         * m4/locale-fr.m4: New file.
63708
63709 2007-02-11  Bruno Haible  <bruno@clisp.org>
63710
63711         * lib/mbsrchr.c (mbsrchr): Fix bug.
63712
63713         * modules/mbsrchr-tests: New file.
63714         * tests/test-mbsrchr.sh: New file.
63715         * tests/test-mbsrchr.c: New file.
63716
63717 2007-02-11  Bruno Haible  <bruno@clisp.org>
63718
63719         * lib/mbschr.c (mbschr): Fix bug.
63720
63721         * modules/mbschr-tests: New file.
63722         * tests/test-mbschr.sh: New file.
63723         * tests/test-mbschr.c: New file.
63724         * m4/locale-zh.m4: New file.
63725
63726 2007-02-11  Bruno Haible  <bruno@clisp.org>
63727
63728         Support for copying multibyte string iterators.
63729         * lib/mbiter.h: Include <string.h>.
63730         (mbiter_multi_copy): New function.
63731         (mbi_copy): New macro.
63732         * lib/mbuiter.h: Include <string.h>.
63733         (mbuiter_multi_copy): New function.
63734         (mbui_copy): New macro.
63735
63736 2007-02-11  Bruno Haible  <bruno@clisp.org>
63737
63738         New module mbslen.
63739         * modules/mbslen: New file.
63740         * lib/mbslen.c: New file.
63741         * lib/string_.h (mbslen): New declaration.
63742         * m4/mbslen.m4: New file.
63743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63744         GNULIB_MBSLEN.
63745         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63746         * MODULES.html.sh (Internationalization functions): Add mbslen.
63747
63748 2007-02-11  Bruno Haible  <bruno@clisp.org>
63749
63750         Ensure O(n) worst-case complexity of strcasestr substitute.
63751         * lib/strcasestr.c: Include stdbool.h.
63752         (knuth_morris_pratt): New function.
63753         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63754         bookkeeping indicates that it's worth it.
63755         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63756
63757         * modules/strcasestr-tests: New file.
63758         * tests/test-strcasestr.c: New file.
63759
63760 2007-02-11  Bruno Haible  <bruno@clisp.org>
63761
63762         Ensure O(n) worst-case complexity of c_strcasestr.
63763         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63764         (knuth_morris_pratt): New function.
63765         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63766         the bookkeeping indicates that it's worth it.
63767         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63768
63769         * modules/c-strcasestr-tests: New file.
63770         * tests/test-c-strcasestr.c: New file.
63771
63772 2007-02-11  Bruno Haible  <bruno@clisp.org>
63773
63774         Ensure O(n) worst-case complexity of c_strstr.
63775         * lib/c-strstr.c: Include stdbool.h, string.h.
63776         (knuth_morris_pratt): New function.
63777         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63778         bookkeeping indicates that it's worth it.
63779         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63780
63781         * lib/c-strstr.c: Complete rewrite for maintainability.
63782
63783         * modules/c-strstr-tests: New file.
63784         * tests/test-c-strstr.c: New file.
63785
63786 2007-02-11  Bruno Haible  <bruno@clisp.org>
63787
63788         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63789         5.2.1 and earlier, whereby \055 was treated just like the range
63790         delimiter '-'.
63791         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63792
63793 2007-02-08  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/regex (Depends-on): Add stdbool.
63796         Reported by Dalibor Topic <robilad@kaffe.org>.
63797
63798 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63799
63800         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63801         Prefer returning from main to exiting from it.
63802         Remove unnecessary parens after sizeof.
63803
63804 2007-02-05  Bruno Haible  <bruno@clisp.org>
63805
63806         New module mbssep.
63807         * modules/mbssep: New file.
63808         * lib/mbssep.c: New file.
63809         * lib/string_.h (strsep): Add a conditional link warning.
63810         (mbssep): New declaration.
63811         * m4/mbssep.m4: New file.
63812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63813         GNULIB_MBSSEP.
63814         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63815         * MODULES.html.sh (Internationalization functions): Add mbssep.
63816
63817 2007-02-05  Bruno Haible  <bruno@clisp.org>
63818
63819         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63820         Optimize search in case of 1 delimiter.
63821
63822 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63823
63824         * lib/acl.h: Include sys/types.h before sys/acl.h.
63825
63826 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63827
63828         Merge upstream fix for glibc bugzilla #3957:
63829
63830         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63831
63832         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63833         bit for RE_HAT_LISTS_NOT_NEWLINE.
63834         (build_charclass_op): Remove bogus comment.
63835
63836 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63837
63838         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63839
63840 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63841
63842         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63843         * lib/memmem.c [!defined _LIBC]: Include config.h.
63844
63845 2007-02-04  Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63848         warning message.
63849
63850 2007-02-04  Bruno Haible  <bruno@clisp.org>
63851
63852         New module mbstok_r.
63853         * modules/mbstok_r: New file.
63854         * lib/mbstok_r.c: New file.
63855         * lib/string_.h (strtok_r): Change argument names to match the
63856         comments. Add a conditional link warning.
63857         (mbstok_r): New declaration.
63858         * m4/mbstok_r.m4: New file.
63859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63860         GNULIB_MBSTOK_R.
63861         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63862         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63863
63864 2007-02-04  Bruno Haible  <bruno@clisp.org>
63865
63866         New module mbsspn.
63867         * modules/mbsspn: New file.
63868         * lib/mbsspn.c: New file.
63869         * lib/string_.h (strspn): Add a conditional link warning.
63870         (mbsspn): New declaration.
63871         * m4/mbsspn.m4: New file.
63872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63873         GNULIB_MBSSPN.
63874         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63875         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63876
63877 2007-02-04  Bruno Haible  <bruno@clisp.org>
63878
63879         New module mbspbrk.
63880         * modules/mbspbrk: New file.
63881         * lib/mbspbrk.c: New file.
63882         * lib/string_.h (strpbrk): Add a conditional link warning.
63883         (mbspbrk): New declaration.
63884         * m4/mbspbrk.m4: New file.
63885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63886         GNULIB_MBSPBRK.
63887         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63888         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63889
63890 2007-02-04  Bruno Haible  <bruno@clisp.org>
63891
63892         New module mbscspn.
63893         * modules/mbscspn: New file.
63894         * lib/mbscspn.c: New file.
63895         * lib/string_.h (strcspn): Add a conditional link warning.
63896         (mbscspn): New declaration.
63897         * m4/mbscspn.m4: New file.
63898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63899         GNULIB_MBSCSPN.
63900         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63901         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63902
63903 2007-02-04  Bruno Haible  <bruno@clisp.org>
63904
63905         New module mbscasestr, reduced goal of strcasestr.
63906         * modules/mbscasestr: New file.
63907         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63908         (mbscasestr): Renamed from strcasestr.
63909         * lib/strcasestr.c: Don't include mbuiter.h.
63910         (strcasestr): Remove support for multibyte locales.
63911         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63912         Change the conditional link warning.
63913         (mbscasestr): New declaration.
63914         * m4/mbscasestr.m4: New file.
63915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63916         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63917         REPLACE_STRCASESTR.
63918         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63920         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63921         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63922         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63923         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63924         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63925         (Depends-on): Remove mbuiter.
63926         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63927
63928 2007-02-04  Bruno Haible  <bruno@clisp.org>
63929
63930         Simplify handling of strncasecmp.
63931         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63932         the conditional link warning.
63933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63934         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63935         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63936         * modules/strcase (configure.ac): Don't invoke
63937         gl_STRING_MODULE_INDICATOR.
63938         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63939
63940 2007-02-04  Bruno Haible  <bruno@clisp.org>
63941
63942         New module mbscasecmp, reduced goal of strcasecmp.
63943         * modules/mbscasecmp: New file.
63944         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63945         (mbscasecmp): Renamed from strcasecmp.
63946         * lib/strcasecmp.c: Don't include mbuiter.h.
63947         (strcasecmp): Remove support for multibyte locales.
63948         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63949         Change the conditional link warning.
63950         (mbscasecmp): New declaration.
63951         * m4/mbscasecmp.m4: New file.
63952         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63953         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63954         REPLACE_STRCASECMP.
63955         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63957         GNULIB_MBSCASECMP.
63958         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63959         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63960         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63961         (Depends-on): Remove mbuiter.
63962         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63963
63964 2007-02-04  Bruno Haible  <bruno@clisp.org>
63965
63966         New module mbsstr. Remove module strstr.
63967         * modules/mbsstr: New file.
63968         * modules/strstr: Remove file.
63969         * lib/mbsstr.c: Renamed from lib/strstr.c.
63970         (mbsstr): Renamed from strstr.
63971         * lib/string_.h (strstr): Remove declaration. Change the conditional
63972         link warning.
63973         (mbsstr): New declaration.
63974         * m4/mbsstr.m4: New file.
63975         * m4/strstr.m4: Remove file.
63976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63977         REPLACE_STRSTR.
63978         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63979         Don't initialize GNULIB_STRSTR.
63980         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63981         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63982         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63983         (Support for systems lacking ANSI C 89): Remove strstr.
63984
63985 2007-02-04  Bruno Haible  <bruno@clisp.org>
63986
63987         New module mbsrchr.
63988         * modules/mbsrchr: New file.
63989         * lib/mbsrchr.c: New file.
63990         * lib/string_.h (strrchr): Add a conditional link warning.
63991         (mbsrchr): New declaration.
63992         * m4/mbsrchr.m4: New file.
63993         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63994         GNULIB_MBSRCHR.
63995         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63996         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63997
63998 2007-02-04  Bruno Haible  <bruno@clisp.org>
63999
64000         New module mbschr.
64001         * modules/mbschr: New file.
64002         * lib/mbschr.c: New file.
64003         * lib/string_.h (strchr): Add a conditional link warning.
64004         (mbschr): New declaration.
64005         * m4/mbschr.m4: New file.
64006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64007         GNULIB_MBSCHR.
64008         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64009         * MODULES.html.sh (Internationalization functions): Add mbschr.
64010
64011 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64014
64015         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64016
64017 2007-02-04  Bruno Haible  <bruno@clisp.org>
64018
64019         New module description section 'configure.ac-early'.
64020         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64021         (func_get_autoconf_early_snippet): New function.
64022         (func_import, func_create_testdir): Use it. Remove special cases for
64023         modules 'extensions' and 'lock'.
64024         * modules/extensions (configure.ac-early): Require
64025         gl_USE_SYSTEM_EXTENSIONS.
64026         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64027
64028 2007-02-04  Bruno Haible  <bruno@clisp.org>
64029
64030         Make use of gcj-4.3's -fsource and -ftarget option.
64031         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64032         and if so try the options -fsource and -ftarget.
64033         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64034         source_version, ftarget_option, target_version arguments.
64035         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64036         (is_envjavac_oldgcj_14_14_usable): Renamed from
64037         is_envjavac_gcj_14_14_usable.
64038         (is_envjavac_oldgcj_14_13_usable): Renamed from
64039         is_envjavac_gcj_14_13_usable.
64040         (is_gcj_present): Update.
64041         (is_gcj_43, is_gcj43_usable): New functions.
64042         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64043         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64044         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64045         try the options -fsource and -ftarget.
64046
64047 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64048
64049         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64050         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64051         larger value.
64052
64053 2007-02-03  Jim Meyering  <jim@meyering.net>
64054
64055         Give tools a better chance to allocate space for very large buffers.
64056         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64057
64058         Make pwd and readlink work also when run with an unreadable parent dir
64059         on systems with openat support.
64060         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64061         provided getcwd function, even when we have openat support.
64062         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64063
64064 2007-02-02  Bruno Haible  <bruno@clisp.org>
64065
64066         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64067         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64068         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64069         portability problems if one of these functions is only used on specific
64070         platforms.
64071         Reported by Paul Eggert.
64072
64073 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64074
64075         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64076         is causing more trouble than it's curing.
64077         * lib/regex_internal.h (__mempcpy): Remove.
64078         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64079         (and make the code a tad smaller to boot).
64080         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64081
64082 2007-02-02  Jim Meyering  <jim@meyering.net>
64083
64084         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64085         section, not in the Makefile.am: one.
64086
64087 2007-02-02  Eric Blake  <ebb9@byu.net>
64088
64089         * lib/strchrnul.c: Always include config.h first.
64090
64091         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64092         gnulib strstr is not necessary here.
64093
64094 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64095
64096         * m4/socklen.m4: Fix typo.
64097
64098 2007-02-02  Eric Blake  <ebb9@byu.net>
64099
64100         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64101         * modules/netinet_in (Makefile.am): Likewise.
64102
64103 2007-02-01  Bruno Haible  <bruno@clisp.org>
64104
64105         * lib/string_.h (GL_LINK_WARNING): New macro.
64106         (strcasecmp, strstr, strcasestr): If provided by the system,
64107         conditionally define as a macro that leads to a warning instead of to
64108         an error.
64109         (strncasecmp): Conditionally define as a macro that leads to a warning.
64110
64111 2007-02-01  Karl Berry  <karl@gnu.org>
64112
64113         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64114
64115 2007-02-01  Bruno Haible  <bruno@clisp.org>
64116
64117         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64118         renamings.
64119
64120 2007-02-01  Eric Blake  <ebb9@byu.net>
64121
64122         * modules/regex (Depends-on): Revert dependence on mempcpy.
64123         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64124         module's definition of mempcpy.
64125         Reported by Paul Eggert.
64126
64127 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64130         the symbol XYZ before redefining it.  This fixes a problem with
64131         programs that don't use XYZ, when compiled on systems that define
64132         XYZ to something else.
64133
64134 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64137         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64138         writeable to group or other and (2) is intended to have a special
64139         mode bit that is set or cleared.  In such a case, the directory
64140         should be neither group- nor other-writeable until the special
64141         mode bits are right.
64142
64143 2007-01-31  Eric Blake  <ebb9@byu.net>
64144
64145         * modules/mountlist (Depends-on): Add strstr.
64146
64147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64148         bug.
64149         * modules/string (Makefile.am): Remove redundant replacement.
64150         * modules/regex (Depends-on): Add mempcpy.
64151
64152 2007-01-31  Bruno Haible  <bruno@clisp.org>
64153
64154         New module description field 'Link'.
64155         * gnulib-tool (func_usage): Document --extract-link-directive.
64156         (sed_extract_prog): Recognize 'Link' directive.
64157         (func_get_link_directive): New function.
64158         (func_import): Show summary of link directives.
64159         Handle --extract-link-directive option.
64160         * modules/acl (Link): New section.
64161         * modules/clock-time (Link): New section.
64162         * modules/euidaccess (Link): New section.
64163         * modules/gettext (Link): New section.
64164         * modules/iconv (Link): New section.
64165         * modules/lock (Link): New section.
64166         * modules/nanosleep (Link): New section.
64167         * modules/readline (Link): New section.
64168
64169 2007-01-27  Bruno Haible  <bruno@clisp.org>
64170
64171         Enforce the use of gnulib modules for unportable <string.h> functions.
64172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64173         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64174         (gl_HEADER_STRING_H_BODY): Require it.
64175         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64176         the symbol XYZ to one that gives a link error.
64177         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64178         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64179         * modules/mempcpy (configure.ac): Likewise.
64180         * modules/memrchr (configure.ac): Likewise.
64181         * modules/stpcpy (configure.ac): Likewise.
64182         * modules/stpncpy (configure.ac): Likewise.
64183         * modules/strcase (configure.ac): Likewise.
64184         * modules/strcasestr (configure.ac): Likewise.
64185         * modules/strchrnul (configure.ac): Likewise.
64186         * modules/strdup (configure.ac): Likewise.
64187         * modules/strndup (configure.ac): Likewise.
64188         * modules/strnlen (configure.ac): Likewise.
64189         * modules/strpbrk (configure.ac): Likewise.
64190         * modules/strsep (configure.ac): Likewise.
64191         * modules/strstr (configure.ac): Likewise.
64192         * modules/strtok_r (configure.ac): Likewise.
64193
64194 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64195
64196         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64197
64198 2007-01-30  Jim Meyering  <jim@meyering.net>
64199
64200         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64201
64202 2007-01-29  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64205         * lib/execute.c: Likewise.
64206         * lib/pipe.c: Likewise.
64207         * lib/printf-args.h: Likewise.
64208         * lib/printf-args.c: Likewise.
64209         * lib/printf-parse.c: Likewise.
64210         * lib/vasnprintf.c: Likewise.
64211
64212 2007-01-29  Eric Blake  <ebb9@byu.net>
64213
64214         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64215         declaration.
64216
64217 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64218
64219         * lib/strptime.h (strptime): Use 'restrict' for args where
64220         POSIX requires this.
64221         * lib/strptime.c (strptime): Likewise.
64222         Change license notice from LGPL to GPL, since gnulib-tool will
64223         change this as needed.
64224         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64225         defined.
64226         Include "strptime.h" first, to check interface.
64227         Do not #undef _LIBC and _NL_CURRENT.
64228         Do not include <stdlib.h>; no longer needed.
64229         Include "time_r.h" and declare ptime_locale_status
64230         only if _LIBC is not defined.
64231         (__P): Remove unused macro.
64232         (match_string): Bring back glibc version, but use it only if _LIBC
64233         is defined.
64234         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64235         Remove unnecessary assertion and abort() call.
64236         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64237         * m4/strptime.m4: Fix serial number comment.
64238         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64239         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64240         (Depends-on): Add time_r.
64241
64242 2007-01-29  Bruno Haible  <bruno@clisp.org>
64243
64244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64245         strptime.
64246         * modules/strptime (Depends-on): Add stdbool.
64247         * lib/strptime.h: Include <time.h> always. Add comments.
64248
64249 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64250
64251         * modules/strptime: New file.
64252         * lib/strptime.h: New file.
64253         * lib/strptime.c: New file.
64254         * m4/strptime.m4: New file.
64255
64256 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * MODULES.html.sh: New module mpsort.
64259         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64260
64261         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64262         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64264         All uses changed.
64265         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64266         All uses changed.
64267         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64268         to _Restrict_.
64269         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64270         the parameter matches the prototype.
64271
64272 2007-01-28  Jim Meyering  <jim@meyering.net>
64273
64274         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64275         sys/time.h here, reverting that part of the previous patch:
64276         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64277
64278 2007-01-28  Bruno Haible  <bruno@clisp.org>
64279
64280         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64281         value of $(SYS_TIME_H).
64282         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64283         remove it conditionally, too. [added by Jim Meyering]
64284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64285         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64286         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64287         GETTIMEOFDAY_REPLACEMENT to 1.
64288
64289 2007-01-28  Bruno Haible  <bruno@clisp.org>
64290
64291         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64292         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64294         Set UNISTD_H instead of UNISTD_H2.
64295         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64296
64297 2007-01-28  Bruno Haible  <bruno@clisp.org>
64298
64299         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64300         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64301
64302 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64303
64304         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64305         (func_create_testdir): Ensure C locale for `grep' and `tr'
64306         character ranges.
64307         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64308         ACLOCAL_AMFLAGS parsing state machine.
64309
64310 2007-01-27  Bruno Haible  <bruno@clisp.org>
64311
64312         * modules/unistr/base: Update.
64313
64314 2007-01-27  Bruno Haible  <bruno@clisp.org>
64315
64316         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64317         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64318         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64319         modules/unistr/u32-mbtouc.
64320         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64321         * lib/unistr.h: Update.
64322         * lib/linebreak.c: Update.
64323         * modules/unistr/u32-mbtouc: Renamed from
64324         modules/unistr/u32-mbtouc-safe.
64325         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64326         * lib/unistr.h: Update.
64327         * lib/unistr/u32-to-u8.c: Update.
64328         * lib/unistr/u32-to-u16.c: Update.
64329
64330 2007-01-27  Bruno Haible  <bruno@clisp.org>
64331
64332         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64333         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64334         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64335         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64336         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64337         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64338         modules/unistr/u16-mbtouc.
64339         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64340         * lib/unistr.h: Update.
64341         * lib/linebreak.c: Update.
64342         * modules/linebreak: Update.
64343         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64344         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64345         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64346         * modules/unistr/u16-mbtouc: Renamed from
64347         modules/unistr/u16-mbtouc-safe.
64348         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64349         * lib/unistr.h: Update.
64350         * lib/unistr/u16-to-u8.c: Update.
64351         * modules/unistr/u16-to-u8: Update.
64352         * lib/unistr/u16-to-u32.c: Update.
64353         * modules/unistr/u16-to-u32: Update.
64354
64355 2007-01-27  Bruno Haible  <bruno@clisp.org>
64356
64357         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64358         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64359         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64360         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64361         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64362         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64363         modules/unistr/u8-mbtouc.
64364         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64365         * lib/unistr.h: Update.
64366         * lib/striconveh.c: Update.
64367         * modules/striconveh: Update.
64368         * lib/linebreak.c: Update.
64369         * modules/linebreak: Update.
64370         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64371         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64372         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64373         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64374         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64375         * lib/unistr.h: Update.
64376         * lib/striconveh.c: Update.
64377         * modules/striconveh: Update.
64378         * lib/unistr/u8-to-u16.c: Update.
64379         * modules/unistr/u8-to-u16: Update.
64380         * lib/unistr/u8-to-u32.c: Update.
64381         * modules/unistr/u8-to-u32: Update.
64382
64383 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64384
64385         Sync from Libtool.
64386         * lib/argz.c: Do not include strings.h nor memory.h, include
64387         string.h unconditionally.  Patch by Simon Josefsson.
64388
64389 2007-01-27  Bruno Haible  <bruno@clisp.org>
64390
64391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64392         from gl_HEADER_STRING_H_BODY.
64393         (gl_HEADER_STRING_H_BODY): Require it.
64394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64395         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64396         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64397         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64398         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64399         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64402         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64404         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64405         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64406         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64407         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64409
64410 2007-01-27  Bruno Haible  <bruno@clisp.org>
64411
64412         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64413         check_PROGRAMS into noinst_PROGRAMS.
64414         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64415         check_PROGRAMS in this case.
64416         (func_import): Set for_test to false.
64417         (func_create_testdir): Set for_test to true.
64418
64419 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64420             Bruno Haible  <bruno@clisp.org>
64421
64422         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64423         (Depends-on): Add string.
64424         (Includes): Use <string.h> instead of strcasestr.h.
64425         * modules/string (Makefile.am): Also substitute the value of
64426         REPLACE_STRCASESTR.
64427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64428         assume strcasestr is declared in <string.h> not <strings.h>. Also
64429         set REPLACE_STRCASESTR.
64430         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64431         REPLACE_STRCASESTR.
64432         * lib/strcasestr.h: Remove file.
64433         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64434         * lib/string_.h (strcasestr): New declaration.
64435
64436 2007-01-27  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/string_.h: Use 'extern'.
64439
64440 2007-01-27  Jim Meyering  <jim@meyering.net>
64441
64442         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64443         of set-but-not-used local, "q".
64444
64445         * lib/mempcpy.c: Include <config.h> before <string.h>.
64446         This fixes a compilation error on HP-UX, due to the system's
64447         "restrict"-using mempcpy prototype.
64448
64449 2007-01-26  Bruno Haible  <bruno@clisp.org>
64450
64451         Small optimization.
64452         * lib/javacomp.c: Include c-strstr.h.
64453          (is_envjavac_gcj): Use c_strstr instead of strstr.
64454         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64455
64456 2007-01-26  Bruno Haible  <bruno@clisp.org>
64457
64458         * MODULES.html.sh (Unicode string functions): Add the new modules.
64459
64460         * modules/uniconv/u32-strconv-to-locale: New file.
64461         * lib/uniconv/u32-strconv-to-locale.c: New file.
64462
64463         * modules/uniconv/u16-strconv-to-locale: New file.
64464         * lib/uniconv/u16-strconv-to-locale.c: New file.
64465
64466         * modules/uniconv/u8-strconv-to-locale: New file.
64467         * lib/uniconv/u8-strconv-to-locale.c: New file.
64468
64469         * modules/uniconv/u32-strconv-from-locale: New file.
64470         * lib/uniconv/u32-strconv-from-locale.c: New file.
64471
64472         * modules/uniconv/u16-strconv-from-locale: New file.
64473         * lib/uniconv/u16-strconv-from-locale.c: New file.
64474
64475         * modules/uniconv/u8-strconv-from-locale: New file.
64476         * lib/uniconv/u8-strconv-from-locale.c: New file.
64477
64478         * modules/uniconv/u32-strconv-to-enc: New file.
64479         * lib/uniconv/u32-strconv-to-enc.c: New file.
64480         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64481         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64482
64483         * modules/uniconv/u16-strconv-to-enc: New file.
64484         * lib/uniconv/u16-strconv-to-enc.c: New file.
64485         * lib/uniconv/u-strconv-to-enc.h: New file.
64486         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64487         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64488
64489         * modules/uniconv/u8-strconv-to-enc: New file.
64490         * lib/uniconv/u8-strconv-to-enc.c: New file.
64491         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64492         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64493
64494         * modules/uniconv/u32-strconv-from-enc: New file.
64495         * lib/uniconv/u32-strconv-from-enc.c: New file.
64496         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64497         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64498
64499         * modules/uniconv/u16-strconv-from-enc: New file.
64500         * lib/uniconv/u16-strconv-from-enc.c: New file.
64501         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64502         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64503
64504         * modules/uniconv/u8-strconv-from-enc: New file.
64505         * lib/uniconv/u8-strconv-from-enc.c: New file.
64506         * lib/uniconv/u-strconv-from-enc.h: New file.
64507         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64508         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64509
64510         * modules/uniconv/u32-conv-from-enc: New file.
64511         * lib/uniconv/u32-conv-from-enc.c: New file.
64512         * modules/uniconv/u32-conv-from-enc-tests: New file.
64513         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64514
64515         * modules/uniconv/u16-conv-from-enc: New file.
64516         * lib/uniconv/u16-conv-from-enc.c: New file.
64517         * lib/uniconv/u-conv-from-enc.h: New file.
64518         * modules/uniconv/u16-conv-from-enc-tests: New file.
64519         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64520
64521         * modules/uniconv/u8-conv-from-enc: New file.
64522         * lib/uniconv/u8-conv-from-enc.c: New file.
64523         * modules/uniconv/u8-conv-from-enc-tests: New file.
64524         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64525
64526         * modules/uniconv/base: New file.
64527         * lib/uniconv.h: New file.
64528
64529 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64530
64531         * doc/gnulib-tool.texi (Initial import): Update to match current
64532         behavior with strdup module.
64533         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64534         * lib/memmem.h: Remove; all uses removed.  This is now done
64535         by <string.h>.
64536         * lib/mempcpy.h: Likewise.
64537         * lib/memrchr.h: Likewise.
64538         * lib/stpcpy.h: Likewise.
64539         * lib/stpncpy.h: Likewise.
64540         * lib/strcase.h: Likewise.
64541         * lib/strchrnul.h: Likewise.
64542         * lib/strdup.h: Likewise.
64543         * lib/strndup.h: Likewise.
64544         * lib/strnlen.h: Likewise.
64545         * lib/strpbrk.h: Likewise.
64546         * lib/strsep.h: Likewise.
64547         * lib/strstr.h: Likewise.
64548         * lib/strtok_r.h: Likewise.
64549         * lib/string_.h: New file.
64550         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64551         Rely on <string.h> instead.
64552         * lib/canon-host.c: Likewise.
64553         * lib/chdir-long.c: Likewise.
64554         * lib/concatpath.c: Likewise.
64555         * lib/exclude.c: Likewise.
64556         * lib/fchdir.c: Likewise.
64557         * lib/getaddrinfo.c: Likewise.
64558         * lib/getcwd.c: Likewise.
64559         * lib/getsubopt.c: Likewise.
64560         * lib/glob.c: Likewise.
64561         * lib/hard-locale.c: Likewise.
64562         * lib/iconvme.c: Likewise.
64563         * lib/javacomp.c: Likewise.
64564         * lib/mempcpy.c: Likewise.
64565         * lib/memrchr.c: Likewise.
64566         * lib/regex_internal.h: Likewise.
64567         * lib/stpncpy.c: Likewise.
64568         * lib/strcasecmp.c: Likewise.
64569         * lib/strchrnul.c: Likewise.
64570         * lib/strdup.c: Likewise.
64571         * lib/striconv.c: Likewise.
64572         * lib/striconveh.c: Likewise.
64573         * lib/striconveha.c: Likewise.
64574         * lib/strncasecmp.c: Likewise.
64575         * lib/strndup.c: Likewise.
64576         * lib/strnlen.c: Likewise.
64577         * lib/strsep.c: Likewise.
64578         * lib/strstr.c: Likewise.
64579         * lib/strtok_r.c: Likewise.
64580         * lib/userspec.c: Likewise.
64581         * lib/w32spawn.h: Likewise.
64582         * lib/xstrndup.c: Likewise.
64583         * lib/mountlist.c (strstr): Remove decl.
64584         * m4/string_h.m4: New file.
64585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64586         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64587         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64588         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64589         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64590         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64591         Set REPLACE_STRCASECMP if necessary.
64592         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64593         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64594         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64595         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64596         HAVE_DECL_STRDUP if necessary.
64597         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64598         since gl_FUNC_STRNDUP does that now.
64599         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64600         Check for decl here...
64601         (gl_PREREQ_STRNLEN): ... not here.
64602         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64603         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64604         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64605         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64606         necessary.
64607         * modules/string: New file.
64608         * modules/memmem (Files): Remove special-purpose include file.
64609         (Depends-on): Add string.
64610         (Include): Include <string.h>, not the removed file.
64611         * modules/mempcpy: Likewise.
64612         * modules/memrchr: Likewise.
64613         * modules/stpcpy: Likewise.
64614         * modules/stpncpy: Likewise.
64615         * modules/strcase: Likewise.
64616         * modules/strchrnul: Likewise.
64617         * modules/strdup: Likewise.
64618         * modules/strndup: Likewise.
64619         * modules/strnlen: Likewise.
64620         * modules/strpbrk: Likewise.
64621         * modules/strsep: Likewise.
64622         * modules/strstr: Likewise.
64623         * modules/strtok_r: Likewise.
64624         * tests/test-dirname.c: Don't include "strdup.h", since
64625         <string.h> now suffices.
64626         * tests/test-memmem.c: Don't include "memmem.h", since
64627         <string.h> now suffices.
64628
64629 2007-01-25  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64632         *resultp is 0.
64633
64634         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64635         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64636         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64637         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64638
64639         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64640         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64641         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64642         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64643         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64644         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64645
64646 2007-01-24  Bruno Haible  <bruno@clisp.org>
64647
64648         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64650         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64651         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64652         gl_FUNC_FTS_CORE.
64653         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64654         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64655         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64656         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64657         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64658         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64659         gl_FUNC_FCHOWNAT.
64660         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64661         gl_FUNC_STRFTIME.
64662         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64663         Reported by Ralf Wildenhues.
64664
64665 2007-01-24  Bruno Haible  <bruno@clisp.org>
64666
64667         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64668         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64669         gl_GETADDRINFO.
64670         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64671         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64672         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64673
64674 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64677         Don't use 'exit'; just return from 'main'.
64678         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64679
64680         * lib/fnmatch_.h: Readjust white space and comments to match
64681         glibc, to avoid spurious diffs.
64682
64683 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64686         2004-12-01 change by Jakub Jelinek, since this code won't compile
64687         if !LIBC.  Problem reported by Bob Proulx.
64688
64689 2007-01-23  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/striconveh.c: Include c-strcaseeq.h.
64692         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64693         * modules/striconveh (Depends-on): Add c-strcaseeq.
64694
64695 2007-01-23  Bruno Haible  <bruno@clisp.org>
64696
64697         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64698
64699         * modules/c-strcaseeq: New file.
64700         * lib/c-strcaseeq.h: New file.
64701
64702         * modules/streq: New file.
64703         * lib/streq.h: New file.
64704
64705 2007-01-23  Bruno Haible  <bruno@clisp.org>
64706
64707         * modules/striconveha-tests: New file.
64708         * tests/test-striconveha.c: New file.
64709
64710         * lib/striconveha.h: Include <stdbool.h>.
64711         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64712         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64713         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64714         (mem_iconveha): New function.
64715         (str_iconveha_notranslit): Renamed from str_iconveha.
64716         (str_iconveha): New function.
64717         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64718         c-strcase.
64719
64720 2007-01-23  Bruno Haible  <bruno@clisp.org>
64721
64722         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64723         encodings without forgiving before trying any encoding with handler.
64724         (str_iconveha): Try all encodings without forgiving before trying any
64725         encoding with handler.
64726
64727 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         Import the following changes from libc.
64730
64731         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64732
64733         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64734
64735         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64736
64737         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64738         normal_bracket label.
64739
64740         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64741
64742         [BZ #361]
64743         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64744         to normal_bracket after fetching the next character.
64745
64746 2007-01-22  Bruno Haible  <bruno@clisp.org>
64747
64748         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64749         argument.
64750         * lib/striconveh.c (iconv_carefully_1): New function.
64751         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64752         argument.
64753         (str_cd_iconveh): Update.
64754         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64755         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64756         * tests/test-striconveh.c (MAGIC): New macro.
64757         (new_offsets): New function.
64758         (main): Test call with and without offsets.
64759
64760 2007-01-22  Bruno Haible  <bruno@clisp.org>
64761
64762         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64763         * modules/sys_select (Makefile.am): Likewise.
64764         * modules/sys_socket (Makefile.am): Likewise.
64765         * modules/sys_time (Makefile.am): Likewise.
64766
64767 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64768
64769         * modules/gettimeofday (License): Change from GPL to LGPL, since
64770         gettimeofday is a library function.
64771
64772 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64773
64774         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64775
64776 2007-01-21  Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64779
64780 2007-01-21  Bruno Haible  <bruno@clisp.org>
64781
64782         * modules/striconveha: New file.
64783         * lib/striconveha.h: New file.
64784         * lib/striconveha.c: New file.
64785         * MODULES.html.sh (Internationalization functions): Add striconveha.
64786         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64787         string.
64788         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64789
64790 2007-01-21  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64793         * lib/striconveh.c (str_iconveh): Likewise.
64794
64795 2007-01-21  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/striconveh.h (mem_iconveh): New declaration.
64798         * lib/striconveh.c (mem_iconveh): New function.
64799         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64800
64801 2007-01-21  Bruno Haible  <bruno@clisp.org>
64802
64803         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64804
64805         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64806         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64807         original result buffer.
64808         (str_cd_iconveh): Update.
64809         * tests/test-striconveh.c (main): Update.
64810
64811         * lib/striconv.h (mem_cd_iconv): Change specification.
64812         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64813         result buffer.
64814         (str_cd_iconv): Update.
64815         * tests/test-striconv.c (main): Update.
64816
64817 2007-01-21  Bruno Haible  <bruno@clisp.org>
64818
64819         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64820
64821 2007-01-20  Jim Meyering  <jim@meyering.net>
64822
64823         * lib/userspec.c (parse_with_separator): If a user or group string
64824         starts with "+", skip the corresponding name-to-ID look-up, since
64825         such a look-up must fail: user and group names may not include "+".
64826
64827 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64830         since we now assume the sys_time module.
64831         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64832         check for sys/time.h; no longer needed.
64833         * modules/poll (Depends-on): Depend on sys_time.
64834
64835 2007-01-18  Bruno Haible  <bruno@clisp.org>
64836
64837         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64838         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64839
64840         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64841         gettimeofday.
64842
64843         * tests/test-gettimeofday.c: Include <time.h>.
64844         (dummy): Remove variable.
64845
64846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64847         gl_HEADER_SYS_TIME_H.
64848         (gl_HEADER_SYS_TIME_H): New macro.
64849
64850         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64851         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64853         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64854         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64856         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64857         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64858         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64859         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64860         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64861
64862         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64863         last change; it caused a compilation error when cross-compiling to
64864         Cygwin.
64865
64866 2007-01-18  Jim Meyering  <jim@meyering.net>
64867
64868         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64869         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64870         than the race-prone "test -d sys || mkdir sys".
64871         (configure.ac): Use AC_PROG_MKDIR_P.
64872         * modules/sys_select: Likewise.
64873         * modules/sys_socket: Likewise.
64874         * modules/sys_time: Likewise.
64875
64876 2007-01-18  Eric Blake  <ebb9@byu.net>
64877
64878         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64879         replace gettimeofday.
64880         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64881         name, to avoid infinite recursion.
64882
64883 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64886         module sys_time.
64887         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64888         assume timespec.h defines struct timeval.
64889         * lib/settime.c: Likewise.
64890         * lib/utimens.c: Likewise.
64891         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64892         since we now assume the gettimeofday module.
64893         * lib/tempname.c (__gen_tempname): Likewise.
64894         * lib/gettimeofday.h: Remove.
64895         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64896         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64897         Include <time.h>, for 'time()'.
64898         (localtime_buffer_addr): Also use this workaround if
64899         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64900         to simplify the uses.  All uses changed.
64901         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64902         that #undef is inside {}, and 'const' follows type name consistently.
64903         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64904         (gettimeofday): Do not use the maximum possible value for
64905         tv->tv_usec, since that might break usages other than ls.c.
64906         Instead, we'll leave ls.c alone.  This undoes today's patch
64907         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64908         we've never observed the problem but might as well keep the
64909         canary.
64910         * lib/nanosleep.c: Include timespec.h first, for interface check.
64911         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64912         now assume the sys_time module.
64913         * lib/tempname.c: Likewise.
64914         * lib/timespec.h: Likewise.
64915         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64916         needed.
64917         * lib/strftime.c: Likewise.
64918         * lib/timespec.h: Likewise.
64919         * lib/posixtm.c: Include posixtm.h first, for interface check.
64920         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64921         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64922         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64923         * lib/sys_time_.h: New file.
64924         * lib/timespec.h (struct timespec): Use long int, not long.
64925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64926         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64927         Remove obsolescent call to AC_HEADER_TIME.
64928         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64930         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64931         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64932         Likewise.
64933         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64934         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64935         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64936         into the sys_time module.  Check for gettimeofday just once.
64937         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64938         for gettimeofday signature to just check the signature.  Merely
64939         compile it, since linking doesn't test signature.  Improve test for
64940         whether gettimeofday.o is actually needed.
64941         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64942         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64943         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64944         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64945         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64946         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64947         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64948         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64949         than worrying about sys/time.h.
64950         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64951         Don't bother worrying about TIME_WITH_SYS_TIME.
64952         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64953         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64954         * m4/sys_time_h.m4: New file.
64955         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64956         Don't include sys/time.h.  Return from main rather than exiting.
64957         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64958         all uses changed.
64959         * modules/gethrxtime (Depends-on): Add sys_time.
64960         * modules/gettime (Depends-on): Likewise.
64961         * modules/gettimeofday (Depends-on): Likewise.
64962         * modules/nanosleep (Depends-on): Likewise.
64963         * modules/settime (Depends-on): Likewise.
64964         * modules/tempname (Depends-on): Likewise.
64965         * modules/utimens (Depends-on): Likewise.
64966         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64967         (Include): Change back to <sys/time.h>.
64968         (Maintainer): Add self.
64969         * modules/sys_time: New file.
64970         * modules/tempname (Depends-on): Add gettimeofday.
64971         * tests/test-gettimeofday.c: Include <sys/time.h>
64972         rather than gettimeofday.h.
64973
64974 2007-01-17  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64977         the license default to GPL.
64978         (func_create_testdir): Don't complain if a module is LGPL and its
64979         tests module depends on GPLed modules.
64980
64981 2007-01-17  Bruno Haible  <bruno@clisp.org>
64982
64983         * lib/gettimeofday.c (gettimeofday): Add code for the case
64984         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64985         maximum possible value for tv->tv_usec, rather than the minimum one.
64986
64987 2005-10-08  Martin Lambers  <marlam@marlam.de>
64988 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64989 2007-01-16  Bruno Haible  <bruno@clisp.org>
64990
64991         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64992         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64993         gl_FUNC_GETTIMEOFDAY.
64994         (Include): Add gettimeofday.h.
64995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64996         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64997         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64998         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64999         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65000         * lib/gettimeofday.h: New file.
65001         * lib/gettimeofday.c: Include <sys/timeb.h>.
65002         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65003         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65004         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65005         fall back on time().
65006
65007         * tests/test-gettimeofday.c: New file.
65008         * modules/gettimeofday-tests: New file.
65009
65010 2007-01-16  Eric Blake  <ebb9@byu.net>
65011
65012         * modules/fnmatch (Depends-on): Depend on wchar.
65013         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65014         * m4/fnmatch.m4: Likewise.
65015         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65016         * m4/mbchar.m4: Likewise.
65017         * modules/mbswidth (Depends-on): Depend on wchar.
65018         * lib/mbswidth.c: Assume <wchar.h>.
65019         * m4/mbswidth.m4: Likewise.
65020         * modules/quotearg (Depends-on): Depend on wchar.
65021         * lib/quotearg.c: Assume <wchar.h>.
65022         * m4/quotearg.m4: Likewise.
65023         * modules/regex (Depends-on): Depend on wchar.
65024         * lib/regex_internal.h: Assume <wchar.h>.
65025         * m4/regex.m4: Likewise.
65026         * modules/stdint (Depends-on): Depend on wchar.
65027         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65028         * m4/stdint.m4: Likewise.
65029         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65030         * modules/strftime (Depends-on): Depend on wchar.
65031         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65032         * modules/strtol (Depends-on): Depend on wchar.
65033         * lib/strtol.c: Assume <wchar.h>.
65034         * modules/wcwidth (Depends-on): Depend on wchar.
65035         * lib/wcwidth.h: Assume <wchar.h>.
65036         * m4/wcwidth.m4: Likewise.
65037
65038 2007-01-16  Bruno Haible  <bruno@clisp.org>
65039
65040         * modules/csharpexec-script: New, created from...
65041         * modules/csharpexec: ... this.
65042
65043 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65044
65045         * modules/javaexec-script: New, created from...
65046         * modules/javaexec: ... this.
65047
65048 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65049
65050         * modules/poll (Dependencies): Add sys_select.
65051
65052 2007-01-15  Jim Meyering  <jim@meyering.net>
65053
65054         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65055         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65056         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65057         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65058
65059 2007-01-15  Bruno Haible  <bruno@clisp.org>
65060
65061         * modules/striconveh: New file.
65062         * lib/striconveh.h: New file.
65063         * lib/striconveh.c: New file.
65064         * MODULES.html.sh (Internationalization functions): Add striconveh.
65065
65066         * modules/striconveh-tests: New file.
65067         * tests/test-striconveh.c: New file.
65068
65069 2007-01-15  Bruno Haible  <bruno@clisp.org>
65070
65071         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65072         not from GNU libiconv or GNU libc.
65073
65074 2007-01-15  Bruno Haible  <bruno@clisp.org>
65075
65076         * doc/gnulib-intro.texi (Copyright): Explain the different license
65077         terms for module descriptions, autoconf macros, tests, documentation.
65078
65079 2007-01-14  Bruno Haible  <bruno@clisp.org>
65080
65081         * modules/striconv-tests: New file.
65082         * tests/test-striconv.c: New file.
65083
65084 2007-01-14  Bruno Haible  <bruno@clisp.org>
65085
65086         * modules/iconv-tests: New file.
65087         * tests/test-iconv.c: New file.
65088
65089 2007-01-14  Bruno Haible  <bruno@clisp.org>
65090
65091         * gnulib-tool (func_get_license): For test modules, use the license of
65092         the main module.
65093
65094 2007-01-14  Bruno Haible  <bruno@clisp.org>
65095
65096         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65097         if iconv is found to exist.
65098
65099 2007-01-14  Bruno Haible  <bruno@clisp.org>
65100
65101         * modules/c-ctype-tests: New file.
65102         * tests/test-c-ctype.c: New file.
65103
65104 2007-01-14  Bruno Haible  <bruno@clisp.org>
65105
65106         * modules/binary-io-tests: New file.
65107         * tests/test-binary-io.sh: New file.
65108         * tests/test-binary-io.c: New file.
65109
65110 2007-01-14  Bruno Haible  <bruno@clisp.org>
65111
65112         * modules/array-oset-tests: New file.
65113         * tests/test-array_oset.c: New file.
65114
65115 2007-01-14  Bruno Haible  <bruno@clisp.org>
65116
65117         * modules/array-list-tests: New file.
65118         * tests/test-array_list.c: New file.
65119
65120 2007-01-14  Bruno Haible  <bruno@clisp.org>
65121
65122         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65123         and make.
65124         Reported by Simon Josefsson in
65125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65126
65127 2007-01-14  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/allocsa-tests: New file.
65130         * tests/test-allocsa.c: New file.
65131
65132 2007-01-14  Bruno Haible  <bruno@clisp.org>
65133
65134         * modules/fchdir (Depends-on): Add absolute-header.
65135         * modules/unistd (Depends-on): Likewise.
65136
65137 2006-12-30  Bruno Haible  <bruno@clisp.org>
65138
65139         * modules/fchdir: New file.
65140         * modules/unistd (Files): Add lib/unistd_.h.
65141         (Makefile.am): Generate unistd.h from unistd_.h.
65142         * lib/fchdir.c: New file.
65143         * lib/dirent_.h: New file.
65144         * lib/unistd_.h: New file.
65145         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65146         * m4/fchdir.m4: New file.
65147         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65148         (gl_HEADER_UNISTD): Invoke it.
65149         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65150         function.
65151         * lib/backupfile.c (opendir, closedir): Undefine.
65152         * lib/chown.c (open, close): Undefine.
65153         * lib/clean-temp.c (open, close): Undefine.
65154         * lib/copy-file.c (open, close): Undefine.
65155         * lib/execute.c (open, close): Undefine.
65156         * lib/fsusage.c (open, close): Undefine.
65157         * lib/gc-gnulib.c (open, close): Undefine.
65158         * lib/getcwd.c (opendir, closedir): Undefine.
65159         * lib/glob.c (opendir, closedir): Undefine.
65160         * lib/javacomp.c (open, close): Undefine.
65161         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65162         * lib/openat-proc.c (open, close): Undefine.
65163         * lib/pagealign_alloc.c (open, close): Undefine.
65164         * lib/pipe.c (open, close): Undefine.
65165         * lib/progreloc.c (open, close): Undefine.
65166         * lib/savedir.c (opendir, closedir): Undefine.
65167         * lib/utime.c (open, close): Undefine.
65168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65169
65170 2007-01-10  Bruno Haible  <bruno@clisp.org>
65171
65172         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65173
65174 2007-01-12  Eric Blake  <ebb9@byu.net>
65175
65176         Provide a robust <wchar.h>.  Further simplifications are now
65177         possible in other modules, but not included here.
65178         * modules/wchar: New module.
65179         * m4/wchar.m4: New file.
65180         * lib/wchar_.h: Likewise.
65181         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65182         of the new module.
65183         * MODULES.html.sh (Extended multibyte and wide character utilities):
65184         New section.
65185
65186 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65187
65188         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65189         to a reasonable default for memory allocation.
65190         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65191         file system that reports garbage st_size values for symlinks.
65192         Problem reported by Liyang Hu.
65193
65194 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65195
65196         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65197         Emacs .#* auto-save files).
65198
65199 2007-01-11  Bruno Haible  <bruno@clisp.org>
65200
65201         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65202         directory.
65203
65204 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65205
65206         Use @...@ consistently in lib/wctype_.h.
65207         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65208         on it being set to 1 or 0.
65209         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65210         go back to AC_SUBSTing it.
65211         * modules/wctype (Makefile.am): Undo previous change.
65212
65213 2007-01-10  Eric Blake  <ebb9@byu.net>
65214
65215         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65216         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65217         * modules/wctype (Makefile.am): Likewise.
65218         Reported by Chris McGuire.
65219
65220 2007-01-10  Jim Meyering  <jim@meyering.net>
65221
65222         fts.c: a small readability/maintainability improvement
65223         * lib/fts.c (fts_read): Make this code slightly more readable and
65224         maintainable by hoisting the "sp->fts_cur = p" assignments to
65225         immediately follow the statements that set P.  Derived from
65226         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65227
65228 2007-01-10  Eric Blake  <ebb9@byu.net>
65229
65230         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65231         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65233         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65234         Reported by Chris McGuire.
65235
65236 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65237
65238         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65239         in sed script.
65240
65241 2007-01-09  Bruno Haible  <bruno@clisp.org>
65242
65243         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65244         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65245         variables.
65246         (func_module): Use them.
65247
65248 2007-01-09  Bruno Haible  <bruno@clisp.org>
65249
65250         * modules/unistr/base: New file.
65251         * lib/unistr.h: New file.
65252
65253         * modules/unistr/u8-to-u16: New file.
65254         * lib/unistr/u8-to-u16.c: New file.
65255
65256         * modules/unistr/u8-to-u32: New file.
65257         * lib/unistr/u8-to-u32.c: New file.
65258
65259         * modules/unistr/u16-to-u8: New file.
65260         * lib/unistr/u16-to-u8.c: New file.
65261
65262         * modules/unistr/u16-to-u32: New file.
65263         * lib/unistr/u16-to-u32.c: New file.
65264
65265         * modules/unistr/u32-to-u8: New file.
65266         * lib/unistr/u32-to-u8.c: New file.
65267
65268         * modules/unistr/u32-to-u16: New file.
65269         * lib/unistr/u32-to-u16.c: New file.
65270
65271         * modules/unistr/u8-check: New file.
65272         * modules/unistr/u16-check: New file.
65273         * modules/unistr/u32-check: New file.
65274         * lib/unistr/u8-check.c: New file.
65275         * lib/unistr/u16-check.c: New file.
65276         * lib/unistr/u32-check.c: New file.
65277
65278         * modules/unistr/u8-chr: New file.
65279         * modules/unistr/u16-chr: New file.
65280         * modules/unistr/u32-chr: New file.
65281         * lib/unistr/u8-chr.c: New file.
65282         * lib/unistr/u16-chr.c: New file.
65283         * lib/unistr/u32-chr.c: New file.
65284
65285         * modules/unistr/u8-cmp: New file.
65286         * modules/unistr/u16-cmp: New file.
65287         * modules/unistr/u32-cmp: New file.
65288         * lib/unistr/u8-cmp.c: New file.
65289         * lib/unistr/u16-cmp.c: New file.
65290         * lib/unistr/u32-cmp.c: New file.
65291
65292         * modules/unistr/u8-cpy: New file.
65293         * modules/unistr/u16-cpy: New file.
65294         * modules/unistr/u32-cpy: New file.
65295         * lib/unistr/u8-cpy.c: New file.
65296         * lib/unistr/u16-cpy.c: New file.
65297         * lib/unistr/u32-cpy.c: New file.
65298         * lib/unistr/u-cpy.h: New file.
65299
65300         * modules/unistr/u8-cpy-alloc: New file.
65301         * modules/unistr/u16-cpy-alloc: New file.
65302         * modules/unistr/u32-cpy-alloc: New file.
65303         * lib/unistr/u8-cpy-alloc.c: New file.
65304         * lib/unistr/u16-cpy-alloc.c: New file.
65305         * lib/unistr/u32-cpy-alloc.c: New file.
65306         * lib/unistr/u-cpy-alloc.h: New file.
65307
65308         * modules/unistr/u8-endswith: New file.
65309         * modules/unistr/u16-endswith: New file.
65310         * modules/unistr/u32-endswith: New file.
65311         * lib/unistr/u8-endswith.c: New file.
65312         * lib/unistr/u16-endswith.c: New file.
65313         * lib/unistr/u32-endswith.c: New file.
65314         * lib/unistr/u-endswith.h: New file.
65315
65316         * modules/unistr/u8-mblen: New file.
65317         * modules/unistr/u16-mblen: New file.
65318         * modules/unistr/u32-mblen: New file.
65319         * lib/unistr/u8-mblen.c: New file.
65320         * lib/unistr/u16-mblen.c: New file.
65321         * lib/unistr/u32-mblen.c: New file.
65322
65323         * modules/unistr/u8-mbtouc: New file.
65324         * modules/unistr/u16-mbtouc: New file.
65325         * modules/unistr/u32-mbtouc: New file.
65326         * lib/unistr/u8-mbtouc.c: New file.
65327         * lib/unistr/u16-mbtouc.c: New file.
65328         * lib/unistr/u32-mbtouc.c: New file.
65329
65330         * modules/unistr/u8-mbtouc-safe: New file.
65331         * modules/unistr/u16-mbtouc-safe: New file.
65332         * modules/unistr/u32-mbtouc-safe: New file.
65333         * lib/unistr/u8-mbtouc-safe.c: New file.
65334         * lib/unistr/u16-mbtouc-safe.c: New file.
65335         * lib/unistr/u32-mbtouc-safe.c: New file.
65336
65337         * modules/unistr/u8-move: New file.
65338         * modules/unistr/u16-move: New file.
65339         * modules/unistr/u32-move: New file.
65340         * lib/unistr/u8-move.c: New file.
65341         * lib/unistr/u16-move.c: New file.
65342         * lib/unistr/u32-move.c: New file.
65343         * lib/unistr/u-move.h: New file.
65344
65345         * modules/unistr/u8-next: New file.
65346         * modules/unistr/u16-next: New file.
65347         * modules/unistr/u32-next: New file.
65348         * lib/unistr/u8-next.c: New file.
65349         * lib/unistr/u16-next.c: New file.
65350         * lib/unistr/u32-next.c: New file.
65351
65352         * modules/unistr/u8-prev: New file.
65353         * modules/unistr/u16-prev: New file.
65354         * modules/unistr/u32-prev: New file.
65355         * lib/unistr/u8-prev.c: New file.
65356         * lib/unistr/u16-prev.c: New file.
65357         * lib/unistr/u32-prev.c: New file.
65358
65359         * modules/unistr/u8-set: New file.
65360         * modules/unistr/u16-set: New file.
65361         * modules/unistr/u32-set: New file.
65362         * lib/unistr/u8-set.c: New file.
65363         * lib/unistr/u16-set.c: New file.
65364         * lib/unistr/u32-set.c: New file.
65365         * lib/unistr/u-set.h: New file.
65366
65367         * modules/unistr/u8-startswith: New file.
65368         * modules/unistr/u16-startswith: New file.
65369         * modules/unistr/u32-startswith: New file.
65370         * lib/unistr/u8-startswith.c: New file.
65371         * lib/unistr/u16-startswith.c: New file.
65372         * lib/unistr/u32-startswith.c: New file.
65373         * lib/unistr/u-startswith.h: New file.
65374
65375         * modules/unistr/u8-stpcpy: New file.
65376         * modules/unistr/u16-stpcpy: New file.
65377         * modules/unistr/u32-stpcpy: New file.
65378         * lib/unistr/u8-stpcpy.c: New file.
65379         * lib/unistr/u16-stpcpy.c: New file.
65380         * lib/unistr/u32-stpcpy.c: New file.
65381         * lib/unistr/u-stpcpy.h: New file.
65382
65383         * modules/unistr/u8-stpncpy: New file.
65384         * modules/unistr/u16-stpncpy: New file.
65385         * modules/unistr/u32-stpncpy: New file.
65386         * lib/unistr/u8-stpncpy.c: New file.
65387         * lib/unistr/u16-stpncpy.c: New file.
65388         * lib/unistr/u32-stpncpy.c: New file.
65389         * lib/unistr/u-stpncpy.h: New file.
65390
65391         * modules/unistr/u8-strcat: New file.
65392         * modules/unistr/u16-strcat: New file.
65393         * modules/unistr/u32-strcat: New file.
65394         * lib/unistr/u8-strcat.c: New file.
65395         * lib/unistr/u16-strcat.c: New file.
65396         * lib/unistr/u32-strcat.c: New file.
65397         * lib/unistr/u-strcat.h: New file.
65398
65399         * modules/unistr/u8-strchr: New file.
65400         * modules/unistr/u16-strchr: New file.
65401         * modules/unistr/u32-strchr: New file.
65402         * lib/unistr/u8-strchr.c: New file.
65403         * lib/unistr/u16-strchr.c: New file.
65404         * lib/unistr/u32-strchr.c: New file.
65405
65406         * modules/unistr/u8-strcmp: New file.
65407         * modules/unistr/u16-strcmp: New file.
65408         * modules/unistr/u32-strcmp: New file.
65409         * lib/unistr/u8-strcmp.c: New file.
65410         * lib/unistr/u16-strcmp.c: New file.
65411         * lib/unistr/u32-strcmp.c: New file.
65412
65413         * modules/unistr/u8-strcpy: New file.
65414         * modules/unistr/u16-strcpy: New file.
65415         * modules/unistr/u32-strcpy: New file.
65416         * lib/unistr/u8-strcpy.c: New file.
65417         * lib/unistr/u16-strcpy.c: New file.
65418         * lib/unistr/u32-strcpy.c: New file.
65419         * lib/unistr/u-strcpy.h: New file.
65420
65421         * modules/unistr/u8-strcspn: New file.
65422         * modules/unistr/u16-strcspn: New file.
65423         * modules/unistr/u32-strcspn: New file.
65424         * lib/unistr/u8-strcspn.c: New file.
65425         * lib/unistr/u16-strcspn.c: New file.
65426         * lib/unistr/u32-strcspn.c: New file.
65427         * lib/unistr/u-strcspn.h: New file.
65428
65429         * modules/unistr/u8-strdup: New file.
65430         * modules/unistr/u16-strdup: New file.
65431         * modules/unistr/u32-strdup: New file.
65432         * lib/unistr/u8-strdup.c: New file.
65433         * lib/unistr/u16-strdup.c: New file.
65434         * lib/unistr/u32-strdup.c: New file.
65435         * lib/unistr/u-strdup.h: New file.
65436
65437         * modules/unistr/u8-strlen: New file.
65438         * modules/unistr/u16-strlen: New file.
65439         * modules/unistr/u32-strlen: New file.
65440         * lib/unistr/u8-strlen.c: New file.
65441         * lib/unistr/u16-strlen.c: New file.
65442         * lib/unistr/u32-strlen.c: New file.
65443         * lib/unistr/u-strlen.h: New file.
65444
65445         * modules/unistr/u8-strmblen: New file.
65446         * modules/unistr/u16-strmblen: New file.
65447         * modules/unistr/u32-strmblen: New file.
65448         * lib/unistr/u8-strmblen.c: New file.
65449         * lib/unistr/u16-strmblen.c: New file.
65450         * lib/unistr/u32-strmblen.c: New file.
65451
65452         * modules/unistr/u8-strmbtouc: New file.
65453         * modules/unistr/u16-strmbtouc: New file.
65454         * modules/unistr/u32-strmbtouc: New file.
65455         * lib/unistr/u8-strmbtouc.c: New file.
65456         * lib/unistr/u16-strmbtouc.c: New file.
65457         * lib/unistr/u32-strmbtouc.c: New file.
65458
65459         * modules/unistr/u8-strncat: New file.
65460         * modules/unistr/u16-strncat: New file.
65461         * modules/unistr/u32-strncat: New file.
65462         * lib/unistr/u8-strncat.c: New file.
65463         * lib/unistr/u16-strncat.c: New file.
65464         * lib/unistr/u32-strncat.c: New file.
65465         * lib/unistr/u-strncat.h: New file.
65466
65467         * modules/unistr/u8-strncmp: New file.
65468         * modules/unistr/u16-strncmp: New file.
65469         * modules/unistr/u32-strncmp: New file.
65470         * lib/unistr/u8-strncmp.c: New file.
65471         * lib/unistr/u16-strncmp.c: New file.
65472         * lib/unistr/u32-strncmp.c: New file.
65473
65474         * modules/unistr/u8-strncpy: New file.
65475         * modules/unistr/u16-strncpy: New file.
65476         * modules/unistr/u32-strncpy: New file.
65477         * lib/unistr/u8-strncpy.c: New file.
65478         * lib/unistr/u16-strncpy.c: New file.
65479         * lib/unistr/u32-strncpy.c: New file.
65480         * lib/unistr/u-strncpy.h: New file.
65481
65482         * modules/unistr/u8-strnlen: New file.
65483         * modules/unistr/u16-strnlen: New file.
65484         * modules/unistr/u32-strnlen: New file.
65485         * lib/unistr/u8-strnlen.c: New file.
65486         * lib/unistr/u16-strnlen.c: New file.
65487         * lib/unistr/u32-strnlen.c: New file.
65488         * lib/unistr/u-strnlen.h: New file.
65489
65490         * modules/unistr/u8-strpbrk: New file.
65491         * modules/unistr/u16-strpbrk: New file.
65492         * modules/unistr/u32-strpbrk: New file.
65493         * lib/unistr/u8-strpbrk.c: New file.
65494         * lib/unistr/u16-strpbrk.c: New file.
65495         * lib/unistr/u32-strpbrk.c: New file.
65496         * lib/unistr/u-strpbrk.h: New file.
65497
65498         * modules/unistr/u8-strrchr: New file.
65499         * modules/unistr/u16-strrchr: New file.
65500         * modules/unistr/u32-strrchr: New file.
65501         * lib/unistr/u8-strrchr.c: New file.
65502         * lib/unistr/u16-strrchr.c: New file.
65503         * lib/unistr/u32-strrchr.c: New file.
65504
65505         * modules/unistr/u8-strspn: New file.
65506         * modules/unistr/u16-strspn: New file.
65507         * modules/unistr/u32-strspn: New file.
65508         * lib/unistr/u8-strspn.c: New file.
65509         * lib/unistr/u16-strspn.c: New file.
65510         * lib/unistr/u32-strspn.c: New file.
65511         * lib/unistr/u-strspn.h: New file.
65512
65513         * modules/unistr/u8-strstr: New file.
65514         * modules/unistr/u16-strstr: New file.
65515         * modules/unistr/u32-strstr: New file.
65516         * lib/unistr/u8-strstr.c: New file.
65517         * lib/unistr/u16-strstr.c: New file.
65518         * lib/unistr/u32-strstr.c: New file.
65519         * lib/unistr/u-strstr.h: New file.
65520
65521         * modules/unistr/u8-strtok: New file.
65522         * modules/unistr/u16-strtok: New file.
65523         * modules/unistr/u32-strtok: New file.
65524         * lib/unistr/u8-strtok.c: New file.
65525         * lib/unistr/u16-strtok.c: New file.
65526         * lib/unistr/u32-strtok.c: New file.
65527         * lib/unistr/u-strtok.h: New file.
65528
65529         * modules/unistr/u8-uctomb: New file.
65530         * modules/unistr/u16-uctomb: New file.
65531         * modules/unistr/u32-uctomb: New file.
65532         * lib/unistr/u8-uctomb.c: New file.
65533         * lib/unistr/u16-uctomb.c: New file.
65534         * lib/unistr/u32-uctomb.c: New file.
65535
65536         * MODULES.html.sh (Unicode string functions): Add the new modules.
65537
65538 2007-01-08  Bruno Haible  <bruno@clisp.org>
65539
65540         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65541         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65542         subdirectories.
65543
65544 2007-01-08  Karl Berry  <karl@gnu.org>
65545
65546         * doc/error.texi: mention that main() fns must set program_name
65547         when progname is used.
65548
65549 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65552         WCTYPE_H is empty, for the benefit of builds from non-distclean
65553         directories.  Problem reported by Eric Blake in
65554         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65555
65556 2007-01-08  Bruno Haible  <bruno@clisp.org>
65557
65558         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65559         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65560         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65561         PROVIDE_CANONICALIZE_FILENAME_MODE.
65562         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65563
65564 2007-01-08  Bruno Haible  <bruno@clisp.org>
65565
65566         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65567         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65568         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65569         * lib/fts.c: Likewise.
65570         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65571
65572 2006-12-25  Bruno Haible  <bruno@clisp.org>
65573
65574         * modules/utf8-ucs4-safe: New file.
65575         * lib/utf8-ucs4-safe.h: New file.
65576         * lib/unistr/utf8-ucs4-safe.c: New file.
65577
65578         * modules/utf16-ucs4-safe: New file.
65579         * lib/utf16-ucs4-safe.h: New file.
65580         * lib/unistr/utf16-ucs4-safe.c: New file.
65581
65582         * MODULES.html.sh (Unicode string functions): Add the new modules.
65583
65584 2007-01-08  Bruno Haible  <bruno@clisp.org>
65585
65586         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65587         (Depends-on): Add unitypes.
65588         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65589         (u8_mbtouc_aux): Move out to separate file.
65590         (u8_mbtouc): Use ucs4_t, uint8_t types.
65591         * lib/unistr/utf8-ucs4.c: New file.
65592
65593         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65594         (Depends-on): Add unitypes.
65595         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65596         (u16_mbtouc_aux): Move out to separate file.
65597         (u16_mbtouc): Use ucs4_t, uint16_t types.
65598         * lib/unistr/utf16-ucs4.c: New file.
65599
65600         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65601         (Depends-on): Add unitypes.
65602         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65603         (u8_uctomb_aux): Move out to separate file.
65604         (u8_uctomb): Use ucs4_t, uint8_t types.
65605         * lib/unistr/ucs4-utf8.c: New file.
65606
65607         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65608         (Depends-on): Add unitypes.
65609         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65610         (u16_uctomb_aux): Move out to separate file.
65611         (u16_uctomb): Use ucs4_t, uint16_t types.
65612         * lib/unistr/ucs4-utf16.c: New file.
65613
65614 2006-12-25  Bruno Haible  <bruno@clisp.org>
65615
65616         * modules/unitypes: New file.
65617         * lib/unitypes.h: New file.
65618         * MODULES.html.sh (func_all_modules): New section "Unicode string
65619         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65620         this section. Add unitypes.
65621
65622 2007-01-08  Bruno Haible  <bruno@clisp.org>
65623
65624         Avoid variable names that conflict with those from libtool.
65625         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65626         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65627         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65628         library_names_spec to acl_library_names_spec, hardcode_* to
65629         acl_hardcode_*.
65630         Reported by Ralf Wildenhues.
65631
65632 2007-01-08  Bruno Haible  <bruno@clisp.org>
65633
65634         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65635         definition.
65636         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65637         definition.
65638         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65639         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65640         definition.
65641         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65642         definition.
65643         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65644         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65645         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65646         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65647         definition.
65648         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65649         definition.
65650         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65651         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65652         GC_USE_<algorithm>.
65653         * lib/gc-libgcrypt.c: Likewise.
65654         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65655         * modules/gc-arctwo (configure.ac): Likewise.
65656         * modules/gc-des (configure.ac): Likewise.
65657         * modules/gc-hmac-md5 (configure.ac): Likewise.
65658         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65659         * modules/gc-md2 (configure.ac): Likewise.
65660         * modules/gc-md4 (configure.ac): Likewise.
65661         * modules/gc-md5 (configure.ac): Likewise.
65662         * modules/gc-random (configure.ac): Likewise.
65663         * modules/gc-rijndael (configure.ac): Likewise.
65664         * modules/gc-sha1 (configure.ac): Likewise.
65665
65666 2007-01-08  Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65669         macro definition.
65670         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65671         definition.
65672         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65673         definition.
65674         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65675         * modules/fcntl-safer (configure.ac): Likewise.
65676         * modules/fopen-safer (configure.ac): Likewise.
65677         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65678         GNULIB_FWRITEERROR macro definition.
65679
65680 2007-01-08  Bruno Haible  <bruno@clisp.org>
65681
65682         * m4/gnulib-common.m4: New file.
65683         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65684         (func_get_filelist): Add m4/gnulib-common.m4.
65685
65686 2007-01-08  Bruno Haible  <bruno@clisp.org>
65687
65688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65689         command.
65690
65691 2007-01-08  Jim Meyering  <jim@meyering.net>
65692
65693         Use a more robust test for a "can't happen" condition.
65694         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65695         narrowed the st_size value.  Presuming the "can't happen" condition
65696         is true, that narrowing could conceivably convert an invalid st_size
65697         value into a valid one.  Instead, use a change based on Matthew
65698         Woehlke's original patch.
65699
65700         Slight readability improvement: use an assert-like macro
65701         in place of literal "abort ()" uses.
65702         * lib/fts.c (fts_assert): Define.
65703         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65704         Use this macro instead of a bare 'abort'.
65705
65706 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65709         simply work around them.
65710         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65711         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65712         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65713         declaring.
65714         Don't bother to define as macros, since the standard doesn't require it.
65715         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65716         longer worry about IRIX 5.3.
65717         (HAVE_WCTYPE_CTMP_BUG): Remove.
65718
65719 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65722         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65723         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65724         Problems reported by Georg Schwarz for IRIX 5.3.
65725
65726         * gnulib-tool (autoconf_minversion): Take the maximum version number
65727         found, not the minimum.  Problem reported by James Youngman.
65728
65729 2007-01-03  Karl Berry  <karl@gnu.org>
65730
65731         * doc/error.texi: new file, explaining interaction with progname.
65732         * doc/gnulib.texi: include it.  Update copyright.
65733
65734 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65735
65736         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65737         AC_CANONICAL_HOST, to improve autobuild outputs.
65738
65739 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65740             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65741
65742         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65743         sockets, server sockets, and other file descriptors.  Count errors
65744         to compute the return value.  Reorder the code a bit to be easier
65745         to follow.  Don't set event bits that were not requested (except
65746         POLLERR and POLLHUP).
65747
65748 2007-01-01  Bruno Haible  <bruno@clisp.org>
65749
65750         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65751
65752 2007-01-03  Jim Meyering  <jim@meyering.net>
65753
65754         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65755
65756 2007-01-02  Bruno Haible  <bruno@clisp.org>
65757
65758         * modules/settime (Include): Require timespec.h.
65759         * modules/nanosleep (Include): Likewise.
65760
65761 2007-01-01  Bruno Haible  <bruno@clisp.org>
65762
65763         * gnulib-tool (func_emit_copyright_notice): Bump year.
65764         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65765
65766 2007-01-01  Bruno Haible  <bruno@clisp.org>
65767
65768         Improve support for OpenBSD.
65769         * build-aux/config.rpath (libname_spec): Export.
65770         (library_names_spec): New variable. Export.
65771         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65772         library_names_spec from the config.rpath output. Locate shared library
65773         through the name pattern in library_names_spec.
65774
65775 2007-01-01  Eric Blake  <ebb9@byu.net>
65776
65777         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65778
65779 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65782         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65783         assume the C locale, and avoid an "eval" that could cause trouble.
65784         Problem with SORT reported by Bob Proulx.
65785
65786         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65787         Define.  Trivial patch from Henning Nielsen Lund, originally
65788         sent to bug-grep@gnu.org today.
65789
65790 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65793         struct stat.  Problem reported by Henning Nielsen Lund.
65794         * lib/acl.c: Include acl.h first, to check interface.  Don't
65795         bother to include sys/types.h and sys/stat.h again.
65796
65797 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         Import the following change from libc; problem reported by
65800         Sven Verdoolaege.
65801
65802         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65803
65804         [BZ #1373]
65805         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65806
65807 2006-12-28  Jim Meyering  <jim@meyering.net>
65808
65809         * build-aux/announce-gen: Do not assume that the package
65810         builds any of tar.gz, tar.bz2, and .xdelta files.
65811         Suggestion from Simon Josefsson.
65812
65813 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65814
65815         * modules/announce-gen: New file.
65816
65817 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65820         handles its gotchas now.
65821         * lib/mbswidth.c: Likewise.
65822         * lib/wcwidth.h: Likewise.
65823         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65824         and iswcntrl; the wctype module does this stuff now.
65825         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65827         * modules/mbchar (Depends-on): Add wctype.
65828         * modules/mbswidth (Depends-on): Likewise.
65829         * modules/wcwidth (Depends-on): Likewise.
65830
65831 2006-12-27  Eric Blake  <ebb9@byu.net>
65832
65833         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65834         module uses more than what <wctype.h> is required to provide.
65835
65836 2006-12-26  Eric Blake  <ebb9@byu.net>
65837
65838         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65839
65840 2006-12-26  Eric Blake  <ebb9@byu.net>
65841
65842         * modules/absolute-header: New module.
65843         * modules/fcntl (Depends-on): Depend on it.
65844         * modules/inttypes (Depends-on): Likewise.
65845         * modules/stdint (Depends-on): Likewise.
65846         * modules/sys_stat (Depends-on): Likewise.
65847         * modules/wctype (Depends-on): Likewise.
65848         * MODULES.html.sh (Support for building libraries and
65849         executables): Document it.
65850
65851 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * gnulib-tool (SED): Remove, undoing previous change.
65854         The problem was that it broke coreutils on Solaris, because
65855         "sed --posix" leaked into a makefile.
65856         (sed): New alias, if 'alias' and GNU sed.
65857
65858 2006-12-24  Jim Meyering  <jim@meyering.net>
65859
65860         Work around an fchownat bug in glibc-2.4:
65861         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65862         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65863         in spite of the -P option.
65864         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65865         New macros.
65866         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65867         * modules/openat (Files): Add lib/fchownat.c.
65868         * lib/openat.c (fchownat): Don't define here.  Move to...
65869         * lib/fchownat.c: ...this new file.
65870
65871 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         Fix bug reported by Bruno Haible in
65874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65875         where quotearg.c didn't compile on Mac OS X 10.2 because it
65876         lacks <wchar.h> and wint_t.
65877         * lib/wctype_.h (__wctype_wint_t): New type.
65878         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65879         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65880         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65881         Arg is now of type __wctype_wint_t, not wint_t.
65882         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65883         substitute HAVE_WINT_T.
65884         * modules/wctype (Files): Add m4/wint_t.m4.
65885         (wctype.h): Substitute HAVE_WINT_T.
65886
65887 2006-12-23  Bruno Haible  <bruno@clisp.org>
65888
65889         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65890
65891 2006-12-23  Bruno Haible  <bruno@clisp.org>
65892
65893         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65894         S_ISLNK.
65895         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65896         mingw.
65897
65898 2006-12-22  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/copy-file.c: Include acl.h.
65901         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65902         Close the file descriptors only after being done with copy_acl.
65903         * modules/copy-file (Depends-on): Add acl.
65904
65905 2006-12-22  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (SED): New variable.
65908         Use $SED instead of sed everywhere.
65909
65910 2006-12-22  Bruno Haible  <bruno@clisp.org>
65911
65912         * modules/no-c++: New file.
65913         * m4/no-c++.m4: New file.
65914         * MODULES.html.sh (Support for building libraries and executables):
65915         Add no-c++.
65916
65917 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65920         Include <limits.h>, and use its INT_MAX to rewrite the
65921         j loop so that it does not overflow 'int'.  Problem reported by
65922         Ralf Wildenhues in
65923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65924         Play it safe by shifting left by 1 rather than multiplying by 2,
65925         as GCC is less likely to optimize this away when the value
65926         is signed (when it assumes overflow leads to undefined behavior).
65927         Also, don't assume time_t uses two's complement.
65928
65929 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         * MODULES.html.sh: New module wctype.
65932         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65933         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65934         <wctype.h>, since the new wctype module should fix this.
65935         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65936         the wctype module should arrange for it.
65937         * lib/regex_internal.h: Likewise.
65938         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65939         since the wctype module should handle this now.
65940         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65941         * modules/fnmatch (Depends-on): Add wctype.
65942         * modules/quotearg (Depends-on): Likewise.
65943         * modules/regex (Depends-on): Likewise.
65944
65945 2006-12-19  Bruno Haible  <bruno@clisp.org>
65946
65947         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65948         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65949
65950 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65951
65952         * modules/savewd (Depends-on): Fix dependency on fcntl.
65953
65954 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65955
65956         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65957         conforms to C99, rather than relying on the user's environment
65958         setting of STDINT_H.
65959
65960 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65961         and Eric Blake  <ebb9@byu.net>
65962
65963         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65964         This is more consistent with the other defines here.
65965         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65966         Port to z/OS.  Problem reported by Paul Gilmartin.
65967         Change local vars to use gl_ prefix rather than ac_.
65968         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65969         with other defines.
65970         * modules/double-slash-root: New module.
65971         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65972         (Depends-on): Add double-slash-root.
65973         * MODULES.html.sh (File system functions): Mention new module.
65974
65975 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65978         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65979         This is for the benefit of gzip, which doesn't do i18n.
65980
65981 2006-12-12  Jim Meyering  <jim@meyering.net>
65982
65983         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65984         Reported by Andreas Schwab <schwab@suse.de>.
65985
65986 2006-12-12  Bruno Haible  <bruno@clisp.org>
65987
65988         Merge these changes.
65989         2006-09-05  Bruno Haible  <bruno@clisp.org>
65990         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65991         iconv_alloc succeeded.
65992         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65993         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65994         test for " && dest " at the end - dest is always != NULL there. Call
65995         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65996         with 2xNULL arguments, also to flush the state storage. Handle the
65997         IRIX iconv behaviour. Realloc the final result, to throw away unused
65998         memory.
65999
66000 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66003         and fchmodat unconditionally, since glibc 2.4 has them.
66004         Problem reported by Arkadiusz Miskiewicz.
66005
66006 2006-12-10  Bruno Haible  <bruno@clisp.org>
66007
66008         * gnulib-tool (func_import): Show the include files only for those
66009         modules that are copied and specified.
66010         Reported by Karl Berry.
66011
66012 2006-12-08  Jim Meyering  <jim@meyering.net>
66013
66014         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66015         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66016
66017         * build-aux/announce-gen: Add two new options, both optional:
66018         --bootstrap-tools=TOOL_LIST
66019               a comma-separated list of tools, e.g.,
66020               autoconf,automake,bison,gnulib
66021         --gnulib-snapshot-date=DATE
66022               if gnulib is in the bootstrap tool list,
66023               then report this as the snapshot date.
66024               If not specified, use the current date/time.
66025               If you specify a date here, be sure it's UTC.
66026
66027 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66028
66029         * tests/test-argp-2.sh: Fix test to match actual output.
66030         (func_compare): Fix sed script to be portable.
66031
66032 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66035         workaround for this case.  It is not autoconfigured now; offhand
66036         it's hard to see how to autoconfigure it.
66037
66038 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66041         a directory that is about to be chowned.  Such a directory's
66042         initial file permissions should permit the owner only and this
66043         should not be changed until after the chown, since the group and
66044         other bits would be incorrect if they granted permission before
66045         the chown.
66046
66047         Fix porting problem for iswctype reported by Georg Schwarz in:
66048         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66049         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66050         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66053
66054 2006-12-03  Jim Meyering  <jim@meyering.net>
66055
66056         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66057         p->fts_statp may not yet be defined.
66058         (fts_read): Instead, set it in the caller, once p->fts_statp is
66059         sure to be defined, and corresponds to a top-level directory.
66060         This bug made du -x fail.  Here's the coreutils test case:
66061         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66062         Reported by Mike Frysinger.
66063
66064 2006-12-01  Jim Meyering  <jim@meyering.net>
66065
66066         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66067         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66068         Reported by Simon Josefsson.
66069
66070 2006-11-30  Jim Meyering  <jim@meyering.net>
66071
66072         * m4/warning.m4: Use the all-permissive copyright notice
66073         recommended by RMS (rather than LGPL).
66074         * m4/vararrays.m4: Likewise.
66075         * m4/flexmember.m4: Likewise.
66076
66077 2006-11-29  Bruno Haible  <bruno@clisp.org>
66078
66079         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66080         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66081         using +=.
66082         Reported by Simon Josefsson <simon@josefsson.org>.
66083
66084 2006-11-28  James Youngman <jay@gnu.org>
66085
66086         * README: Advise users that they might find the bug-gnulib@gnu.org
66087         and autotools-announce@gnu.org mailing lists useful.
66088
66089 2006-11-28  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/ptrdiff_max.m4: Remove file.
66092
66093 2006-11-21  Bruno Haible  <bruno@clisp.org>
66094
66095         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66096         _AC_COMPUTE_INT.
66097         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66098         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66099         _AC_COMPUTE_INT.
66100         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66101         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66102         _AC_COMPUTE_INT.
66103         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66104
66105 2006-11-28  Jim Meyering  <jim@meyering.net>
66106
66107         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66108         warning from "gcc -Wshadow" about shadowing the builtin.
66109
66110 2006-11-27  Bruno Haible  <bruno@clisp.org>
66111
66112         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66113         _AC_COMPUTE_INT.
66114         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66115
66116 2006-11-27  Bruno Haible  <bruno@clisp.org>
66117             Paul Eggert  <eggert@cs.ucla.edu>
66118
66119         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66120
66121 2006-11-26  Bruno Haible  <bruno@clisp.org>
66122
66123         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66124         noinst_LTLIBRARIES.
66125
66126 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66127             Bruno Haible  <bruno@clisp.org>
66128
66129         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66130         if compiling with "gcc -ansi".
66131
66132 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66133
66134         Fix some incompatibilities with gcc -ansi -pedantic.
66135         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66136         if compiling pedantically with GCC, unless it's C99 or later.
66137         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66138         it mishandles gcc -ansi -pedantic as well.
66139         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66140         if gcc -pedantic.
66141         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66142         initializers for struct if -pedantic, unless it's C99 or later.
66143
66144 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66145
66146         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66147         Don't close an fd more than once. Identical atimes indicate
66148         success, not failure.
66149
66150 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66151
66152         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66153
66154 2006-11-23  Jim Meyering  <jim@meyering.net>
66155
66156         * build-aux/announce-gen: New file.  From coreutils.
66157
66158 2006-11-22  Jim Meyering  <jim@meyering.net>
66159
66160         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66161         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66162         (fts_read): Use a temporary to narrow the overused st_size member
66163         before using it in a switch statement.  Reported by Matthew Woehlke.
66164
66165         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66166         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66167
66168 2006-11-20  Bruno Haible  <bruno@clisp.org>
66169
66170         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66171         changequote instead of pairs of brackets.
66172         Reported by Andreas Schwab <schwab@suse.de>.
66173
66174 2006-11-21  Jim Meyering  <jim@meyering.net>
66175
66176         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66177         so as to remain compatible with older compilers.
66178         Patch from Michael Deutschmann.
66179
66180 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * MODULES.html.sh (File system functions): Add openat.
66183
66184         * lib/openat.h (rpl_fstatat): New macro, if
66185         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66186         (fstatat): Define to rpl_fstatat under the same conditions,
66187         unless COMPILING_FSTATAT.
66188         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66189         seems to have the bug.
66190         * lib/fstatat.c: New file.
66191         * modules/openat (Files): Add it.
66192
66193 2006-11-20  Bruno Haible  <bruno@clisp.org>
66194
66195         * Makefile: New file.
66196
66197 2006-11-20  Jim Meyering  <jim@meyering.net>
66198
66199         The beginnings of syntax-related checks for gnulib.
66200         * lib/Makefile: New file.
66201         * lib/t-idcache: New script.  Ensure that the two halves of
66202         idcache.c stay in sync.
66203
66204         * lib/idcache.c: Adjust comments in user- and group- portions to
66205         be more accurate, and to be consistent with one another.
66206
66207 2006-11-20  Jim Meyering  <jim@meyering.net>
66208
66209         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66210         continue using the flexible array member (thus, this module performs
66211         half as many malloc calls), with the addition that...
66212         (getgroup, getuser): Consistently record a non-match via an empty
66213         "name" string, and map an empty string match to a NULL return value.
66214         * modules/idcache (Depends-on): Re-add flexmember.
66215
66216         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66217         (getuidbyname, getgroup, getgidbyname): Likewise.
66218
66219         Use cleaner syntax: NULL rather than 0.
66220         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66221
66222 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66225         It mishandled the case where the group was missing.
66226         Problem reported by Greg Schafer.
66227         * modules/idcache: Likewise.
66228
66229 2006-11-18  Jim Meyering  <jim@meyering.net>
66230
66231         * check-module (%exempt_header): Add exception for some
66232         conditionally-included headers.
66233
66234         * modules/i-ring (Depends-on): Add verify.
66235         (License): Change to LGPL.
66236
66237 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66238
66239         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66240         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66241         and inttostr.h.  Use snprintf rather than uinttostr, so that
66242         LGPLed code doesn't depend on GPLed.
66243
66244 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * modules/inline (License): Change from GPL to LGPL.
66247
66248 2006-11-17  Jim Meyering  <jim@meyering.net>
66249
66250         * modules/d-type (License): Switch to LGPL.
66251
66252 2006-11-15  Bruno Haible  <bruno@clisp.org>
66253
66254         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66255
66256 2006-11-15  Eric Blake  <ebb9@byu.net>
66257
66258         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66259         the module dependency.
66260
66261 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66262             Bruno Haible  <bruno@clisp.org>
66263
66264         * gnulib-tool (func_create_testdir): Add license consistency check.
66265
66266 2006-11-15  Eric Blake  <ebb9@byu.net>
66267
66268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66269         random "(cached)" in configure output.
66270
66271 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66272
66273         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66274         test for conforming inttypes.h is both announced and cached.
66275
66276         * MODULES.html.sh (seen_modules, seen_files): New variables.
66277         (func_module): Rewrite to use a few less gnulib-tool and sed
66278         invocations.  Avoid a couple of quadratic algorithms for ...
66279         (missed_modules, missed_files): ... these, with ...
66280         (func_append, func_tmpdir): ... these new functions, from
66281         gnulib-tool.  Analogously, install traps for cleanup.
66282
66283         * tests/test-gc.c (main): Remove unused variables.
66284         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66285
66286 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * modules/inttostr (License): Change to LGPL.
66289
66290 2006-11-14  Eric Blake  <ebb9@byu.net>
66291
66292         * modules/tempname (License): Change to LGPL.
66293
66294 2006-11-14  Eric Blake  <ebb9@byu.net>
66295
66296         * doc/functions.texi (Function Portability): *printf functions on
66297         Cygwin now understand all POSIX size specifiers.
66298
66299 2006-11-14  Bruno Haible  <bruno@clisp.org>
66300
66301         * modules/c-ctype (License): Change to LGPL.
66302
66303 2006-11-12  Bruno Haible  <bruno@clisp.org>
66304
66305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66306         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66307         for GNOME libraries, for which the include files are installed in
66308         subdirectories of $prefix/include.
66309
66310 2006-11-12  Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/lib-link.m4: Require at least autoconf-2.54.
66313         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66314         name to underscores for the --with option.
66315
66316 2006-11-13  Bruno Haible  <bruno@clisp.org>
66317
66318         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66319         the tests directory.
66320         Reported by Ralf Wildenhues.
66321
66322 2006-11-13  Bruno Haible  <bruno@clisp.org>
66323
66324         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66325         (func_emit_initmacro_end): Undo the override here.
66326         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66327         Works around the famous automake error in coreutils.
66328
66329 2006-11-13  Eric Blake  <ebb9@byu.net>
66330
66331         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66332         element, not its node.
66333
66334 2006-11-12  Bruno Haible  <bruno@clisp.org>
66335
66336         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66337         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66338
66339 2006-11-12  Bruno Haible  <bruno@clisp.org>
66340
66341         * gnulib-tool: New option --local-symlink.
66342         (func_usage): Document it.
66343         (lsymbolic): New variable.
66344         (func_import, func_create_testdir): If --symlink was not specified,
66345         test whether --local-symlink was specified and the file comes from
66346         the local_gnulib_dir.
66347
66348 2006-11-12  Bruno Haible  <bruno@clisp.org>
66349
66350         * gnulib-tool (func_ln): New function.
66351         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66352
66353 2006-11-12  Bruno Haible  <bruno@clisp.org>
66354
66355         Finish support for source files in subdirectories.
66356         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66357         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66358         AUTOMAKE_OPTIONS.
66359         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66360
66361 2006-11-12  Bruno Haible  <bruno@clisp.org>
66362
66363         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66364         EXTRA_lib_SOURCES augmentation.
66365         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66366
66367 2006-11-12  Jim Meyering  <jim@meyering.net>
66368
66369         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66370         file descriptors.  This also averts a failure on systems with
66371         native openat support when a traversed directory lacks "x" access.
66372         * lib/fts_.h: Include "i-ring.h"
66373         (struct FTS) [fts_fd_ring]: New member.
66374         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66375         (FCHDIR): Add parentheses.
66376         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66377         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66378         When descending, rather than simply closing the previous
66379         fts_cwd_fd value, push that file descriptor onto the ring.
66380         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66381         (fts_open): Initialize the new fd_ring member.
66382         (fts_close): Clear the ring.
66383         (fts_safe_changedir): When possible, use our new fd_ring to skip
66384         the diropen and fstat and dev/ino comparison that would normally
66385         accompany a virtual `chdir ("..")'.
66386
66387         * modules/fts (Depends-on): Add i-ring.
66388         * modules/i-ring: New module.
66389         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66390         * m4/i-ring.m4: New file.
66391
66392 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66393
66394         * gnulib-tool (func_create_testdir): Fix replacement of
66395         `build-aux' in configure.ac.  Run autotools in gltests
66396         subdirectory.
66397         (func_create_testdir, func_create_megatestdir, test): There is
66398         no need for '--force' in most autotool invocations in a new
66399         tree.  Actually fail the whole test if any of the tools, or the
66400         configure or make stages fail.
66401
66402         Sync from Automake.
66403         * build-aux/gnupload: Revert last change.  Add pointer to upload
66404         instructions of the GNU Maintenance Instructions.
66405         Suggestion by Karl Berry.
66406
66407 2006-11-10  Jim Meyering  <jim@meyering.net>
66408
66409         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66410
66411 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66412
66413         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66414         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66415         (bind_textdomain_codeset) [! ENABLE_NLS]:
66416         Evaluate all the arguments.  That way, callers get compatible behavior
66417         if the arguments have side effects.  Also, it avoids some GCC
66418         diagnostics in some cases; Joel E. Denny reported problems when Bison
66419         was configured with --enable-gcc-warnigs.
66420
66421 2006-11-10  Jim Meyering  <jim@meyering.net>
66422
66423         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66424         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66425         account.
66426
66427 2006-11-10  Jim Meyering  <jim@meyering.net>
66428
66429         * modules/inline: New file/module.
66430         * modules/xalloc (Files): Remove m4/inline.m4.
66431         (Depends-on): Add inline, instead.
66432         * modules/oset: Likewise.
66433         * modules/list: Likewise.
66434
66435 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66436
66437         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66438         Problem reported by Matthew Woehlke.
66439
66440 2006-11-09  Bruno Haible  <bruno@clisp.org>
66441
66442         * lib/tempname.c (gen_tempname): Remove variant that invokes
66443         __gen_tempname.
66444         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66445         __gen_tempname.
66446
66447 2006-11-08  Bruno Haible  <bruno@clisp.org>
66448
66449         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66450         to 'yes' instead of 'cross-compiling'.
66451
66452 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66453
66454         * lib/quotearg.h (quotearg_free): New decl.
66455         * lib/quotearg.c (quotearg_free): New function.
66456         (slot0, nslots, slotvec0, slotvec):
66457         Now file-scope so that quotearg_free can get at them.
66458
66459 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66460
66461         Sync from Automake.
66462         * build-aux/gnupload: Add missing 'gnu' to example URL.
66463         Report by Karl Berry.
66464
66465 2006-11-08  Bruno Haible  <bruno@clisp.org>
66466
66467         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66468         Suggested by Paul Eggert.
66469
66470 2006-11-08  Jim Meyering  <jim@meyering.net>
66471
66472         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66473         It's already included if !_LIBC.
66474         (fts_safe_changedir): Add a comment.
66475
66476 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66479         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66480         Matthew Woehlke.
66481
66482         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66483         definitions up, to avoid colliding with change below.
66484         (static_inline) [HAVE_INLINE]: New macro.
66485         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66486         Provide extern decls when !HAVE_INLINE.  Do not define unless
66487         static_inline is defined, either by us or by xmalloc.c.  Use
66488         static_inline rather than static inline.
66489         (XCALLOC): Optimize sizeof(T) = 1 case.
66490         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66491
66492 2006-11-07  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66495         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66496         AC_C_INLINE.
66497         * modules/xalloc (Files): Add m4/inline.m4.
66498
66499 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66500
66501         * README: Fix typo.
66502         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66503         (Miscellanous Notes): ...from this.
66504
66505 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66508         Mention that offsetof should be used instead of sizeof.
66509         From Bruno Haible.
66510
66511 2006-11-07  Bruno Haible  <bruno@clisp.org>
66512
66513         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66514
66515 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66516
66517         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66518         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66519         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66520         (gl_tree_add_before, gl_tree_add_after):
66521         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66522         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66523         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66524         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66525         (gl_linked_add_after, gl_linked_add_at): Likewise.
66526         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66527         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66528         (gl_tree_add_before, gl_tree_add_after): Likewise.
66529         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66530         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66531         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66532
66533 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66534
66535         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66536
66537 2006-11-06  Bruno Haible  <bruno@clisp.org>
66538
66539         * m4/inline.m4: New file.
66540         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66541         * modules/list (Files): Add m4/inline.m4.
66542         * modules/oset (Files): Likewise.
66543
66544 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * lib/idcache.c: Include <stddef.h>, for offsetof.
66547         (struct userid.name): Change from char * to a flexible array member.
66548         All uses changed.
66549         * modules/idcache (Depends-on): Add flexmember.
66550
66551         * MODULES.html.sh (Core language properties): New module flexmember.
66552         * modules/flexmember, m4/flexmember.m4: New files.
66553
66554         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66555         inline functions that are identical with the old xnmalloc_inline,
66556         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66557         that we can avoid some unnecessary integer multiplications and
66558         divisions in the common case where the element size is known at
66559         compile time.
66560         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66561         needed.
66562         (xnboundedmalloc): Remove.
66563         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66564         arguments, for consistency with rest of this header.
66565         (xcharalloc): Rewrite using XNMALLOC.
66566         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66567         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66568         versions have been moved to lib/xalloc.h and renamed to be the
66569         non-*_inline versions.
66570         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66571         and xnrealloc functions, since those functions are now inline and
66572         now call us.
66573         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66574         renaming described above.
66575         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66576         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66577         captures the dependency in AC_C_INLINE.
66578
66579         New module canonicalize-lgpl, proposed by Charles Wilson in
66580         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66581         with a few small changes afterwards.
66582         * MODULES.html.sh (File system functions): New module
66583         canonicalize-lgpl.
66584         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66585         and canonicalize_file_name.
66586         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66587         * modules/canonicalize-lgpl: New files.
66588
66589 2006-11-05  Bruno Haible  <bruno@clisp.org>
66590
66591         * gnulib-tool (func_import, func_create_testdir): Create directories
66592         also for files in subdirectories of lib/.
66593
66594 2006-11-05  Bruno Haible  <bruno@clisp.org>
66595
66596         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66597         ANSI C compliant.
66598
66599 2006-11-03  Bruno Haible  <bruno@clisp.org>
66600
66601         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66602         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66603         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66604         (xnboundedmalloc): New inline function.
66605         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66606         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66607         xmalloc.
66608         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66609         xmalloc.
66610         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66611         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66612         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66613         xmalloc.
66614         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66615         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66616         xmalloc.
66617         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66618         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66619         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66620         xmalloc.
66621         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66622         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66623         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66624         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66625         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66626         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66627         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66628
66629 2006-11-03  Bruno Haible  <bruno@clisp.org>
66630
66631         * lib/c-ctype.h [C++]: Define functions without name mangling.
66632         * lib/fwriteerror.h [C++]: Likewise.
66633         * lib/gcd.h [C++]: Likewise.
66634         * lib/linebreak.h [C++]: Likewise.
66635
66636 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66639         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66640         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66641         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66642         Check for functions and headers just once.
66643         Check for declaration of canonicalize_file_name.
66644         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66645
66646 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66647
66648         * gnulib-tool (func_import): Fix typo in actioncmd.
66649
66650 2006-11-02  Bruno Haible  <bruno@clisp.org>
66651
66652         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66653         newline sequence in the Makefile.am snippet as a space, like "make"
66654         does.
66655         Reported by Roger Persson <perrog@gmail.com>.
66656
66657 2006-11-01  Bruno Haible  <bruno@clisp.org>
66658
66659         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66660         already declared in <string.h>.
66661         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66662
66663 2006-11-01  Bruno Haible  <bruno@clisp.org>
66664
66665         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66666         * lib/strcase.h: Include <string.h>.
66667         (strcasecmp): Define to rpl_strcasecmp here.
66668
66669 2006-11-01  Bruno Haible  <bruno@clisp.org>
66670
66671         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66672
66673 2006-11-01  Eric Blake  <ebb9@byu.net>
66674
66675         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66676
66677         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66678
66679 2006-10-29  Bruno Haible  <bruno@clisp.org>
66680
66681         Make it compile in C++ mode.
66682         * lib/full-write.c (full_rw): Add a cast.
66683
66684 2006-11-01  Bruno Haible  <bruno@clisp.org>
66685
66686         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66687         be POSIX compliant.
66688         Reported by Roger Persson <perrog@gmail.com>.
66689
66690 2006-11-01  Eric Blake  <ebb9@byu.net>
66691
66692         * lib/getopt_.h: Fix comments.
66693
66694 2006-10-31  Eric Blake  <ebb9@byu.net>
66695
66696         * modules/tmpdir (Depends-on): Add sys_stat.
66697         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66698         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66699         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66700         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66701         tempname.
66702
66703 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         Avoid some C++ diagnostics reported by Bruno Haible.
66706         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66707         xmalloc.
66708         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66709         (struct slotvec): Move to top level.
66710         (quotearg_n_options): Rewrite to avoid xmalloc.
66711         * lib/xalloc.h (xcharalloc): New function.
66712         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66713         [defined __cplusplus]: Add function template that provides result
66714         type propagation.  This part of the change is from Bruno Haible.
66715
66716 2006-10-29  Bruno Haible  <bruno@clisp.org>
66717
66718         Make it compile in C++ mode.
66719         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66720         * lib/strnlen1.c (strnlen1): Cast memchr result.
66721         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66722         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66723         (create_temp_dir): Rename local variable 'template'.
66724         (compile_csharp_using_sscli): Add cast.
66725         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66726         * lib/findprog.c (find_in_path): Likewise.
66727         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66728         * lib/wait-process.c (register_slave_subprocess): Likewise.
66729
66730 2006-10-22  Bruno Haible  <bruno@clisp.org>
66731
66732         * modules/tsearch: New file.
66733         * lib/tsearch.h: New file.
66734         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66735         * m4/tsearch.m4: New file.
66736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66737
66738 2006-10-29  Eric Blake  <ebb9@byu.net>
66739
66740         * lib/arcfour.c: Assume config.h.
66741         * lib/arctwo.c: Likewise.
66742         * lib/base64.c: Likewise.
66743         * lib/check-version.c: Likewise.
66744         * lib/crc.c: Likewise.
66745         * lib/des.c: Likewise.
66746         * lib/gc-gnulib.c: Likewise.
66747         * lib/gc-libgcrypt.c: Likewise.
66748         * lib/gc-pbkdf2-sha1.c: Likewise.
66749         * lib/getaddrinfo.c: Likewise.
66750         * lib/getdelim.c: Likewise.
66751         * lib/getline.c: Likewise.
66752         * lib/hmac-md5.c: Likewise.
66753         * lib/hmac-sha1.c: Likewise.
66754         * lib/iconvme.c: Likewise.
66755         * lib/md2.c: Likewise.
66756         * lib/md4.c: Likewise.
66757         * lib/memxor.c: Likewise.
66758         * lib/read-file.c: Likewise.
66759         * lib/readline.c: Likewise.
66760         * lib/rijndael-alg-fst.c: Likewise.
66761         * lib/rijndael-api-fst.c: Likewise.
66762         * lib/xgetdomainname.c: Likewise.
66763
66764 2006-10-28  Eric Blake  <ebb9@byu.net>
66765
66766         * lib/xstrndup.c: Assume config.h.
66767
66768 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66771         stat-macros.h is now for our own macros, whereas stat_h is for
66772         macros in the <sys/stat.h> name space.
66773         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66774         (STAT_MACROS_H): Remove.
66775         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66776         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66777         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66778         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66779         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66780         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66781         Move these macros to ...
66782         * lib/stat_.h: here.  Don't include stat-macros.h.
66783         * lib/canonicalize.c: Don't include stat-macros.h.
66784         * lib/chown.c: Likewise.
66785         * lib/euidaccess.c: Likewise.
66786         * lib/file-type.c: Likewise.
66787         * lib/filemode.c: Likewise.
66788         * lib/glob.c: Likewise.
66789         * lib/isapipe.c: Likewise.
66790         * lib/lchown.c: Likewise.
66791         * lib/lstat.c: Likewise.
66792         * lib/mkdir-p.c: Likewise.
66793         * lib/rmdir.c: Likewise.
66794         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66796         unless mkdir isn't declared, to speed up 'configure'.
66797         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66798         would define all the S_* symbols.
66799         * modules/canonicalize (Depends-on):
66800         Depend on sys_stat, not stat-macros.
66801         * modules/chown: Likewise.
66802         * modules/euidaccess: Likewise.
66803         * modules/filemode: Likewise.
66804         * modules/file-type: Likewise.
66805         * modules/glob: Likewise.
66806         * modules/isapipe: Likewise.
66807         * modules/lchown: Likewise.
66808         * modules/lstat: Likewise.
66809         * modules/mkancesdirs: Likewise.
66810         * modules/rmdir: Likewise.
66811         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66812         * modules/modechange: Likewise.
66813         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66814         (configure.ac): Remove gl_STAT_MACROS.
66815         * modules/sys_stat (Depends-on): Remove stat-macros.
66816
66817 2006-10-27  Bruno Haible  <bruno@clisp.org>
66818
66819         * m4/signed.m4: Remove file.
66820         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66821         invocation.
66822         * modules/vasnprintf (Files): Remove m4/signed.m4.
66823
66824 2006-10-27  Bruno Haible  <bruno@clisp.org>
66825
66826         Update to GNU gettext 0.16.
66827         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66828         m4/inttypes-h.m4, m4/signed.m4.
66829         * m4/gettext.m4: Update to GNU gettext 0.16.
66830         * m4/intl.m4: New file, from GNU gettext.
66831         * m4/intldir.m4: New file, from GNU gettext.
66832         * config/srclist.txt: Update
66833
66834 2006-10-27  Eric Blake  <ebb9@byu.net>
66835
66836         * MODULES.html.sh: Document tempname.
66837         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66838         dependencies.
66839         (Files): Move lib/tempname.c...
66840         * modules/tempname: ...to this new module.
66841         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66842         (gl_PREREQ_TEMPNAME): Move...
66843         * m4/tempname.m4: ...to this new file.
66844         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66845         * modules/sys_stat (Depends-on): Add stat-macros.
66846         * lib/stat_.h (includes): Pick up stat macros.
66847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66848         if stat macros are broken.
66849         * lib/tempname.c (includes): No need to include "stat-macros.h".
66850         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66851         (direxists, __path_search) [!_LIBC]: Don't compile these in
66852         gnulib; the tmpdir module covers that.
66853         * lib/tempname.h: New file.
66854
66855 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * COPYING: Explain how gnulib-tool converts licence headers.
66858         Almost all wording by Eric Blake.
66859
66860 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * lib/mbchar.h (is_basic_table): Make read-only.
66863         * lib/mbchar.c (is_basic_table): Likewise.
66864         Reported by John Darrington.
66865
66866 2006-10-25  Bruno Haible  <bruno@clisp.org>
66867
66868         * lib/progname.h (set_program_name): Undefine before defining.
66869
66870 2006-10-25  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66873         false for non-gcc C++ compilers.
66874         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66875
66876 2006-10-24  Bruno Haible  <bruno@clisp.org>
66877
66878         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66879         iconv implementations like Irix iconv.
66880
66881 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * modules/vararrays: New file.
66884         * m4/vararrays.m4: New file, taken from diffutils.
66885         * MODULES.html.sh: New module vararrays.
66886
66887 2006-10-24  Karl Berry  <karl@gnu.org>
66888
66889         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66890         Don't call GNU Unix.
66891
66892 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66893
66894         * users.txt: Add Libtool.
66895
66896         Sync from Libtool:
66897
66898         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66901         to gnulib's policy of including config.h unconditionally.
66902
66903 2006-10-24  Bruno Haible  <bruno@clisp.org>
66904
66905         * modules/wcwidth (Files): Add m4/wint_t.m4.
66906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66907         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66908
66909 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66912         to pacify GCC with some -W flags enabled.  Problem reported by
66913         Bruno Haible.
66914
66915 2006-10-24  Jim Meyering  <jim@meyering.net>
66916
66917         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66918         Reported by Karl Berry.
66919
66920 2006-10-23  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66923
66924 2006-10-24  Bruno Haible  <bruno@clisp.org>
66925
66926         * lib/gl_list.h: Use C comment style, not C++ comment style.
66927
66928 2006-10-23  Eric Blake  <ebb9@byu.net>
66929
66930         * lib/getaddrinfo.c (includes): Add missing include.
66931
66932 2006-10-23  Bruno Haible  <bruno@clisp.org>
66933             Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         Ability to rename obstack_free.
66936         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66937         obstack_free.
66938         (obstack_free): Invoke the __obstack_free macro.
66939         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66940
66941 2006-10-23  Bruno Haible  <bruno@clisp.org>
66942             Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66945         __argc, __argv from the declaration. (They are defined as macros on
66946         mingw.)
66947
66948 2006-10-22  Bruno Haible  <bruno@clisp.org>
66949
66950         * doc/gnulib-intro.texi: New file.
66951         * doc/gnulib.texi: Include it.
66952
66953 2006-10-21  Bruno Haible  <bruno@clisp.org>
66954
66955         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66956         "Introduction", "Miscellanous Notes", "Particular Modules".
66957
66958 2006-10-21  Bruno Haible  <bruno@clisp.org>
66959
66960         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66961         Change mostlyclean-local rule to avoid sh syntax error from bash
66962         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66963
66964 2006-10-23  Jim Meyering  <jim@meyering.net>
66965
66966         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66967         in place of snprintf.
66968
66969         * modules/inttostr (Files): Add lib/uinttostr.c.
66970         * lib/uinttostr.c (inttostr): New file/function.
66971         * lib/inttostr.h (uinttostr): Declare.
66972         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66973         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66974         Add uinttostr.
66975         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66976
66977 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66978
66979         * lib/canonicalize.c (ELOOP): Define if not already defined.
66980         Problem reported by Bruno Haible in
66981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66982
66983 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66984
66985         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66986         Problem reported by Perry Smith and Ville Laurikari.
66987
66988         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66989         uses.
66990
66991 2006-10-19  Bruno Haible  <bruno@clisp.org>
66992
66993         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66994         for mingw.
66995
66996 2006-10-19  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66999         Needed for mingw.
67000
67001 2006-10-19  Bruno Haible  <bruno@clisp.org>
67002
67003         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67004
67005 2006-10-19  Bruno Haible  <bruno@clisp.org>
67006
67007         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67008         it.
67009
67010 2006-10-19  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67013         invocation.
67014
67015 2006-10-19  Bruno Haible  <bruno@clisp.org>
67016
67017         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67018         mountlist by default.
67019
67020 2006-10-16  Bruno Haible  <bruno@clisp.org>
67021
67022         * lib/c-strstr.c: Include c-strstr.h.
67023
67024 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67025
67026         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67027         in a slash.
67028
67029 2006-10-18  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/lock.h [C++]: Wrap definitions in extern "C".
67032
67033 2006-10-18  Bruno Haible  <bruno@clisp.org>
67034
67035         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67036         gl_LIBOBJS list.
67037
67038 2006-10-18  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67041
67042 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * lib/xstrtol.h: Include gettext.h.
67045         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67046         Problem reported by Eric Blake.
67047         * modules/xstrtol (Depends-on): Add gettext-h.
67048
67049 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67050
67051         * lib/strftime.c (advance): New macro.
67052         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67053         incomplete type, so you can't add 0 to it.  Problem and patch
67054         reported by Eelco Dolstra for dietlibc.
67055
67056 2006-10-18  Jim Meyering  <jim@meyering.net>
67057
67058         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67059         type for a local, and rename it: s/up/user_proc/.
67060
67061 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67062
67063         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67064         READ_UTMP_USER_PROCESS.
67065         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67066
67067 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67068
67069         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67070         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67071
67072 2006-10-17  Eric Blake  <ebb9@byu.net>
67073
67074         * lib/sigprocmask.c (sigprocmask): Fix typo.
67075
67076         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67077
67078         * modules/clean-temp (Makefile.am): Don't add to make output...
67079         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67080         config.h.
67081
67082 2006-10-17  Bruno Haible  <bruno@clisp.org>
67083
67084         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67085         differently if DEFAULT_TEXT_DOMAIN is set.
67086
67087 2006-10-16  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/clean-temp.c: Include fwriteerror.h.
67090
67091 2006-10-16  Bruno Haible  <bruno@clisp.org>
67092
67093         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67094
67095 2006-10-16  Bruno Haible  <bruno@clisp.org>
67096
67097         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67098         * lib/sigprocmask.h: Include <sys/types.h>.
67099         (sigset_t): Use the system's definition if present.
67100
67101 2006-10-17  Eric Blake  <ebb9@byu.net>
67102
67103         * lib/xvasprintf.c (includes): Assume config.h.
67104         * lib/xasprintf.c (includes): Likewise.
67105
67106 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67109         at least as wide as intmax_t.
67110
67111 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67112
67113         (Imported from Automake.)
67114         * build-aux/gnupload: Update to version 1.1 of directive file.
67115
67116 2006-10-16  Eric Blake  <ebb9@byu.net>
67117
67118         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67119         match Automake 1.10a.
67120
67121 2006-10-14  Bruno Haible  <bruno@clisp.org>
67122
67123         * modules/sigprocmask: New file.
67124         * lib/sigprocmask.h: New file.
67125         * lib/sigprocmask.c: New file.
67126         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67127         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67128         request sigprocmask.o.
67129         (gl_PREREQ_SIGPROCMASK): New macro.
67130         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67131         (Depends-on): Add sigprocmask.
67132         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67133         gt_SIGNALBLOCKING. Test for 'raise' only once.
67134         * lib/fatal-signal.c: Include sigprocmask.h.
67135         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67136         unblock_fatal_signals): Define always.
67137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67138         sigprocmask.
67139
67140 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67141
67142         Sync from Automake.
67143         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67144         which incorrectly sets the mode of an existing destination
67145         directory.  In some cases the unpatched install-sh could do the
67146         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67147         system.  We hope this is rare in practice, but it's clearly worth
67148         fixing.  Problem reported by Alex Unleashed in
67149         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67150         Also, don't bother to check for -m bugs unless we're using -m;
67151         suggested by Stepan Kasal.
67152
67153 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67154
67155         Sync from Automake.
67156         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67157         `-c' flag, so they appear at the same position as in %FASTDEP%
67158         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67159         which ignores unknown options only after the first non-option.
67160         Bug report against M4 by Nelson H. F. Beebe.
67161
67162 2006-10-13  Jim Meyering  <jim@meyering.net>
67163
67164         Fix a bug in yesterday's change.
67165         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67166         p->fts_statp->st_dev would be used uninitialized.
67167         Ensures that we always call fts_stat on the very first entry.
67168         Miklos Szeredi reported that find -xdev stopped working.
67169
67170 2006-10-12  Bruno Haible  <bruno@clisp.org>
67171
67172         * gnulib-tool (func_get_automake_snippet): Append an automatically
67173         computed EXTRA_DIST augmentation.
67174         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67175         * modules/alloca-opt (Makefile.am): Likewise.
67176         * modules/allocsa (Makefile.am): Likewise.
67177         * modules/arcfour (Makefile.am): Likewise.
67178         * modules/arctwo (Makefile.am): Likewise.
67179         * modules/argmatch (Makefile.am): Likewise.
67180         * modules/argz (Makefile.am): Likewise.
67181         * modules/atexit (Makefile.am): Likewise.
67182         * modules/backupfile (Makefile.am): Likewise.
67183         * modules/byteswap (Makefile.am): Likewise.
67184         * modules/c-strtod (Makefile.am): Likewise.
67185         * modules/c-strtold (Makefile.am): Likewise.
67186         * modules/calloc (Makefile.am): Likewise.
67187         * modules/canon-host (Makefile.am): Likewise.
67188         * modules/canonicalize (Makefile.am): Likewise.
67189         * modules/chdir-long (Makefile.am): Likewise.
67190         * modules/chdir-safer (Makefile.am): Likewise.
67191         * modules/check-version (Makefile.am): Likewise.
67192         * modules/chown (Makefile.am): Likewise.
67193         * modules/cloexec (Makefile.am): Likewise.
67194         * modules/close-stream (Makefile.am): Likewise.
67195         * modules/closeout (Makefile.am): Likewise.
67196         * modules/crc (Makefile.am): Likewise.
67197         * modules/csharpexec (Makefile.am): Likewise.
67198         * modules/cycle-check (Makefile.am): Likewise.
67199         * modules/des (Makefile.am): Likewise.
67200         * modules/dev-ino (Makefile.am): Likewise.
67201         * modules/dirfd (Makefile.am): Likewise.
67202         * modules/dirname (Makefile.am): Likewise.
67203         * modules/dup2 (Makefile.am): Likewise.
67204         * modules/eealloc (Makefile.am): Likewise.
67205         * modules/error (Makefile.am): Likewise.
67206         * modules/euidaccess (Makefile.am): Likewise.
67207         * modules/exclude (Makefile.am): Likewise.
67208         * modules/exitfail (Makefile.am): Likewise.
67209         * modules/fcntl-safer (Makefile.am): Likewise.
67210         * modules/fcntl (Makefile.am): Likewise.
67211         * modules/file-type (Makefile.am): Likewise.
67212         * modules/fileblocks (Makefile.am): Likewise.
67213         * modules/filemode (Makefile.am): Likewise.
67214         * modules/filenamecat (Makefile.am): Likewise.
67215         * modules/fnmatch (Makefile.am): Likewise.
67216         * modules/fopen-safer (Makefile.am): Likewise.
67217         * modules/fpending (Makefile.am): Likewise.
67218         * modules/fprintftime (Makefile.am): Likewise.
67219         * modules/free (Makefile.am): Likewise.
67220         * modules/fsusage (Makefile.am): Likewise.
67221         * modules/ftruncate (Makefile.am): Likewise.
67222         * modules/fts (Makefile.am): Likewise.
67223         * modules/gc-arcfour (Makefile.am): Likewise.
67224         * modules/gc-des (Makefile.am): Likewise.
67225         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67226         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67227         * modules/gc-md4 (Makefile.am): Likewise.
67228         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67229         * modules/gc-sha1 (Makefile.am): Likewise.
67230         * modules/gc (Makefile.am): Likewise.
67231         * modules/getaddrinfo (Makefile.am): Likewise.
67232         * modules/getcwd (Makefile.am): Likewise.
67233         * modules/getdelim (Makefile.am): Likewise.
67234         * modules/getdomainname (Makefile.am): Likewise.
67235         * modules/getgroups (Makefile.am): Likewise.
67236         * modules/gethostname (Makefile.am): Likewise.
67237         * modules/gethrxtime (Makefile.am): Likewise.
67238         * modules/getline (Makefile.am): Likewise.
67239         * modules/getloadavg (Makefile.am): Likewise.
67240         * modules/getlogin_r (Makefile.am): Likewise.
67241         * modules/getndelim2 (Makefile.am): Likewise.
67242         * modules/getopt (Makefile.am): Likewise.
67243         * modules/getpagesize (Makefile.am): Likewise.
67244         * modules/getpass-gnu (Makefile.am): Likewise.
67245         * modules/getpass (Makefile.am): Likewise.
67246         * modules/getsubopt (Makefile.am): Likewise.
67247         * modules/gettime (Makefile.am): Likewise.
67248         * modules/gettimeofday (Makefile.am): Likewise.
67249         * modules/getugroups (Makefile.am): Likewise.
67250         * modules/getusershell (Makefile.am): Likewise.
67251         * modules/glob (Makefile.am): Likewise.
67252         * modules/group-member (Makefile.am): Likewise.
67253         * modules/hard-locale (Makefile.am): Likewise.
67254         * modules/hash (Makefile.am): Likewise.
67255         * modules/hmac-md5 (Makefile.am): Likewise.
67256         * modules/hmac-sha1 (Makefile.am): Likewise.
67257         * modules/human (Makefile.am): Likewise.
67258         * modules/idcache (Makefile.am): Likewise.
67259         * modules/imaxabs (Makefile.am): Likewise.
67260         * modules/imaxdiv (Makefile.am): Likewise.
67261         * modules/inet_ntop (Makefile.am): Likewise.
67262         * modules/inet_pton (Makefile.am): Likewise.
67263         * modules/intprops (Makefile.am): Likewise.
67264         * modules/inttostr (Makefile.am): Likewise.
67265         * modules/inttypes (Makefile.am): Likewise.
67266         * modules/isapipe (Makefile.am): Likewise.
67267         * modules/javaversion (Makefile.am): Likewise.
67268         * modules/lchmod (Makefile.am): Likewise.
67269         * modules/lchown (Makefile.am): Likewise.
67270         * modules/localcharset (Makefile.am): Likewise.
67271         * modules/long-options (Makefile.am): Likewise.
67272         * modules/lstat (Makefile.am): Likewise.
67273         * modules/malloc (Makefile.am): Likewise.
67274         * modules/mathl (Makefile.am): Likewise.
67275         * modules/mbchar (Makefile.am): Likewise.
67276         * modules/md2 (Makefile.am): Likewise.
67277         * modules/md4 (Makefile.am): Likewise.
67278         * modules/md5 (Makefile.am): Likewise.
67279         * modules/memcasecmp (Makefile.am): Likewise.
67280         * modules/memchr (Makefile.am): Likewise.
67281         * modules/memcmp (Makefile.am): Likewise.
67282         * modules/memcoll (Makefile.am): Likewise.
67283         * modules/memcpy (Makefile.am): Likewise.
67284         * modules/memmem (Makefile.am): Likewise.
67285         * modules/memmove (Makefile.am): Likewise.
67286         * modules/mempcpy (Makefile.am): Likewise.
67287         * modules/memrchr (Makefile.am): Likewise.
67288         * modules/memset (Makefile.am): Likewise.
67289         * modules/memxor (Makefile.am): Likewise.
67290         * modules/mkancesdirs (Makefile.am): Likewise.
67291         * modules/mkdir-p (Makefile.am): Likewise.
67292         * modules/mkdir (Makefile.am): Likewise.
67293         * modules/mkdtemp (Makefile.am): Likewise.
67294         * modules/mkstemp (Makefile.am): Likewise.
67295         * modules/mktime (Makefile.am): Likewise.
67296         * modules/modechange (Makefile.am): Likewise.
67297         * modules/mountlist (Makefile.am): Likewise.
67298         * modules/nanosleep (Makefile.am): Likewise.
67299         * modules/obstack (Makefile.am): Likewise.
67300         * modules/openat (Makefile.am): Likewise.
67301         * modules/pagealign_alloc (Makefile.am): Likewise.
67302         * modules/pathmax (Makefile.am): Likewise.
67303         * modules/physmem (Makefile.am): Likewise.
67304         * modules/poll (Makefile.am): Likewise.
67305         * modules/posixtm (Makefile.am): Likewise.
67306         * modules/posixver (Makefile.am): Likewise.
67307         * modules/putenv (Makefile.am): Likewise.
67308         * modules/quote (Makefile.am): Likewise.
67309         * modules/quotearg (Makefile.am): Likewise.
67310         * modules/raise (Makefile.am): Likewise.
67311         * modules/read-file (Makefile.am): Likewise.
67312         * modules/readline (Makefile.am): Likewise.
67313         * modules/readlink (Makefile.am): Likewise.
67314         * modules/readtokens (Makefile.am): Likewise.
67315         * modules/readutmp (Makefile.am): Likewise.
67316         * modules/realloc (Makefile.am): Likewise.
67317         * modules/regex (Makefile.am): Likewise.
67318         * modules/rename-dest-slash (Makefile.am): Likewise.
67319         * modules/rename (Makefile.am): Likewise.
67320         * modules/rijndael (Makefile.am): Likewise.
67321         * modules/rmdir (Makefile.am): Likewise.
67322         * modules/rpmatch (Makefile.am): Likewise.
67323         * modules/safe-read (Makefile.am): Likewise.
67324         * modules/safe-write (Makefile.am): Likewise.
67325         * modules/same-inode (Makefile.am): Likewise.
67326         * modules/same (Makefile.am): Likewise.
67327         * modules/save-cwd (Makefile.am): Likewise.
67328         * modules/savedir (Makefile.am): Likewise.
67329         * modules/setenv (Makefile.am): Likewise.
67330         * modules/settime (Makefile.am): Likewise.
67331         * modules/sha1 (Makefile.am): Likewise.
67332         * modules/sig2str (Makefile.am): Likewise.
67333         * modules/snprintf (Makefile.am): Likewise.
67334         * modules/stat-macros (Makefile.am): Likewise.
67335         * modules/stat-time (Makefile.am): Likewise.
67336         * modules/stdbool (Makefile.am): Likewise.
67337         * modules/stdint (Makefile.am): Likewise.
67338         * modules/stdlib-safer (Makefile.am): Likewise.
67339         * modules/stpcpy (Makefile.am): Likewise.
67340         * modules/stpncpy (Makefile.am): Likewise.
67341         * modules/strcase (Makefile.am): Likewise.
67342         * modules/strcasestr (Makefile.am): Likewise.
67343         * modules/strchrnul (Makefile.am): Likewise.
67344         * modules/strcspn (Makefile.am): Likewise.
67345         * modules/strdup (Makefile.am): Likewise.
67346         * modules/strerror (Makefile.am): Likewise.
67347         * modules/strftime (Makefile.am): Likewise.
67348         * modules/strndup (Makefile.am): Likewise.
67349         * modules/strnlen (Makefile.am): Likewise.
67350         * modules/strpbrk (Makefile.am): Likewise.
67351         * modules/strsep (Makefile.am): Likewise.
67352         * modules/strstr (Makefile.am): Likewise.
67353         * modules/strtod (Makefile.am): Likewise.
67354         * modules/strtoimax (Makefile.am): Likewise.
67355         * modules/strtok_r (Makefile.am): Likewise.
67356         * modules/strtol (Makefile.am): Likewise.
67357         * modules/strtoll (Makefile.am): Likewise.
67358         * modules/strtoul (Makefile.am): Likewise.
67359         * modules/strtoull (Makefile.am): Likewise.
67360         * modules/strtoumax (Makefile.am): Likewise.
67361         * modules/strverscmp (Makefile.am): Likewise.
67362         * modules/sys_socket (Makefile.am): Likewise.
67363         * modules/sys_stat (Makefile.am): Likewise.
67364         * modules/sysexits (Makefile.am): Likewise.
67365         * modules/time_r (Makefile.am): Likewise.
67366         * modules/timegm (Makefile.am): Likewise.
67367         * modules/timespec (Makefile.am): Likewise.
67368         * modules/tmpfile-safer (Makefile.am): Likewise.
67369         * modules/trim (Makefile.am): Likewise.
67370         * modules/unistd-safer (Makefile.am): Likewise.
67371         * modules/unlinkdir (Makefile.am): Likewise.
67372         * modules/unlocked-io (Makefile.am): Likewise.
67373         * modules/userspec (Makefile.am): Likewise.
67374         * modules/utime (Makefile.am): Likewise.
67375         * modules/utimecmp (Makefile.am): Likewise.
67376         * modules/utimens (Makefile.am): Likewise.
67377         * modules/vasnprintf (Makefile.am): Likewise.
67378         * modules/vasprintf (Makefile.am): Likewise.
67379         * modules/vsnprintf (Makefile.am): Likewise.
67380         * modules/xalloc (Makefile.am): Likewise.
67381         * modules/xgetcwd (Makefile.am): Likewise.
67382         * modules/xnanosleep (Makefile.am): Likewise.
67383         * modules/xreadlink (Makefile.am): Likewise.
67384         * modules/xstrtod (Makefile.am): Likewise.
67385         * modules/xstrtol (Makefile.am): Likewise.
67386         * modules/xstrtold (Makefile.am): Likewise.
67387         * modules/yesno (Makefile.am): Likewise.
67388         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67389
67390 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67391
67392         * modules/error (Makefile.am): Distribute files through
67393         EXTRA_DIST, not lib_SOURCES.
67394
67395 2006-10-12  Eric Blake  <ebb9@byu.net>
67396
67397         * modules/error (Makefile.am): Distribute files in /lib.
67398         * modules/obstack (Makefile.am): Likewise.
67399
67400 2006-10-12  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/acl (Makefile.am): Distribute all files in lib/ through
67403         EXTRA_DIST.
67404         * modules/arcfour (Makefile.am): Likewise.
67405         * modules/arctwo (Makefile.am): Likewise.
67406         * modules/argmatch (Makefile.am): Likewise.
67407         * modules/argz (Makefile.am): Likewise.
67408         * modules/atexit (Makefile.am): Likewise.
67409         * modules/backupfile (Makefile.am): Likewise.
67410         * modules/c-strtod (Makefile.am): Likewise.
67411         * modules/c-strtold (Makefile.am): Likewise.
67412         * modules/calloc (Makefile.am): Likewise.
67413         * modules/canon-host (Makefile.am): Likewise.
67414         * modules/canonicalize (Makefile.am): Likewise.
67415         * modules/chdir-long (Makefile.am): Likewise.
67416         * modules/chdir-safer (Makefile.am): Likewise.
67417         * modules/check-version (Makefile.am): Likewise.
67418         * modules/chown (Makefile.am): Likewise.
67419         * modules/cloexec (Makefile.am): Likewise.
67420         * modules/close-stream (Makefile.am): Likewise.
67421         * modules/closeout (Makefile.am): Likewise.
67422         * modules/crc (Makefile.am): Likewise.
67423         * modules/cycle-check (Makefile.am): Likewise.
67424         * modules/des (Makefile.am): Likewise.
67425         * modules/dirfd (Makefile.am): Likewise.
67426         * modules/dirname (Makefile.am): Likewise.
67427         * modules/dup2 (Makefile.am): Likewise.
67428         * modules/euidaccess (Makefile.am): Likewise.
67429         * modules/exclude (Makefile.am): Likewise.
67430         * modules/exitfail (Makefile.am): Likewise.
67431         * modules/fcntl-safer (Makefile.am): Likewise.
67432         * modules/file-type (Makefile.am): Likewise.
67433         * modules/fileblocks (Makefile.am): Likewise.
67434         * modules/filemode (Makefile.am): Likewise.
67435         * modules/filenamecat (Makefile.am): Likewise.
67436         * modules/fnmatch (Makefile.am): Likewise.
67437         * modules/fopen-safer (Makefile.am): Likewise.
67438         * modules/fpending (Makefile.am): Likewise.
67439         * modules/fprintftime (Makefile.am): Likewise.
67440         * modules/free (Makefile.am): Likewise.
67441         * modules/fsusage (Makefile.am): Likewise.
67442         * modules/ftruncate (Makefile.am): Likewise.
67443         * modules/fts (Makefile.am): Likewise.
67444         * modules/gc (Makefile.am): Likewise.
67445         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67446         * modules/getaddrinfo (Makefile.am): Likewise.
67447         * modules/getcwd (Makefile.am): Likewise.
67448         * modules/getdelim (Makefile.am): Likewise.
67449         * modules/getdomainname (Makefile.am): Likewise.
67450         * modules/getgroups (Makefile.am): Likewise.
67451         * modules/gethostname (Makefile.am): Likewise.
67452         * modules/gethrxtime (Makefile.am): Likewise.
67453         * modules/getline (Makefile.am): Likewise.
67454         * modules/getloadavg (Makefile.am): Likewise.
67455         * modules/getlogin_r (Makefile.am): Likewise.
67456         * modules/getopt (Makefile.am): Likewise.
67457         * modules/getpass (Makefile.am): Likewise.
67458         * modules/getpass-gnu (Makefile.am): Likewise.
67459         * modules/getsubopt (Makefile.am): Likewise.
67460         * modules/gettime (Makefile.am): Likewise.
67461         * modules/gettimeofday (Makefile.am): Likewise.
67462         * modules/getugroups (Makefile.am): Likewise.
67463         * modules/getusershell (Makefile.am): Likewise.
67464         * modules/glob (Makefile.am): Likewise.
67465         * modules/group-member (Makefile.am): Likewise.
67466         * modules/hard-locale (Makefile.am): Likewise.
67467         * modules/hash (Makefile.am): Likewise.
67468         * modules/hmac-md5 (Makefile.am): Likewise.
67469         * modules/hmac-sha1 (Makefile.am): Likewise.
67470         * modules/human (Makefile.am): Likewise.
67471         * modules/idcache (Makefile.am): Likewise.
67472         * modules/imaxabs (Makefile.am): Likewise.
67473         * modules/imaxdiv (Makefile.am): Likewise.
67474         * modules/inet_ntop (Makefile.am): Likewise.
67475         * modules/inet_pton (Makefile.am): Likewise.
67476         * modules/inttostr (Makefile.am): Likewise.
67477         * modules/isapipe (Makefile.am): Likewise.
67478         * modules/lchown (Makefile.am): Likewise.
67479         * modules/long-options (Makefile.am): Likewise.
67480         * modules/lstat (Makefile.am): Likewise.
67481         * modules/malloc (Makefile.am): Likewise.
67482         * modules/mathl (Makefile.am): Likewise.
67483         * modules/mbchar (Makefile.am): Likewise.
67484         * modules/md2 (Makefile.am): Likewise.
67485         * modules/md4 (Makefile.am): Likewise.
67486         * modules/md5 (Makefile.am): Likewise.
67487         * modules/memcasecmp (Makefile.am): Likewise.
67488         * modules/memchr (Makefile.am): Likewise.
67489         * modules/memcmp (Makefile.am): Likewise.
67490         * modules/memcoll (Makefile.am): Likewise.
67491         * modules/memcpy (Makefile.am): Likewise.
67492         * modules/memmem (Makefile.am): Likewise.
67493         * modules/memmove (Makefile.am): Likewise.
67494         * modules/mempcpy (Makefile.am): Likewise.
67495         * modules/memrchr (Makefile.am): Likewise.
67496         * modules/memset (Makefile.am): Likewise.
67497         * modules/memxor (Makefile.am): Likewise.
67498         * modules/mkancesdirs (Makefile.am): Likewise.
67499         * modules/mkdir (Makefile.am): Likewise.
67500         * modules/mkdir-p (Makefile.am): Likewise.
67501         * modules/mkdtemp (Makefile.am): Likewise.
67502         * modules/mkstemp (Makefile.am): Likewise.
67503         * modules/mktime (Makefile.am): Likewise.
67504         * modules/modechange (Makefile.am): Likewise.
67505         * modules/mountlist (Makefile.am): Likewise.
67506         * modules/nanosleep (Makefile.am): Likewise.
67507         * modules/openat (Makefile.am): Likewise.
67508         * modules/pagealign_alloc (Makefile.am): Likewise.
67509         * modules/physmem (Makefile.am): Likewise.
67510         * modules/poll (Makefile.am): Likewise.
67511         * modules/posixtm (Makefile.am): Likewise.
67512         * modules/posixver (Makefile.am): Likewise.
67513         * modules/putenv (Makefile.am): Likewise.
67514         * modules/quote (Makefile.am): Likewise.
67515         * modules/quotearg (Makefile.am): Likewise.
67516         * modules/raise (Makefile.am): Likewise.
67517         * modules/read-file (Makefile.am): Likewise.
67518         * modules/readline (Makefile.am): Likewise.
67519         * modules/readlink (Makefile.am): Likewise.
67520         * modules/readtokens (Makefile.am): Likewise.
67521         * modules/readutmp (Makefile.am): Likewise.
67522         * modules/realloc (Makefile.am): Likewise.
67523         * modules/regex (Makefile.am): Likewise.
67524         * modules/rename (Makefile.am): Likewise.
67525         * modules/rename-dest-slash (Makefile.am): Likewise.
67526         * modules/rijndael (Makefile.am): Likewise.
67527         * modules/rmdir (Makefile.am): Likewise.
67528         * modules/rpmatch (Makefile.am): Likewise.
67529         * modules/safe-read (Makefile.am): Likewise.
67530         * modules/safe-write (Makefile.am): Likewise.
67531         * modules/same (Makefile.am): Likewise.
67532         * modules/save-cwd (Makefile.am): Likewise.
67533         * modules/savedir (Makefile.am): Likewise.
67534         * modules/setenv (Makefile.am): Likewise.
67535         * modules/settime (Makefile.am): Likewise.
67536         * modules/sha1 (Makefile.am): Likewise.
67537         * modules/sig2str (Makefile.am): Likewise.
67538         * modules/snprintf (Makefile.am): Likewise.
67539         * modules/stdlib-safer (Makefile.am): Likewise.
67540         * modules/stpcpy (Makefile.am): Likewise.
67541         * modules/stpncpy (Makefile.am): Likewise.
67542         * modules/strcase (Makefile.am): Likewise.
67543         * modules/strcasestr (Makefile.am): Likewise.
67544         * modules/strchrnul (Makefile.am): Likewise.
67545         * modules/strcspn (Makefile.am): Likewise.
67546         * modules/strdup (Makefile.am): Likewise.
67547         * modules/strerror (Makefile.am): Likewise.
67548         * modules/strftime (Makefile.am): Likewise.
67549         * modules/strndup (Makefile.am): Likewise.
67550         * modules/strnlen (Makefile.am): Likewise.
67551         * modules/strpbrk (Makefile.am): Likewise.
67552         * modules/strsep (Makefile.am): Likewise.
67553         * modules/strstr (Makefile.am): Likewise.
67554         * modules/strtod (Makefile.am): Likewise.
67555         * modules/strtoimax (Makefile.am): Likewise.
67556         * modules/strtok_r (Makefile.am): Likewise.
67557         * modules/strtol (Makefile.am): Likewise.
67558         * modules/strtoll (Makefile.am): Likewise.
67559         * modules/strtoul (Makefile.am): Likewise.
67560         * modules/strtoull (Makefile.am): Likewise.
67561         * modules/strtoumax (Makefile.am): Likewise.
67562         * modules/strverscmp (Makefile.am): Likewise.
67563         * modules/time_r (Makefile.am): Likewise.
67564         * modules/timegm (Makefile.am): Likewise.
67565         * modules/tmpfile-safer (Makefile.am): Likewise.
67566         * modules/unistd-safer (Makefile.am): Likewise.
67567         * modules/unlinkdir (Makefile.am): Likewise.
67568         * modules/userspec (Makefile.am): Likewise.
67569         * modules/utime (Makefile.am): Likewise.
67570         * modules/utimecmp (Makefile.am): Likewise.
67571         * modules/utimens (Makefile.am): Likewise.
67572         * modules/vasnprintf (Makefile.am): Likewise.
67573         * modules/vasprintf (Makefile.am): Likewise.
67574         * modules/vsnprintf (Makefile.am): Likewise.
67575         * modules/xalloc (Makefile.am): Likewise.
67576         * modules/xgetcwd (Makefile.am): Likewise.
67577         * modules/xnanosleep (Makefile.am): Likewise.
67578         * modules/xreadlink (Makefile.am): Likewise.
67579         * modules/xstrtod (Makefile.am): Likewise.
67580         * modules/xstrtol (Makefile.am): Likewise.
67581         * modules/xstrtold (Makefile.am): Likewise.
67582         * modules/yesno (Makefile.am): Likewise.
67583
67584 2006-10-12  Jim Meyering  <jim@meyering.net>
67585
67586         * m4/getloadavg.m4: Revert the change below.
67587
67588         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67589         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67590         fail with a symlink, which is what coreutils' ./bootstrap now
67591         creates by default.
67592
67593 2006-10-12  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67596         mingw.
67597         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67598         MSVC and mingw explicitly.
67599
67600 2006-10-11  Simon Josefsson  <jas@extundo.com>
67601             Bruno Haible  <bruno@clisp.org>
67602
67603         Add support for multiple gnulib-tool invocations in the scope of a
67604         single configure.ac file.
67605         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67606         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67607         with the same contents as the _LIBADD variable.
67608         (func_emit_initmacro_start, func_emit_initmacro_end,
67609         func_emit_initmacro_done): New functions.
67610         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67611         gl_LIBOBJS and gl_LTLIBOBJS.
67612
67613 2006-10-11  Bruno Haible  <bruno@clisp.org>
67614
67615         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67616         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67617         autoreconf. Instead, invoke autopoint explicitly but move back the
67618         *.m4 files from gnulib.
67619
67620 2006-10-11  Bruno Haible  <bruno@clisp.org>
67621
67622         * gnulib-tool (func_usage): Make module names after --create-testdir
67623         optional.
67624         (func_create_testdir): If no module was specified, use nearly all
67625         modules.
67626
67627 2006-10-12  Jim Meyering  <jim@meyering.net>
67628
67629         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67630         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67631         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67632         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67633         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67634         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67635         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67636         (fts_set_stat_required): New function.
67637         (fts_open): Defer the calls to fts_stat, if possible or requested.
67638         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67639         into fts_stat itself.
67640         (fts_read): Perform any required (deferred) fts_stat call.
67641         (fts_build): Likewise, for the directory we're about to open and read.
67642         In the readdir loop, carefully decide whether each entry will require
67643         an eventual call to fts_stat, using dirent.d_type info if available.
67644         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67645         a command line argument into this function.  Update all callers.
67646         Map a return value of FTS_DOT to FTS_D for a command line argument.
67647         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67648         Thanks to Miklos Szeredi for his tenacity and for the initial
67649         bug report about "find" failing on a FUSE-based file system.
67650
67651         * lib/fts.c (fts_open): Use consistent indentation.
67652
67653 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67656         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67657         reported by Jim Meyering.  All uses of cache variables renamed
67658         to match Autoconf's.
67659         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67660         the other one.
67661
67662         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67663         Fix misspelling in diagnostic.
67664
67665 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67668         defined.  Problem reported by Matthew Woehlke.
67669
67670         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67671         Add support for Tandem NonStop R series.
67672         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67673         Use new macro.
67674
67675         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67676         (has_trailing_slash): Omit size arg; all callers changed.
67677         Omit 'inline', since it doesn't help performance and we'd
67678         need to configure it.
67679         Don't count //, ///, etc. as having a trailing slash.
67680         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67681         (rpl_rename_dest_slash): On failure, use rename's errno rather
67682         than (in some cases) an incorrect or junk errno.
67683         Simplify code by removing need to compute length; this does
67684         cause it to make two passes instead of one over the file name,
67685         but it's worth it.
67686
67687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67688         change, since Autoconf's version may no longer be appropriate now
67689         that we are using CVS Autoconf's version.  Add support for Tandem.
67690
67691 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67692             Bruno Haible  <bruno@clisp.org>
67693
67694         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67695         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67696         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67697         gl_AC_TYPE_LONG_LONG.
67698
67699         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67700         instead of HAVE_LONG_LONG.
67701         * lib/printf-args.c (printf_fetchargs): Likewise.
67702         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67703         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67705         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67706         gl_AC_TYPE_LONG_LONG.
67707
67708 2006-10-11  Bruno Haible  <bruno@clisp.org>
67709
67710         * m4/longlong.m4: Add comments.
67711         * m4/ulonglong.m4: Likewise.
67712
67713 2006-10-10  Bruno Haible  <bruno@clisp.org>
67714
67715         Make it possible to #define stpcpy, strdup to aliases.
67716         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67717         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67718
67719 2006-10-10  Bruno Haible  <bruno@clisp.org>
67720
67721         Make it possible to #define gcd to an alias.
67722         * lib/gcd.c: Include config.h.
67723
67724 2006-10-10  Bruno Haible  <bruno@clisp.org>
67725
67726         Make it possible to #define c_isascii to an alias.
67727         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67728         defined. Undefine the macros before defining them, to avoid gcc
67729         warnings.
67730         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67731         define NO_C_CTYPE_MACROS early.
67732
67733 2006-10-10  Bruno Haible  <bruno@clisp.org>
67734
67735         Make it possible to #define set_program_name to an alias.
67736         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67737         ENABLE_RELOCATABLE early.
67738
67739 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67742         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67743         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67744         More generally, don't assume that 64-bit signed int is available
67745         if unsigned int is, and vice versa.
67746         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67747         unsigned symbols, not on their signed counterparts.
67748         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67749         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67750         (UINT64_C, UINTMAX_C):
67751         Likewise.
67752         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67753         unsigned counterparts.
67754         (Have_long_long, Unsigned): New macros.
67755         (Int): Renamed from INT.
67756         (strtoimax): Use the new macros.
67757         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67758         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67759         * modules/inttypes (inttypes.h): Substitute
67760         HAVE_UNSIGNED_LONG_LONG_INT.
67761         * modules/stdint (stdint.h): Likewise.
67762         (Files): Add m4/ulonglong.m4.
67763
67764 2006-10-10  Bruno Haible  <bruno@clisp.org>
67765
67766         Fix a gcc -Wshadow warning.
67767         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67768         to 'bucket'.
67769         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67770         gl_linked_indexof_from_to): Likewise.
67771         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67772         Likewise.
67773         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67774         Likewise.
67775         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67776         Reported by Eric Blake.
67777
67778 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67781         for NetBSD.  Problem reported by Bruno Haible.
67782
67783 2006-10-09  Jim Meyering  <jim@meyering.net>
67784
67785         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67786         Patch from Bruno Haible.
67787
67788 2006-10-09  Jim Meyering  <jim@meyering.net>
67789
67790         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67791         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67792         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67793
67794 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         Don't include <config.h> twice; this doesn't work in some cases,
67797         e.g., when config.h has "#define intmax_t long long int" and
67798         we include <config.h>, <inttypes.h>, <config.h> in that order.
67799         Problem reported by Matthew Woehlke in:
67800         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67801         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67802         * lib/fts-cycle.c: Don't include config.h.
67803         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67804         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67805         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67806         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67807         inttypes.h.
67808         * lib/xstrtoumax.c: Likewise.
67809         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67810         __strtol and the like, so that this module is more like its siblings.
67811         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67812         Remove; no longer needed now that we assume gnulib inttypes.h.
67813
67814 2006-10-08  Bruno Haible  <bruno@clisp.org>
67815
67816         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67817         option.
67818
67819 2006-10-07  Jim Meyering  <jim@meyering.net>
67820
67821         * modules/inttypes (inttypes.h): Revert what seems to have been
67822         an inadvertent part of today's change: use "|", not "/" in the
67823         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67824
67825 2006-10-07  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/sublist: New file.
67828
67829 2006-10-07  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67832         * modules/argz (argz.h): Likewise.
67833         * modules/arpa_inet (arpa/inet.h): Likewise.
67834         * modules/byteswap (byteswap.h): Likewise.
67835         * modules/configmake (configmake.h): Likewise.
67836         * modules/fcntl (fcntl.h): Likewise.
67837         * modules/fnmatch (fnmatch.h): Likewise.
67838         * modules/getopt (getopt.h): Likewise.
67839         * modules/glob (glob.h): Likewise.
67840         * modules/inttypes (inttypes.h): Likewise.
67841         * modules/netinet_in (netinet/in.h): Likewise.
67842         * modules/poll (poll.h): Likewise.
67843         * modules/stdbool (stdbool.h): Likewise.
67844         * modules/stdint (stdint.h): Likewise.
67845         * modules/sys_select (sys/select.h): Likewise.
67846         * modules/sys_socket (sys/socket.h): Likewise.
67847         * modules/sys_stat (sys/stat.h): Likewise.
67848         * modules/sysexits (sysexits.h): Likewise.
67849         * modules/unistd (unistd.h): Likewise.
67850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67851         Add a "DO NOT EDIT" comment to the generated file.
67852         (func_import): Likewise for gnulib-comp.m4.
67853
67854 2006-10-07  Bruno Haible  <bruno@clisp.org>
67855
67856         * lib/gl_sublist.h: New file.
67857         * lib/gl_sublist.c: New file.
67858
67859 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67862         name (relative to the original working directory) and the file
67863         name component (relative to the temporary working directory).  All
67864         callers changed.
67865         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67866         * lib/mkdir-p.c (make_dir_parents): Likewise.
67867         * lib/mkdir-p.h (make_dir_parents): Likewise.
67868
67869 2006-10-06  Eric Blake  <ebb9@byu.net>
67870
67871         Define several macros for use by the clean-temp module.
67872         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67873         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67874         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67875
67876         * lib/clean-temp.h (close_stream_temp): New declaration.
67877         * lib/clean-temp.c (includes): Pull in headers according to what
67878         other modules are in use.
67879         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67880
67881 2006-10-06  Bruno Haible  <bruno@clisp.org>
67882
67883         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67884         instead of fopen, fwriteerror.
67885
67886 2006-10-06  Bruno Haible  <bruno@clisp.org>
67887
67888         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67889         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67890         int.
67891         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67892         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67893         Return an error indicator.
67894         Suggested by Eric Blake.
67895
67896 2006-10-06  Bruno Haible  <bruno@clisp.org>
67897
67898         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67899         Reported by Eric Blake.
67900
67901 2006-10-06  Bruno Haible  <bruno@clisp.org>
67902
67903         * modules/closeout (Description): Mention stderr too.
67904
67905 2006-10-06  Bruno Haible  <bruno@clisp.org>
67906         and Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * lib/closeout.c (close_stdout): Also close stderr.
67909         * lib/closeout.h: Update comment.
67910
67911 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67914         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67915         * lib/dirchownmod.c: Include lchown.h.
67916         * lib/lchown.c: Don't include files that lchown.h now includes.
67917         Don't declare chown, since lchown.h now does that.
67918         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67919         (lchown): Define to rpl_chown if lchown is declared but
67920         does not exist.  Declare using a prototype if lchown is not
67921         declared.  Add a copyright notice.
67922         * lib/mkstemp.h: Include <unistd.h>.
67923         * lib/openat.c: Include lchown.h.
67924
67925         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67926         we now test for that separately.
67927         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67928         rather than O_NOFOLLOW, when testing whether it's possible to
67929         avoid a race condition reliably.
67930         * lib/savewd.c (savewd_chdir): Likewise.
67931
67932         Remove macros that are no longer needed now that stdint.h is
67933         reliable.
67934         * lib/fsusage.c (UINTMAX_MAX): Remove.
67935         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67936         * lib/utimecmp.c (SIZE_MAX): Remove.
67937
67938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67939
67940         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67941         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67942         O_NOATIME works.
67943
67944 2006-10-05  Bruno Haible  <bruno@clisp.org>
67945
67946         * lib/gl_list.h (gl_sortedlist_search_from_to,
67947         gl_sortedlist_indexof_from_to): New declarations.
67948         (gl_list_implementation): New fields sortedlist_search_from_to,
67949         sortedlist_indexof_from_to.
67950         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67951         inline functions.
67952         * lib/gl_list.c (gl_sortedlist_search_from_to,
67953         gl_sortedlist_indexof_from_to): New functions.
67954         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67955         function.
67956         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67957         (gl_array_sortedlist_search_from_to): New function.
67958         (gl_array_list_implementation): Update.
67959         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67960         function.
67961         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67962         (gl_carray_sortedlist_search_from_to): New function.
67963         (gl_carray_list_implementation): Update.
67964         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67965         gl_linked_sortedlist_indexof_from_to): New functions.
67966         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67967         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67968         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67969         gl_tree_sortedlist_indexof_from_to): New functions.
67970         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67971         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67972         Update.
67973         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67974         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67975         Update.
67976
67977 2006-10-05  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67980         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67981         (struct gl_list_implementation): Add fields search_from_to,
67982         indexof_from_to. Remove fields search, indexof.
67983         (gl_list_search): Use the search_from_to method.
67984         (gl_list_search_from, gl_list_search_from_to): New functions.
67985         (gl_list_indexof): Use the indexof_from_to method.
67986         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67987         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67988         (gl_list_search_from, gl_list_search_from_to): New functions.
67989         (gl_list_indexof): Use the indexof_from_to method.
67990         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67991         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67992         gl_array_indexof. Add start_index, end_index arguments.
67993         (gl_array_search_from_to): Renamed from gl_array_search. Add
67994         start_index, end_index arguments.
67995         (gl_array_remove, gl_array_list_implementation): Update.
67996         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67997         gl_carray_indexof. Add start_index, end_index arguments.
67998         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67999         start_index, end_index arguments.
68000         (gl_carray_remove, gl_carray_list_implementation): Update.
68001         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68002         gl_linked_search. Add start_index, end_index arguments.
68003         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68004         start_index, end_index arguments.
68005         (gl_linked_remove): Update.
68006         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68007         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68008         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68009         field to 'size_t'.
68010         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68011         gl_tree_search. Add start_index, end_index arguments.
68012         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68013         start_index, end_index arguments.
68014         (gl_tree_remove): Update.
68015         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68016         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68017         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68018         function.
68019         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68020         gl_tree_search. Add start_index, end_index arguments.
68021         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68022         start_index, end_index arguments.
68023         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68024         Update.
68025         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68026
68027 2006-10-05  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68030
68031         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68032         fwriteerror_temp): New declarations.
68033         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68034         (descriptors): New variable.
68035         (cleanup): First, close the descriptors.
68036         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68037         fclose_temp, fwriteerror_temp): New functions.
68038
68039 2006-10-04  Jim Meyering  <jim@meyering.net>
68040
68041         * lib/fts.c (fts_open): Tiny comment change.
68042
68043 2006-10-04  Bruno Haible  <bruno@clisp.org>
68044
68045         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68046         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68047         gl_LOCK_BODY.
68048         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68049         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68050         gl_LOCK_EARLY_BODY.
68051         (gl_LOCK): Require gl_LOCK_BODY.
68052
68053 2006-10-04  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68056         (gl_oset_search_atleast): New declaration.
68057         (struct gl_oset_implementation): Add field 'search_atleast'.
68058         (gl_oset_search_atleast): New inline function.
68059         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68060         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68061         (gl_array_oset_implementation): Update.
68062         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68063         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68064         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68065
68066 2006-10-04  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68069
68070 2006-10-03  Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68073         from gl_avltreehash_list_implementation.
68074
68075 2006-10-03  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/gl_oset.c (gl_oset_add): Fix return type.
68078
68079 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68080
68081         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68082
68083 2006-10-02  Eric Blake  <ebb9@byu.net>
68084
68085         * modules/strnlen (Depends-on): Add extensions.
68086
68087 2006-10-02  Eric Blake  <ebb9@byu.net>
68088
68089         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68090         definition in 2.60+.
68091
68092 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68093
68094         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68095         checks.
68096
68097 2006-10-02  Bruno Haible  <bruno@clisp.org>
68098
68099         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68100         to the AUTOMAKE_OPTIONS.
68101         Reported by Jim Meyering.
68102
68103 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         Work around bug in Solaris 10 /proc file system:
68106         /proc/self/fd/NNN/.. isn't the parent directory of
68107         the directory whose file descriptor is NNN.  This needs to
68108         be worked around at run time, not compile time, since a
68109         program might be built on Solaris 8, where things work, and
68110         run on Solaris 10.
68111         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68112         to use the following interface instead:
68113         (OPENAT_BUFFER_SIZE): New macro.
68114         (openat_proc_name): New function.
68115         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68116         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68117         Likewise.
68118         * lib/openat-proc.c: New file.
68119         * modules/openat (Files): Add lib/openat-proc.c.
68120         (Depends-on): Add same-inode, stdbool.
68121         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68122
68123 2006-09-29  Bruno Haible  <bruno@clisp.org>
68124
68125         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68126         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68127         argument. Set stdout_closed before testing for ferror, not after.
68128         (fwriteerror, fwriteerror_no_ebadf): New functions.
68129
68130 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68131
68132         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68133
68134 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68135
68136         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68137         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68138
68139 2006-09-28  Jim Meyering  <jim@meyering.net>
68140
68141         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68142         Include <unistd.h>.
68143
68144 2006-09-28  Bruno Haible  <bruno@clisp.org>
68145
68146         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68147         * modules/linkedhash-list (Depends-on): Likewise.
68148         * modules/rbtreehash-list (Depends-on): Likewise.
68149
68150 2006-09-28  Bruno Haible  <bruno@clisp.org>
68151
68152         * lib/strndup.h: Simplify the redefinition of strndup.
68153         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68154         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68155
68156 2006-09-28  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68159         * lib/gl_linkedhash_list.c: Likewise.
68160         * lib/gl_rbtreehash_list.c: Likewise.
68161
68162 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68165         getaddrinfo.
68166
68167         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68168         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68169         it causes <stdio_ext.h> to cause a compile-time error.
68170         Problem reported by Nelson H. F. Beebe.
68171         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68172         of HAVE_DECL___PENDING.
68173
68174         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68175         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68176         declaration.
68177
68178 2006-09-27  Jim Meyering  <jim@meyering.net>
68179
68180         This file could end up with a definition for a function
68181         named __strndup, rather than rpl_strndup on a system with
68182         incomplete weak_alias support.
68183         * lib/strndup.c (strndup): Rename from __strndup.
68184         Remove #defines that used to map __strndup to strndup.
68185         Don't use K&R prototypes.
68186         Remove LIBC-related code, since this file is not sync'd with glibc.
68187         * lib/strndup.h: Revamp, accordingly.
68188         * m4/strndup.m4: Modernize.
68189
68190 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * modules/savewd (Depends-on): Add 'raise'.
68193         * lib/savewd.c: Include <signal.h>, for 'raise'.
68194
68195 2006-09-26  Jim Meyering  <jim@meyering.net>
68196
68197         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68198         when we detect Darwin 8.7.0's acl_get_file bug.
68199         Rearrange to perform the new (below) run-test while $LIBS
68200         contains any acl-related library.  Set USE_ACL at the end.
68201         (gl_ACL_GET_FILE): New function.
68202
68203 2006-09-26  Eric Blake  <ebb9@byu.net>
68204
68205         * lib/verror.c: Include <config.h> unconditionally.
68206
68207 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * modules/clock-time (Maintainer): Add self.
68210         * modules/getlogin_r (Depends-on): Add extensions.
68211
68212 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68213
68214         * modules/clock-time: New module.
68215         * modules/nanosleep (Depends-on): Add clock-time.
68216         * modules/gethrxtime (Depends-on): Likewise.
68217         * modules/gettime (Depends-on): Likewise.
68218         * modules/settime (Depends-on): Likewise.
68219
68220         * modules/fts-lgpl: Depend on openat.
68221         * modules/mkancesdirs: Depend on savewd.
68222         * modules/mkdir-p: Likewise.
68223
68224 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68225
68226         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68227
68228         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68229         `gl_have_arbitrary_file_name_length_limit' to
68230         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68231         actually works between configure runs.
68232
68233 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68234             Bruno Haible  <bruno@clisp.org>
68235
68236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68237
68238 2006-09-25  Jim Meyering  <jim@meyering.net>
68239
68240         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68241         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68242
68243 2006-09-25  Eric Blake  <ebb9@byu.net>
68244
68245         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68246         exec's in 2006-09-18 patch when shuffling fds.
68247
68248 2006-09-25  Bruno Haible  <bruno@clisp.org>
68249
68250         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68251         Reported by Jim Meyering.
68252
68253 2006-09-24  Jim Meyering  <jim@meyering.net>
68254
68255         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68256         compare a pointer against a literal "0".  That caused failures with
68257         at least HP-UX's hpcc.
68258
68259 2006-09-22  Simon Josefsson  <jas@extundo.com>
68260
68261         * modules/gc-sha1:
68262         * modules/gc-md4:
68263         * modules/gc-hmac-sha1:
68264         * modules/gc-hmac-md5:
68265         * modules/gc-des:
68266         * modules/gc-arcfour: Distribute more files.
68267
68268 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68269
68270         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68271         (gl_linked_iterator_from_to): Initialize struct completely.
68272         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68273         (gl_tree_iterator_from_to): Likewise
68274         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68275         * lib/gl_array_list.c [lint] (gl_array_iterator)
68276         (gl_array_iterator_from_to): Likewise.
68277         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68278         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68279         (gl_carray_iterator_from_to): Likewise.
68280
68281         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68282         * lib/md4.c (md4_process_block): Remove unused variable.
68283         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68284         parentheses for clarity.
68285
68286 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68287
68288         * modules/bison-i18n (Depends-on): Add gettext.
68289
68290 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68291
68292         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68293         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68294         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68295         also add missing comma that caused broken test.
68296         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68297         stdlib.h, for `abort'.
68298         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68299         variables.
68300         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68301         include unistd.h if present, for `rmdir'.
68302         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68303         variables.
68304         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68305         in the process include standard headers for prototypes.
68306         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68307         gets declared on GNU/Linux.
68308         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68309         unistd.h, for `rmdir'.
68310         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68311
68312         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68313         always true.
68314         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68315
68316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68317
68318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68319
68320         * gnulib-tool (func_version): Create output all at once.  This
68321         may help avoid triggering unnecessary SIGPIPEs, and at any
68322         rate it doesn't hurt.
68323
68324 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68325             Bruno Haible  <bruno@clisp.org>
68326
68327         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68328         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68329         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68330
68331         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68332         (gl_FUNC_VASPRINTF): Invoke it.
68333
68334 2006-09-22  Bruno Haible  <bruno@clisp.org>
68335
68336         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68337         getloadavg.c as first argument.
68338
68339 2006-09-22  Bruno Haible  <bruno@clisp.org>
68340
68341         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68342         at the beginning of the gl_INIT macro.
68343         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68344         gl_GETLOADAVG.
68345
68346 2006-09-22  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68349         module.
68350         Suggested by Ralf Wildenhues.
68351
68352 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         Import this patch from libc:
68355
68356         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68357
68358         * lib/regex_internal.c (re_string_reconstruct): Handle
68359         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68360         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68361         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68362         re_string_context_at.
68363
68364         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68365         now requires it.
68366         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68367         gl_REGEX now does it for us.
68368         (gl_REGEX): Add test taken from
68369         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68370
68371         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68372         Check that large offsets work.  Modernize Autoconf usages.
68373         Prefer "yes" to mean a good thing rather than a bad.
68374         Don't put "#define mkstemp" in config.h, as this might interfere
68375         with standard system headers that "#define mkstemp mkstemp64".
68376
68377         * modules/mkstemp (Depends-on): Add extensions, so that
68378         mkstemp is visible on some platforms.
68379         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68380         (Include): Change to "mkstemp.h" from <stdlib.h>.
68381         (Files): Add mkstemp.h.
68382
68383         * lib/mkstemp.h: New file, since some standard headers
68384         #define mkstemp.
68385         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68386         Include "mkstemp.h".
68387         Make the _LIBC code resemble glibc original more,
68388         e.g., use K&R style.
68389         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68390         (mkstemp): Remove, since mkstemp.h does this for us.
68391         * lib/stdlib--.h: Include mkstemp.h.
68392
68393         Import this patch from libc:
68394
68395         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68396
68397         * lib/tempname.c (__gen_tempname): Change attempts_min
68398         into a macro.  Use preprocessor to decide how to initialize
68399         attempts [Coverity CID 67].
68400
68401 2006-09-20  Bruno Haible  <bruno@clisp.org>
68402
68403         * lib/mkdtemp.c: Import from libc.
68404         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68405                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68406                 attempts_min into a macro.  Use preprocessor to decide how to
68407                 initialize attempts [Coverity CID 67].
68408         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68409                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68410                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68411
68412 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68413
68414         * gnulib-tool (func_exit): New function, to allow to pass the
68415         exit status portably through the trap.  Use everywhere.
68416         (--help, --version): Signal a write error.
68417         (trap): catch SIGPIPE, for write errors.
68418         Exit at the end of the trap, with the correct exit status.
68419
68420 2006-09-19  Karl Berry  <karl@gnu.org>
68421
68422         * doc/gnulib.texi: note about the license texinfo files.
68423
68424 2006-09-19  Eric Blake  <ebb9@byu.net>
68425
68426         * gnulib-tool: Avoid space-tab.
68427
68428 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68429
68430         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68431         that prevented coreutils 6.1 from building.  Problem reported
68432         by Petter Reinholdtsen.
68433
68434 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         * gnulib-tool (avoidlist): Fix typo that broke options like
68437         --avoid=lock that are used by coreutils bootstrap.
68438
68439 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68440
68441         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68442         more systematically.
68443
68444 2006-09-18  Jim Meyering  <jim@meyering.net>
68445
68446         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68447
68448 2006-09-18  Bruno Haible  <bruno@clisp.org>
68449
68450         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68451
68452 2006-09-18  Bruno Haible  <bruno@clisp.org>
68453
68454         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68455         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68456         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68457         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68458         * m4/gettext.m4: Require autoconf >= 2.52.
68459         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68460         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68461         of gl_cv_header_inttypes_h.
68462
68463 2006-09-18  Bruno Haible  <bruno@clisp.org>
68464
68465         * lib/javaversion.c: Include configmake.h.
68466
68467 2006-09-18  Bruno Haible  <bruno@clisp.org>
68468
68469         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68470         avoid that the while loops be executed in a subshell.
68471
68472 2006-09-18  Bruno Haible  <bruno@clisp.org>
68473
68474         * MODULES.html.sh (func_module): Break long lines.
68475         Suggested by Bruce Korb <bkorb@gnu.org>.
68476
68477 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68478
68479         Speed up by a factor of 1.12.
68480         * gnulib-tool (nl): New variable.
68481         (func_import): Rewrite include directive extraction to only read each
68482         directive once.
68483
68484 2006-09-17  Bruno Haible  <bruno@clisp.org>
68485
68486         * modules/javaversion (Makefile.am): Remove DEFS setting.
68487         (Depends-on): Add configmake, for PKGDATADIR definition.
68488
68489 2006-09-17  Bruno Haible  <bruno@clisp.org>
68490
68491         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68492
68493 2006-09-17  Bruno Haible  <bruno@clisp.org>
68494
68495         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68496         (func_modules_transitive_closure, func_modules_add_dummy,
68497         func_modules_to_filelist, func_import, func_create_testdir,
68498         func_create_megatestdir, ...): Use it wherever possible.
68499         Suggested by Ralf Wildenhues.
68500
68501 2006-09-16  Karl Berry  <karl@gnu.org>
68502
68503         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68504         to avoid sectioning errors.
68505         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68506         [ifinfo]: blank line after @center-ed titles.
68507         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68508         Spell FSF address consistently with others.
68509         (These changes approved by rms.)
68510
68511 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68512
68513         Speed up by a factor of 1.61.
68514         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68515         already checked module names again.
68516
68517 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68518
68519         Speed up by a factor of 1.13.
68520         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68521         for new_files, and the input to func_add_or_update.
68522
68523 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68524
68525         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68526         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68527
68528 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * modules/mkancesdirs (Depends-on): Add fcntl.
68531         * modules/savewd: New file.
68532         * MODULES.html.sh (File system functions): Add savewd.
68533
68534         * modules/configmake (Makefile.am): Add support for the
68535         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68536
68537 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/savewd.m4: New file.
68540
68541 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68544         (dirchownmod): New arg FD.  All callers changed.
68545         Use FD rather than opening the directory ourself, as opening is
68546         now the caller's responsibility.
68547         * lib/dirchownmod.h: Likewise.
68548         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68549         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68550         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68551         (test_dir): Remove.
68552         (mkancesdirs): Return length of prefix of FILE that has already
68553         been made, or -2 if there is a child doing the work.  Redo
68554         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68555         ".", and treat ".." specially since it might stray back into
68556         already-created areas.  Use a subprocess if necessary.  New arg
68557         WD; all users changed.  MAKE_DIR function should now return 1
68558         if it creates a directory that is not readable.  Return -2 if
68559         a child process is spun off.
68560         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68561         Adjust signature to match code.
68562         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68563         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68564         all users changed.
68565         * lib/savewd.c, lib/savewd.h: New files.
68566
68567 2006-09-15  Jim Meyering  <jim@meyering.net>
68568
68569         * modules/rename-dest-slash: New module.
68570         * MODULES.html.sh (posix_compat): Add it here.
68571
68572         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68573
68574 2006-09-15  Jim Meyering  <jim@meyering.net>
68575
68576         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68577         file.
68578
68579         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68580
68581 2006-09-15  Jim Meyering  <jim@meyering.net>
68582
68583         * lib/rename-dest-slash.c (has_trailing_slash): Use
68584         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68585         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68586         test before testing whether SRC is a directory.
68587         Suggestions from Bruno Haible.
68588
68589         Avoid a warning about an unused variable.
68590         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68591         into the #ifdef block where it's used.
68592
68593         * lib/rename-dest-slash.c: New file.
68594
68595 2006-09-14  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/allocsa.c: Include <config.h> unconditionally.
68598         * lib/asnprintf.c: Likewise.
68599         * lib/asprintf.c: Likewise.
68600         * lib/c-strcasecmp.c: Likewise.
68601         * lib/c-strcasestr.c: Likewise.
68602         * lib/c-strncasecmp.c: Likewise.
68603         * lib/c-strstr.c: Likewise.
68604         * lib/classpath.c: Likewise.
68605         * lib/clean-temp.c: Likewise.
68606         * lib/concatpath.c: Likewise.
68607         * lib/copy-file.c: Likewise.
68608         * lib/csharpcomp.c: Likewise.
68609         * lib/csharpexec.c: Likewise.
68610         * lib/execute.c: Likewise.
68611         * lib/fatal-signal.c: Likewise.
68612         * lib/findprog.c: Likewise.
68613         * lib/fwriteerror.c: Likewise.
68614         * lib/gl_array_list.c: Likewise.
68615         * lib/gl_array_oset.c: Likewise.
68616         * lib/gl_avltree_list.c: Likewise.
68617         * lib/gl_avltree_oset.c: Likewise.
68618         * lib/gl_avltreehash_list.c: Likewise.
68619         * lib/gl_carray_list.c: Likewise.
68620         * lib/gl_linked_list.c: Likewise.
68621         * lib/gl_linkedhash_list.c: Likewise.
68622         * lib/gl_list.c: Likewise.
68623         * lib/gl_oset.c: Likewise.
68624         * lib/gl_rbtree_list.c: Likewise.
68625         * lib/gl_rbtree_oset.c: Likewise.
68626         * lib/gl_rbtreehash_list.c: Likewise.
68627         * lib/imaxabs.c: Likewise.
68628         * lib/imaxdiv.c: Likewise.
68629         * lib/javacomp.c: Likewise.
68630         * lib/javaexec.c: Likewise.
68631         * lib/javaversion.c: Likewise.
68632         * lib/linebreak.c: Likewise.
68633         * lib/localcharset.c: Likewise.
68634         * lib/lock.c: Likewise.
68635         * lib/mbchar.c: Likewise.
68636         * lib/mbswidth.c: Likewise.
68637         * lib/mkdtemp.c: Likewise.
68638         * lib/pipe.c: Likewise.
68639         * lib/printf-args.c: Likewise.
68640         * lib/printf-parse.c: Likewise.
68641         * lib/progname.c: Likewise.
68642         * lib/progreloc.c: Likewise.
68643         * lib/readlink.c: Likewise.
68644         * lib/sh-quote.c: Likewise.
68645         * lib/stpcpy.c: Likewise.
68646         * lib/stpncpy.c: Likewise.
68647         * lib/strcasecmp.c: Likewise.
68648         * lib/strcasestr.c: Likewise.
68649         * lib/strcspn.c: Likewise.
68650         * lib/striconv.c: Likewise.
68651         * lib/strncasecmp.c: Likewise.
68652         * lib/strnlen1.c: Likewise.
68653         * lib/strstr.c: Likewise.
68654         * lib/strtok_r.c: Likewise.
68655         * lib/tls.c: Likewise.
68656         * lib/tmpdir.c: Likewise.
68657         * lib/unicodeio.c: Likewise.
68658         * lib/unsetenv.c: Likewise.
68659         * lib/vasnprintf.c: Likewise.
68660         * lib/vasprintf.c: Likewise.
68661         * lib/wait-process.c: Likewise.
68662         * lib/xallocsa.c: Likewise.
68663         * lib/xsetenv.c: Likewise.
68664         * lib/xstriconv.c: Likewise.
68665
68666 2006-09-13  Simon Josefsson  <jas@extundo.com>
68667
68668         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68669         that internally, suggested by Ralf Wildenhues
68670         <Ralf.Wildenhues@gmx.de>.
68671
68672 2006-09-13  Simon Josefsson  <jas@extundo.com>
68673
68674         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68675         @LIBOBJS@.
68676         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68677
68678 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68681         longer worry about uses that don't define HAVE_CONFIG_H.
68682         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68683         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68684         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68685         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68686         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68687         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68688         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68689         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68690         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68691         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68692         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68693         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68694         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68695         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68696         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68697         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68698         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68699         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68700         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68701         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68702         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68703         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68704         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68705         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68706         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68707         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68708         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68709         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68710         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68711         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68712         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68713         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68714         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68715         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68716         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68717         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68718         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68719         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68720         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68721         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68722         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68723         Likewise.
68724
68725 2006-09-13  Eric Blake  <ebb9@byu.net>
68726
68727         * lib/getopt.c: Fix typo in last commit.
68728
68729 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68730
68731         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68732         dgettext.
68733
68734 2006-09-12  Jim Meyering  <jim@meyering.net>
68735
68736         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68737         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68738         Reported by Nelson H. F. Beebe.
68739
68740 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68741
68742         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68743         program_invocation_name and program_invocation_short_name are
68744         initialized.
68745         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68746         and program_invocation_short_name to argp.h, so they are visible
68747         to user programs.
68748         * lib/argp.h: Likewise
68749
68750 2006-09-10  Bruno Haible  <bruno@clisp.org>
68751
68752         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68753         m4/inttypes_h.m4, m4/uintmax_t.m4.
68754
68755 2006-09-10  Bruno Haible  <bruno@clisp.org>
68756
68757         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68758         gl_AC_TYPE_UINTMAX_T.
68759
68760 2006-09-10  Bruno Haible  <bruno@clisp.org>
68761
68762         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68763
68764 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68765
68766         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68767         convention.  Text proposed by Bruno Haible.
68768         (struct argp_option): Document the use of N_() wrappers.
68769
68770         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68771         '\v', and translate the two parts separately, instead of feeding
68772         the whole string to gettext.  This allows to exclude
68773         '\v' from the strings visible to the translator by writing doc
68774         strings as N_("..") "\v" N_("..").
68775
68776 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68777
68778         * config/srclist.txt: Undo latest change; the bug was fixed.
68779
68780 2006-09-09  Bruno Haible  <bruno@clisp.org>
68781
68782         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68783         assignments if building a library without libtool.
68784         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68785         in func_emit_lib_Makefile_am.
68786         (func_import): When building a static library libfoo.a, arrange to
68787         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68788         (func_create_testdir): Likewise.
68789         * modules/gc (configure.ac, Makefile.am): If building statically,
68790         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68791         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68792         * modules/striconv (configure.ac, Makefile.am): Likewise.
68793         Based on a suggestion by Ralf Wildenhues.
68794
68795 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68796
68797         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68798         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68799         Also:
68800
68801         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68802         Add year_2050_test to catch glibc bug 2821
68803         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68804
68805         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68806         Prefer #ifdef to #if.
68807
68808         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68809         Return from 'main' instead of calling 'exit'.
68810
68811 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68814         returned the maximum time_t value rather than (time_t) -1.
68815         Problem originally reported by William Bardwell
68816         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68817
68818         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68819         Moved to here ...
68820         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68821         ... from here.
68822
68823 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68826         2821 is fixed.
68827
68828 2006-09-08  Jim Meyering  <jim@meyering.net>
68829
68830         Don't make generated files read-only.  That would bother too many
68831         people.  However, do retain the ability to work when targets are
68832         read-only: remove the destination and temporary files before writing
68833         them (when generated via sed or echo), or by using the -f option for
68834         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68835         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68836         * modules/byteswap, modules/configmake, modules/fcntl:
68837         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68838         * modules/localcharset, modules/netinet_in, modules/poll:
68839         * modules/stdbool, modules/stdint, modules/sys_select:
68840         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68841
68842 2006-09-08  Jim Meyering  <jim@meyering.net>
68843
68844         Avoid new build failure on FreeBSD 6.0.
68845         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68846         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68847         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68848
68849 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68850
68851         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68852
68853 2006-09-07  Jim Meyering  <jim@meyering.net>
68854
68855         Fix global typo in last change: use chmod u-w, not chmod u-x.
68856         Spotted by Paul Eggert and Bruce Korb.
68857         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68858         * modules/byteswap, modules/configmake, modules/fcntl:
68859         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68860         * modules/localcharset, modules/netinet_in, modules/poll:
68861         * modules/stdbool, modules/stdint, modules/sys_select:
68862         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68863
68864 2006-09-06  Jim Meyering  <jim@meyering.net>
68865
68866         Make generated files be read-only.
68867         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68868         Ensure that each generated file is now read-only.
68869         * modules/argz: Likewise.
68870         * modules/arpa_inet: Likewise.
68871         * modules/byteswap: Likewise.
68872         * modules/configmake: Likewise.
68873         * modules/fcntl: Likewise.
68874         * modules/fnmatch: Likewise.
68875         * modules/getopt: Likewise.
68876         * modules/glob: Likewise.
68877         * modules/inttypes: Likewise.
68878         * modules/netinet_in: Likewise.
68879         * modules/poll: Likewise.
68880         * modules/stdbool: Likewise.
68881         * modules/stdint: Likewise.
68882         * modules/sys_select: Likewise.
68883         * modules/sys_socket: Likewise.
68884         * modules/sys_stat: Likewise.
68885         * modules/sysexits: Likewise.
68886         * modules/localcharset: Same as above, but continue using temporary
68887         file named "t-$@" (why different?) rather than the "$@-t" used
68888         everywhere else.
68889
68890         * modules/sysexits (Makefile.am): Replace literal occurrences
68891         of "sysexit.h" more readable, and more consistent, "$@".
68892
68893 2006-09-06  Bruno Haible  <bruno@clisp.org>
68894
68895         * modules/striconv: New file.
68896         * modules/xstriconv: New file.
68897         * MODULES.html.sh (Internationalization functions): Add striconv,
68898         xstriconv.
68899
68900 2006-09-06  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68903         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68904         not using libtool correctly.
68905
68906 2006-09-06  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/striconv.h: New file.
68909         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68910         iconvstring.c.
68911         * lib/xstriconv.h: New file.
68912         * lib/xstriconv.c: New file.
68913
68914 2006-09-06  Bruno Haible  <bruno@clisp.org>
68915
68916         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68917         lib_..._LDFLAGS.
68918
68919 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68920
68921         * lib/argz_.h: Sync from Libtool.
68922
68923         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68924                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68925
68926         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68927
68928 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68929
68930         * modules/trim: New file.
68931
68932 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68933
68934         * lib/trim.h: New file.
68935         * lib/trim.c: New file.
68936
68937 2006-09-05  Bruno Haible  <bruno@clisp.org>
68938
68939         * MODULES.html.sh (String handling): Add trim.
68940
68941 2006-09-04  Karl Berry  <karl@gnu.org>
68942
68943         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68944         until next release.
68945
68946 2006-09-03  Bruno Haible  <bruno@clisp.org>
68947
68948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68949         correctly.
68950
68951 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68954         not gl_GETLOADAVG.  Omit unneeded semicolons.
68955         Problems reported by Ralf Wildenhues in
68956         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68957         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68958         at the end, which is the usual gnulib style.
68959
68960         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68961         of doing all the work ourselves.
68962         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68963         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68964
68965 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68968         Problem reported by Ralf Wildenhues in
68969         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68970
68971         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68972         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68973
68974 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68977         yesterday's patch by changing test -n to test -z.
68978
68979 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68982         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68983         the former is now obsolescent.
68984
68985         * modules/chdir-long (Depends-on): Add fcntl.
68986
68987 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68990         obsolescent, and programs should use gnulib instead.
68991         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68992         but with prefixes changed.
68993
68994 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68997         or stdbool.h, because they might not exist while configuring.
68998
68999         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69000         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69001         does that for us.
69002         (O_DIRECTORY): Remove.
69003
69004 2006-08-31  Eric Blake  <ebb9@byu.net>
69005
69006         * gnulib-tool: Don't let emacs change spaces to TAB.
69007
69008 2006-08-31  Bruno Haible  <bruno@clisp.org>
69009
69010         * gnulib-tool: When calling func_import more than once, do it in a
69011         subshell.
69012         Reported by Eric Blake <ebb9@byu.net>.
69013
69014 2006-08-31  Bruno Haible  <bruno@clisp.org>
69015
69016         * gnulib-tool (nl): Remove variable.
69017         (sed_transform_lib_file): Use more robust test for config-h module.
69018         (func_import): Fix typo in 2006-08-25 patch.
69019
69020 2006-08-31  Bruno Haible  <bruno@clisp.org>
69021
69022         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69023         specified, augment Makefile.am variables instead of assigning them.
69024
69025 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         Work around a bug in both the Linux and SunOS 64-bit kernels:
69028         nanosleep mishandles sleeps for longer than 2**31 seconds.
69029         Problem reported by Frank v Waveren in
69030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69032         Check for nanosleep bug.
69033         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69034
69035 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69036
69037         Work around a bug in both the Linux and SunOS 64-bit kernels:
69038         nanosleep mishandles sleeps for longer than 2**31 seconds.
69039         Problem reported by Frank v Waveren in
69040         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69041         * lib/nanosleep.c (BILLION): New constant.
69042         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69043         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69044         implementation.
69045
69046 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * modules/nanosleep (Depends-on): Add gettime.
69049
69050 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69051         and Simon Josefsson  <jas@extundo.com>
69052         and Oskar Liljeblad  <oskar@osk.mine.nu>
69053
69054         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69055         * gnulib-tool (func_import): New license type 'unmodifiable license
69056         text'.
69057         * modules/fdl: Use it.  Longer description.
69058         * module/gpl, module/lgpl: New files.
69059
69060 2006-08-30  Jim Meyering  <jim@meyering.net>
69061
69062         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69063         shadowing the parameter.
69064
69065 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69066
69067         Sync from Libtool:
69068
69069         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69070
69071         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69072         sharing with gnulib.  Report by Eric Blake.
69073
69074 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69075
69076         * modules/isapipe: New file.
69077         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69078
69079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * modules/configmake (Makefile.am): Add a comment, and omit
69082         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69083         by Bruno Haible.
69084
69085 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         * m4/isapipe.m4: New file.
69088
69089 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * lib/isapipe.c, lib/isapipe.h: New files.
69092
69093 2006-08-29  Jim Meyering  <jim@meyering.net>
69094
69095         * modules/configmake (Makefile.am): Make configmake.h depend on
69096         Makefile.  Otherwise, a stale configmake.h could hang around.
69097
69098 2006-08-29  Eric Blake  <ebb9@byu.net>
69099
69100         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69101         resolution of upstream bug 3044.
69102
69103 2006-08-29  Bruno Haible  <bruno@clisp.org>
69104
69105         * modules/localcharset (Depends-on): Add configmake.
69106         (Makefile.am): Remove setting of LIBDIR through DEFS.
69107
69108 2006-08-29  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69111         defined.
69112
69113 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * modules/fcntl: New file.
69116         * modules/chdir-safer (Depends-on): Add fcntl.
69117         * modules/fts: Likewise.
69118         * modules/mkdir-p: Likewise.
69119
69120         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69121         This undoes the most recent change, since we're now addressing the
69122         problem in a different way.
69123
69124         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69125         into output, since the output might be called Makefile.am even
69126         if $makefile_name is something different.
69127         (func_import): Use $makefile_am rather than
69128         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69129         empty.
69130
69131         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69132
69133 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69136         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69137         recent change to stdint.m4, since we're now addressing the problem in a
69138         different way.
69139
69140 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * m4/fcntl_h.m4: New file.
69143
69144 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69145
69146         * lib/fcntl_.h: New file.
69147         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69148         the fcntl module.
69149         * lib/dirchownmod.c: Likewise.
69150         * lib/fts.c: Likewise.
69151
69152         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69153         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69154         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69155         just before including <inttypes.h>, to avoid circular inclusion.
69156
69157 2006-08-28  Jim Meyering  <jim@meyering.net>
69158
69159         * doc/visibility.texi: Actually read and correct the grammar of the
69160         sentence affected by yesterday's change.
69161
69162 2006-08-28  Eric Blake  <ebb9@byu.net>
69163
69164         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69165         needs wrapper.
69166
69167 2006-08-28  Eric Blake  <ebb9@byu.net>
69168
69169         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69170
69171 2006-08-28  Eric Blake  <ebb9@byu.net>
69172
69173         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69174
69175 2006-08-28  Bruno Haible  <bruno@clisp.org>
69176
69177         * modules/c-strstr: New file, from GNU gettext.
69178         * MODULES.html.sh (String handling): Add c-strstr.
69179
69180 2006-08-28  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69183         macros.
69184         Reported by Eric Blake.
69185
69186 2006-08-28  Bruno Haible  <bruno@clisp.org>
69187
69188         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69189         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69190         * lib/vasprintf.c: Include errno.h, limits.h.
69191         (EOVERFLOW): New fallback definition.
69192         (vasprintf): Test here whether the string length is > INT_MAX.
69193         * lib/vsnprintf.c: Include errno.h, limits.h.
69194         (EOVERFLOW): New fallback definition.
69195         (vsnprintf): Fix bug when generated string was too long for the buffer.
69196         Test here whether the string length is > INT_MAX.
69197
69198 2006-08-28  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/inttypes_.h (SCNX*): Remove definitions.
69201         Reported by Eric Blake.
69202
69203 2006-08-28  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/c-strstr.h: New file, from GNU gettext.
69206         * lib/c-strstr.c: New file, from GNU gettext.
69207
69208 2006-08-28  Bruno Haible  <bruno@clisp.org>
69209
69210         * gnulib-tool: Reorder some statements.
69211
69212 2006-08-28  Bruno Haible  <bruno@clisp.org>
69213
69214         * gnulib-tool: New option --makefile-name.
69215         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69216         $makefile_name.
69217         (func_import): Write $makefile_name to the cache file, and read it from
69218         there unless explicitly specified. Use $makefile_name as file name
69219         instead of Makefile.am. Adjust the recommendations accordingly.
69220
69221 2006-08-28  Bruno Haible  <bruno@clisp.org>
69222
69223         * gnulib-tool (func_verify_module): Check against misapplying patch.
69224
69225 2006-08-28  Bruno Haible  <bruno@clisp.org>
69226
69227         * gnulib-tool (func_relativize, func_relconcat): New functions.
69228         Give an error if --local-dir is given with --update.
69229         Remove trailing slashes from $local_gnulib_dir.
69230         (func_import): Store the relativized $local_gnulib_dir in
69231         gnulib-cache.m4, and read it from there if not specified explicitly.
69232
69233 2006-08-28  Bruno Haible  <bruno@clisp.org>
69234
69235         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69236         is the current directory. Respect also $local_gnulib_dir.
69237
69238 2006-08-28  Bruno Haible  <bruno@clisp.org>
69239             Simon Josefsson  <jas@extundo.com>
69240
69241         BeOS portability.
69242         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69243
69244 2006-08-27  Jim Meyering  <jim@meyering.net>
69245
69246         * doc/visibility.texi: Remove duplicate word: "pointer".
69247
69248 2006-08-26  Bruno Haible  <bruno@clisp.org>
69249
69250         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69251         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69252         (Makefile.am): Create inttypes.h from inttypes_.h.
69253         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69254
69255         * modules/imaxabs: New file.
69256
69257         * modules/imaxdiv: New file.
69258
69259 2006-08-26  Bruno Haible  <bruno@clisp.org>
69260
69261         * m4/inttypes.m4: New file.
69262         * m4/_inttypes_h.m4: Remove file.
69263         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69264         PRI_MACROS_BROKEN.
69265         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69266
69267         * m4/imaxabs.m4: New file.
69268
69269         * m4/imaxdiv.m4: New file.
69270
69271 2006-08-26  Bruno Haible  <bruno@clisp.org>
69272
69273         * lib/inttypes_.h: New file.
69274         * lib/inttypes.h: Remove file.
69275         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69276
69277         * lib/imaxabs.c: New file.
69278
69279         * lib/imaxdiv.c: New file.
69280
69281 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69282
69283         New config-h module, so that "make" output needn't be cluttered
69284         by -DHAVE_CONFIG_H.
69285         * MODULES.html.sh (Support for building libraries and executables):
69286         Add config-h.
69287         * modules/config-h: New file.
69288         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69289         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69290         the config-h module is used.
69291
69292         New configmake module, so that "make" output needn't be cluttered
69293         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69294         * MODULES.html.sh (Support for building libraries and executables):
69295         Add configmake.
69296         * modules/configmake: New file.
69297
69298 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * m4/config-h.m4: New file.
69301
69302 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         * config/srclist.txt: Add elisp-comp.
69305
69306 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         * MODULES.html.sh (Support for building libraries and executables):
69309         Add elisp-comp.
69310         * build-aux/elisp-comp: New file.
69311         * modules/elisp-comp: New file.
69312
69313 2006-08-24  Bruno Haible  <bruno@clisp.org>
69314
69315         * gnulib-tool (func_create_testdir): Use non-default values of
69316         sourcebase and m4base.
69317
69318 2006-08-24  Bruno Haible  <bruno@clisp.org>
69319
69320         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69321         HTML structure.
69322
69323 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * modules/openat (Depends-on): Add lchown.
69326
69327 2006-08-23  Bruno Haible  <bruno@clisp.org>
69328
69329         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69330         of gl_LOCK_EARLY instead of gl_LOCK.
69331
69332 2006-08-23  Bruno Haible  <bruno@clisp.org>
69333
69334         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69335         on OSF/1 to no.
69336         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69337
69338 2006-08-23  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69341         as unusable.
69342
69343         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69344         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69345         (gl_LOCK): New macro.
69346
69347 2006-08-22  Simon Josefsson  <jas@extundo.com>
69348
69349         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69350         to md5 module.
69351
69352 2006-08-22  Simon Josefsson  <jas@extundo.com>
69353
69354         * MODULES.html.sh: Add "Support for maintaining and release
69355         projects".
69356
69357         * build-aux/gnupload: New file, from coreutils.
69358
69359 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         Avoid the need for AC_LIBSOURCES in m4 macros.
69362         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69363         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69364         * modules/check-version (EXTRA_DIST): Add check-version.h.
69365         * modules/crc (EXTRA_DIST): Add crc.h.
69366         * modules/des (EXTRA_DIST): Add des.h.
69367         * modules/gc (EXTRA_DIST): Add gc.h.
69368         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69369         * modules/getline (EXTRA_DIST): Add getline.h.
69370         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69371         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69372         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69373         * modules/md2 (EXTRA_DIST): Add md2.h.
69374         * modules/md4 (EXTRA_DIST): Add md4.h.
69375         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69376         * modules/read-file (EXTRA_DIST): Add read-file.h.
69377         * modules/readline (EXTRA_DIST): Add readline.h.
69378         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69379         rijndael-api-fst.h.
69380
69381 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * m4/rijndael.m4 (gl_ARCFOUR):
69384         * m4/arctwo.m4 (gl_ARCTWO):
69385         * m4/check-version.m4 (gl_CHECK_VERSION):
69386         * m4/crc.m4 (gl_CRC):
69387         * m4/des.m4 (gl_DES):
69388         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69389         * m4/gc.m4 (gl_GC):
69390         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69391         * m4/getline.m4 (gl_FUNC_GETLINE):
69392         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69393         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69394         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69395         * m4/md2.m4 (gl_MD2):
69396         * m4/md4.m4 (gl_MD4):
69397         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69398         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69399         * m4/readline.m4 (gl_FUNC_READLINE):
69400         * m4/rijndael.m4 (gl_RIJNDAEL):
69401         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69402         to get the necessary .h files and whatnot.
69403
69404 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69407         gnulib rather than the other way around.
69408         * config/srclistvars.sh (COREUTILS): Remove.
69409
69410 2006-08-22  Jim Meyering  <jim@meyering.net>
69411
69412         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69413
69414         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69415
69416 2006-08-22  Eric Blake  <ebb9@byu.net>
69417
69418         * modules/regexprops-generic: New file.
69419         * MODULES.html.sh (Support for building documentation): List it.
69420
69421 2006-08-22  Eric Blake  <ebb9@byu.net>
69422
69423         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69424         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69425         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69426         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69427
69428 2006-08-22  Bruno Haible  <bruno@clisp.org>
69429
69430         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69431         and lib_LTLIBRARIES like the other lib_* variables.
69432
69433 2006-08-22  Bruno Haible  <bruno@clisp.org>
69434
69435         * build-aux/x-to-1.in: New file, from GNU gettext.
69436
69437 2006-08-22  Bruno Haible  <bruno@clisp.org>
69438
69439         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69440         <utmpx.h> exists.
69441
69442 2006-08-22  Bruno Haible  <bruno@clisp.org>
69443
69444         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69445         <utmpx.h> exists.
69446
69447 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         BeOS portability.
69450         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69451         exist.
69452         Problem reported by Bruno Haible.
69453
69454 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         Avoid the need for AC_LIBSOURCES in m4 macros.
69457         * modules/acl (EXTRA_DIST): Add acl.h.
69458         * modules/argmatch (Files): Add m4/argmatch.m4.
69459         (configure.ac): Add gl_ARGMATCH.
69460         (EXTRA_DIST): Renamed from lib_SOURCES, for
69461         consistency with the other modules.  Remove argmatch.c.
69462         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69463         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69464         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69465         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69466         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69467         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69468         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69469         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69470         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69471         * modules/closeout (EXTRA_DIST): Add closeout.h.
69472         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69473         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69474         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69475         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69476         dirname.h; remove basename.c and stripslash.c.
69477         * modules/exclude (EXTRA_DIST): Add exclude.h.
69478         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69479         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69480         * modules/file-type (EXTRA_DIST): Add file-type.h.
69481         * modules/filemode (EXTRA_DIST): Add filemode.h.
69482         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69483         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69484         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69485         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69486         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69487         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69488         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69489         * modules/getdate (EXTRA_DIST): Add getdate.c.
69490         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69491         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69492         * modules/getpass (EXTRA_DIST): Add getpass.h.
69493         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69494         * modules/group-member (EXTRA_DIST): Add group-member.h.
69495         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69496         * modules/hash (EXTRA_DIST): Add hash.h.
69497         * modules/human (EXTRA_DIST): Add human.h.
69498         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69499         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69500         * modules/lchown (EXTRA_DIST): Add lchown.h.
69501         * modules/long-options (EXTRA_DIST): Add long-options.h.
69502         * modules/lstat (EXTRA_DIST): Add lstat.h.
69503         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69504         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69505         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69506         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69507         * modules/memxor (EXTRA_DIST): Add memxor.h.
69508         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69509         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69510         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69511         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69512         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69513         * modules/physmem (EXTRA_DIST): Add physmem.h.
69514         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69515         * modules/posixver (EXTRA_DIST): Add posixver.h.
69516         * modules/quote (EXTRA_DIST): Add quote.h.
69517         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69518         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69519         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69520         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69521         regex_internal.h regexec.c.
69522         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69523         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69524         * modules/same (EXTRA_DIST): Add same.h.
69525         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69526         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69527         * modules/savedir (EXTRA_DIST): Add savedir.h.
69528         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69529         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69530         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69531         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69532         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69533         * modules/strdup (EXTRA_DIST): Add strdup.h.
69534         * modules/strftime (EXTRA_DIST): Add strftime.h.
69535         * modules/strndup (EXTRA_DIST): Add strndup.h.
69536         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69537         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69538         * modules/time_r (EXTRA_DIST): Add time_r.h.
69539         * modules/timespec (EXTRA_DIST): Add timespec.h.
69540         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69541         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69542         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69543         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69544         * modules/userspec (EXTRA_DIST): Add userspec.h.
69545         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69546         * modules/utimens (EXTRA_DIST): Add utimens.h.
69547         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69548         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69549         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69550         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69551         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69552         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69553         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69554         * modules/yesno (EXTRA_DIST): Add yesno.h.
69555
69556 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69557
69558         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69559
69560         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69561         * m4/dev-ino.m4, same-inode.m4: Remove.
69562
69563         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69564         * m4/acl.m4 (AC_FUNC_ACL):
69565         * m4/backupfile.m4 (gl_BACKUPFILE):
69566         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69567         * m4/canon-host.m4 (gl_CANON_HOST):
69568         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69570         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69571         * m4/cloexec.m4 (gl_CLOEXEC):
69572         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69573         * m4/closeout.m4 (gl_CLOSEOUT):
69574         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69575         * m4/dirname.m4 (gl_DIRNAME):
69576         * m4/exclude.m4 (gl_EXCLUDE):
69577         * m4/exitfail.m4 (gl_EXITFAIL):
69578         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69579         * m4/file-type.m4 (gl_FILE_TYPE):
69580         * m4/filemode.m4 (gl_FILEMODE):
69581         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69582         * m4/fpending.m4 (gl_FUNC_FPENDING):
69583         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69584         * m4/fts.m4 (gl_FUNC_FTS):
69585         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69586         * m4/getdate.m4 (gl_GETDATE):
69587         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69588         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69589         * m4/getpass.m4 (gl_FUNC_GETPASS):
69590         * m4/gettime.m4 (gl_GETTIME):
69591         * m4/getugroups.m4 (gl_GETUGROUPS):
69592         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69593         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69594         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69595         * m4/hash.m4 (gl_HASH):
69596         * m4/idcache.m4 (gl_IDCACHE):
69597         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69598         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69599         * m4/long-options.m4 (gl_LONG_OPTIONS):
69600         * m4/lstat.m4 (gl_FUNC_LSTAT):
69601         * m4/md5.m4 (gl_MD5):
69602         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69603         * m4/memcoll.m4 (gl_MEMCOLL):
69604         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69605         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69606         * m4/memxor.m4 (gl_MEMXOR):
69607         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69608         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69609         * m4/modechange.m4 (gl_MODECHANGE):
69610         * m4/mountlist.m4 (gl_MOUNTLIST):
69611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69612         * m4/openat.m4 (gl_FUNC_OPENAT):
69613         * m4/pathmax.m4 (gl_PATHMAX):
69614         * m4/physmem.m4 (gl_PHYSMEM):
69615         * m4/posixtm.m4 (gl_POSIXTM):
69616         * m4/posixver.m4 (gl_POSIXVER):
69617         * m4/quote.m4 (gl_QUOTE):
69618         * m4/quotearg.m4 (gl_QUOTEARG):
69619         * m4/readtokens.m4 (gl_READTOKENS):
69620         * m4/readutmp.m4 (gl_READUTMP):
69621         * m4/regex.m4 (gl_REGEX):
69622         * m4/safe-read.m4 (gl_SAFE_READ):
69623         * m4/safe-write.m4 (gl_SAFE_WRITE):
69624         * m4/same.m4 (gl_SAME):
69625         * m4/save-cwd.m4 (gl_SAVE_CWD):
69626         * m4/savedir.m4 (gl_SAVEDIR):
69627         * m4/settime.m4 (gl_SETTIME):
69628         * m4/sha1.m4 (gl_SHA1):
69629         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69630         * m4/stat-macros.m4 (gl_STAT_MACROS):
69631         * m4/stat-time.m4 (gl_STAT_TIME):
69632         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69633         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69634         * m4/strdup.m4 (gl_FUNC_STRDUP):
69635         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69636         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69637         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69638         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69639         * m4/time_r.m4 (gl_TIME_R):
69640         * m4/timespec.m4 (gl_TIMESPEC):
69641         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69642         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69643         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69644         * m4/userspec.m4 (gl_USERSPEC):
69645         * m4/utimecmp.m4 (gl_UTIMECMP):
69646         * m4/utimens.m4 (gl_UTIMENS):
69647         * m4/xalloc.m4 (gl_XALLOC):
69648         * m4/xgetcwd.m4 (gl_XGETCWD):
69649         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69650         * m4/xreadlink.m4 (gl_XREADLINK):
69651         * m4/xstrtod.m4 (gl_XSTRTOD):
69652         * m4/yesno.m4 (gl_YESNO):
69653         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69654         to get the necessary .h files and whatnot.
69655
69656 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69657             Bruno Haible  <bruno@clisp.org>
69658
69659         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69660         /bin/sh understanding of '!' conditional negation.
69661
69662 2006-08-21  Jim Meyering  <jim@meyering.net>
69663
69664         * modules/openat (Depends-on): Really alphabetize.
69665
69666         * modules/acl (Depends-on): Add error and quote.
69667
69668         * check-module (find_included_lib_files): Add at-func.c to the
69669         ok-to-include-more-than-once white list.
69670
69671         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69672
69673 2006-08-21  Bruno Haible  <bruno@clisp.org>
69674
69675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69676         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69677         Reported by Martin Lambers <marlam@marlam.de>.
69678
69679 2006-08-21  Bruno Haible  <bruno@clisp.org>
69680
69681         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69682         specify an installation location, don't emit a noinst_LIBRARIES or
69683         noinst_LTLIBRARIES assignment.
69684
69685 2006-08-21  Bruno Haible  <bruno@clisp.org>
69686
69687         BeOS portability.
69688         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69689         BeOS has mbrtowc() but no <wctype.h>.
69690
69691 2006-08-21  Bruno Haible  <bruno@clisp.org>
69692
69693         BeOS portability.
69694         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69695         exist.
69696
69697 2006-08-21  Bruno Haible  <bruno@clisp.org>
69698
69699         BeOS portability.
69700         * lib/mbchar.h: Include <wctype.h> only if it exists.
69701
69702 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         Remove files that are no longer needed by their respective modules.
69705         * m4/obstack.m4: Remove.
69706         * m4/strerror_r.m4: Remove.
69707         * m4/uint32_t.m4: Remove.
69708         * m4/uintptr_t.m4: Remove.
69709         * m4/ullong_max.m4: Remove.
69710         * m4/xstrtoimax.m4: Remove.
69711         * m4/xstrtoumax.m4: Remove.
69712
69713         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69714         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69715         dependencies now capture this.
69716
69717         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69718         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69719         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69720         * m4/human.m4 (gl_HUMAN): Likewise.
69721         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69722         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69723
69724         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69725
69726         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69727         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69728         stdint.
69729         * m4/human.m4 (gl_HUMAN): Likewise.
69730         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69731         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69732         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69733         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69734         * m4/xstrtol (gl_XSTRTOL): Likewise.
69735
69736         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69737         AC_TYPE_LONG_LONG_INT.
69738         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69739         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69740         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69741         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69742
69743         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69744         on stdbool.
69745
69746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69747         (gl_PREREQ_XSTRTOUL): Remove.
69748
69749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69750
69751         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69752         mode.
69753
69754 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         Add and change modules to make it easier for coreutils to use
69757         gnulib-tool.
69758         * modules/backupfile (Files): Remove m4/d-ino.m4.
69759         (Depends-on): Add d-ino.
69760         * modules/cycle-check (Depends-on): Add stdint.
69761         (lib_SOURCES): Add cycle-check.h.
69762         * modules/d-ino: New module.
69763         * modules/d-type: New module.
69764         * modules/error (Files): Remove m4/strerror_r.m4.
69765         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69766         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69767         m4/inttypes_h.m4, m4/uintmax_t.m4.
69768         (Depends-on): Add stdint.
69769         (lib_SOURCES): Add fsusage.h.
69770         * modules/getcwd (Files): Remove d-ino.m4.
69771         (Depends-on): Add d-ino.
69772         * modules/getndelim2 (Depends-on): Add stdint.
69773         * modules/glob (Files): Remove m4/d-type.m4.
69774         (Depends-on): Add d-type.
69775         * modules/host-os: New module.
69776         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69777         m4/inttypes_h.m4, m4/uintmax_t.m4.
69778         * Depends-on: Add stdint.
69779         (lib_SOURCES): Add human.h.
69780         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69781         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69782         m4/uintmax_t.m4, m4/ulonglong.m4.
69783         (Depends-on): Add stdint.
69784         (EXTRA_DIST): Add inttostr.h.
69785         * modules/lchmod: New module.
69786         * modules/link-follow: New module.
69787         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69788         (Depends-on): Add lchmod.
69789         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69790         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69791         (Depends-on): Add stdint.
69792         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69793         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69794         (Depends-on): Add stdint.
69795         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69796         * modules/perl: New module.
69797         * modules/regex (Depends-on): Add stdint.
69798         * modules/rmdir-errno: New module.
69799         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69800         m4/intmax_t.m4.
69801         (Depends-on): Add stdint.
69802         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69803         m4/uintmax_t.m4.
69804         (Depends-on): Add stdint.
69805         * modules/unlink-busy: New module.
69806         * modules/utimecmp (Depends-on): Add stdint.
69807         * modules/uptime: New module.
69808         * modules/winsz-ioctl: New module.
69809         * modules/winsz-termios: New module.
69810         * modules/xnanosleep (Depends-on): Add nanosleep.
69811         * modules/ullong_max: Remove.
69812         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69813         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69814         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69815         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69816         (Depends-on): Add inttypes.
69817         (lib_SOURCES): Add xstrtol.h.
69818         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69819         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69820         * MODULES.html.sh: Move 'assert' into the assert section.
69821         Move 'dummy' into the linking section.
69822         Remove ullong_max.
69823         Add section for compatibility checks for POSIX:2001 functions,
69824         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69825         winsz-ioctl, and winsz-termios into it.
69826         Add lchmod.
69827         Add top-level Misc section and put host-os, perl, and uptime
69828         into it.
69829
69830 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69833         now assume the stdint module.  Do not include inttypes.h.
69834         * lib/fsusage.h: Likewise.
69835         * lib/getndelim2.c: Likewise.
69836         * lib/human.h: Likewise.
69837         * lib/inttostr.h: Likewise.
69838         * lib/obstack.c: Likewise.
69839         * lib/regex_internal.h: Likewise.
69840         * lib/tempname.c: Likewise.
69841         * lib/utimecmp.c: Likewise.
69842         * lib/xstrtol.h: Likewise.
69843
69844         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69845
69846         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69847         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69848         * lib/xtime.h: Likewise.
69849
69850 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * modules/openat (Files): Add lib/fchmodat.c.
69853         Fixes problem reported by Jay Youngman.
69854
69855 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69858         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69859
69860 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69861             Bruno Haible  <bruno@clisp.org>
69862
69863         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69864         and is a script that invokes bison. Tighten the code. Add comments.
69865
69866 2006-08-18  Jim Meyering  <jim@meyering.net>
69867
69868         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69869         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69870         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69871         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69872
69873 2006-08-18  Bruno Haible  <bruno@clisp.org>
69874
69875         * modules/bison-i18n: New file.
69876         * MODULES.html.sh (Internationalization functions): Add it.
69877
69878 2006-08-18  Bruno Haible  <bruno@clisp.org>
69879
69880         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69881         sys/statvfs.h. When getmntinfo was found, check its declaration and
69882         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69883
69884 2006-08-18  Bruno Haible  <bruno@clisp.org>
69885
69886         * m4/bison-i18n.m4: New file, from bison.
69887
69888 2006-08-18  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69891         (ME_DUMMY): Treat "kernfs" as a dummy.
69892         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69893
69894 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         Update from coreutils.
69897
69898         2006-08-15  Jim Meyering  <jim@meyering.net>
69899
69900         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69901
69902         2006-01-17  Jim Meyering  <jim@meyering.net>
69903
69904         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69905
69906         2006-01-11  Jim Meyering  <jim@meyering.net>
69907
69908         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69909         Check for the lchmod function.
69910
69911 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         Update from coreutils.
69914
69915         * lib/__fpending.h: Add copyright notice.
69916         * lib/fprintftime.h: Likewise.
69917         * lib/savedir.c: Use (C) in copyright notice.
69918         * lib/savedir.h: Likewise.
69919
69920         2006-08-15  Jim Meyering  <jim@meyering.net>
69921
69922         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69923         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69924         in support of the EXPECTED_ERRNO macro.
69925         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69926         definitions.  Instead, define the appropriate symbols and include
69927         "at-func.c".
69928         * lib/mkdirat.c (mkdirat): Likewise.
69929         * lib/fchmodat.c (fchmodat): Likewise.
69930         (ENOSYS): Remove definition.
69931         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69932         it.  Don't include "unistd--.h" -- it wasn't ever used.
69933
69934         2006-01-17  Jim Meyering  <jim@meyering.net>
69935
69936         Rewrite fts.c not to change the current working directory,
69937         by using openat, fstatat, fdopendir, etc..
69938
69939         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69940         (HAVE_OPENAT_SUPPORT): Define.
69941         [_LIBC] (fchdir): Don't undef or define; no longer used.
69942         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69943         Now, this `function' always succeeds, and consumes its file descriptor
69944         parameter -- so callers must not close such FDs.  Update callers.
69945         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69946         (diropen): Add parameter, SP.  Adjust all callers.
69947         Implement using diropen_fd, rather than open.
69948         (fts_open): Initialize new member, fts_cwd_fd.
69949         Remove fts_rft-setting code.
69950         (fts_close): Close fts_cwd_fd, if necessary.
69951         (__opendir2): Define in terms of opendir or opendirat,
69952         depending on whether the FST_NOCHDIR flag is set.
69953         (fts_build): Since fts_safe_changedir consumes its FD, and since
69954         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69955         and close the dup'd file descriptor upon failure.
69956         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69957         (fts_safe_changedir): Tweak semantics to reflect that this function
69958         now calls cwd_advance_fd and hence consumes its FD argument.
69959         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69960         [struct FTS] (fts_rft): Remove now-unused member.
69961         [struct FTS] (fts_cycle.state): Improve comment.
69962
69963         * lib/openat.c (openat_needs_fchdir): New function.
69964         * lib/openat.h (openat_needs_fchdir): Declare it.
69965
69966 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69969         Problem and fix reported by Pádraig Brady in
69970         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69971
69972 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69973
69974         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69975
69976 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * lib/memcoll.c (memcoll): Optimize for the common case where the
69979         arguments are bytewise equal.
69980
69981 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * doc/regexprops-generic.texi: Add a copyright notice.
69984
69985 2006-08-15  Bruno Haible  <bruno@clisp.org>
69986
69987         * modules/tmpdir (License): Change to LGPL.
69988
69989 2006-08-15  Bruno Haible  <bruno@clisp.org>
69990
69991         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69992         module.
69993
69994 2006-08-14  Simon Josefsson  <jas@extundo.com>
69995
69996         * config/srclist.txt: Add gnupload.
69997
69998 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         Change copyright notice from LGPL 2 to GPL 2, since that's the
70001         standard form used in the gnulib repository.
70002         * tests/test-lock.c: Likewise.
70003         * tests/test-stdint.c: Likewise.
70004         * tests/test-tls.c: Likewise.
70005
70006         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70007         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70008         Add copyright notice.
70009
70010         * check-module: Add copyright notice.  Output a copyright
70011         notice if "--version" is specified.
70012         * modules/COPYING: New file.
70013         * tests/test-getaddrinfo.c: Add copyright notice.
70014         * tests/test-verify.c: Likewise.
70015
70016 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         Change copyright notice from LGPL 2 to GPL 2, since that's the
70019         standard form used in the gnulib repository.
70020         * lib/lock.c: LGPL -> GPL.
70021         * lib/lock.h: Likewise.
70022         * lib/strnlen1.c: Likewise.
70023         * lib/strnlen1.h: Likewise.
70024         * lib/tls.c: Likewise.
70025         * lib/tls.h: Likewise.
70026         * lib/tmpdir.c: Likewise.
70027
70028         * lib/TODO: Remove; this belongs only in coreutils.
70029
70030 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         Add copyright notices to long-enough files that lack them, since
70033         otherwise the files aren't clearly free.  Use the same notice that
70034         getdate.texi already uses.
70035         * doc/alloca-opt.texi: Add copyright notice.
70036         * doc/alloca.texi: Likewise.
70037         * doc/ctime.texi: Likewise.
70038         * doc/functions.texi: Likewise.
70039         * doc/gcd.texi: Likewise.
70040         * doc/gnulib-tool.texi: Likewise.
70041         * doc/inet_ntoa.texi: Likewise.
70042         * doc/visibility.texi: Likewise.
70043
70044         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70045         * doc/quote.texi: Add copyright notice.
70046
70047         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70048         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70049         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70050         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70051         is now obsolete, and give a pointer to the Sun list.
70052         Add copyright notice.
70053
70054 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * config/srclistvars.sh: Add copyright notice.
70057
70058 2006-08-14  Eric Blake  <ebb9@byu.net>
70059
70060         Import the following change from libc:
70061
70062         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70063
70064         Upstream bug 2997.
70065         * lib/misc/error.c: Add space between program name and message if file
70066         name is missing.
70067
70068 2006-08-12  Karl Berry  <karl@gnu.org>
70069
70070         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70071         remove, these originate in gnulib now.
70072
70073 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70074
70075         * doc/Makefile (standards.info standards.html standards.dvi):
70076         Also depend on make-stds.texi.
70077
70078 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70079
70080         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70081         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70082
70083         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70084         in wchar_t.  Problem reported by Eric Blake.
70085
70086         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70087         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70088         Also, help the compiler to keep LEN in a register.
70089
70090 2006-08-11  Eric Blake  <ebb9@byu.net>
70091
70092         * users.txt: Sort.  Add tar.
70093
70094 2006-08-11  Bruno Haible  <bruno@clisp.org>
70095
70096         * users.txt: New file.
70097
70098 2006-08-11  Bruno Haible  <bruno@clisp.org>
70099
70100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70101         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70102
70103 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         * modules/snprintf (Depends-on): Remove minmax.
70106         (Maintainer): Add self and Bruno.
70107
70108 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70111         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70112         (EOVERFLOW): Define if the system does not.
70113         Do not include "minmax.h"; it wasn't used.
70114         (snprintf): Don't assume size_t promotes to an unsigned type.
70115         Fix bug when generated string was too long for the buffer: the
70116         buffer's contents are supposed to be the initial prefix of the
70117         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70118         exceeds INT_MAX; do the check ourselves.
70119
70120         Import the following changes from libc:
70121
70122         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70123
70124         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70125         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70126         set wc to the byte which couldn't be converted.
70127         (re_string_reconstruct): Don't clear valid_raw_len before calling
70128         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70129         tip_context using re_string_context_at.
70130
70131         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70132
70133         * lib/posix/regex.h: g++ still cannot handled [restrict].
70134
70135         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70136
70137         * lib/posix/regex.h: Remove special handling for VMS.
70138
70139 2006-08-10  Jim Meyering  <jim@meyering.net>
70140
70141         * modules/same-inode: New module.
70142         * modules/dev-ino: New module.
70143         * modules/cycle-check: Depend on these modules, rather than simply
70144         including their .h files.
70145         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70146         required via m4/cycle-check.m4.
70147         * modules/same: Depend on new same-inode module, rather than
70148         including same-inode.h.
70149         * modules/chdir-safer: New file.
70150
70151         * modules/chown (Depends-on): Add stat-macros.
70152
70153 2006-08-10  Jim Meyering  <jim@meyering.net>
70154
70155         * m4/cycle-check.m4: New file.
70156         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70157         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70158
70159 2006-08-10  Eric Blake  <ebb9@byu.net>
70160
70161         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70162         in from original proposal.
70163
70164 2006-08-10  Eric Blake  <ebb9@byu.net>
70165         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70166
70167         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70168         namespace.
70169
70170 2006-08-10  Bruno Haible  <bruno@clisp.org>
70171
70172         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70173         as well.
70174
70175 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70176
70177         Sync from coreutils.
70178
70179         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70180
70181         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70182         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70183
70184 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70185
70186         * modules/restrict: Remove; no longer needed now that we assume
70187         Autoconf 2.59 or later.
70188         * MODULES.html.sh: Remove 'restrict'.
70189         * modules/argp (Depends-on): Remove 'restrict'.
70190         * modules/base64 (Depends-on): Likewise.
70191         * modules/gc (Depends-on): Likewise.
70192         * modules/getaddrinfo (Depends-on): Likewise.
70193         * modules/glob (Depends-on): Likewise.
70194         * modules/inet_ntop (Depends-on): Likewise.
70195         * modules/inet_pton (Depends-on): Likewise.
70196         * modules/memxor (Depends-on): Likewise.
70197         * modules/regex (Depends-on): Likewise.
70198         * modules/strtok_r (Depends-on): Likewise.
70199         * modules/time_r (Depends-on): Likewise.
70200
70201 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70202
70203         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70204         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70205         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70206         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70207         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70208         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70209         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70210         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70211
70212         Merge from coreutils.
70213         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70214         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70215         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70216         * m4/time_r.m4 (gl_TIME_R): Likewise.
70217
70218 2006-08-09  Karl Berry  <karl@gnu.org>
70219
70220         * config/srclist.txt: no more gettext-tools, per Bruno.
70221
70222 2006-08-08  Eric Blake  <ebb9@byu.net>
70223
70224         * modules/verror: New module.
70225         * MODULES.html.sh: Document it.
70226
70227 2006-08-08  Eric Blake  <ebb9@byu.net>
70228
70229         * lib/verror.h, lib/verror.c: New files.
70230
70231 2006-08-08  Eric Blake  <ebb9@byu.net>
70232
70233         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70234         verror_at_line output complies with GNU Coding Standards even when
70235         file is NULL.
70236
70237 2006-08-07  Bruno Haible  <bruno@clisp.org>
70238
70239         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70240         versions of AIX.
70241         Reported by Ralf Wildenhues.
70242
70243 2006-08-07  Bruno Haible  <bruno@clisp.org>
70244
70245         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70246         in an AC_DEFUN. Needed so that the autoconf snippets can use
70247         AC_REQUIRE.
70248
70249 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70250
70251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70252         Initialize pkgdata_DATA.
70253         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70254         overriding it.
70255
70256 2006-08-06  Eric Blake  <ebb9@byu.net>
70257
70258         * lib/error.h: Fold in some upstream changes from glibc.
70259         * lib/error.c: Likewise.
70260
70261 2006-08-04  Bruno Haible  <bruno@clisp.org>
70262
70263         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70264         Make the mostlyclean-local rule depend on mostlyclean-generic.
70265         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70266
70267 2006-07-31  Bruno Haible  <bruno@clisp.org>
70268
70269         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70270         <stdlib.h>, <string.h>.
70271
70272 2006-07-30  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/readlink (License): Change to LGPL.
70275
70276 2006-07-30  Bruno Haible  <bruno@clisp.org>
70277
70278         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70279         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70280         set PKGDATADIR to point to it.
70281
70282 2006-07-30  Bruno Haible  <bruno@clisp.org>
70283
70284         * modules/csharpexec (configure.ac): Comment out macro invocation.
70285         * modules/javaexec (configure.ac): Likewise.
70286         * modules/javacomp-script (configure.ac): Likewise.
70287
70288         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70289
70290 2006-07-30  Bruno Haible  <bruno@clisp.org>
70291
70292         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70293         linked-list.
70294
70295 2006-07-30  Bruno Haible  <bruno@clisp.org>
70296
70297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70298
70299 2006-07-30  Bruno Haible  <bruno@clisp.org>
70300
70301         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70302         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70303         get removed.
70304
70305 2006-07-29  Bruno Haible  <bruno@clisp.org>
70306
70307         Make it possible for gnulib-tool to work with locally modified or
70308         augmented gnulib repositories.
70309         * gnulib-tool (func_usage): Document --local-dir option.
70310         (local_gnulib_dir): New variable.
70311         Handle --local-dir option.
70312         (func_lookup_file): New function.
70313         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70314         (func_get_description, func_get_filelist, func_get_description,
70315         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70316         func_get_automake_snippet, func_get_include_directive,
70317         func_get_license, func_get_maintainer): Use func_lookup_file.
70318         (func_import, func_create_testdir): Use func_lookup_file.
70319
70320 2006-07-29  Bruno Haible  <bruno@clisp.org>
70321
70322         * modules/setenv (Depends-on): Add unistd.
70323
70324 2006-07-29  Bruno Haible  <bruno@clisp.org>
70325
70326         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70327
70328 2006-07-29  Bruno Haible  <bruno@clisp.org>
70329
70330         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70331
70332 2006-07-29  Bruno Haible  <bruno@clisp.org>
70333
70334         * gnulib-tool (import, update): If there is no Makefile.am, look at
70335         aclocal.m4, instead of bailing out.
70336
70337 2006-07-29  Bruno Haible  <bruno@clisp.org>
70338
70339         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70340         Categorize the options by when they are useful.
70341
70342 2006-07-29  Bruno Haible  <bruno@clisp.org>
70343
70344         * gnulib-tool (func_usage): Document option --no-libtool.
70345         Handle option --no-libtool.
70346         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70347         for changed semantics of $libtool variable.
70348         (func_import): Likewise. If libtool is not used, show this through
70349         an option --no-libtool.
70350         (func_create_testdir): Update.
70351
70352 2006-07-29  Bruno Haible  <bruno@clisp.org>
70353
70354         * gnulib-tool (func_import): Extend error message about missing
70355         --doc-base.
70356
70357 2006-07-29  Bruno Haible  <bruno@clisp.org>
70358
70359         * gnulib-tool (func_import): Don't create the $docbase directory if
70360         there is no file to store there.
70361
70362 2006-07-29  Bruno Haible  <bruno@clisp.org>
70363
70364         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70365         relevant, look for configure.ac there, not in the current directory.
70366         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70367
70368 2006-07-29  Bruno Haible  <bruno@clisp.org>
70369
70370         * gnulib-tool (SORT): New variable.
70371         (func_usage): Undocument --assume-autoconf option.
70372         Remove --assume-autoconf option handling.
70373         (autoconf_minversion): Determine from the contents of configure.ac.
70374         (func_import): Remove autoconf_minversion handling.
70375         Suggested by Eric Blake.
70376
70377 2006-07-29  Bruno Haible  <bruno@clisp.org>
70378
70379         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70380
70381 2006-07-29  Bruno Haible  <bruno@clisp.org>
70382
70383         * config/srclist.txt (*setenv.[ch]): Remove rules.
70384
70385 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70386
70387         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70388
70389 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70390
70391         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70392         arpa/inet.h.
70393
70394 2006-07-28  Simon Josefsson  <jas@extundo.com>
70395
70396         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70397         * modules/inet_pton (Depends-on): Likewise.
70398
70399 2006-07-28  Simon Josefsson  <jas@extundo.com>
70400
70401         * m4/netinet_in_h.m4: New file.
70402
70403 2006-07-28  Simon Josefsson  <jas@extundo.com>
70404
70405         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70406         #include's.
70407
70408 2006-07-28  Simon Josefsson  <jas@extundo.com>
70409
70410         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70411         #include's.
70412
70413 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70414
70415         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70416         setgid on directories only if they set these bits.
70417         * lib/modechange.h: Remove obsolete comment about masks.
70418
70419 2006-07-28  Eric Blake  <ebb9@byu.net>
70420
70421         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70422         macro expansion.
70423
70424 2006-07-28  Bruno Haible  <bruno@clisp.org>
70425
70426         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70427
70428 2006-07-28  Bruno Haible  <bruno@clisp.org>
70429
70430         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70431
70432 2006-07-28  Bruno Haible  <bruno@clisp.org>
70433
70434         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70435         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70436         Define fallbacks.
70437         Avoids link error on FreeBSD 4.x.
70438         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70439
70440         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70441         encoding.
70442         * lib/mbswidth.c (iswcntrl): Likewise.
70443
70444 2006-07-27  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70447         test.
70448
70449 2006-07-27  Bruno Haible  <bruno@clisp.org>
70450
70451         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70452         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70453         defined.
70454
70455 2006-07-26  Eric Blake  <ebb9@byu.net>
70456
70457         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70458
70459 2006-07-26  Eric Blake  <ebb9@byu.net>
70460
70461         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70462         like mingw that lack mkstemp.
70463         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70464         avoid compilation warning on mingw.
70465
70466 2006-07-26  Bruno Haible  <bruno@clisp.org>
70467
70468         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70469         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70470         INT_FAST*_MIN, INTPTR_MIN.
70471
70472 2006-07-25  Bruno Haible  <bruno@clisp.org>
70473
70474         * modules/version-etc (Depends-on): Add stdarg.
70475
70476 2006-07-25  Bruno Haible  <bruno@clisp.org>
70477
70478         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70479         complex commands.
70480
70481 2006-07-25  Bruno Haible  <bruno@clisp.org>
70482
70483         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70484         defined in <stdarg.h> or config.h.
70485
70486 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70489         (gl_STDIO_SAFER): Remove.
70490
70491 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * MODULES.html.sh (File stream based Input/Output):
70494         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70495         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70496         * modules/fopen-safer, modules/tmpfile-safer: New files.
70497         * modules/stdio-safer: Remove.
70498
70499 2006-07-24  Bruno Haible  <bruno@clisp.org>
70500
70501         * modules/tmpdir: New file.
70502         * MODULES.html.sh (File system functions): Add it.
70503
70504 2006-07-24  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70507         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70508
70509 2006-07-24  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/clean-temp: New file.
70512
70513 2006-07-24  Bruno Haible  <bruno@clisp.org>
70514
70515         * m4/tmpdir.m4: New file, from GNU gettext.
70516
70517 2006-07-24  Bruno Haible  <bruno@clisp.org>
70518
70519         * lib/tmpdir.h: New file, from GNU gettext.
70520         * lib/tmpdir.c: New file, from GNU gettext.
70521
70522 2006-07-24  Bruno Haible  <bruno@clisp.org>
70523
70524         * lib/clean-temp.h: New file, from GNU gettext.
70525         * lib/clean-temp.c: New file, from GNU gettext.
70526
70527 2006-07-23  Eric Blake  <ebb9@byu.net>
70528
70529         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70530         (Depends-on): Add binary-io.
70531
70532 2006-07-23  Eric Blake  <ebb9@byu.net>
70533
70534         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70535
70536 2006-07-23  Eric Blake  <ebb9@byu.net>
70537
70538         * lib/tmpfile-safer.c: New file.
70539         * lib/stdio-safer.h (fopen_safer): Add prototype.
70540         * lib/stdio--.h (tmpfile): Make safer.
70541
70542 2006-07-23  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70545         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70546         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70547         gl_linked_remove_at): Use it.
70548
70549 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70550         and Simon Josefsson <jas@extundo.com>
70551
70552         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70553
70554         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70555
70556 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * modules/close-stream: New file.
70559         * modules/closeout (Description): Make it clear that it exits
70560         with a diagnostic on error.
70561         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70562         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70563
70564 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70565
70566         * m4/close-stream.m4: New file.
70567
70568 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         * lib/close-stream.c, lib/close-stream.h: New files.
70571
70572 2006-07-22  Bruno Haible  <bruno@clisp.org>
70573
70574         Merge from GNU gettext 0.15.
70575
70576         2006-05-01  Bruno Haible  <bruno@clisp.org>
70577
70578                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70579
70580         2006-07-22  Bruno Haible  <bruno@clisp.org>
70581
70582                 * modules/javaversion: New file.
70583                 * MODULES.html.sh (Java): Add javaversion.
70584
70585         2006-03-12  Bruno Haible  <bruno@clisp.org>
70586
70587                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70588
70589         2005-12-04  Bruno Haible  <bruno@clisp.org>
70590
70591                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70592                 (untested).
70593
70594         2006-06-21  Bruno Haible  <bruno@clisp.org>
70595
70596                 Avoid warnings from recent versions of mcs.
70597                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70598                 -o, -L, -r any more. Use options documented since mcs-1.0
70599                 instead. Similarly for -g.
70600
70601         2005-12-04  Bruno Haible  <bruno@clisp.org>
70602
70603                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70604                 .resources, not .resource.
70605
70606         2005-07-09  Bruno Haible  <bruno@clisp.org>
70607
70608                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70609                 add a .dll suffix.
70610                 Reported by Mark Junker <mjscod@gmx.de>.
70611
70612         2006-07-22  Bruno Haible  <bruno@clisp.org>
70613
70614                 * modules/gettext: Upgrade to gettext-0.15.
70615                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70616                 m4/visibility.m4.
70617                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70618
70619 2006-07-22  Bruno Haible  <bruno@clisp.org>
70620
70621         Merge from GNU gettext 0.15.
70622
70623         2006-03-25  Bruno Haible  <bruno@clisp.org>
70624
70625                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70626
70627         2006-07-21  Bruno Haible  <bruno@clisp.org>
70628
70629                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70630                 "1.1".
70631
70632         2006-05-09  Bruno Haible  <bruno@clisp.org>
70633
70634                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70635                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70636                 for the conftestver execution.
70637
70638         2006-05-01  Bruno Haible  <bruno@clisp.org>
70639
70640                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70641                 optional target-version argument. Verify that the compiler
70642                 groks source of the specified source-version, or add -source
70643                 option as necessary. Verify that the compiler produces
70644                 bytecode in the specified target-version, or add -target and
70645                 -source options as necessary. Make the result of the test
70646                 available as variable CONF_JAVAC. Also log error output in
70647                 config.log.
70648
70649         2006-03-11  Bruno Haible  <bruno@clisp.org>
70650
70651                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70652
70653         2006-05-09  Bruno Haible  <bruno@clisp.org>
70654
70655                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70656                 CLASSPATH_SEPARATOR to a semicolon.
70657
70658         2006-03-12  Bruno Haible  <bruno@clisp.org>
70659
70660                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70661                 available as variable CONF_JAVA, for subsequent autoconf
70662                 tests. Also log error output in config.log.
70663
70664         2006-07-19  Bruno Haible  <bruno@clisp.org>
70665
70666                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70667                 that getline works on glibc2 systems. Needed to avoid trouble
70668                 in relocatable.c.
70669                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70670
70671         2005-12-04  Bruno Haible  <bruno@clisp.org>
70672
70673                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70674                 launcher (untested).
70675
70676         2005-12-04  Bruno Haible  <bruno@clisp.org>
70677
70678                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70679
70680         2006-07-22  Bruno Haible  <bruno@clisp.org>
70681
70682                 * gettext.m4: Update from GNU gettext-0.15.
70683                 * nls.m4: Likewise.
70684                 * po.m4: Likewise.
70685                 * inttypes-pri.m4: Likewise.
70686                 * inttypes-h.m4: Renamed from inttypes.m4.
70687                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70688
70689 2006-07-22  Bruno Haible  <bruno@clisp.org>
70690
70691         Merge from GNU gettext 0.15.
70692
70693         2005-07-05  Bruno Haible  <bruno@clisp.org>
70694
70695                 * printf-args.c (printf_fetchargs): Work around broken
70696                 definition of wint_t on mingw.
70697
70698         2005-02-12  Bruno Haible  <bruno@clisp.org>
70699
70700                 * xallocsa.h: Add extern "C" for C++.
70701
70702         2006-05-17  Bruno Haible  <bruno@clisp.org>
70703
70704                 Cygwin portability.
70705                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70706
70707         2006-04-30  Bruno Haible  <bruno@clisp.org>
70708
70709                 * progreloc.c: Include <mach-o/dyld.h> if available.
70710                 (find_executable): Use _NSGetExecutablePath when possible.
70711
70712         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70713
70714                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70715                 function.
70716
70717         2005-12-29  Bruno Haible  <bruno@clisp.org>
70718
70719                 * progreloc.c (set_program_name_and_installdir): Fix
70720                 compilation error.
70721
70722         2005-12-04  Bruno Haible  <bruno@clisp.org>
70723
70724                 Cygwin portability.
70725                 * progreloc.c: Include <windows.h> also on Cygwin.
70726                 (find_executable): Add support for Cygwin.
70727                 (set_program_name_and_installdir): Handle also platforms with
70728                 nonempty EXEEXT.
70729
70730         2006-07-11  Bruno Haible  <bruno@clisp.org>
70731
70732                 * javacomp.c: Fix a comment.
70733                 Reported by Jim Meyering.
70734
70735         2006-04-30  Bruno Haible  <bruno@clisp.org>
70736
70737                 * javacomp.h (compile_java_class): Add source_version,
70738                 target_version arguments.
70739                 * javacomp.c: Rewritten to choose only a compiler that
70740                 respects the specified source_version and target_version.
70741
70742         2006-06-27  Bruno Haible  <bruno@clisp.org>
70743
70744                 Assume correct S_ISDIR macro.
70745                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70746
70747         2006-07-22  Bruno Haible  <bruno@clisp.org>
70748
70749                 * javaversion.h: New file, from GNU gettext.
70750                 * javaversion.c: New file, from GNU gettext.
70751                 * javaversion.java: New file, from GNU gettext.
70752                 * javaversion.class: New file, from GNU gettext.
70753
70754         2006-05-17  Bruno Haible  <bruno@clisp.org>
70755
70756                 Cygwin portability.
70757                 * javaexec.c (execute_java_class): Test for jview program
70758                 also on Cygwin.
70759
70760         2006-04-09  Bruno Haible  <bruno@clisp.org>
70761
70762                 * fatal-signal.c: Don't include string.h.
70763                 (at_fatal_signal): Use a copying loop instead of memcpy.
70764
70765         2005-12-04  Bruno Haible  <bruno@clisp.org>
70766
70767                 * csharpexec.c: Add support for 'clix' launcher (untested).
70768                 (execute_csharp_using_sscli): New function.
70769                 (execute_csharp_program): Call it.
70770
70771         2006-06-21  Bruno Haible  <bruno@clisp.org>
70772
70773                 Avoid warnings from recent versions of mcs.
70774                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70775                 -o, -L, -r any more. Use options documented since mcs-1.0
70776                 instead. Similarly for -g.
70777
70778         2005-07-09  Bruno Haible  <bruno@clisp.org>
70779
70780                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70781                 add a .dll suffix.
70782                 Reported by Mark Junker <mjscod@gmx.de>.
70783
70784         2006-06-17  Bruno Haible  <bruno@clisp.org>
70785
70786                 * config.charset: Update for NetBSD 3.0.
70787
70788         2006-05-17  Bruno Haible  <bruno@clisp.org>
70789
70790                 Cygwin portability.
70791                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70792
70793         2006-05-16  Bruno Haible  <bruno@clisp.org>
70794
70795                 * localcharset.c [CYGWIN]: Include <windows.h>.
70796                 (get_charset_aliases): For Cygwin, return the same CPxxx
70797                 aliases list as under WIN32.
70798                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70799                 the environment variables. Fall back to GetACP().
70800
70801         2006-04-05  Bruno Haible  <bruno@clisp.org>
70802
70803                 * config.charset: Update Juan Manuel Guerrero's address.
70804
70805         2005-02-12  Bruno Haible  <bruno@clisp.org>
70806
70807                 * allocsa.h: Add extern "C" for C++.
70808
70809         2005-02-10  Bruno Haible  <bruno@clisp.org>
70810
70811                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70812                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70813
70814         2006-07-22  Bruno Haible  <bruno@clisp.org>
70815
70816                 * gettext.h: Update to GNU gettext-0.15.
70817
70818 2006-07-22  Bruno Haible  <bruno@clisp.org>
70819
70820         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70821         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70822         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70823
70824 2006-07-21  Eric Blake  <ebb9@byu.net>
70825
70826         * modules/stdlib-safer: New file.
70827         * MODULES.html.sh (File stream based Input/Output): Add
70828         stdlib-safer.
70829
70830 2006-07-21  Eric Blake  <ebb9@byu.net>
70831
70832         * lib/stdlib-safer.h: New file from coreutils, required by
70833         stdlib--.h.
70834
70835 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70838
70839 2006-07-20  Bruno Haible  <bruno@clisp.org>
70840
70841         * gnulib-tool: Recognize new option --assume-autoconf.
70842         (autoconf_minversion): New variable.
70843         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70844
70845 2006-07-20  Bruno Haible  <bruno@clisp.org>
70846
70847         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70848
70849 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70850
70851         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70852         Reindent and repaginate.
70853
70854 2006-07-19  Derek Price  <derek@ximbiot.com>
70855
70856         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70857         Correct grammar.
70858
70859 2006-07-17  Bruno Haible  <bruno@clisp.org>
70860
70861         * modules/list: New file.
70862         * modules/array-list: New file.
70863         * modules/carray-list, modules/carray-list-tests: New files.
70864         * modules/linked-list, modules/linked-list-tests: New files.
70865         * modules/avltree-list, modules/avltree-list-tests: New files.
70866         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70867         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70868         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70869         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70870         * modules/oset: New file.
70871         * modules/array-oset: New file.
70872         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70873         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70874         * tests/test-carray_list.c: New file.
70875         * tests/test-linked_list.c: New file.
70876         * tests/test-avltree_list.c: New file.
70877         * tests/test-rbtree_list.c: New file.
70878         * tests/test-linkedhash_list.c: New file.
70879         * tests/test-avltreehash_list.c: New file.
70880         * tests/test-rbtreehash_list.c: New file.
70881         * tests/test-avltree_oset.c: New file.
70882         * tests/test-rbtree_oset.c: New file.
70883         * MODULES.html.sh (Container data structures): New section.
70884
70885 2006-07-17  Bruno Haible  <bruno@clisp.org>
70886
70887         * m4/gl_list.m4: New file.
70888
70889 2006-07-17  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/gl_list.h: New file.
70892         * lib/gl_list.c: New file.
70893         * lib/gl_array_list.h: New file.
70894         * lib/gl_array_list.c: New file.
70895         * lib/gl_carray_list.h: New file.
70896         * lib/gl_carray_list.c: New file.
70897         * lib/gl_linked_list.h: New file.
70898         * lib/gl_linked_list.c: New file.
70899         * lib/gl_anylinked_list1.h: New file.
70900         * lib/gl_anylinked_list2.h: New file.
70901         * lib/gl_avltree_list.h: New file.
70902         * lib/gl_avltree_list.c: New file.
70903         * lib/gl_anyavltree_list1.h: New file.
70904         * lib/gl_anyavltree_list2.h: New file.
70905         * lib/gl_rbtree_list.h: New file.
70906         * lib/gl_rbtree_list.c: New file.
70907         * lib/gl_anyrbtree_list1.h: New file.
70908         * lib/gl_anyrbtree_list2.h: New file.
70909         * lib/gl_anytree_list1.h: New file.
70910         * lib/gl_anytree_list2.h: New file.
70911         * lib/gl_linkedhash_list.h: New file.
70912         * lib/gl_linkedhash_list.c: New file.
70913         * lib/gl_anyhash_list1.h: New file.
70914         * lib/gl_anyhash_list2.h: New file.
70915         * lib/gl_avltreehash_list.h: New file.
70916         * lib/gl_avltreehash_list.c: New file.
70917         * lib/gl_rbtreehash_list.h: New file.
70918         * lib/gl_rbtreehash_list.c: New file.
70919         * lib/gl_anytreehash_list1.h: New file.
70920         * lib/gl_anytreehash_list2.h: New file.
70921
70922         * lib/gl_oset.h: New file.
70923         * lib/gl_oset.c: New file.
70924         * lib/gl_array_oset.h: New file.
70925         * lib/gl_array_oset.c: New file.
70926         * lib/gl_avltree_oset.h: New file.
70927         * lib/gl_avltree_oset.c: New file.
70928         * lib/gl_rbtree_oset.h: New file.
70929         * lib/gl_rbtree_oset.c: New file.
70930         * lib/gl_anytree_oset.h: New file.
70931
70932 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * m4/mkancesdirs.m4: New file.
70935         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70936         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70937         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70938         it.
70939
70940 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70941
70942         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70943         * lib/mkancesdirs.h: New files.
70944         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70945         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70946         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70947         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70948         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70949         callers changed.  Revamp internals significantly, by not
70950         attempting to create directories that are temporarily more
70951         permissive than the final results.  Do not attempt to use
70952         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70953         This removes some race conditions, fixes some bugs, and simplifies
70954         things.  Use new dirchownmod function to do owner and mode changes.
70955         * lib/mkdir-p.h: Likewise.
70956         * lib/modechange.c (octal_to_mode): New function.
70957         (struct mode_change): New member mentioned.
70958         (make_node_op_equals): New arg mentioned.  All callers changed.
70959         (mode_compile): Keep track of which mode bits the user has explicitly
70960         mentioned.
70961         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70962         New arg PMODE_BITS, to keep track of which mode bits the user
70963         mentioned; it treats S_ISUID and S_ISGID speciall.
70964         All callers changed.
70965         * lib/modechange.h: Likewise.
70966
70967 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * MODULES.html.sh: Add mkancestors.
70970         * modules/mkancesdirs: New module.
70971         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70972         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70973         The chdir-safer and afs files are now orphans; I'll remove them
70974         unless someone speaks up.
70975         Add lib/dirchownmod.c, lib/dirchownmod.h.
70976         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70977         Add lchown, mkancesdirs.
70978         (Maintainer): Add self.
70979
70980 2006-07-15  Karl Berry  <karl@gnu.org>
70981
70982         * gnulib-tool: help message wording/arrangement.
70983
70984 2006-07-14  Simon Josefsson  <jas@extundo.com>
70985
70986         * doc/gnulib.texi (Libtool and Windows): New section.
70987
70988 2006-07-12  Simon Josefsson  <jas@extundo.com>
70989
70990         * modules/gendocs (License): Fix license, approved by Karl.
70991
70992 2006-07-12  Eric Blake  <ebb9@byu.net>
70993
70994         * MODULES.html.sh: Add gendocs.
70995
70996 2006-07-11  Eric Blake  <ebb9@byu.net>
70997
70998         * modules/fdl: New module, to install doc/fdl.texi.
70999         * MODULES.html.sh: Add new section for documentation modules.
71000         * gnulib-tool: Avoid space-tab.
71001         (--doc-base): New option, to manage files from doc.
71002
71003 2006-07-11  Eric Blake  <ebb9@byu.net>
71004
71005         * m4/absolute-header.m4: Fix comments to match recent change.
71006
71007 2006-07-11  Eric Blake  <ebb9@byu.net>
71008
71009         * gnulib-tool: List --doc-base before --tests-base.
71010
71011 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71012
71013         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71014
71015 2006-07-11  Bruno Haible  <bruno@clisp.org>
71016
71017         * README: Mention where to put documentation.
71018
71019 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71020
71021         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71022
71023 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71024
71025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71026         to stdint.m4.
71027
71028 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71031         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71032         "no/such/file/stdint.h" when there is no such file, so that
71033         the resulting C code can be parsed by dodgy compilers.
71034         Problems reported by Bob Proulx.
71035
71036 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71037
71038         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71039         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71040         macros into the GNU _D_EXACT_NAMLEN.
71041         * lib/savedir.c:  Likewise.
71042         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71043
71044 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71045         and Paul Eggert  <eggert@cs.ucla.edu>
71046
71047         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71048         * m4/savedir.m4:
71049         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71050         macros into the GNU _D_EXACT_NAMLEN.
71051
71052 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71055         around the absolute name, to work around a problem with the HP-UX
71056         11.23 native C compiler, reported by Bob Proulx.
71057
71058 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * doc/maintain.texi, make-stds.texi: Sync from
71061         <http://savannah.gnu.org/projects/gnustandards>.
71062
71063 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71064
71065         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71066
71067 2006-07-09  Jim Meyering  <jim@meyering.net>
71068
71069         * m4/glob.m4: Remove a doubled word in a comment.
71070
71071 2006-07-09  Jim Meyering  <jim@meyering.net>
71072
71073         * lib/argp-pv.c: Remove a doubled word in a comment.
71074         * lib/check-version.c (check_version): Likewise.
71075         * lib/javacomp.c (compile_java_class): Likewise.
71076
71077 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71080         for the benefit of people using Autoconf 2.60.  If you want to
71081         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71082         (or m4/onceonly.m4, if pre-2.57) manually.
71083
71084 2006-07-08  Jim Meyering  <jim@meyering.net>
71085
71086         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71087         comment.
71088         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71089         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71090         comment.
71091
71092 2006-07-08  Jim Meyering  <jim@meyering.net>
71093
71094         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71095
71096 2006-07-07  Simon Josefsson  <jas@extundo.com>
71097
71098         * tests/test-crc.c: Change expected crc value, the test vector
71099         were probably computed using the old broken crc.c?
71100
71101 2006-07-06  Simon Josefsson  <jas@extundo.com>
71102
71103         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71104         now the canonical place for the M4 file).
71105
71106         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71107         from the sys_socket dependency now.
71108
71109         * modules/inet_pton (Files): Ditto.
71110
71111         * modules/inet_ntop (Files): Ditto.
71112
71113 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71114
71115         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71116         not gl_PREREQ_GETUSERSHELL.
71117
71118 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71119
71120         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71121         with only one argument, for Autoconf 2.60.
71122         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71123         expand to nothing, so add a shell command to avoid syntax error.
71124         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71125
71126 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71127
71128         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71129
71130 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71133         no longer needed.  Check for isblank decl.
71134         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71135         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71136         of existence.
71137
71138 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         * lib/getloadavg.c: Use __VMS, not VMS.
71141         * lib/getopt.c: Likewise.
71142         * lib/getpagesize.h: Likewise.
71143         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71144         and probably does not work.
71145
71146 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71147
71148         * lib/.cppi-disable: Add wcwidth.
71149         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71150         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71151         (ISGRAPH): Remove.  All uses changed to isgraph.
71152         (FOLD) [!defined _LIBC]: Remove special case.
71153         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71154         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71155         HAVE_ISBLANK.
71156         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71157         case.
71158
71159 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71160
71161         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71162         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71163         brackets.  Other minor changes to suppress some compiler
71164         warnings.
71165
71166 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71167         and Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71170         of invoking obsolescent AC_HEADER_DIRENT macro.
71171         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71172         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71174         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71175         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71176         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71177         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71178         * m4/readdir.m4: Remove; no longer needed.
71179
71180 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71181         and Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71184         Don't worry about this obsolete case any more.
71185         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71186         directories.
71187         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71188         worry about this obsolete case any more.
71189         * lib/fts.c: Likewise.
71190         * lib/getcwd.c: Likewise.
71191         * lib/glob.h: Likewise.
71192         * lib/savedir.c: Likewise.
71193
71194 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71197         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71198         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71199         needed.
71200         All uses removed.
71201         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71202         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71203         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71204         needed.
71205         * m4/getdate.m4 (gl_GETDATE): Likewise.
71206         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71207         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71208         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71209         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71210         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71211         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71212         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71213         needed.
71214
71215 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * lib/memcasecmp.c: Include <limits.h>.
71218         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71219         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71220         Don't assume isdigit succeeds only on '0' through '9'.
71221
71222 2006-07-05  Eric Blake  <ebb9@byu.net>
71223
71224         * modules/getaddrinfo (Depends-on): Add snprintf.
71225
71226 2006-07-05  Eric Blake  <ebb9@byu.net>
71227
71228         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71229         to avoid 'header present but could not be compiled' on cygwin.
71230
71231 2006-07-05  Eric Blake  <ebb9@byu.net>
71232
71233         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71234         missing from netdb.h.
71235         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71236
71237 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71238
71239         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71240         no longer needed.
71241         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71242         * m4/getdate.m4 (gl_GETDATE): Likewise.
71243         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71244         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71245         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71246         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71248
71249 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71250
71251         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71252         All uses of is_space replaced by isspace.
71253         * lib/exit.h: Don't talk about STDC_HEADERS.
71254         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71255         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71256         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71257         replaced by isprint etc.
71258         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71259         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71260         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71261         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71262         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71263         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71264
71265 2006-07-05  Bruno Haible  <bruno@clisp.org>
71266
71267         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71268         the function exists, before testing against AIX.
71269         Reported by Martin Lambers <marlam@marlam.de>.
71270
71271 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71274         From Mark D. Baushke.
71275
71276 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71279         to the absolute name, not just one, to bypass Sun C 5.8's
71280         "warning: #include of /usr/include/... may be non-portable".
71281
71282 2006-07-04  Eric Blake  <ebb9@byu.net>
71283
71284         * modules/dirname-tests: New test module.
71285         * tests/test-dirname.c: New file, replacing dirname.c
71286         TEST_DIRNAME section that was recently deleted.
71287
71288 2006-07-04  Bruno Haible  <bruno@clisp.org>
71289
71290         Assume ANSI C header files and <ctype.h> functions.
71291         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71292         (mbsnwidth): Use isprint, iscntrl instead.
71293
71294 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         Merge from coreutils.
71297         * MODULES.html.sh: Add xstrtold.
71298         * modules/xstrtold: New file.
71299         * modules/cycle-check (Files): Add lib/same-inode.h.
71300         * modules/dirname (Files): Add m4/double-slash-root.m4.
71301         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71302         * modules/mkdir-p (Files): Add lib/same-inode.h.
71303         * modules/same (Files): Add lib/same-inode.h.
71304
71305 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71308         This is to keep the terminology clean; POSIX talks about
71309         "absolute pathnames", not "full pathnames", but the GNU
71310         Coding Standards say to use "path" for something else;
71311         so use "absolute" to keep both sides happy.
71312         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71313         Set gl_absolute_header, not gl_full_header_path.
71314         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71315         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71316         All uses changed.
71317
71318         Merge from coreutils.
71319
71320         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71323         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71324         want to require the building of c-strtod.o.
71325         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71326         needs -lm directly.
71327         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71328
71329         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71332         --as-needed option if available.  Problem reported by Albert Chin in
71333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71334         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71335         cc merely issues a bunch of annoying warnings for --as-needed
71336         (this problem was reported by Bob Proulx).  Also, try linking with
71337         -lm to detect a bug in binutils 2.16 (this problem was reported
71338         by Ralf Wildenhues).
71339
71340         2006-06-18  Jim Meyering  <jim@meyering.net>
71341
71342         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71343         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71344         macro.
71345         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71346         also check for glibc-2.4's abort-inducing bug.
71347
71348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71349         Low-probability clean-up should be to use rmdir to get rid of
71350         the just-created directory, not unlink.
71351
71352         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71353         configure fail, and request a bug report to inform us about it.
71354         Add a comment that, barring reports to the contrary, in 2007 we'll
71355         assume ftruncate is universally available.
71356
71357         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71360
71361         2006-03-12  Jim Meyering  <jim@meyering.net>
71362
71363         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71364         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71365         * m4/same.m4 (gl_SAME): Likewise.
71366         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71367
71368         2006-03-11  Eric Blake  <ebb9@byu.net>
71369
71370         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71371         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71372         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71373         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71374
71375 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71378         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71379         reported by Mark D. Baushke, one in
71380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71381
71382         Merge from coreutils.
71383
71384         * lib/.cppi-disable: Add stdint_.h.
71385         * lib/.cvsignore: Add stdint.h.
71386
71387         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71390         both double and long double versions.
71391         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71392         * lib/xstrtold.c: New file.
71393         * lib/xstrtod.h (xstrtold): New decl.
71394
71395         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71396
71397         * lib/filemode.c (setst): Remove.
71398         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71399         (arguably) clearer, and the generated code is a bit smaller on my
71400         Debian GNU/Linux stable x86 host.
71401
71402         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71405         Assume that filemode.h includes sys/types.h and sys/stat.h.
71406         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71407         (ftypelet): Reorder to put common cases first, for efficiency.
71408         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71409         to do 'M'.
71410         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71411         of 10, for compatibility with FreeBSD.  All callers changed.
71412         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71413         types that can't be deduced solely from st_mode.  First arg is now a
71414         const pointer.
71415         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71416         (strmode): Renamed from mode_string.
71417         (filemodestring): New decl.
71418         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71419         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71420         needed.
71421         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71422
71423         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71426         fsusage.h now does that.  Include fsusage.h first, to test interface.
71427         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71428         at most one method (the old code could have generated decls that
71429         didn't conform to C89, not that this was ever exercised).
71430         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71431
71432         2006-03-19  Jim Meyering  <jim@meyering.net>
71433
71434         Work even in a chroot where d_ino values for entries in "/"
71435         don't match the stat.st_ino values for the same names.
71436         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71437         number, iterate through all entries again, using lstat instead.
71438         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71439         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71440
71441         * lib/getcwd.c (__getcwd): Clarify a comment.
71442         Use memcpy in place of a call to strcpy.
71443
71444         2006-03-12  Jim Meyering  <jim@meyering.net>
71445
71446         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71447         matches that of the current directory (which we're about to chdir ".."
71448         out of), then save the dev-ino of the parent, instead.
71449
71450         * lib/same-inode.h (SAME_INODE): New file/macro.
71451         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71452         Include "same-inode.h", instead.
71453         * lib/same.c: Likewise.
71454         * lib/cycle-check.h: Include "same-inode.h".
71455         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71456         * lib/cycle-check.c (SAME_INODE): Remove definition.
71457         * lib/root-dev-ino.h: Include "same-inode.h".
71458
71459         2006-03-11  Eric Blake  <ebb9@byu.net>
71460
71461         * lib/same.c (same_name): s/base_name/last_component/
71462         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71463         * lib/filenamecat.c (file_name_concat): Likewise.
71464
71465         2006-03-11  Eric Blake  <ebb9@byu.net>,
71466                     Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71469         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71470         drive prefix.
71471         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71472         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71473         (last_component): New method.
71474         * lib/dirname.c (dir_len): Determine when drive letters need a
71475         subsequent slash.  Preserve // when it is special.
71476         (dir_name): Don't append dot when drive letter is absolute.
71477         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71478         * lib/basename.c (base_name): New semantics - malloc the result.
71479         Preserve // when it is special.  Preserve relative files that look
71480         like drive letters.
71481         (base_len): Preserve // when it is special.
71482         (last_component): New method, similar to old base_name semantics.
71483         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71484         base_name.  Strip redundant slashes from ///.
71485
71486 2006-07-03  Jim Meyering  <jim@meyering.net>
71487
71488         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71489         macro is used before the first cycle_check call.
71490
71491 2006-07-03  Eric Blake  <ebb9@byu.net>
71492
71493         * modules/dirname (Depends-on): Add xstrndup.
71494
71495 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71498         test cases, so that config.log is a bit easier to follow.
71499
71500 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71501
71502         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71503         both are 64 bits, since this seems to be the tradition, and this
71504         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71505         we ever run into a host that prefers long long to long in this
71506         case, we'll need another configure-time test.  Problem reported by
71507         Jim Meyering.
71508
71509 2006-07-02  Eric Blake  <ebb9@byu.net>
71510
71511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71512
71513 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         * modules/inttypes (Depends-on): No longer depends on stdint.
71516         * modules/stdint (Description): Say more about assumptions.
71517         Say that the fast types might differ.  Say macros are used.
71518         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71519         (Makefile.am): Revise list of substituted symbols to match
71520         new stdint.m4.
71521         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71522         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71523         * tests/test-stdint.c (verify_same_types)
71524         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71525         the code conforms to C99/C89.
71526         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71527         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71528
71529 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71532         but fix a bug, by requiring at least 64 bits.
71533         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71534         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71535         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71536         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71537
71538         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71539         changes.  Make 2.59 a prerequisite.  Check and substitute for
71540         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71541         inttypes.h.  Do not use special include files; just use the
71542         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71543         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71544         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71545         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71546         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71547         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71548         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71549         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71550         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71551         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71552         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71553         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71554         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71555         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71556         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71557         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71558         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71559         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71560         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71561         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71562         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71563         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71564         not check for things that C99 does not require, e.g., int8_t.  If
71565         a test isn't needed unless <stdint.h> isn't working, and is
71566         unlikely to be needed for any other reason, then don't do it
71567         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71568         size_t, since we assume C89 freestanding at least.  Do not check
71569         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71570         the right thing even if the types are not defined.  Instead use:
71571         (gl_STDINT_TYPE_PROPERTIES): New macro.
71572         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71573         testing whether <sys/types.h> clashes, as Autoconf does this for
71574         us now.  All uses removed.
71575         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71576         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71577         (gl_CHECK_TYPE_SAME):
71578         Remove; no longer needed.
71579         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71580         exists, since we'll return 0 anyway in that case.
71581         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71582
71583 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71586         possible collision with system files.
71587         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71588         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71589         WCHAR_MIN and WCHAR_MAX in this case.
71590         (<stddef.h>): Do not include; no longer needed.
71591         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71592         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71593         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71594         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71595         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71596         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71597         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71598         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71599         !defined(__c99))]: Include in this case too, since it's harmless
71600         now.
71601         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71602         dangerous to do so.
71603         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71604         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71605         (_STDINT_MIN, _STDINT_MAX): New macros.
71606         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71607         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71608         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71609         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71610         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71611         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71612         macros, not typedefs; this simplifies things quite a bit.
71613         Use long int for all types narrower than int64_t.
71614         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71615         Define in terms of long long int or int64_t or long int,
71616         not int64_t or int32_t.  This saves some compile-time testing.
71617         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71618         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71619         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71620         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71621         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71622         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71623         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71624         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71625         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71626         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71627         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71628         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71629         undef any previous version and define our own version, for
71630         simplicity and consistency with the new macros for types.
71631         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71632         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71633         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71634         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71635         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71636         @WINT_T_SUFFIX@ to keep things simple here.
71637         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71638         Simplify by assuming typical 8/16/32/64 host, since we're
71639         already doing that elsewhere anyway.
71640         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71641         and assume long long int is 64 bits if available.  This
71642         speeds up 'configure'.
71643
71644 2006-07-01  Eric Blake  <ebb9@byu.net>
71645
71646         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71647         Reported by Andreas Buening.
71648
71649 2006-07-01  Eric Blake  <ebb9@byu.net>
71650
71651         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71652
71653 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71654
71655         * lib/getaddrinfo.c: fixed typo
71656
71657 2006-06-29  Jim Meyering  <jim@meyering.net>
71658
71659         * modules/strftime (Maintainer): Add my name, since with the
71660         FPRINTFTIME changes strftime.c has forked from glibc.
71661
71662 2006-06-29  Eric Blake  <ebb9@byu.net>
71663
71664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71665
71666 2006-06-29  Eric Blake  <ebb9@byu.net>
71667
71668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71669
71670 2006-06-29  Eric Blake  <ebb9@byu.net>
71671
71672         * lib/stat_.h: New file.
71673
71674 2006-06-29  Eric Blake  <ebb9@byu.net>
71675
71676         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71677         unused static function.
71678
71679 2006-06-29  Eric Blake  <ebb9@byu.net>
71680
71681         * doc/functions.texi (Function Portability): Document missing lstat
71682         on mingw.
71683
71684 2006-06-29  Eric Blake  <ebb9@byu.net>
71685
71686         * MODULES.html.sh: Add sys_stat.
71687         * modules/sys_stat: New module.
71688         * modules/mkstemp (Depends-on): Add sys_stat.
71689
71690 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71691
71692         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71693
71694 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71695
71696         * m4/c-bs-a.m4: Removed.
71697
71698 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71699
71700         * lib/strftime.c: Assume strftime() exists.
71701
71702 2006-06-29  Derek Price  <derek@ximbiot.com>
71703
71704         * modules/c-bs-a: Removed - \a is C89.
71705         * MODULES.html.sh: Remove c-bs-a.
71706
71707 2006-06-29  Bruno Haible  <bruno@clisp.org>
71708
71709         * modules/wcwidth (License): Change to LGPL.
71710
71711 2006-06-28  Simon Josefsson  <jas@extundo.com>
71712
71713         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71714         on _WIN32.
71715
71716         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71717         getnameinfo.
71718
71719 2006-06-28  Simon Josefsson  <jas@extundo.com>
71720
71721         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71722
71723 2006-06-28  Simon Josefsson  <jas@extundo.com>
71724
71725         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71726         functions there.  It will succeed on Windows XP, but on Windows
71727         2000 and (presumably) earlier, it will fail, and use the internal
71728         re-implementation.
71729         (use_win32_p): New function.
71730         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71731         Support AI_NUMERICSERV to disable getservbyname.
71732         (getnameinfo): New function, only supports
71733         NI_NUMERICHOST|NI_NUMERICSERV for now.
71734
71735         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71736         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71737         getnameinfo.
71738
71739 2006-06-28  Eric Blake  <ebb9@byu.net>
71740
71741         * modules/wcwidth: New file.
71742         * modules/mbchar (Depends-on): Add wcwidth.
71743         * modules/mbswidth (Depends-on): Add wcwidth.
71744         * MODULES.html.sh: Add wcwidth.
71745
71746 2006-06-28  Eric Blake  <ebb9@byu.net>
71747
71748         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71750
71751 2006-06-28  Eric Blake  <ebb9@byu.net>
71752
71753         * lib/xvasprintf.h: Fix comments.
71754
71755 2006-06-28  Eric Blake  <ebb9@byu.net>
71756
71757         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71758         * lib/mbswidth.c (wcwidth): Move from here...
71759         * lib/wcwidth.h: ...to this new file.
71760
71761 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71762
71763         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71764
71765         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71766         it's obsolete.
71767         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71768
71769 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71770
71771         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71772         Autoconf 2.60 says this stuff was obsolete.
71773
71774 2006-06-28  Bruno Haible  <bruno@clisp.org>
71775
71776         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71777
71778 2006-06-28  Bruno Haible  <bruno@clisp.org>
71779
71780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71781         gt_TYPE_WCHAR_T.
71782
71783 2006-06-28  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71786         declaration for wcwidth.
71787         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71788
71789 2006-06-28  Bruno Haible  <bruno@clisp.org>
71790
71791         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71792         (mkdir): Define using _mkdir.
71793
71794 2006-06-28  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/getaddrinfo.h: Fix POSIX URL.
71797         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71798         _WIN32.
71799         (use_win32_p): Make static.
71800         (getaddrinfo): Reject service name if it is empty or does not consist
71801         solely of decimal digits, or if its value is > 65535.
71802         (getnameinfo): Remove useless casts.
71803
71804 2006-06-27  Simon Josefsson  <jas@extundo.com>
71805
71806         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71807         Eggert and Martin Lambers.
71808
71809 2006-06-27  Simon Josefsson  <jas@extundo.com>
71810
71811         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71812         Eggert and Martin Lambers.
71813
71814 2006-06-27  Bruno Haible  <bruno@clisp.org>
71815
71816         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71817         result to 0, not to empty.
71818         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71819
71820 2006-06-27  Bruno Haible  <bruno@clisp.org>
71821
71822         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71823
71824 2006-06-26  Simon Josefsson  <jas@extundo.com>
71825
71826         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71827         present.
71828
71829 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71832         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71834
71835 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71836
71837         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71838
71839 2006-06-26  Bruno Haible  <bruno@clisp.org>
71840
71841         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71842
71843 2006-06-26  Bruno Haible  <bruno@clisp.org>
71844
71845         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71846
71847 2006-06-26  Bruno Haible  <bruno@clisp.org>
71848
71849         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71850         SGI C compiler in pre-C99 mode.
71851         Suggested by Mark D. Baushke and Larry Jones.
71852
71853 2006-06-26  Bruno Haible  <bruno@clisp.org>
71854
71855         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71856         WCHAR_MAX.
71857         Reported by Mark D. Baushke and Larry Jones.
71858
71859 2006-06-26  Bruno Haible  <bruno@clisp.org>
71860
71861         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71862         in pre-C99 mode.
71863         Suggested by Mark D. Baushke and Larry Jones.
71864
71865 2006-06-23  Simon Josefsson  <jas@extundo.com>
71866             Bruno Haible  <bruno@clisp.org>
71867
71868         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71869         Emit mostlyclean-local rule.
71870         (func_emit_tests_Makefile_am): Likewise.
71871         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71872
71873 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71874
71875         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71876
71877 2006-06-23  Bruno Haible  <bruno@clisp.org>
71878
71879         * tests/test-stdint.c: Update to match ISO C 99 Technical
71880         Corrigendum 1.
71881
71882 2006-06-23  Bruno Haible  <bruno@clisp.org>
71883
71884         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71885
71886 2006-06-23  Bruno Haible  <bruno@clisp.org>
71887
71888         * lib/stdint_.h: Treat IRIX like OpenBSD.
71889
71890 2006-06-23  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71893         ISO C 99 Technical Corrigendum 1.
71894
71895 2006-06-22  Simon Josefsson  <jas@extundo.com>
71896
71897         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71898         MinGW.
71899
71900 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71903         needed.  Some compiler complained about some of them.  Problem reported
71904         by Larry Jones in
71905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71906
71907 2006-06-21  Simon Josefsson  <jas@extundo.com>
71908
71909         * tests/test-getaddrinfo.c: New file.
71910
71911         * modules/getaddrinfo-tests: New file.
71912
71913         * MODULES.html.sh: Add inet_pton.
71914
71915         * modules/inet_pton: New file.
71916
71917 2006-06-21  Simon Josefsson  <jas@extundo.com>
71918
71919         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71920         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71921         of using the (limited) gnulib implementation on Windows XP.
71922
71923         * m4/inet_pton.m4: New file.
71924
71925 2006-06-21  Simon Josefsson  <jas@extundo.com>
71926
71927         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71928         variable.
71929
71930         * lib/socket_.h: Don't define WINVER.
71931
71932         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71933         slightly modified to work in gnulib.
71934
71935 2006-06-21  Simon Josefsson  <jas@extundo.com>
71936
71937         * doc/gnulib.texi (Windows sockets): Add.
71938
71939 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * lib/read-file.c (fread_file): Start with buffer allocation of
71942         0 bytes rather than 1 byte; this simplifies the code.
71943         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71944         code to free buffer and save/restore errno.
71945         (internal_read_file): Remove unused local.
71946
71947 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71950         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71951         Problem reported by Denis Excoffier in
71952         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71953
71954 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71955
71956         * modules/sys_socket, modules/socklen: Include sys/types since
71957         FreeBSD 4.x's sys/socket.h needs it.
71958
71959 2006-06-19  Simon Josefsson  <jas@extundo.com>
71960
71961         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71962
71963 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71966
71967 2006-06-19  Bruno Haible  <bruno@clisp.org>
71968
71969         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71970         and FULL_PATH_INTTYPES_H in angle brackets.
71971         Reported by Mark D. Baushke <mdb@gnu.org>.
71972
71973 2006-06-17  Eric Blake  <ebb9@byu.net>
71974
71975         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71976         errno.
71977
71978 2006-06-17  Bruno Haible  <bruno@clisp.org>
71979
71980         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71981         <sys/inttypes.h>.
71982
71983 2006-06-17  Bruno Haible  <bruno@clisp.org>
71984
71985         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71986         whether errno is declared. Assume <errno.h> declares errno.
71987
71988 2006-06-17  Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71991
71992 2006-06-17  Bruno Haible  <bruno@clisp.org>
71993
71994         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71995         problem on Solaris 2.5.1.
71996
71997 2006-06-16  Eric Blake  <ebb9@byu.net>
71998
71999         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72000         * lib/unicodeio.c [!defined errno]: Likewise.
72001         * lib/strtol.c [!defined errno]: Likewise.
72002         * lib/strtod.c [!defined errno]: Likewise.
72003
72004 2006-06-15  Eric Blake  <ebb9@byu.net>
72005
72006         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72007
72008 2006-06-15  Eric Blake  <ebb9@byu.net>
72009
72010         * config/srclist.txt (ssize_t.m4): Lose sync.
72011
72012 2006-06-15  Bruno Haible  <bruno@clisp.org>
72013
72014         * modules/stdint (Files): Include m4/full-header-path.m4,
72015         m4/size_max.m4, m4/wchar_t.m4.
72016         (Makefile.am): Many more substitutions.
72017         * modules/stdint-tests: New file.
72018         * tests/test-stdint.c: New file.
72019
72020 2006-06-15  Bruno Haible  <bruno@clisp.org>
72021
72022         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72023         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72024         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72025         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72026         gl_CHECK_TYPE_SAME): New macros.
72027
72028 2006-06-15  Bruno Haible  <bruno@clisp.org>
72029
72030         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72031
72032 2006-06-15  Bruno Haible  <bruno@clisp.org>
72033
72034         * lib/stdint_.h: Rewritten to be fully auto-configured.
72035         Fixes bug on HP-UX/IA64.
72036
72037 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72038
72039         * lib/getdate.y (__attribute__): Don't define if already defined.
72040         Problem reported by Larry Jones.
72041         * lib/utimens.c (__attribute__): Likewise.
72042
72043 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72046         reported by Andreas Schwab.
72047
72048 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72049             Bruno Haible  <bruno@clisp.org>
72050
72051         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72052         check for the declaration of strnlen and a run test that exposes the
72053         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72054         rpl_strndup.
72055
72056 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72057             Bruno Haible  <bruno@clisp.org>
72058
72059         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72060
72061 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72062
72063         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72064         compile test, for Tru64 4.0D.
72065
72066 2006-05-28  Karl Berry  <karl@gnu.org>
72067
72068         * config/srclist.txt (printf-args.c): lose sync.
72069
72070 2006-05-26  Martin Lambers  <marlam@marlam.de>
72071
72072         * lib/getpass.c: Updates the test for the native W32 API, and adds
72073         missing includes, thus fixing compilation warnings.
72074
72075 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72076
72077         * lib/exclude.c (exclude_fnmatch): New function.
72078         (excluded_file_name): Call exclude_fnmatch.
72079         * lib/exclude.h (excluded_file_name): New prototype
72080
72081 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * lib/tempname.c (small_open, large_open): New macros.
72084         (__open, __open64) [!_LIBC]: Remove.
72085         (__gen_tempname): Use small_open and large_open instead of __open
72086         and __open64.  This fixes a portability bug on HP-UX 11.11i
72087         reported by Simon Wing-Tang in
72088         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72089
72090 2006-05-24  Bruno Haible  <bruno@clisp.org>
72091
72092         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72093         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72094         Reported by Thorsten Maerz <torte@netztorte.de> via
72095         Aaron Stone <aaron@serendipity.cx>.
72096
72097 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72100         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72101         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72102         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72103         not really conditional on the cache.
72104         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72105
72106 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72109         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72110         (my_usleep): Don't mishandle maximum value.
72111
72112 2006-05-19  Jim Meyering  <jim@meyering.net>
72113
72114         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72115
72116 2006-05-17  Bruno Haible  <bruno@clisp.org>
72117
72118         Cygwin portability.
72119         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72120
72121 2006-05-17  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/stdint_.h: Fix recognition of Cygwin.
72124
72125 2006-05-15  Bruno Haible  <bruno@clisp.org>
72126
72127         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72128         on libtool patch by Ralf Wildenhues.
72129
72130 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72133         test for C99 conformance; (bool) 0.5 is an integer constant
72134         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72135         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72136
72137 2006-05-11  Simon Josefsson  <jas@extundo.com>
72138
72139         * m4/xvasprintf.m4: Fix obvious typo.
72140
72141 2006-05-11  Jim Meyering  <jim@meyering.net>
72142
72143         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72144         James Lemley.
72145
72146 2006-05-10  Simon Josefsson  <jas@extundo.com>
72147
72148         * lib/md4.c: Typo fix, update copyright years.
72149         (K1, K2): Don't use L because it turn computations into 64-bit on
72150         64-bit platforms.
72151
72152 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72155         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72156         unwanted sign propagation, e.g., on hosts with 64-bit int.
72157         There still are some problems with reeelly weird theoretical hosts
72158         (e.g., 33-bit int) but it's not worth worrying about now.
72159         * lib/sha1.c (rol): Likewise.
72160         (K1, K2, K3, K4): Remove unnecessary L suffix.
72161
72162 2006-05-10  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/des.c: Cast to avoid warnings.
72165
72166 2006-05-09  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72169         (Depends-on): Depend also on xsize, stdarg.
72170         (configure.ac): Add gl_XVASPRINTF.
72171
72172 2006-05-09  Bruno Haible  <bruno@clisp.org>
72173
72174         * m4/xvasprintf.m4: New file.
72175
72176 2006-05-09  Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72179         (EOVERFLOW): Define fallback value.
72180         (xstrcat): New function.
72181         (xvasprintf): Recognize the special case of a string concatenation.
72182
72183 2006-05-08  Eric Blake  <ebb9@byu.net>
72184
72185         * gnulib-tool (func_version): Base copyright year on CVS date.
72186         (func_emit_copyright_notice): New function.
72187         (func_emit_lib_Makefile_am): Use it.
72188         (func_emit_tests_Makefile_am): Likewise.
72189         (func_import): Likewise.
72190
72191 2006-05-08  Bruno Haible  <bruno@clisp.org>
72192
72193         * modules/stdarg: New file.
72194         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72195
72196 2006-05-08  Bruno Haible  <bruno@clisp.org>
72197
72198         * m4/stdarg.m4: New file, from GNU gettext.
72199
72200 2006-05-08  Bruno Haible  <bruno@clisp.org>
72201
72202         * config/srclist.txt (build-aux/config.rpath): different from latest
72203         release.
72204
72205 2006-05-08  Bruno Haible  <bruno@clisp.org>
72206
72207         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72208
72209 2006-05-05  Jim Meyering  <jim@meyering.net>
72210
72211         * m4/warning.m4: New file, derived from bison's file by the same name.
72212
72213 2006-05-03  Bruno Haible  <bruno@clisp.org>
72214
72215         * lib/stdint_.h: Shorter URL.
72216         * lib/inttypes.h: Likewise.
72217
72218 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72221
72222 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         * lib/verify.h: Document the internals better.  Most of this change
72225         was written by Bruno Haible.
72226
72227 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72228
72229         * doc/verify.texi: New file, partly based on a proposal by
72230         Bruno Haible.
72231
72232 2006-05-02  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72235         test from here...
72236         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72237
72238 2006-04-29  Bruno Haible  <bruno@clisp.org>
72239
72240         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72241         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72242
72243 2006-04-29  Bruno Haible  <bruno@clisp.org>
72244
72245         * gnulib-tool: Make --update option actually work.
72246
72247 2006-04-29  Bruno Haible  <bruno@clisp.org>
72248
72249         * doc/gcd.texi: New file.
72250         * doc/gnulib.texi: Include it.
72251
72252 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/getdate.y (get_date): When adding relative date, start with the
72255         initial time, not with the result of the first mktime call.
72256
72257 2006-04-25  Bruno Haible  <bruno@clisp.org>
72258
72259         * gnulib-tool (func_import): Output the include directives in three
72260         blocks, sorted separately.
72261         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72262
72263 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72266         to define main with arguments, for C++.  Reported by Eric Blake.
72267         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72268         Prefer 'int main ()' to 'int main (void)', for C++.
72269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72270         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72271         for 'main', for C99 and C++.
72272
72273 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72276         Don't assume that exit status -1 is valid.
72277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72278         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72279         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72280         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72281         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72282         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72283         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72284         functions can be used without declaring them, or that you can
72285         exit with status -1.
72286         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72287
72288 2006-04-24  Karl Berry  <karl@gnu.org>
72289
72290         * config/srclist.txt (longdouble.m4): sync lost.
72291
72292 2006-04-24  Eric Blake  <ebb9@byu.net>
72293
72294         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72295
72296 2006-04-24  Bruno Haible  <bruno@clisp.org>
72297
72298         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72299         poll() implementation in AIX.
72300         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72301
72302 2006-04-24  Bruno Haible  <bruno@clisp.org>
72303
72304         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72305         assigned exactly once.
72306
72307 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72308             Bruno Haible  <bruno@clisp.org>
72309
72310         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72311         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72312         for AM_CPPFLAGS.
72313
72314 2006-04-23  Bruno Haible  <bruno@clisp.org>
72315
72316         * modules/copy-file: Depend on unistd.
72317         * modules/execute: Likewise.
72318         * modules/fatal-signal: Likewise.
72319         * modules/findprog: Likewise.
72320         * modules/mkdtemp : Likewise.
72321         * modules/pipe: Likewise.
72322         * modules/wait-process: Likewise.
72323
72324 2006-04-23  Bruno Haible  <bruno@clisp.org>
72325
72326         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72327         condition was already detected.
72328         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72329
72330 2006-04-23  Bruno Haible  <bruno@clisp.org>
72331
72332         * lib/copy-file.c: Include <unistd.h> unconditionally.
72333         * lib/execute.c: Likewise.
72334         * lib/fatal-signal.c: Likewise.
72335         * lib/findprog.c: Likewise.
72336         * lib/mkdtemp.c: Likewise.
72337         * lib/pipe.h: Likewise.
72338         * lib/pipe.c: Likewise.
72339         * lib/wait-process.h: Likewise.
72340
72341 2006-04-23  Bruno Haible  <bruno@clisp.org>
72342
72343         * gnulib-tool (func_usage): Fix --import description. Document
72344         --update.
72345         (func_import): Create temporary file in a temporary directory, if
72346         --dry-run is specified. Silence errors from 'grep' when there are no
72347         m4 files in $m4dir.
72348         (func_create_testdir): Silence errors from 'grep' when there are no
72349         m4 files in $m4dir.
72350         Reported by Karl Berry <karl@freefriends.org>.
72351
72352 2006-04-20  Bruno Haible  <bruno@clisp.org>
72353
72354         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72355         one argument, so that the code will be portable to Autoconf 2.60.
72356         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72358         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72359
72360 2006-04-19  Derek Price  <derek@ximbiot.com>
72361             Eric Blake  <ebb9@byu.net>
72362
72363         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72364         rather than "/full/path.h".  Update comment to match.  Shorten &
72365         generalize m4_translit call via AS_TR_CPP.
72366
72367 2006-04-19  Derek Price  <derek@ximbiot.com>
72368             Eric Blake  <ebb9@byu.net>
72369
72370         * lib/inttypes.h: Correct grammar in comment.
72371
72372 2006-04-18  Derek Price  <derek@ximbiot.com>
72373             Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * modules/inttypes: New file.
72376         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72377
72378 2006-04-18  Derek Price  <derek@ximbiot.com>
72379             Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72382         New files.
72383
72384 2006-04-18  Derek Price  <derek@ximbiot.com>
72385             Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * lib/inttypes.h: New file.
72388         * lib/strtoimax.c: Assume <inttypes.h>.
72389
72390 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72393         isn't mounted.  Problem reported by Kir Kolyshkin.
72394
72395 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72396
72397         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72398         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72399         Derek R. Price.
72400         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72401         implementation.
72402
72403 2006-04-12  Eric Blake  <ebb9@byu.net>
72404
72405         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72406         is now done automatically by the corresponding Autoconf macro.
72407
72408 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72411         time_r.h.
72412
72413 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         Merge regex changes from libc, removing some of our
72416         POSIX-conformance changes that were rejected and redoing them in a
72417         less-intrusive way.
72418
72419         * lib/regcomp.c (re_compile_internal, init_dfa):
72420         Length arg is now size_t, not Idx.  All uses changed.
72421         (peek_token): Forward decl now says internal_function.
72422         (__re_error_msgid, __re_error_msgid_idx):
72423         Now static rather than extern with attribute_hidden.
72424         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72425         For some reason libc prefers K&R style defns for external functions.
72426         (regerror) [!defined _LIBC]: Likewise.
72427         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72428         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72429         (build_range_exp, build_collating_symbol):
72430         Use K&R-style defn.
72431         (re_compile_fastmap): Use '\0' to memset, not 0.
72432         (utf8_sb_map): Make the calculations more obvious.
72433         (init_dfa, parse_bracket_exp, build_charclass_op):
72434         Call calloc and cast result, as glibc does.
72435         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72436         (build_range_exp, build_collating_symbol):
72437         Now internal functions.
72438
72439         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72440
72441         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72442         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72443         Don't depend on VMS; depend on __VMS instead, for POSIX
72444         namespace cleanness.
72445         (regoff_t): Define to ssize_t, not long int.
72446
72447         Remove the REG_ macros named below.  Instead, make the old names
72448         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72449         __USE_GNU_REGEX.
72450         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72451         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72452         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72453         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72454         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72455         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72456         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72457         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72458         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72459         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72460         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72461         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72462         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72463         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72464         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72465         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72466         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72467         (REG_NREGS):
72468         Remove.  All uses replaced by the old RE_* names.
72469         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72470         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72471         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72472         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72473         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72474         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72475         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72476         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72477         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72478         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72479         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72480         Don't bother having these macros be independent of each others'
72481         values, since they no longer exist in the POSIX name space.
72482
72483         Rename the following member names back to their old names,
72484         unless !__USE_GNU_REGEX.  All uses changed back.
72485         (buffer): Renamed from re_buffer.
72486         (allocated): Renamed from re_allocated.
72487         (used): Renamed from re_used.
72488         (syntax): Renamed from re_syntax.
72489         (fastmap): Renamed from re_fastmap.
72490         (translate): Renamed from re_translate.
72491         (can_be_null): Renamed from re_can_be_null.
72492         (regs_allocated): Renamed from re_regs_allocated.
72493         (fastmap_accurate): Renamed from re_fastmap_accurate.
72494         (no_sub): Renamed from re_no_sub.
72495         (not_bol): Renamed from re_not_bol.
72496         (not_eol): Renamed from re_not_eol.
72497         (newline_anchor): Renamed from re_newline_anchor.
72498         (num_regs): Renamed from rm_num_regs.
72499         (start): Renamed from rm_start.
72500         (end): Renamed from rm_end.
72501
72502         (free_state): Move up a bit.
72503
72504         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72505         #define to be empty.
72506         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72507         when that is what is intended.
72508         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72509         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72510         (MAX): New macro.
72511         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72512         All uses changed back to re_malloc, etc.  It's now the caller's
72513         responsibility to check for overflow; all callers changed.
72514         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72515         (re_x2nrealloc): Remove.
72516         (free_state): Remove decl.
72517
72518         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72519         (re_set_registers, re_exec):
72520         Use K&R-style defn.
72521
72522         2006-01-31  Roland McGrath  <roland@redhat.com>
72523
72524         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72525         Reported by Mike Frysinger <vapier@gentoo.org>.
72526
72527         2006-01-15  Andreas Jaeger  <aj@suse.de>
72528
72529         [BZ #1950]
72530         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72531         build_wcs_upper_buffer change.
72532         (build_wcs_upper_buffer): Change return type.
72533
72534         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72535
72536         * lib/regex_internal.h: Include <stdint.h> if available.
72537
72538         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72539
72540         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72541
72542         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72543
72544         * lib/regcomp.c: Adjust for changed secondary hash function.
72545
72546         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72547
72548         * lib/regex.h: Pretty printing.
72549         Clean up namespace a bit.
72550
72551         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72552
72553         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72554         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72555
72556         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72557                     Ulrich Drepper  <drepper@redhat.com>
72558
72559         [BZ #1302]
72560         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72561         changed.
72562         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72563
72564         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72565
72566         [BZ #281]
72567         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72568         * lib/regcomp.c: Remove unnecessary uses of
72569         unsigned RE_TRANSLATE_TYPE.
72570         * lib/regex_internal.h: Likewise.
72571         * lib/regex_internal.c: Likewise.
72572         * lib/regexec.c: Likewise.
72573         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72574
72575         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72576
72577         * lib/regexec.c (find_recover_state): Remove unnecessary
72578         initialization.
72579         (transit_state_bkref): Make DFA a const pointer.
72580         (get_subexp): Likewise.
72581         (check_arrival): Likewise.
72582         (update_cur_sifted_state): Likewise.
72583         (re_search_internal): Likewise.
72584         (prune_impossible_nodes): Likewise.
72585         (acquire_init_state_context): Likewise.
72586         (proceed_next_node): Likewise.
72587         (set_regs): Likewise.
72588         (free_fail_stack_return): Likewise.
72589         (check_arrival_expand_ecl): Mark DFA parameter as const.
72590         (check_arrival_expand_ecl_sub): Likewise.
72591         (check_subexp_limits): Likewise.
72592         (sub_epsilon_src_nodes):  Likewise.
72593         (add_epsilon_src_nodes):  Likewise.
72594         (merge_state_array): Likewise.
72595         (update_regs): Likewise.
72596         (build_trtable): Likewise.
72597         (sift_states_backward): Mark MCTX parameter as const.
72598         (build_sifted_states): Likewise.
72599         (update_cur_sifted_state): Likewise.
72600         (sift_states_mkref): Likewise.
72601         (check_arrival_expand_ecl): Mark eclosure as const.
72602         (check_dst_limits_calc_pos_1): Likewise.
72603         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72604         pointer.
72605
72606         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72607
72608         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72609         (transit_state_sb): Likewise.
72610         (transit_state_mb): Likewise.
72611         (sift_states_iter_mb): Likewise.
72612         (check_arrival_add_next_nodes): Likewise.
72613         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72614         [_LIBC] (re_search_2_stub): Use mempcpy.
72615
72616         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72617         mbrtowc for very simple UTF-8 case.
72618
72619         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72620         a pointer-to-const.
72621         (re_acquire_state_context): Likewise.
72622         * lib/regex_internal.h: Adjust prototypes.
72623
72624         * lib/regex.c: Prevent using C++ compilers.
72625
72626         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72627         (re_acquire_state_context): Likewise.
72628
72629 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * modules/regex (Depends-on): Add ssize_t.
72632
72633 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72634
72635         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72636         translation table.
72637
72638 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72641
72642 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72643             Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72646         <sys/types.h> and <inttypes.h>.
72647
72648 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72649
72650         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72651         `__error_t_defined', so argp.h will not typedef the former.
72652
72653 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72656         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72657         glibc names.  Even if glibc is changed to conform to POSIX, the
72658         traditional names will be available anyway, since regex depends on
72659         the extensions module.  Also, fix a longstanding typo in the
72660         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72661         reported by Emanuele Giaquinta.  Also, change sense of cached
72662         variable, so that the message makes sense.
72663
72664 2006-03-24  Simon Josefsson  <jas@extundo.com>
72665
72666         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72667         including some doc fixes.
72668         (base64_encode_alloc): Fix +1 bug on allocation failures.
72669
72670 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72671
72672         * lib/base64.c (base64_encode): Do not read past end of array with
72673         unsanitized input on systems with CHAR_BIT > 8.
72674
72675 2006-03-24  Eric Blake  <ebb9@byu.net>
72676
72677         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72678
72679 2006-03-22  Karl Berry  <karl@gnu.org>
72680
72681         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72682         * config/srclistvars.sh (COREUTILS): new var.
72683
72684 2006-03-17  Jim Meyering  <jim@meyering.net>
72685
72686         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72687         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72688
72689 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72692         no longer needs it.  Instead, check that regoff_t is as least
72693         as wide as ptrdiff_t.
72694
72695         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72696         so that our regex.h stays compatible with the installed regex.
72697         This is helpful for installers who configure --without-included-regex.
72698         Problem reported by Emanuele Giaquinta.
72699
72700 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72703         Typedef to long int, not to off_, as POSIX will likely change
72704         in that direction.
72705
72706 2006-03-15  Eric Blake  <ebb9@byu.net>
72707
72708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72709
72710 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72711
72712         * lib/argp-help.c (validate_uparams): Fix typo
72713         * lib/argp-parse.c (argp_default_options): Consistently begin help
72714         messages with a lowercase letter.
72715
72716 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72719         overrun buffers and shouldn't be used (much as gets shouldn't be
72720         used).
72721         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72722
72723 2006-03-08  Simon Josefsson  <jas@extundo.com>
72724
72725         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72726         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72727
72728 2006-03-08  Simon Josefsson  <jas@extundo.com>
72729
72730         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72731         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72732
72733 2006-03-08  Simon Josefsson  <jas@extundo.com>
72734
72735         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72736         signal that configure disabled the device.
72737
72738 2006-03-08  Simon Josefsson  <jas@extundo.com>
72739
72740         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72741         languages.
72742
72743 2006-03-07  Simon Josefsson  <jas@extundo.com>
72744
72745         * modules/getopt (Depends-on): Add unistd.
72746
72747         * modules/unistd: New file.
72748
72749 2006-03-07  Simon Josefsson  <jas@extundo.com>
72750
72751         * modules/gc-random: New file.
72752
72753 2006-03-07  Simon Josefsson  <jas@extundo.com>
72754
72755         * m4/unistd_h.m4: New file.
72756
72757 2006-03-07  Simon Josefsson  <jas@extundo.com>
72758
72759         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72760         test to be side-effect free by storing the result in the cache
72761         variable gl_cv_lib_readline, and moving the assignment of
72762         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72763         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72764
72765 2006-03-07  Simon Josefsson  <jas@extundo.com>
72766
72767         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72768         error on missing devices (the functions will return an error).
72769
72770         * m4/gc.m4: Move random stuff to gc-random.m4
72771
72772 2006-03-07  Simon Josefsson  <jas@extundo.com>
72773
72774         * lib/unistd_.h: New file.
72775
72776 2006-03-07  Simon Josefsson  <jas@extundo.com>
72777
72778         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72779
72780 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72783         Problem reported by Juan Manuel Guerrero.
72784
72785 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72788         the unistd module.
72789         * lib/getlogin_r.c: Likewise.
72790         * lib/getlogin_r.h: Likewise.
72791         * lib/glob.c: Likewise.
72792         * lib/pagealign_alloc.c: Likewise.
72793         * lib/unistd_.h: Remove; no longer needed.
72794
72795 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72798         Add unistd.
72799         * modules/c-stack (Depends-on): Add unistd.
72800         * modules/getlogin_r: Likewise.
72801         * modules/glob: Likewise.
72802         * modules/pagealign_alloc: Likewise.
72803         * modules/unistd (Files): Remove lib/unistd_.h.
72804         (EXTRA_DIST): Remove.
72805         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72806         need unistd_.h.
72807         (MOSTLYCLEANFILES): Remove unistd.h-t.
72808
72809 2006-03-03  Simon Josefsson  <jas@extundo.com>
72810
72811         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72812
72813 2006-03-03  Simon Josefsson  <jas@extundo.com>
72814
72815         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72816         libidn and bison.
72817
72818 2006-03-03  Simon Josefsson  <jas@extundo.com>
72819
72820         * build-aux/maint.mk: Add indent target.
72821
72822 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72823
72824         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72825         our replacement poll.h in any case, to avoid a differing
72826         declaration from a system header.  Seen on AIX.
72827
72828 2006-03-01  Simon Josefsson  <jas@extundo.com>
72829
72830         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72831         <kasal@ucw.cz>.
72832
72833 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * modules/gettime (Depends-on): Add extensions module.
72836         * modules/nanosleep (Depends-on): Likewise.
72837         * modules/settime (Depends-on): Likewise.
72838
72839 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72842         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72843         pedantically.
72844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72845         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72846
72847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72848         not "==".  Reported by Ralf Wildenhues.
72849
72850 2006-03-01  Karl Berry  <karl@gnu.org>
72851
72852         * doc/Copyright/request-*: new files, synced from gnuorg.
72853
72854 2006-03-01  Karl Berry  <karl@gnu.org>
72855
72856         * config/srclist.txt (Copyright/*): new entries.
72857
72858 2006-02-28  Simon Josefsson  <jas@extundo.com>
72859
72860         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72861
72862 2006-02-27  Simon Josefsson  <jas@extundo.com>
72863
72864         * lib/base64.h: Indent #define's.  From Jim Meyering
72865         <jim@meyering.net>.
72866
72867 2006-02-27  Jim Meyering  <jim@meyering.net>
72868
72869         Revert the change of 2006-02-24, so these files can continue
72870         to be sync'd from gettext.
72871         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72872         of `config.h'.
72873
72874 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         * modules/intprops: New file.
72877         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72878         Add intprops.
72879         * modules/getloadavg (Files): Remove lib/intprops.h.
72880         (Depends-on): Add intprops.
72881         * modules/human: Likewise.
72882         * modules/inttostr: Likewise.
72883         * modules/openat: Likewise.
72884         * modules/sig2str: Likewise.
72885         * modules/userspec: Likewise.
72886         * modules/utimecmp: Likewise.
72887         * modules/xnanosleep: Likewise.
72888         * modules/xstrtol: Likewise.
72889
72890 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72891
72892         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72893         * modules/lock-tests (TESTS): Use $(EXEEXT).
72894         * modules/tls-tests: Likewise.
72895         * modules/argp-tests: Likewise.
72896         (check_PROGRAMS): New var, replacing...
72897         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72898
72899 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72900
72901         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72902         `config.h'.
72903
72904 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72907
72908 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72909
72910         Sync from coreutils.
72911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72912         gl_CHDIR_SAFER.
72913
72914 2006-02-22  Jim Meyering  <jim@meyering.net>
72915
72916         Sync from coreutils.
72917         * m4/chdir-safer.m4: New file.
72918
72919 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72920
72921         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72922         AT_FDCWD exceeds INT_MAX.
72923         * lib/openat.h (AT_FDCWD): Likewise.
72924
72925 2006-02-17  Eric Blake  <address@hidden>
72926
72927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72928
72929 2006-02-16  Simon Josefsson  <jas@extundo.com>
72930
72931         * modules/getaddrinfo (Depends-on): Add sys_socket.
72932
72933 2006-02-15  Simon Josefsson  <jas@extundo.com>
72934
72935         * build-aux/maint.mk: Add dsyntax-check rule.
72936
72937 2006-02-15  Eric Blake  <ebb9@byu.net>
72938
72939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72940         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72941         'present but cannot compile' warnings on cygwin.
72942         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72943         use ws2tcpip.h if sys/socket.h works.
72944         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72945         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72946
72947 2006-02-14  Simon Josefsson  <jas@extundo.com>
72948
72949         * modules/maintainer-makefile (Files): Rename.
72950
72951         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72952         and (the local) Makefile.cfg to maint-cfg.mk.
72953
72954         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72955         to the latter.
72956
72957         * modules/maintainer-makefile: New module.
72958
72959         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72960         severaly stripped to make it possible to build it up from scratch
72961         with reliable tests.
72962
72963         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72964         fixes to permit overriding the default actions when configure and
72965         makefile are not available.
72966
72967 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         Sync from coreutils.
72970         * modules/lstat (Depends-on): Don't depend on xalloc.
72971         (License): Change from GPL to LGPL, since this is now simply a
72972         replacement for a libc function.
72973
72974 2006-02-14  Jim Meyering  <jim@meyering.net>
72975
72976         Sync from coreutils.
72977
72978         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72979         failure on deficient systems, and simplify gnulib lgpl dependencies.
72980         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72981         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72982
72983         * lib/xalloc-die.c: Remove unused definition of N_.
72984
72985 2006-02-14  Jim Meyering  <jim@meyering.net>
72986
72987         Sync from coreutils.
72988         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72989         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72990         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72991         double-quote uses of that variable, to accommodate the rare case in
72992         which getmntent is available in none of the libraries checked.  This
72993         happens at least on FreeBSD 5.0.
72994
72995 2006-02-13  Simon Josefsson  <jas@extundo.com>
72996
72997         * gnulib-tool (Usage): Fix --import, from
72998         karl@freefriends.org (Karl Berry).
72999
73000 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73001
73002         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73003
73004 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73005
73006         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73007         "autoupdate" on 2005-12-12.
73008
73009 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73010
73011         * modules/closeout (Depends-on): Remove atexit.
73012
73013 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73014
73015         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73016         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73017
73018 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73021         __EXTENSIONS__ if this causes compilation to fail.  Problem
73022         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73023         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73024
73025 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73028         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73029         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73030         All uses changed.
73031
73032 2006-01-26  Simon Josefsson  <jas@extundo.com>
73033
73034         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73035         prototype is visible on mingw32.
73036
73037         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73038         for mingw32.
73039
73040         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73041         mingw32).
73042
73043 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73046         attempt to open for write; this always fails, at least on POSIX
73047         hosts.  This reinstates the 2006-01-09 change, which was
73048         inadvertently removed.
73049
73050 2006-01-26  Bruno Haible  <bruno@clisp.org>
73051
73052         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73053         Reported by Paul Eggert.
73054
73055 2006-01-26  Bruno Haible  <bruno@clisp.org>
73056             Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * lib/stdbool_.h (_Bool)
73059         [(! (defined __cplusplus || defined __BEOS__)
73060           && !defined __GNUC__
73061           && !(defined __HP_cc || defined __xlc__
73062                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73063                || defined __sgi))]:
73064         #define to signed char in these cases too; this simplifies
73065         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73066         etc., separately) and makes it more conservative.
73067
73068 2006-01-25  Simon Josefsson  <jas@extundo.com>
73069
73070         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73071         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73072         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73073
73074 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73075
73076         * lib/argp-namefrob.h: Bugfix. Remove stray #
73077
73078 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73081         so that we test the test.
73082         Check for yet another HP-UX cc bug involving *bool |= bool.
73083
73084 2006-01-25  Karl Berry  <karl@gnu.org>
73085
73086         * config/srclist.txt (vasnprintf.c): sync lost.
73087
73088 2006-01-25  Jim Meyering  <jim@meyering.net>
73089
73090         Sync from the stable (b5) branch of coreutils:
73091
73092         * lib/fts.c (fts_children): Don't let close() clobber errno from
73093         failed fchdir().
73094
73095         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73096         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73097         a dangling symlink.  That can also happen at least for ELOOP.
73098         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73099         FYI, this bug predates the inclusion of fts.c in coreutils.
73100
73101         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73102         in their own block, so pre-c99 compilers don't object.
73103
73104         Avoid the double-free (first in fts_read, second in fts_close) that
73105         would occur when an `active' directory is made inaccessible (e.g.,
73106         via chmod a-x) during a traversal.
73107         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73108         before returning.  Reproduce this failure by
73109         mkdir -p a/b; cd a; chmod a-x . b
73110         Reported by Stavros Passas.
73111
73112 2006-01-25  Jim Meyering  <jim@meyering.net>
73113
73114         * lib/fileblocks.c: Remove more useless parentheses.
73115         * lib/readutmp.h: Likewise.
73116
73117 2006-01-25  Bruno Haible  <bruno@clisp.org>
73118
73119         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73120         warnings.
73121         Reported by Paul Eggert.
73122
73123 2006-01-25  Bruno Haible  <bruno@clisp.org>
73124
73125         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73126         rid of a trap command. For Solaris sh.
73127         Reported by Mark D. Baushke <mdb@gnu.org>.
73128
73129 2006-01-24  Simon Josefsson  <jas@extundo.com>
73130
73131         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73132         Bruno.
73133
73134 2006-01-24  Karl Berry  <karl@gnu.org>
73135
73136         * config/srclist.txt (argp-namefrob.h): sync lost.
73137
73138 2006-01-24  Jim Meyering  <jim@meyering.net>
73139
73140         * modules/openat (Files): Add lib/intprops.h.
73141         From Mark D. Baushke.
73142
73143 2006-01-24  Jim Meyering  <jim@meyering.net>
73144
73145         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73146         Reported by Mark D. Baushke.
73147
73148 2006-01-24  Jim Meyering  <jim@meyering.net>
73149
73150         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73151
73152 2006-01-24  Bruno Haible  <bruno@clisp.org>
73153
73154         * modules/strnlen (Maintainer): Change from glibc to all.
73155
73156 2006-01-24  Bruno Haible  <bruno@clisp.org>
73157
73158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73159         Patch by Paul Eggert.
73160
73161 2006-01-24  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73164         already has it.
73165         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73166         2005-11-26.
73167
73168         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73169         'signed char' to avoid problems with the built-in _Bool type.
73170         Reported by Paul Eggert on 2005-11-26.
73171
73172 2006-01-24  Bruno Haible  <bruno@clisp.org>
73173
73174         * gnulib-tool (func_import): Avoid constructing complicated sed
73175         expressions inside backquote.
73176         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73177
73178 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73179
73180         These changes imported from libc.
73181         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73182         test and two separate function calls.
73183         * lib/strndup.c (__strndup): Add libc_hidden_def.
73184
73185 2006-01-23  Simon Josefsson  <jas@extundo.com>
73186
73187         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73188         Remove the test_*_SOURCES variable: automake infers it by default.
73189         * modules/tls-tests: Likewise.
73190
73191 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         Work around porting bugs reported by Dieter in
73194         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73195         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73196         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73197         Include "getopt.h" first, to check interface.
73198         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73199         !HAVE_DECL_GETENV.
73200         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73201         (__strndup): Revert to K&R-style function dfns, the glibc style.
73202         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73203         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73204         Include strnlen.h first, to get prototype properly.
73205         (strnlen): Renamed from __strnlen.
73206         Remove weak alias.
73207
73208 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73211
73212 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * config/srclist.txt: Adjust to reflect glibc reorganization.
73215         This affects only comments.
73216
73217 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73218
73219          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73220          Reported by Bruce Korb <bkorb@gnu.org>.
73221
73222 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73225         to pacify gcc -Wswitch-default.
73226
73227 2006-01-22  Bruno Haible  <bruno@clisp.org>
73228
73229         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73230         temporary buffer for sprintf, take into account the precision also
73231         for 'd', 'i', 'u', 'o', 'x', 'X'.
73232
73233 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73234
73235         * modules/argp-tests: New module
73236         * tests/test-argp.c: New file
73237         * tests/test-argp-2.sh: New file
73238
73239 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73240
73241         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73242         (__argp_base_name): Removed
73243         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73244         typo.
73245         (__argp_base_name): Provide macro definition or extern declaration
73246         depending on the configuration
73247
73248 2006-01-20  Simon Josefsson  <jas@extundo.com>
73249
73250         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73251
73252 2006-01-20  Simon Josefsson  <jas@extundo.com>
73253
73254         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73255
73256 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73259         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73260         Suggested by Bruno Haible.
73261
73262 2006-01-20  Karl Berry  <karl@gnu.org>
73263
73264         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73265         until changes propagate, I guess.
73266
73267 2006-01-19  Simon Josefsson  <jas@extundo.com>
73268
73269         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73270
73271 2006-01-19  Simon Josefsson  <jas@extundo.com>
73272
73273         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73274
73275 2006-01-19  Simon Josefsson  <jas@extundo.com>
73276
73277         * gnulib-tool: Set check_PROGRAMS.
73278
73279         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73280         modules/des-tests, modules/gc-arcfour-tests,
73281         modules/gc-arctwo-tests, modules/gc-des-tests,
73282         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73283         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73284         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73285         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73286         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73287         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73288         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73289         test_*_SOURCES.
73290
73291 2006-01-18  Simon Josefsson  <jas@extundo.com>
73292
73293         * modules/socklen (Depends-on): Depend on sys_socket.
73294
73295 2006-01-18  Simon Josefsson  <jas@extundo.com>
73296
73297         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73298         modules/des-tests, modules/gc-arcfour-tests,
73299         modules/gc-arctwo-tests, modules/gc-des-tests,
73300         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73301         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73302         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73303         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73304         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73305         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73306         $(EXEEXT) to automake TESTS variable, for mingw32.
73307
73308 2006-01-17  Simon Josefsson  <jas@extundo.com>
73309
73310         * modules/socklen (Include): Need sys/socket.h.
73311
73312 2006-01-17  Bruno Haible  <bruno@clisp.org>
73313
73314         * modules/ssize_t (Include): Add <sys/types.h>.
73315
73316 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73319         it's not portable and it doesn't work with cross-compiles.
73320         Problem reported by Bruno Haible.  Fix missing-$ typo in
73321         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73322         -zignore from being used with Sun's C compiler.
73323
73324 2006-01-12  Simon Josefsson  <jas@extundo.com>
73325
73326         * lib/base64.c: Fix warning, reported by Bruno Haible
73327         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73328
73329 2006-01-12  Bruno Haible  <bruno@clisp.org>
73330
73331         * modules/ldd: New file.
73332         * build-aux/ldd.sh.in: New file.
73333         * MODULES.html.sh (Support for building libraries and executables): Add
73334         ldd.
73335
73336 2006-01-12  Bruno Haible  <bruno@clisp.org>
73337
73338         * m4/ldd.m4: New file.
73339
73340 2006-01-12  Bruno Haible  <bruno@clisp.org>
73341
73342         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73343         endless loop while replacing $auxdir with build-aux.
73344
73345 2006-01-11  Simon Josefsson  <jas@extundo.com>
73346
73347         * lib/stdint_.h (SIZE_MAX): Add missing (.
73348
73349 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         Sync from coreutils.
73352         * lib/md5.c: Fix commentary typos.
73353         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73354         * lib/md5.h (__attribute__): Remove; unused.
73355         * lib/sha1.c: Fix commentary to match md5 better.
73356         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73357         so that we don't need to worry about alignment.  All uses changed.
73358         This merges the 2005-10-28 md5 change into sha1.
73359
73360 2006-01-11  Jim Meyering  <jim@meyering.net>
73361
73362         Sync from coreutils.
73363         * lib/md5.c (OP): Fix spacing.
73364
73365 2006-01-11  Bruno Haible  <bruno@clisp.org>
73366
73367         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73368         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73369         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73370
73371 2006-01-11  Bruno Haible  <bruno@clisp.org>
73372
73373         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73374         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73375         the "early" section as well.
73376
73377 2006-01-11  Bruno Haible  <bruno@clisp.org>
73378
73379         Avoid "ar: no archive members specified" error on MacOS X.
73380         * gnulib-tool (func_modules_add_dummy): New function.
73381         (func_import, func_create_testdir): Invoke it.
73382
73383 2006-01-11  Bruno Haible  <bruno@clisp.org>
73384
73385         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73386         with $auxdir in AC_CONFIG_FILES statements.
73387
73388 2006-01-11  Bruno Haible  <bruno@clisp.org>
73389
73390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73391         Initialize also noinst_HEADERS to empty.
73392
73393 2006-01-11  Bruno Haible  <bruno@clisp.org>
73394
73395         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73396         variables.
73397         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73398         autoreconf.
73399
73400 2006-01-11  Bruno Haible  <bruno@clisp.org>
73401
73402         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73403         overridable by the user.
73404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73405
73406 2006-01-10  Simon Josefsson  <jas@extundo.com>
73407
73408         * modules/sys_socket: New file.
73409
73410 2006-01-10  Simon Josefsson  <jas@extundo.com>
73411
73412         * m4/sys_socket_h.m4: New file.
73413
73414 2006-01-10  Simon Josefsson  <jas@extundo.com>
73415
73416         * lib/socket_.h: New file.
73417
73418 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * modules/readutmp (Maintainer): Add myself.
73421
73422 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73425         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73426         People who are still concerned with buggy memcmp implementations
73427         can invoke gl_FUNC_MEMCMP themselves.
73428
73429 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * lib/regex_internal.h (BITSET_WORD_BITS):
73432         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73433         preprocessor mishandles large unsigned values as if they were signed.
73434         Problem reported by Claudio Fontana in
73435         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73436
73437 2006-01-10  Jim Meyering  <jim@meyering.net>
73438
73439         Avoid the double-free (first in fts_read, second in fts_close) that
73440         would occur when an `active' directory is made inaccessible (e.g.,
73441         via chmod a-x) during a traversal.
73442         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73443         before returning.  Reproduce this failure by
73444         mkdir -p a/b; cd a; chmod a-x . b
73445         Reported by Stavros Passas.
73446
73447         Sync from coreutils.
73448         * lib/sha1.c: Tweak grammar in a comment.
73449
73450 2006-01-10  Jim Meyering  <jim@meyering.net>
73451
73452         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73453         Patch by Joerg Sonnenberger.
73454
73455 2006-01-10  Bruno Haible  <bruno@clisp.org>
73456
73457         * modules/readutmp: Depend on module free.
73458         * modules/strtok_r: Depend on module restrict.
73459
73460 2006-01-10  Bruno Haible  <bruno@clisp.org>
73461
73462         * modules/gettext (configure.ac): Add an invocation of
73463         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73464
73465 2006-01-10  Bruno Haible  <bruno@clisp.org>
73466
73467         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73468         Reported by Werner Lemberg <wl@gnu.org>.
73469
73470 2006-01-10  Bruno Haible  <bruno@clisp.org>
73471
73472         * lib/localcharset.c: Update from GNU gettext.
73473
73474 2006-01-10  Bruno Haible  <bruno@clisp.org>
73475
73476         * lib/argp.h (__const): Remove macro. Use const instead.
73477         * lib/argp-fmtstream.h (__const): Likewise.
73478         * lib/glob_.h (__const): Remove macro.
73479         * lib/glob-libc.h: Use const instead of __const.
73480
73481 2006-01-10  Bruno Haible  <bruno@clisp.org>
73482
73483         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73484         variable.
73485         Needed to avoid an automake error regarding the 'gettext' module.
73486
73487 2006-01-09  Simon Josefsson  <jas@extundo.com>
73488
73489         * modules/inet_ntop (Depends-on): Add restrict.
73490
73491 2006-01-09  Simon Josefsson  <jas@extundo.com>
73492
73493         * modules/gc-rijndael-tests (License): Put under LGPL.
73494
73495         * modules/gc-des-tests (License): Likewise.
73496
73497         * modules/gc-arcfour-tests (License): Likewise.
73498
73499         * modules/gc-arctwo-tests (License): Likewise.
73500
73501         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73502
73503         * modules/gc-hmac-sha1-tests (Files): Likewise.
73504
73505         * modules/gc-hmac-md5-tests (License): Likewise.
73506
73507         * modules/gc-sha1-tests (License): Likewise.
73508
73509         * modules/gc-md5-tests (License): Likewise.
73510
73511         * modules/gc-md4-tests (License): Likewise.
73512
73513         * modules/gc-md2-tests (License): Likewise.
73514
73515         * modules/gc-tests (License): Likewise.
73516
73517         * modules/des-tests (License): Likewise.
73518
73519         * modules/md4-tests (License): Likewise.
73520
73521         * modules/md2-tests (License): Likewise.
73522
73523 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         Sync from coreutils:
73526
73527         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73528         * modules/lib-ignore: New file.
73529         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73530         chdir-safer.m4, lchmod.m4.
73531         * modules/openat: Add mkdirat.c, openat-priv.h.
73532
73533 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         Sync from coreutils.
73536         * m4/lib-ignore.m4: New file.
73537         * m4/lchmod.m4: New file.
73538
73539 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         Sync from coreutils.
73542         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73543         for write access: POSIX says that must fail.
73544         * lib/fts.c (diropen): Likewise.
73545         * lib/save-cwd.c (save_cwd): Likewise.
73546         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73547         well, for minor improvements on hosts that lack O_DIRECTORY.
73548         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73549         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73550         Fall back on chown if open failed with EACCES.
73551
73552         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73553         Report an error at compile-time if only a 1-second nominal clock
73554         resolution is found.
73555
73556         * lib/lchmod.h: New file.
73557         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73558         (make_dir_parents): Use lchown rather than chown, and
73559         lchmod rather than chmod.
73560
73561         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73562         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73563         "proc" reported by n0dalus.
73564
73565         * lib/mountlist.c: Include <limits.h>.
73566         (dev_from_mount_options)
73567         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73568         New function.  It no longer assumes "dev=" has the System V meaning
73569         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73570         (read_file_system_list)
73571         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73572         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73573         dev= in that case.
73574
73575         * lib/posixtm.h (PDS_PRE_2000): New macro.
73576         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73577         allow_century.  All usages changed.  Reject dates outside the range
73578         1969-1999 if PDS_PRE_2000 is used.
73579
73580 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         Sync from coreutils.
73583         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73584         (Time of day items): Mention the possibility of leap seconds.
73585         Problem reported by Dr. David Alan Gilbert.
73586
73587 2006-01-09  Jim Meyering  <jim@meyering.net>
73588
73589         Sync from coreutils.
73590
73591         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73592
73593         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73594
73595         * lib/modechange.c (mode_compile): Reject an invalid mode string
73596         that starts with an octal digit.  From Andreas Gruenbacher.
73597
73598         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73599         and dup to open_safer and dup_safer, respectively.
73600         (openat_permissive): Fix typo in comment.
73601
73602         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73603         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73604         (_): Remove; no longer needed.
73605         (openat): Renamed from rpl_openat; no need for rpl_openat
73606         since openat.h renames openat for us.
73607         Replace most of the body with a call to openat_permissive,
73608         to avoid duplicate code.
73609         Port to (probably hypothetical) environments were mode_t is
73610         wider than int.
73611         (openat_permissive): Require mode arg, so that we can check
73612         types better.  Put it just after flags.  Change cwd failure
73613         indicator from pointer-to-bool to pointer-to-errno-value.
73614         All callers changed.
73615         Invoke openat_save_fail and/or openat_restore_fail if
73616         cwd_errno is null, so that openat can call us.
73617         (openat_permissive, fdopendir, fstatat, unlinkat):
73618         Simplify errno handling to avoid some duplicate code,
73619         as it's OK to set errno on success.
73620         * lib/openat.h: Revamp code so that function macros depend on
73621         __OPENAT_PREFIX only, not also on AT_FDCWD.
73622         (openat_ro): Remove.  Caller changed to use openat_permissive.
73623         (openat_permissive): Now a macro, if not a function.
73624         (openat_restore_fail, openat_save_fail): Now always functions,
73625         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73626
73627         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73628         and openat.c.
73629         * lib/mkdirat.c: Include openat-priv.h.
73630         Remove definitions of macros defined therein.
73631         * lib/openat.c: Likewise.
73632
73633         * lib/mkdirat.c (mkdirat): New file and function.
73634         * lib/openat.h (mkdirat): Declare.
73635
73636         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73637
73638         * lib/openat.h (openat_permissive): Declare.
73639         (openat_ro): Define.
73640
73641         * lib/openat.c (EXPECTED_ERRNO): New macro.
73642         (openat_permissive): New function -- used in remove.c rewrite.
73643         (all functions): Set errno just before returning, only if there
73644         was an actual failure.
73645         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73646
73647         Emulate openat-family functions using Linux's procfs, if possible.
73648         Idea and some code based on Ulrich Drepper's glibc changes.
73649
73650         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73651         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73652         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73653         before falling back on save_cwd and restore_cwd.
73654         (fdopendir, fstatat, unlinkat): Likewise.
73655
73656         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73657         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73658
73659         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73660         as second argument to va_arg.  Otherwise, some versions of gcc
73661         warn that `if this code is reached, the program will abort'.
73662
73663 2006-01-09  Jim Meyering  <jim@meyering.net>
73664
73665         Sync from coreutils.
73666         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73667         Require openat-priv.h.
73668
73669 2006-01-09  Bruno Haible  <bruno@clisp.org>
73670
73671         * modules/strnlen (Include): Use strnlen.h.
73672
73673 2006-01-09  Bruno Haible  <bruno@clisp.org>
73674
73675         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73676
73677 2006-01-09  Bruno Haible  <bruno@clisp.org>
73678
73679         * lib/sysexit_.h (EX_OK): New macro.
73680         Suggested by Martin Lambers <marlam@marlam.de>.
73681
73682 2006-01-09  Bruno Haible  <bruno@clisp.org>
73683
73684         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73685         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73686
73687 2006-01-09  Bruno Haible  <bruno@clisp.org>
73688
73689         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73690         numbers.
73691
73692 2006-01-09  Bruno Haible  <bruno@clisp.org>
73693
73694         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73695         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73696         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73697         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73698
73699 2006-01-09  Bruno Haible  <bruno@clisp.org>
73700
73701         * build-aux/javacomp.sh.in: New file, moved from lib/.
73702         * modules/javacomp-script (Files): Update.
73703         (configure.ac): Add AC_CONFIG_FILES invocation.
73704         (EXTRA_DIST): Remove variable.
73705
73706         * build-aux/javaexec.sh.in: New file, moved from lib/.
73707         * modules/javaexec (Files): Update.
73708         (configure.ac): Add AC_CONFIG_FILES invocation.
73709         (EXTRA_DIST): Remove javaexec.sh.in.
73710
73711         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73712         * modules/csharpcomp-script (Files): Update.
73713         (configure.ac): Add AC_CONFIG_FILES invocation.
73714         (EXTRA_DIST): Remove variable.
73715
73716         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73717         * modules/csharpexec (Files): Update.
73718         (configure.ac): Add AC_CONFIG_FILES invocation.
73719         (EXTRA_DIST): Remove csharpexec.sh.in.
73720
73721 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73722
73723         Sync from coreutils.
73724
73725         Add POSIX ACL support
73726         * lib/acl.h (copy_acl, set_acl): Add declarations.
73727         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73728         systems other than Linux.
73729         (chmod_or_fchmod): New function: use fchmod when possible,
73730         and chmod otherwise.
73731         (file_has_acl): Add a POSIX ACL implementation, with a
73732         Linux-specific subcase.
73733         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73734         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73735         acls are unsupported.
73736         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73737         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73738         are unsupported.
73739
73740 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73741
73742         Sync from coreutils.
73743         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73744
73745 2006-01-07  Bruno Haible  <bruno@clisp.org>
73746
73747         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73748         gl_EARLY.
73749
73750 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73753         Problem reported for Mingw by Mark Junker.
73754
73755 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * README: Gnulib normally doesn't generate a tarball.
73758
73759 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73762         long int, not int, for nanosecond counts, so that people who are
73763         used to POSIX struct timespec won't be surprised.  Reported by Jim
73764         Meyering.
73765
73766 2005-12-28  Bruno Haible  <bruno@clisp.org>
73767
73768         * build-aux/config.rpath: Update from GNU gettext.
73769
73770 2005-12-16  Jim Meyering  <jim@meyering.net>
73771
73772         * modules/fprintftime: New module.
73773         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73774
73775 2005-12-16  Jim Meyering  <jim@meyering.net>
73776
73777         * m4/fprintftime.m4: New file.
73778
73779 2005-12-16  Jim Meyering  <jim@meyering.net>
73780
73781         * lib/fprintftime.c, lib/fprintftime.h: New files.
73782
73783 2005-12-15  Simon Josefsson  <jas@extundo.com>
73784
73785         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73786         new m4/socklen.m4.
73787
73788 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73789
73790         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73791         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73792
73793 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73794
73795         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73796         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73797         struct uparams is valid. Fall back to the default values if it is
73798         not.
73799
73800 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73801
73802         * modules/argp (Files): Add argp-pin.c
73803         (Depends-on): dirname
73804         (lib_SOURCES): Add argp-pin.c
73805
73806 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73807
73808         * m4/argp.m4:  Check if program_invocation_name and
73809         program_invocation_short_name are declared and define appropriate
73810         macros if they are not.
73811
73812 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73813
73814         * lib/argp-help.c (__argp_base_name): New function
73815         (__argp_short_program_name): Rewrite using __argp_base_name
73816         * lib/argp-namefrob.h: Define program_invocation_name and
73817         program_invocation_short_name if requested
73818         (__argp_base_name): Add prototype
73819         * lib/argp-parse.c (argp_def): Use gettext wrappers
73820         (argp_default_parser): Use __argp_base_name
73821         * lib/argp-pin.c: New file. Defines program_invocation_name and
73822         program_invocation_short_name on systems that lack them.
73823
73824 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73827         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73828         porting problem reported by Georg Schwarz in
73829         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73830
73831 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73834         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73835         porting problem reported by Georg Schwarz in
73836         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73837
73838 2005-12-05  Bruno Haible  <bruno@clisp.org>
73839
73840         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73841         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73842         Reported by Mark Junker <mjscod@gmx.de>.
73843
73844 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73847         Use implementation from Albert Chin, with some
73848         comments/corrections by Stepan Kasal and myself.
73849
73850 2005-12-02  Bruno Haible  <bruno@clisp.org>
73851
73852         * gnulib-tool (func_import): Accept GPLed build tool modules when
73853         --lgpl is given.
73854         * modules/csharpcomp-script: New file.
73855         * modules/csharpcomp: Depend on it.
73856         * modules/javacomp-script: New file.
73857         * modules/javacomp: Depend on it.
73858         Suggested by Simon Josefsson.
73859
73860 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73863         statement, to work around an HP-UX 10.20 compiler bug reported by
73864         Peter O'Gorman.
73865
73866 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         * modules/savedir (Depends-on): Add openat.
73869
73870 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73873         (uintmax_t) [defined uintmax_t]: Do not declare.
73874         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73875         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73876         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73877         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73878         sake of portability to weird hosts that C allows (though we don't
73879         know of any practical examples).
73880
73881         * lib/savedir.h (fdsavedir): New decl.
73882         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73883         contains most of the former guts of savedir.
73884         (savedir): Use savedirstream.
73885         Include "openat.h".
73886
73887 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/obstack (Files): Add m4/ulonglong.m4.
73890         Problem reported by Davide Angelocola.
73891
73892 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73895         coreutils no longer futzes with rounding modes.
73896
73897 2005-11-14  Jim Meyering  <jim@meyering.net>
73898
73899         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73900         replacement of mkstemp.
73901
73902 2005-11-10  Simon Josefsson  <jas@extundo.com>
73903
73904         * lib/readline.c: Remove EOL.
73905
73906 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * modules/gethrxtime (Depends-on): Add gettime.
73909
73910 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73913         or gettimeofday; no longer needed.
73914
73915 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73916
73917         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73918         time business.
73919         (gethrxtime) [! (HAVE_NANOUPTIME
73920         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73921         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73922         our own approximation.
73923
73924 2005-11-08  Eric Blake  <ebb9@byu.net>
73925
73926         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73927
73928 2005-11-08  Eric Blake  <ebb9@byu.net>
73929
73930         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73931
73932 2005-11-04  Bruno Haible  <bruno@clisp.org>
73933
73934         * gnulib-tool: Implement --update mode.
73935
73936 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         Fix porting problem reported by Theodoros V. Kalamatianos.
73939         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73940         Don't assume that futimes failing means we must fail.
73941
73942 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73945         variables to suggest the intended function of the PATH_MAX check.
73946
73947 2005-10-30  Kean Johnston  <jkj@sco.com>
73948
73949         Trivial changes to support SCO systems.
73950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73951         as PATH_MAX.
73952         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73953         where __ptr is null when no I/O is pending.
73954
73955 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73956
73957         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73958         leave errno alone.  Problem reported by Dmitry V. Levin.
73959
73960 2005-10-28  Simon Josefsson  <jas@extundo.com>
73961
73962         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73963         Test more.
73964
73965         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73966
73967         * modules/md2, modules/md2-tests: New files.
73968
73969 2005-10-28  Simon Josefsson  <jas@extundo.com>
73970
73971         * m4/inet_ntop.m4: More tests.
73972
73973         * m4/gc-md2.m4, md2.m4: New file.
73974
73975 2005-10-28  Simon Josefsson  <jas@extundo.com>
73976
73977         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73978         "restrict" keywords, as per POSIX.  Protect the function
73979         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73980         Don't use K&R prototypes.  Check the sprintf return values.
73981         Re-define EAFNOSUPPORT if not present.  Indent.
73982
73983         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73984         suggested by Bruno Haible <bruno@clisp.org>.
73985
73986         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73987
73988         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73989
73990         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73991         libgcrypt).
73992
73993         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73994
73995         * lib/md2.h, lib/md2.c: New files.
73996
73997 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74000         errno alone.  Problem reported by Frederic Jolliton.
74001
74002 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         * modules/verify (License): Change from GPL to LGPL.  This is a
74005         tiny module and there are apparently near-equivalents that are
74006         under the BSD license.
74007
74008 2005-10-24  Simon Josefsson  <jas@extundo.com>
74009
74010         * modules/sha1: Relicense to LGPL.
74011
74012 2005-10-24  Simon Josefsson  <jas@extundo.com>
74013
74014         * lib/md4.h: Shrink buffer size, now that we changed the type.
74015
74016 2005-10-23  Simon Josefsson  <jas@extundo.com>
74017
74018         * gnulib-tool (func_import): Fix --tests-base.
74019
74020 2005-10-22  Simon Josefsson  <jas@extundo.com>
74021
74022         * modules/arcfour (Depends-on): Need stdint.
74023
74024 2005-10-22  Simon Josefsson  <jas@extundo.com>
74025
74026         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74027         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74028
74029 2005-10-22  Simon Josefsson  <jas@extundo.com>
74030
74031         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74032         suggested by Bruno Haible <bruno@clisp.org>.
74033
74034 2005-10-22  Simon Josefsson  <jas@extundo.com>
74035
74036         * lib/crc.h: Include stddef.h, for size_t.
74037
74038 2005-10-22  Simon Josefsson  <jas@extundo.com>
74039
74040         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74041         arcfour_context struct (simplify test vector testing in GNU
74042         Shishi).
74043
74044 2005-10-21  Simon Josefsson  <jas@extundo.com>
74045
74046         * modules/des, modules/des-tests: New files.
74047
74048         * modules/gc-des, modules/gc-des-tests: New files.
74049
74050         * tests/test-des.c, tests/test-gc-des.c: New file.
74051
74052 2005-10-21  Simon Josefsson  <jas@extundo.com>
74053
74054         * modules/arctwo, modules/arctwo-tests: New files.
74055
74056         * tests/test-arctwo.c: New file.
74057
74058         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74059
74060         * tests/test-gc-arctwo.c: New file.
74061
74062 2005-10-21  Simon Josefsson  <jas@extundo.com>
74063
74064         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74065         Bruno Haible <bruno@clisp.org>.
74066
74067         * m4/gc-des.m4: New file.
74068
74069 2005-10-21  Simon Josefsson  <jas@extundo.com>
74070
74071         * m4/arctwo.m4: New file.
74072
74073         * m4/gc-arctwo.m4: New file.
74074
74075 2005-10-21  Simon Josefsson  <jas@extundo.com>
74076
74077         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74078         block.
74079
74080 2005-10-21  Simon Josefsson  <jas@extundo.com>
74081
74082         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74083         <bruno@clisp.org>.
74084
74085         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74086
74087         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74088         Bruno Haible <bruno@clisp.org>.
74089
74090         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74091         <bruno@clisp.org>.
74092
74093 2005-10-21  Simon Josefsson  <jas@extundo.com>
74094
74095         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74096
74097 2005-10-21  Simon Josefsson  <jas@extundo.com>
74098
74099         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74100
74101 2005-10-21  Simon Josefsson  <jas@extundo.com>
74102
74103         * lib/des.h, lib/des.c: New files.
74104
74105         * lib/gc-gnulib.c: Support DES.c
74106
74107 2005-10-21  Simon Josefsson  <jas@extundo.com>
74108
74109         * lib/arctwo.h, lib/arctwo.c: New files.
74110
74111         * lib/gc-gnulib.c: Support ARCTWO.
74112
74113 2005-10-21  Simon Josefsson  <jas@extundo.com>
74114
74115         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74116         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74117
74118 2005-10-21  Simon Josefsson  <jas@extundo.com>
74119
74120         * gnulib-tool (func_import, func_create_testdir): Define automake
74121         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74122         Makefile.am snippet),
74123         suggested by Bruno Haible <bruno@clisp.org>.
74124
74125         * modules/gc (Makefile.am): Use it.
74126
74127 2005-10-21  Bruno Haible  <bruno@clisp.org>
74128
74129         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74130         patch.
74131
74132 2005-10-19  Simon Josefsson  <jas@extundo.com>
74133
74134         * tests/test-gc-rijndael.c: New file.
74135
74136         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74137
74138 2005-10-19  Simon Josefsson  <jas@extundo.com>
74139
74140         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74141         interface too.
74142
74143 2005-10-19  Simon Josefsson  <jas@extundo.com>
74144
74145         * tests/test-gc-arcfour.c: New file.
74146
74147         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74148
74149 2005-10-19  Simon Josefsson  <jas@extundo.com>
74150
74151         * modules/gc-md4, modules/gc-md4-tests: New file.
74152
74153         * tests/test-gc-md4.c: New file.
74154
74155 2005-10-19  Simon Josefsson  <jas@extundo.com>
74156
74157         * m4/gc-md4.m4: New file.
74158
74159 2005-10-19  Simon Josefsson  <jas@extundo.com>
74160
74161         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74162         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74163         <kasal@ucw.cz>.
74164
74165 2005-10-19  Simon Josefsson  <jas@extundo.com>
74166
74167         * m4/gc-arcfour.m4: New file.
74168
74169         * m4/gc-rijndael.m4: New file.
74170
74171 2005-10-19  Simon Josefsson  <jas@extundo.com>
74172
74173         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74174
74175 2005-10-19  Simon Josefsson  <jas@extundo.com>
74176
74177         * lib/gc-gnulib.c: Support ARCFOUR.
74178
74179 2005-10-19  Simon Josefsson  <jas@extundo.com>
74180
74181         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74182         support.
74183
74184         * lib/gc.h: Add ECB enum type.
74185
74186         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74187
74188 2005-10-18  Simon Josefsson  <jas@extundo.com>
74189
74190         * tests/test-md5.c: New file.
74191
74192         * modules/md5-tests: New file.
74193
74194 2005-10-18  Simon Josefsson  <jas@extundo.com>
74195
74196         * tests/test-md4.c: New file.
74197
74198         * modules/md4, modules/md4-tests: New files.
74199
74200 2005-10-18  Simon Josefsson  <jas@extundo.com>
74201
74202         * m4/md4.m4: New file.
74203
74204 2005-10-18  Simon Josefsson  <jas@extundo.com>
74205
74206         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74207
74208 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74209
74210         * gnulib-tool (func_create_testdir): Omit the second check whether
74211         BUILT_SOURCES in nonempty.
74212
74213 2005-10-17  Simon Josefsson  <jas@extundo.com>
74214
74215         * tests/test-rijndael.c: New file.
74216
74217 2005-10-17  Simon Josefsson  <jas@extundo.com>
74218
74219         * modules/sha1: Depend on stdint instead of md5.
74220
74221         * modules/md5: Depend on stdint, remove uint32_t.
74222
74223 2005-10-17  Simon Josefsson  <jas@extundo.com>
74224
74225         * modules/gc-sha1-tests: New file.
74226
74227         * tests/test-gc-sha1.c: New file.
74228
74229 2005-10-17  Simon Josefsson  <jas@extundo.com>
74230
74231         * m4/md5.m4: Remove call to uint32_t.m4.
74232
74233 2005-10-17  Simon Josefsson  <jas@extundo.com>
74234
74235         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74236
74237         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74238         md5.h.
74239
74240         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74241
74242         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74243
74244 2005-10-17  Simon Josefsson  <jas@extundo.com>
74245
74246         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74247
74248 2005-10-17  Simon Josefsson  <jas@extundo.com>
74249
74250         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74251
74252 2005-10-17  Simon Josefsson  <jas@extundo.com>
74253
74254         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74255
74256         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74257
74258 2005-10-17  Bruno Haible  <bruno@clisp.org>
74259
74260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74261         that it can also be used in a test.
74262
74263 2005-10-16  Bruno Haible  <bruno@clisp.org>
74264
74265         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74266         TESTS_ENVIRONMENT, so that individual tests can augment it.
74267
74268         * gnulib-tool (func_create_testdir): Use an intermediate target for
74269         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74270         macros, like $(ALLOCA_H), which cannot be passed through the command
74271         line.
74272
74273 2005-10-15  Simon Josefsson  <jas@extundo.com>
74274
74275         * modules/rijndael-tests: New file.
74276
74277         * modules/rijndael: New file.
74278
74279 2005-10-15  Simon Josefsson  <jas@extundo.com>
74280
74281         * m4/rijndael.m4: New file.
74282
74283 2005-10-15  Simon Josefsson  <jas@extundo.com>
74284
74285         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74286
74287         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74288
74289 2005-10-14  Simon Josefsson  <jas@extundo.com>
74290
74291         * tests/test-arcfour.c: New file.
74292
74293         * modules/arcfour, modules/arcfour-tests: New files.
74294
74295 2005-10-14  Simon Josefsson  <jas@extundo.com>
74296
74297         * m4/arcfour.m4: New file.
74298
74299 2005-10-14  Simon Josefsson  <jas@extundo.com>
74300
74301         * lib/arcfour.h, lib/arcfour.c: New files.
74302
74303 2005-10-14  Roland McGrath  <roland@redhat.com>
74304
74305         Import from libc.  [BZ #1331]
74306         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74307         macro argument.
74308         Reported by Matej Vela <vela@debian.org>.
74309
74310 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74313         include <wchar.h>; no longer needed.
74314
74315 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74318
74319 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74320         and  Ulrich Drepper  <drepper@redhat.com>
74321
74322         Import from libc.
74323         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74324         instead of inline stream orientation test and two separate
74325         function calls.  Pay no attention to USE_IN_LIBIO.
74326
74327 2005-10-13  Simon Josefsson  <jas@extundo.com>
74328
74329         * modules/gc-hmac-md5-tests: New file.
74330
74331         * tests/test-gc-hmac-sha1.c: New file.
74332
74333         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74334
74335         * modules/gc-hmac-md5-tests: New file.
74336
74337         * tests/test-gc-md5.c: New file.
74338
74339         * modules/gc-md5-tests: New file.
74340
74341 2005-10-13  Simon Josefsson  <jas@extundo.com>
74342
74343         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74344         Move memory allocation outside of loop.
74345
74346 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74349         intermediate directory is in a read-only file system.  Problem
74350         reported by Eric Blake.
74351
74352 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74353
74354         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74355
74356 2005-10-12  Simon Josefsson  <jas@extundo.com>
74357
74358         * tests/test-hmac-sha1.c: New file.
74359
74360         * modules/hmac-sha1-tests: New file.
74361
74362         * modules/hmac-sha1: New file.
74363
74364 2005-10-12  Simon Josefsson  <jas@extundo.com>
74365
74366         * modules/gc-sha1: New file.
74367
74368 2005-10-12  Simon Josefsson  <jas@extundo.com>
74369
74370         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74371
74372         * tests/test-gc-pbkdf2-sha1.c: New file.
74373
74374 2005-10-12  Simon Josefsson  <jas@extundo.com>
74375
74376         * modules/gc-md5, modules/gc-hmac-md5: New files.
74377
74378         * modules/gc (Files): Remove md5, memxor and hmac files.
74379
74380 2005-10-12  Simon Josefsson  <jas@extundo.com>
74381
74382         * m4/gc-pbkdf2-sha1.m4: New file.
74383
74384         * m4/gc-hmac-sha1.m4: New file.
74385
74386         * m4/gc-sha1: New file.
74387
74388         * m4/hmac-sha1.m4: New file.
74389
74390 2005-10-12  Simon Josefsson  <jas@extundo.com>
74391
74392         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74393
74394         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74395
74396 2005-10-12  Simon Josefsson  <jas@extundo.com>
74397
74398         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74399         suggested by Bruno Haible <bruno@clisp.org>.
74400
74401 2005-10-12  Simon Josefsson  <jas@extundo.com>
74402
74403         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74404
74405 2005-10-12  Simon Josefsson  <jas@extundo.com>
74406
74407         * lib/gc-pbkdf2-sha1.c: New file.
74408
74409         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74410
74411 2005-10-12  Simon Josefsson  <jas@extundo.com>
74412
74413         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74414
74415         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74416
74417 2005-10-12  Simon Josefsson  <jas@extundo.com>
74418
74419         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74420         GC_USE_HMAC_MD5, respectively.
74421
74422         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74423         (gc_md5): Fix typo.
74424
74425         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74426
74427         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74428
74429         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74430
74431 2005-10-12  Bruno Haible  <bruno@clisp.org>
74432
74433         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74434         Reported by Stepan Kasal <kasal@ucw.cz>.
74435
74436 2005-10-11  Simon Josefsson  <jas@extundo.com>
74437
74438         * tests/test-crc.c: New file.
74439
74440         * modules/crc, modules/crc-tests: New files.
74441
74442 2005-10-11  Simon Josefsson  <jas@extundo.com>
74443
74444         * m4/crc.m4: New file.
74445
74446 2005-10-11  Simon Josefsson  <jas@extundo.com>
74447
74448         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74449
74450         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74451
74452         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74453
74454 2005-10-11  Simon Josefsson  <jas@extundo.com>
74455
74456         * lib/crc.h, lib/crc.c: New files.
74457
74458         * lib/gc.h (gc_hash_buffer): Add doc.
74459
74460 2005-10-11  Bruno Haible  <bruno@clisp.org>
74461
74462         * modules/c-strcasestr: New file.
74463         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74464
74465 2005-10-11  Bruno Haible  <bruno@clisp.org>
74466
74467         * modules/c-strcase: New file.
74468         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74469
74470 2005-10-11  Bruno Haible  <bruno@clisp.org>
74471
74472         * lib/strcasecmp.c: Include limits.h.
74473         (strcasecmp): Avoid integer overflow on exotic platforms.
74474         * lib/strncasecmp.c: Include limits.h.
74475         (strncasecmp): Avoid integer overflow on exotic platforms.
74476         Reported by Paul Eggert.
74477
74478 2005-10-11  Bruno Haible  <bruno@clisp.org>
74479
74480         * lib/c-strcasestr.h: New file, from GNU gettext.
74481         * lib/c-strcasestr.c: New file, from GNU gettext.
74482
74483 2005-10-11  Bruno Haible  <bruno@clisp.org>
74484
74485         * lib/c-strcase.h: New file, from GNU gettext.
74486         * lib/c-strcasecmp.c: New file, from GNU gettext.
74487         * lib/c-strncasecmp.c: New file, from GNU gettext.
74488
74489 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74490
74491         * modules/mempcpy (License): GPL -> LGPL.
74492         * modules/strchrnul (License): Likewise.
74493         * modules/sysexits (License): Likewise.
74494
74495 2005-10-08  Simon Josefsson  <jas@extundo.com>
74496
74497         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74498
74499 2005-10-07  Simon Josefsson  <jas@extundo.com>
74500
74501         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74502
74503 2005-10-06  Simon Josefsson  <jas@extundo.com>
74504
74505         * tests/test-hmac-md5.c: New file.
74506
74507         * modules/hmac-md5-tests: New file.
74508
74509         * modules/hmac-md5: New file.
74510
74511 2005-10-06  Simon Josefsson  <jas@extundo.com>
74512
74513         * m4/hmac-md5.m4: New file.
74514
74515         * m4/memxor.m4: Require gl_C_RESTRICT.
74516
74517 2005-10-06  Simon Josefsson  <jas@extundo.com>
74518
74519         * lib/memxor.c (memxor): Avoid casts and warnings.
74520
74521 2005-10-06  Simon Josefsson  <jas@extundo.com>
74522
74523         * lib/hmac-md5.c: New file.
74524
74525         * lib/hmac.h: New file.
74526
74527 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74530         promotes to int, not unsigned int, to catch the AIX 5.3
74531         compiler bug.
74532
74533 2005-10-05  Simon Josefsson  <jas@extundo.com>
74534
74535         * modules/memxor: New file.
74536
74537         * modules/iconv (Files): Move config.rpath to havelib, it is used
74538         there.
74539
74540         * modules/havelib (Files): Add config.rpath.
74541
74542 2005-10-05  Simon Josefsson  <jas@extundo.com>
74543
74544         * m4/memxor.m4: New file.
74545
74546 2005-10-05  Simon Josefsson  <jas@extundo.com>
74547
74548         * lib/memxor.c (memxor): Fix compiler error.
74549
74550         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74551         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74552
74553         * lib/memxor.h, lib/memxor.c: New files.
74554
74555         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74556         we assume all systems have it, suggested by Jim Meyering
74557         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74558         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74559         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74560         same reasons.
74561
74562 2005-10-05  Simon Josefsson  <jas@extundo.com>
74563
74564         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74565
74566 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74569         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74570         needed, since the source code now assumes these .h files.
74571
74572 2005-10-05  Derek Price  <derek@ximbiot.com>
74573
74574         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74575
74576 2005-10-05  Bruno Haible  <bruno@clisp.org>
74577
74578         * modules/stdint (License): Change to LGPL.
74579
74580 2005-10-04  Simon Josefsson  <jas@extundo.com>
74581
74582         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74583         D. Baushke" <mdb@gnu.org>.
74584
74585 2005-10-04  Bruno Haible  <bruno@clisp.org>
74586
74587         * lib/verify.h (verify_true): Provide alternative definition for C++.
74588
74589 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74592         (SSIZE_MAX): New macro, if not already defined.
74593         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74594         than 2 GiB.
74595
74596 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         Sync from coreutils.
74599         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74600         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74601         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74602         ULLONG_MAX doesn't work with 2.7.2.1.
74603
74604 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74607         From Ben Pfaff.
74608
74609         * modules/exclude (Depends-on): Depend on verify.
74610         * modules/strtoimax (Depends-on): Likewise.
74611         * modules/utimecmp (Depends-on): Likewise.
74612
74613 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         * lib/exclude.c: Include verify.h.
74616         (verify): Remove.  All callers changed to use verify.h's version.
74617         * lib/strtoimax.c: Likewise.
74618         * lib/utimecmp.c: Likewis.e
74619
74620         Sync from coreutils.
74621         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74622         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74623         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74624         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74625         bother returning ENOSYS if settimeofday or stime fails; just let
74626         them return whatever errno they want to return.
74627         * lib/utimens.c: Include unistd.h, for dup2.
74628         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74629         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74630
74631 2005-10-02  Jim Meyering  <jim@meyering.net>
74632
74633         Sync from coreutils.
74634         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74635         from glibc-2.2.5 that fails for read-only files.
74636
74637 2005-10-02  Jim Meyering  <jim@meyering.net>
74638
74639         Sync from coreutils.
74640         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74641         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74642         `#if HAVE_CONFIG_H'.
74643         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74644         Remove AT_FDCWD test.
74645         Do not consume the fd unless successful.
74646         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74647         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74648         block, so that we don't even try to compile it if settimeofday is
74649         available.  This works around a compilation failure on OSF1 V5.1,
74650         due to stime requiring a `long int*' while tv_sec is `int'.
74651
74652 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74653
74654         Sync from coreutils.
74655         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74656         against `yes', rather than just testing for nonempty.
74657
74658 2005-10-01  Simon Josefsson  <jas@extundo.com>
74659
74660         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74661         and Darwin.
74662
74663         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74664         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74665         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74666         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74667         Check if struct addrinfo is declared.
74668
74669 2005-10-01  Simon Josefsson  <jas@extundo.com>
74670
74671         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74672         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74673         AI_* and EAI_* definitions.  Protect function declarations.
74674
74675 2005-10-01  Jim Meyering  <jim@meyering.net>
74676
74677         Sync from coreutils.
74678
74679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74680         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74681         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74683         in the inet and nsl libraries.  Required on Solaris 5.7.
74684
74685 2005-10-01  Jim Meyering  <jim@meyering.net>
74686
74687         Sync from coreutils.
74688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74689         in the inet and nsl libraries.  Required on Solaris 5.7.
74690
74691 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74692
74693         * lib/getdelim.c (getdelim): Remove unused variables.
74694
74695 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74698         so that the code works even with ancient cpp.  Portability problem
74699         with GCC 2.7.2.1 reported by Thomas M.Ott.
74700
74701 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * modules/regex (Depends-on): Add strcase.
74704
74705         * modules/gethostname (Licence): Change from GPL to LGPL, since
74706         gethostname.c is a trivial implementation of a standard library
74707         function.
74708         * modules/poll (License): Change from GPL to LGPL, since it's
74709         derived from LGPL code.
74710
74711 2005-09-27  Jim Meyering  <jim@meyering.net>
74712
74713         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74714         HAVE_CONFIG_H.
74715
74716         * lib/intprops.h (signed_type_or_expr__): Define.
74717         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74718         for unsigned types.
74719
74720 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74721
74722         * lib/verify.h (verify_expr): Remove, replacing with:
74723         (verify_true): New macro that returns true instead of void.
74724         (verify_type__): Remove.
74725         (verify): Use verify_true rather than verify_type__.
74726
74727 2005-09-26  Bruno Haible  <bruno@clisp.org>
74728
74729         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74730         is necessary.
74731         (lib_SOURCES): Remove mbchar.c.
74732         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74733         (Files): Add m4/mbrtowc.m4.
74734         * modules/mbiter: Likewise.
74735         * modules/mbuiter: Likewise.
74736
74737 2005-09-26  Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74740         compile mbchar.c if they are not both present.
74741         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74742         * m4/mbiter.m4 (gl_MBITER): Likewise.
74743         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74744         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74745         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74746
74747 2005-09-25  Jim Meyering  <jim@meyering.net>
74748
74749         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74750         also uses socklen_t.
74751
74752 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74753
74754         * lib/utimens.c (ENOSYS): Define if not already defined.
74755         (futimens): Support having a null PATH if the file descriptor
74756         is nonnegative.
74757
74758         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74759         Remove.
74760         (__attribute): Define to empty unless GCC 3.1 or later.
74761         This works around a core dump on OpenBSD 3.4, which has GCC
74762         2.95.3, which dumps core when given __attribute__(()).  It also
74763         simplifies other tests, since we really don't want to bother with
74764         worrying about which ancient version of GCC supported what.
74765         Original problem reported by Yoann Vandoorselaere, with part of
74766         the fix suggested by Derek Price.
74767
74768 2005-09-24  Jim Meyering  <jim@meyering.net>
74769
74770         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74771         so we can once again use a positive bitfield width of 1 -- now we
74772         don't have to explain why we were using a bitfield width of 2.
74773
74774 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74777         and similarly for the other external symbols.  Problem reported
74778         by James Gallager.
74779
74780         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74781         bug reported by Jim Meyering.
74782
74783         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74784         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74785         not needed, since socklen is a prerequisite module.
74786
74787 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74790         Problem reported by Eric Blake.
74791         (getaddrinfo): Initialize se so that it's not garbage.
74792         Redo internal storage allocation so that it doesn't make unportable
74793         assumptions about alignment.
74794         Fix a memory leak.
74795
74796         * lib/utimens.c (futimens): Use futimesat if available.
74797         Prefer it to futimes since it doesn't have the futimes bug.
74798
74799         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74800         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74801         Instead, declare a function that returns a pointer to an array,
74802         and use verify_type__ to declare the size of the array.
74803         Problem and germ of a solution reported by Bruno Haible.
74804         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74805         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74806
74807 2005-09-23  Jim Meyering  <jim@meyering.net>
74808
74809         Sync from coreutils.
74810         Correct build failure (socklen_t not defined) on at least
74811         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74813
74814 2005-09-23  Jim Meyering  <jim@meyering.net>
74815
74816         * modules/getaddrinfo (Depends-on): Add socklen.
74817
74818 2005-09-23  Bruno Haible  <bruno@clisp.org>
74819
74820         * tests/test-verify.c: New file.
74821
74822 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         Sync from coreutils.
74825
74826         * modules/argmatch (Depends-on): Add verify.
74827         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74828         unistd-safer.
74829         * modules/save-cwd (Depends-on): Likewise.
74830
74831         * modules/openat (Files): Add lib/openat-die.c.
74832         (Depends-on): Remove error, exitfail.
74833         Add dirname.
74834
74835         * modules/verify: New file.
74836         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74837         with "verify" module.
74838
74839 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         Sync from coreutils.
74842
74843         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74844         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74845         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74846         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74847         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74848         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74849         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74850         Don't bother checking for string.h, stdlib.h, unistd.h.
74851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74852         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74853         module's job.
74854         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74855         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74856
74857         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74858         (gl_GETDATE): Use it.
74859
74860         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74861
74862 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         Sync from coreutils.
74865
74866         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74867         stat-time.h.
74868         * lib/argmatch.h: Include verify.h
74869         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74870         (ARGMATCH_ASSERT): Remove; unused.
74871         * lib/canonicalize.c: Assume STDC_HEADERS.
74872         * lib/exclude.c: Include "strcase.h".
74873         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74874         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74875         and stdio-safer.h.
74876         (getusershell): Call fopen, not fopen_safer.
74877         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74878         Do not include unistd-safer.h.
74879         (save_cwd): Don't call fd_safer; no longer needed
74880         now that we include fcntl--.h.
74881
74882         * lib/getdate.y (relative_time): New type.
74883         (RELATIVE_TIME_0): New constant.
74884         (parser_control): Use relative_time instead of doing it ourselves.
74885         (%union): Add new relative_time rel member.
74886         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74887         Now typeless.
74888         (relunit, relunit_snumber): Now of type rel.
74889         (zone, rel, relunit, get_date): Adjust to above changes.
74890
74891         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74892         Do not include unistd-safer.h.
74893         (getloadavg): Don't call fd_safer; no longer needed
74894         now that we include fcntl--.h.
74895
74896         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74897         (make_dir_parents): Treat ENOSYS like EEXIST.
74898
74899         Improve quality of diagnostics on restore_cwd failure.
74900         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74901         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74902         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74903         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74904         each time through the loop.  Do not diagnose restore_cwd failure;
74905         that is the caller's job (and perhaps the caller does not care).
74906
74907         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74908         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74909         If the file already exists but is not a directory, don't bother
74910         to try to make its parents.
74911         Close potential file descriptor leak if we can't chdir("/") (!).
74912         Don't always return true if chdir($PWD) fails; return true only
74913         if the requested action was done successfully (except for the
74914         chdir($PWD)).
74915         Don't log final directory unless we actually made it.
74916         Refactor to avoid duplicate code to fix up permissions.
74917         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74918
74919         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74920         to make it a bit faster and (I hope) clearer.
74921         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74922         Fix bug in formats like %2N.
74923
74924         * lib/verify.h: New file.
74925
74926 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         Sync from coreutils.
74929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74930
74931 2005-09-22  Jim Meyering  <jim@meyering.net>
74932
74933         Sync from coreutils.
74934
74935         * m4/lstat.m4 (gl_FUNC_LSTAT):
74936         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74937         Remove obsolete comment.
74938         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74939         * m4/xstrtod.m4: Likewise.
74940
74941         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74942
74943 2005-09-22  Jim Meyering  <jim@meyering.net>
74944
74945         Sync from coreutils.
74946
74947         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74948
74949         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74950         the .tm_year member, since otherwise gcc-4.0 would now warn about
74951         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74952
74953         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74954         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74955
74956         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74957         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74958         when run in a time zone for which daylight savings time is in effect
74959         for the starting date.
74960
74961         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74962         stop us from restricting permissions of just-created absolute-named
74963         directories.
74964         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74965         to restore initial working directory.
74966         * lib/mkdir-p.c (make_dir_parents): New parameter:
74967         different_working_dir, to tell caller if/when we change the working
74968         directory and are unable to return to the initial one.
74969         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74970         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74971         `return false'.  This fixes a bug introduced on 2004-07-30.
74972
74973         * lib/openat.c (fdopendir): Be sure to close the supplied
74974         file descriptor before returning.  This makes our replacement
74975         implementation a little closer to Solaris's, where fdopendir
74976         ties the file descriptor to the returned DIR* pointer.
74977         * lib/openat.c (unlinkat): New function.
74978         * lib/openat.h (unlinkat): Add prototype.
74979         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74980         (openat_restore_fail): Rename from openat_restore_die.
74981         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74982
74983         Provide an alternative to exiting immediately upon save_cwd or
74984         restore_cwd failure.  Now, an application can arrange e.g.,
74985         to perform a longjump in that case.
74986         * lib/openat.c: Include dirname.h.
74987         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74988         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74989         and openat_restore_die rather than calling error directly.
74990         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74991
74992         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74993         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74994         define.
74995
74996         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74997         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74998                             int utc, int nanoseconds);
74999         Background:
75000         date should not have to allocate a megabyte of virtual memory to
75001         handle a format argument like +%1048575T.  When implemented with
75002         strftime, it must allocate such a buffer, use strftime to fill it
75003         in, print it, then free it.
75004         With fprintftime, it simply prints everything and exits.
75005         With no need for memory allocation, that's one fewer way to fail.
75006         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75007         optional field width, not before, so we accept %9:z, not %:9z.
75008         (my_strftime): Be sure to use L_('x') for literals.
75009
75010         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75011         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75012         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75013         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75014         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75015         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75016         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75017         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75018         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75019         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75020         * lib/xgethostname.c, lib/xreadlink.c:
75021         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75022
75023         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75024         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75025         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75026         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75027         and don't include <sys/file.h>).
75028
75029 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75030
75031         Sync from coreutils.
75032
75033         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75034         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75035         [!LDAV_DONE]: Avoid unused variable warning.
75036
75037 2005-09-21  Bruno Haible  <bruno@clisp.org>
75038
75039         * lib/unicodeio.h (unicode_to_mb): New declaration.
75040
75041 2005-09-20  Derek Price  <derek@ximbiot.com>
75042
75043         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75044         getaddrinfo.h.
75045
75046 2005-09-20  Bruno Haible  <bruno@clisp.org>
75047
75048         * gnulib-tool: Remove trailing slashes from the values specified for
75049         --source-base, --m4-base, --tests-base, --aux-dir.
75050         Suggested by Simon Josefsson <jas@extundo.com>.
75051
75052 2005-09-20  Bruno Haible  <bruno@clisp.org>
75053
75054         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75055         func_modules_to_filelist, func_import, func_create_testdir): Make all
75056         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75057         change when gnulib-tool is invoked in a different locale.
75058
75059 2005-09-19  Simon Josefsson  <jas@extundo.com>
75060
75061         * m4/socklen.m4: Fix typo.
75062
75063 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75064
75065         Use a consistent style for including <config.h>.
75066         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75067         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75068         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75069         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75070         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75071         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75072         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75073         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75074         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75075         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75076         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75077         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75078         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75079         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75080         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75081         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75082         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75083         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75084         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75085         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75086         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75087         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75088         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75089         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75090         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75091         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75092         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75093         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75094         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75095         lib/xstrtoumax.c, lib/yesno.c:
75096         Standardize inclusion of config.h.
75097         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75098         lib/inttostr.h:  Removed inclusion of config.h from header files.
75099         * lib/inttostr.c:  Adjusted in-tree users.
75100         * lib/timespec.h: Remove superfluous warning to include config.h.
75101         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75102         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75103         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75104         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75105         config.h with HAVE_CONFIG_H.
75106
75107 2005-09-19  Jim Meyering  <jim@meyering.net>
75108
75109         * modules/pathmax (License): Change to LGPL.
75110
75111 2005-09-19  Derek Price  <derek@ximbiot.com>
75112
75113         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75114
75115 2005-09-19  Bruno Haible  <bruno@clisp.org>
75116
75117         * gnulib-tool (import): Provide default for --tests-base.
75118
75119 2005-09-19  Bruno Haible  <bruno@clisp.org>
75120
75121         * doc/quote.texi: New file, extracted from gnulib.texi.
75122         * doc/ctime.texi: New file, extracted from gnulib.texi.
75123         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75124         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75125         * doc/gnulib.texi: Include them.
75126
75127 2005-09-18  Bruno Haible  <bruno@clisp.org>
75128
75129         Portability fix.
75130         * gnulib-tool (func_readlink): New function.
75131         (func_ln_if_changed): Use it.
75132
75133 2005-09-18  Bruno Haible  <bruno@clisp.org>
75134
75135         * gnulib-tool: Support --with-tests also with --import.
75136         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75137         (func_import): Use variables $testsbase and $inctests. Emit a
75138         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75139         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75140         SUBDIRS += $testsdir.
75141         (func_create_testdir): Update.
75142
75143 2005-09-18  Bruno Haible  <bruno@clisp.org>
75144
75145         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75146         instead of $dry_run.
75147         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75148         (func_ln_if_changed): Don't handle dry-run here.
75149         (func_import): In dry-run mode, detect more precisely which actions
75150         would be performed, and don't use "...ing" verbs.
75151
75152 2005-09-18  Bruno Haible  <bruno@clisp.org>
75153
75154         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75155         (func_import): Use join on two temporary files instead of three nested
75156         loops, in order to determine which files are new or old.
75157
75158 2005-09-18  Bruno Haible  <bruno@clisp.org>
75159
75160         * gnulib-tool (func_import): Comment out code that spits out the
75161         new files with --dry-run.
75162
75163 2005-09-18  Bruno Haible  <bruno@clisp.org>
75164
75165         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75166
75167 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75168
75169         * lib/stat-time.h: New file.
75170         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75171         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75172         in a different way.
75173         (timespec_cmp): New function.
75174         * lib/utimecmp.c: Include stat-time.h.
75175         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75176         members exist, not on the obsolescent ST_MTIM_NSEC.
75177         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75178
75179 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75182
75183 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         * MODULES.html.sh (File system functions): Add stat-time.
75186         * modules/stat-time: New file.
75187         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75188         is now done in a different way, by the stat-time module.
75189         * modules/utimecmp (Depends-on): Add stat-time.
75190
75191 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * m4/st_mtim.m4: Remove.  Superseded by...
75194         * m4/stat-time.m4: New file.
75195         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75196         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75197
75198 2005-09-15  Derek Price  <derek@ximbiot.com>
75199
75200         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75201
75202 2005-09-15  Derek Price  <derek@ximbiot.com>
75203
75204         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75205         * lib/regex_internal.c: Ditto, using this...
75206         (__GNUC_PREREQ): ...new macro.
75207         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75208         using...
75209         (__GNUC_PREREQ): ...this new macro.
75210
75211         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75212
75213 2005-09-15  Derek Price  <derek@ximbiot.com>
75214             Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75217         changes, consolidating in...
75218         * lib/regex_internal.h: ...this file.
75219
75220 2005-09-13  Jim Meyering  <jim@meyering.net>
75221
75222         * lib/canon-host.c: Filter through gnu indent and reword comments
75223         slightly.
75224         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75225
75226 2005-09-13  Derek Price  <derek@ximbiot.com>
75227
75228         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75229         failure.
75230         Reported by Jim Meyering  <jim@meyering.net>.
75231
75232 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75233
75234         * lib/base64.c: Typo.
75235         (base64_encode): Put b64str in initialized data section.
75236
75237 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75238
75239         Merge glibc and coreutils changes into gnulib, plus a few
75240         extra fixes.
75241         * lib/md5.c: Use #error rather than a string.
75242         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75243         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75244         (__attribute__): Define to empty for non recent-GCC.
75245         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75246         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75247         Renamed from their non-__ counterparts, with new macros replacing
75248         them if not _LIBC.  Add __THROW attribute.
75249         (rol): Remove.
75250         (struct md5_ctx): Align buffer if using GCC.
75251         * lib/sha1.h (struct sha1_ctx): Likewise.
75252         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75253         The old name was backwards.
75254         (NOTSWAP): Remove; not used.
75255         (rol): New macro, moved here from md5.h.
75256         (sha1_process_block): Remove a FIXME that doesn't make sense.
75257
75258 2005-09-12  Derek Price  <derek@ximbiot.com>
75259
75260         Return usable errors from canon-host.
75261         * lib/canon-host.h: New file.
75262         * lib/canon-host.c (canon_host): Wrap...
75263         (canon_host_r): ...this new function, which now relies exclusively on
75264         getaddrinfo.
75265         (ch_strerror): New function.
75266         (last_cherror): New global.
75267         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75268         interface.
75269         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75270         void *.
75271         (freeaddrinfo): Free ai->ai_canonname when set.
75272
75273 2005-09-12  Derek Price  <derek@ximbiot.com>
75274
75275         Make canon-host require getaddrinfo.
75276         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75277         AC_LIBSOURCE canon-host.h.  Call...
75278         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75279         gl_GETADDRINFO.
75280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75281
75282 2005-09-12  Derek Price  <derek@ximbiot.com>
75283
75284         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75285         LGPL.
75286         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75287
75288 2005-09-12  Derek Price  <derek@ximbiot.com>
75289
75290         * lib/gai_strerror.c: Include config.h when available.  Include
75291         getaddrinfo.h before other headers to test interface.
75292         Reported by Larry Jones <lawrence.jones@ugs.com>.
75293
75294 2005-09-12  Derek Price  <derek@ximbiot.com>
75295             Paul Eggert  <eggert@cs.ucla.edu>
75296
75297         * modules/glob (Files): Add glob-libc.h.
75298
75299 2005-09-12  Derek Price  <derek@ximbiot.com>
75300             Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75303         glob_.h, glob-libc.h.
75304         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75305
75306 2005-09-12  Derek Price  <derek@ximbiot.com>
75307             Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75310         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75311         protecting things that should be done only in gnulib contexts.
75312         * lib/glob_.h: New file, containing only the glob things needed for
75313         gnulib.
75314         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75315         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75316         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75317         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75318         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75319         and to respect the namespace rules better.
75320
75321 2005-09-08  Simon Josefsson  <jas@extundo.com>
75322
75323         * modules/socklen: New file.
75324
75325 2005-09-08  Simon Josefsson  <jas@extundo.com>
75326
75327         * m4/socklen.m4: New file.
75328
75329 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * modules/utimens (Files): Add m4/utimbuf.m4, since
75332         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75333         Reported by Sergey Poznyakoff.
75334
75335 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75338         definitions, since that's the preferred style in glibc.
75339         Fix a minor spacing issue, and update copyright notice to match
75340         glibc's.
75341
75342 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75345
75346 2005-09-06  Simon Josefsson  <jas@extundo.com>
75347
75348         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75349         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75350
75351 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75354         warning.
75355
75356 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * config/srclist.txt: Add glibc bug 1302.
75359
75360 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         Change bitset word type from unsigned int to unsigned long int,
75363         as this has better performance on typical 64-bit hosts.
75364         Port bitset code to hosts with unusual word sizes.
75365         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75366         (build_collating_symbol):
75367         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75368         argument is a bitset.  This is merely a style issue, but it makes
75369         it clearer that an entire array is expected.
75370         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75371         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75372         Port to the case where bitset_word is not the same as unsigned int.
75373         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75374         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75375         Likewise.
75376         * lib/regexec.c (check_dst_limits_calc_pos_1,
75377         check_subexp_matching_top):
75378         (build_trtable, group_nodes_into_DFAstates):
75379         Likewise.
75380         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75381         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75382         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75383         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75384         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75385         * lib/regcomp.c (optimize_subexps, lower_subexp):
75386         Work even if bitset_word has holes in its bitwise representation.
75387         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75388         * lib/regexec.c (check_dst_limits_calc_pos_1,
75389         check_subexp_matching_top):
75390         Likewise.
75391         * lib/regex_internal.c (re_string_reconstruct):
75392         Don't assume UCHAR_MAX == 255.
75393         * lib/regex_internal.h (bitset_set_all): Likewise.
75394         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75395         All uses changed.
75396         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75397         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75398         All uses changed.
75399         (BITSET_WORD_MAX): New macro.
75400         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75401         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75402         (bitset_empty, bitset_copy):
75403         Prefer sizeof (bitset) to multiplying it out ourselves.
75404         (bitset_not_merge): Remove; unused.
75405         (bitset_contain): Return bool, not unsigned int with one bit on.
75406         All callers changed.
75407         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75408         alignment than re_node_set; do this by defining a new internal
75409         type struct dests_alloc and using it to allocate memory.
75410
75411 2005-09-05  Bruno Haible  <bruno@clisp.org>
75412
75413         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75414         links.
75415
75416 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75417
75418         * modules/size_max (Makefile.am): Add size_max.h
75419
75420 2005-09-04  Derek Price  <derek@ximbiot.com>
75421
75422         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75423
75424 2005-09-03  Simon Josefsson  <jas@extundo.com>
75425
75426         * gnulib-tool: Fix typo.
75427
75428 2005-09-03  Simon Josefsson  <jas@extundo.com>
75429
75430         * config/srclist.txt: Add glibc bug 1293.
75431
75432 2005-09-03  Derek Price  <derek@ximbiot.com>
75433
75434         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75435         From Larry Jones <lawrence.jones@ugs.com>.
75436
75437 2005-09-02  Simon Josefsson  <jas@extundo.com>
75438
75439         * modules/socklen: New file.
75440
75441 2005-09-02  Simon Josefsson  <jas@extundo.com>
75442
75443         * modules/havelib: New module.
75444
75445         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75446         Use havelib.
75447
75448 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         Check for arithmetic overflow when calculating sizes, to prevent
75451         some buffer-overflow issues.  These patches are conservative, in the
75452         sense that when I couldn't determine whether an overflow was possible,
75453         I inserted a run-time check.
75454         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75455         macros.
75456         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75457         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75458         (re_xnrealloc, re_x2nrealloc): New inline functions.
75459         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75460         parse_bracket_exp):
75461         (build_equiv_class, build_charclass): Check for arithmetic overflow
75462         in size expression calculations.
75463         * lib/regex_internal.c (re_string_realloc_buffers):
75464         (build_wcs_upper_buffer, re_node_set_add_intersect):
75465         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75466         (re_dfa_add_node, register_state): Likewise.
75467         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75468         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75469         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75470         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75471
75472 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75475         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75476
75477 2005-09-02  Bruno Haible  <bruno@clisp.org>
75478
75479         Support for lib vs. lib64 distinction on biarch platforms.
75480         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75481         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75482         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75483
75484 2005-09-02  Bruno Haible  <bruno@clisp.org>
75485
75486         * gnulib-tool (import): In the other first-use case, provide defaults
75487         as well.
75488
75489 2005-09-02  Bruno Haible  <bruno@clisp.org>
75490
75491         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75492         patches not yet found in the latest gettext release.
75493
75494 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75497         to avoid a collision with bits/local_lim.h in glibc.
75498         All uses changed.  Problem reported by Dmitry V. Levin in
75499         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75500
75501         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75502         bugs in int versus size_t comparisons.
75503         (re_string_context_at): Fix bug where the code assumed that
75504         Idx is signed.
75505
75506         Use bool where appropriate.
75507         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75508         All callers changed.
75509         (calc_eclosure_iter): Likewise, for ROOT arg.
75510         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75511         (build_charclass_op): Likewise, for NON_MATCH arg.
75512         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75513         (re_string_construct_common): Likewise, for ICASE arg.
75514         * lib/regexec.c (re_search_2_stub, re_search_stub):
75515         Likewise, for RET_LEN arg.
75516         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75517         (set_regs): Likewise, for FL_BACKTRACK arg.
75518         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75519         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75520         (calc_eclosure_iter, parse_bracket_exp):
75521         Use bool for internal variables that are booleans.
75522         * lib/regexec.c (re_search_internal, check_matching,
75523         proceed_next_node):
75524         (set_regs, build_sifted_states, sift_states_bkref):
75525         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75526         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75527         (find_collation_sequence_value):
75528         Likewise.
75529         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75530         (re_node_set_compare):
75531         Return bool, not int. All callers changed.
75532         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75533         (build_trtable, check_node_accept): Likewise.
75534         * lib/regex_internal.h: Include stdbool.h.
75535
75536         Fix bugs uncovered when converting to bool.
75537         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75538         failure instead of charging ahead blindly.
75539         * lib/regex_internal.c (register_state): Likewise.
75540         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75541         for freeing internal storage.
75542         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75543         bitset pieces used as boolean, to avoid undefined behavior
75544         on hosts that do int overflow checking.
75545
75546 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * config/srclist.txt: Add glibc bugs 1285-1287.
75549
75550 2005-09-01  Jim Meyering  <jim@meyering.net>
75551
75552         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75553         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75554         Require gl_STAT_MACROS, too.
75555
75556 2005-09-01  Bruno Haible  <bruno@clisp.org>
75557
75558         * gnulib-tool (import): In the first-use case, provide defaults.
75559
75560 2005-09-01  Bruno Haible  <bruno@clisp.org>
75561
75562         * gnulib-tool (func_import): Remove the .tmp files.
75563
75564 2005-09-01  Bruno Haible  <bruno@clisp.org>
75565
75566         * gnulib-tool (func_import): Fix handling of symbolic links.
75567
75568 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75571         old glibc regex code mishandles strings longer than 2**31 bytes.
75572         This patch fixes this when the regex code is used in gnulib
75573         (i.e., outside glibc).
75574
75575         This patch should not affect the use of the regex code inside
75576         glibc.  No doubt this problem also needs to be handled for glibc
75577         as well, but the result will be an incompatible change to the
75578         glibc ABI, and the old ABI will have to be supported too.  That
75579         can be the the subject for another patch.
75580
75581         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75582         governing whether the rest of this patch is active.  By default,
75583         the macro is disabled and the patch has no effect.
75584         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75585         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75586         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75587         (re_match_2, re_set_registers): Use the new types.
75588         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75589         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75590         New macros.
75591         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75592         (re_string_context_at, bin_tree_t, re_dfastate_t):
75593         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75594         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75595         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75596         (re_string_char_size_at, re_string_wchar_at):
75597         (re_string_elem_size_at):
75598         Use the new types and macros to port to 64-bit hosts.
75599         Use unsigned types for internal values, so that the code
75600         mostly works even for arrays larger than SSIZE_MAX.
75601         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75602         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75603         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75604         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75605         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75606         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75607         (calc_inveclosure, parse_dup_op, build_range_exp):
75608         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75609         (fetch_number, create_token_tree, mark_opt_subexp):
75610         Likewise.
75611         * lib/regex_internal.c (re_string_construct_common,
75612         create_ci_newstate):
75613         (create_cd_newstate, re_string_allocate, re_string_construct):
75614         (re_string_realloc_buffers, build_wcs_upper_buffer):
75615         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75616         (re_string_reconstruct, re_string_peek_byte_case):
75617         (re_string_fetch_byte_case, re_string_context_at):
75618         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75619         (re_node_set_init_copy, re_node_set_add_intersect):
75620         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75621         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75622         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75623         (re_acquire_state, re_acquire_state_context, register_state):
75624         Likewise.
75625         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75626         search_cur_bkref_entry):
75627         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75628         (re_search_internal, re_search_2_stub, re_search_stub)
75629         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75630         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75631         (update_cur_sifted_state, check_dst_limits):
75632         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75633         (check_subexp_limits, sift_states_bkref, merge_state_array):
75634         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75635         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75636         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75637         (expand_bkref_cache, check_node_accept_bytes):
75638         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75639         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75640         (acquire_init_state_context, check_halt_node_context):
75641         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75642         (sift_states_backward, clean_state_log_if_needed):
75643         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75644         (find_recover_state, transit_state_sb, transit_state_mb):
75645         (transit_state_bkref, build_trtable, match_ctx_clean):
75646         Likewise.
75647         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75648         to work around an assumption that REG_MISSING is negative.
75649
75650         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75651         (seek_collating_symbol_entry) [defined _LIBC]:
75652         (lookup_collation_sequence_value) [defined _LIBC]:
75653         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75654         Use prototypes rather than old-style function definitions.
75655         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75656         (transit_state_sb) [0]:
75657         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75658
75659         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75660         rm_eo.
75661
75662         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75663         (optimize_subexps, lower_subexp):
75664         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75665         since the signed shift might overflow.  Use 1u<<31 instead.
75666         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75667         Likewise.
75668         * lib/regexec.c (check_dst_limits_calc_pos_1,
75669         check_subexp_matching_top): Likewise.
75670
75671         * lib/regcomp.c (optimize_subexps, lower_subexp):
75672         Use CHAR_BIT rather than 8, for clarity.
75673         * lib/regexec.c (check_dst_limits_calc_pos_1):
75674         (check_subexp_matching_top): Likewise.
75675         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75676         have to worry about portability issues when shifting it left.
75677         Remove no-longer-needed test for table_size > 0.
75678         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75679         in a word, as the resulting behavior is undefined.
75680         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75681         in one case, a <= should have been an <, and in another case the
75682         whole test was missing.
75683         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75684         the standard name CHAR_BIT.
75685         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75686         this is not true on one's complement and signed-magnitude hosts.
75687
75688         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75689         next_last_offset.
75690         (struct re_dfa_t): Remove unused member states_alloc.
75691         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75692
75693 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75696         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75697         and large-file glibc and in 32-bit large-file Solaris.
75698
75699 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75700
75701         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75702         lengths fit in regoff_t; this isn't true if regoff_t is the same
75703         width as size_t.
75704         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75705         (= START + RANGE) instead of RANGE.  This avoids overflow
75706         problems when regoff_t is the same width as size_t.
75707         All callers changed.
75708         (re_search_2_stub): Check for overflow when adding the
75709         sizes of the two strings.
75710         (re_search_stub): Check for overflow when adding START
75711         to RANGE; if it occurs, substitute the extreme value.
75712
75713 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75716
75717 2005-08-31  Jim Meyering  <jim@meyering.net>
75718
75719         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75720         a pointer-to-const.
75721         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75722         (register_state): Likewise.
75723         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75724         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75725         (group_nodes_into_DFAstates): Likewise.
75726
75727 2005-08-31  Jim Meyering  <jim@meyering.net>
75728
75729         * check-module: Add a FIXME comment.
75730
75731 2005-08-31  Eric Blake  <ebb9@byu.net>
75732
75733         * modules/unistd-safer (Files): Add unistd--.h.
75734         * modules/stdio-safer (Files): Add stdio--.h.
75735
75736 2005-08-31  Derek Price  <derek@ximbiot.com>
75737
75738         * lib/getdelim.c (getdelim): Return EOF on EOF.
75739         Reported by Larry Jones <lawrence.jones@ugs.com>.
75740
75741 2005-08-31  Bruno Haible  <bruno@clisp.org>
75742
75743         Avoid unnecessary diffs in the generated lib/Makefile.am.
75744         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75745         the generated files.
75746         (func_import): Don't set cmd.
75747
75748 2005-08-31  Bruno Haible  <bruno@clisp.org>
75749
75750         * lib/strstr.c: Include <stddef.h>, for NULL.
75751         * lib/strcasestr.c: Likewise.
75752         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75753
75754 2005-08-31  Bruno Haible  <bruno@clisp.org>
75755
75756         * gnulib-tool: New option --macro-prefix.
75757         (func_import): Use macro_prefix.
75758         (import): Handle option --macro-prefix.
75759
75760 2005-08-31  Bruno Haible  <bruno@clisp.org>
75761
75762         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75763         Also use new variables cached_lgpl, cached_libtool.
75764
75765 2005-08-31  Bruno Haible  <bruno@clisp.org>
75766
75767         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75768         always instantiating them.
75769
75770 2005-08-31  Bruno Haible  <bruno@clisp.org>
75771
75772         * gnulib-tool (func_import): Read the previous cached settings
75773         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75774         earlier added by gnulib but are now dropped. Warn when a gnulib file
75775         overwrites a non-gnulib file.
75776
75777 2005-08-31  Bruno Haible  <bruno@clisp.org>
75778
75779         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75780         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75781         projects that don't keep autogenerated files in CVS. Put into
75782         actioncmd only the specified modules, not the transitive closure.
75783
75784 2005-08-31  Bruno Haible  <bruno@clisp.org>
75785
75786         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75787         Create directories that shall be filled.
75788         (import): Don't look for gl_* macros in configure.ac. Recurse across
75789         all directories containing a gnulib-cache.m4 files, if meaningful.
75790
75791 2005-08-31  Bruno Haible  <bruno@clisp.org>
75792
75793         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75794         (import): Set seen_libtool when we see gl_LIBTOOL.
75795
75796 2005-08-31  Bruno Haible  <bruno@clisp.org>
75797
75798         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75799         declaration macro definitions from generated gnulib.m4.
75800
75801 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75802
75803         * lib/iconvme.h: Add prototype for iconv_alloc.
75804
75805 2005-08-29  Simon Josefsson  <jas@extundo.com>
75806
75807         * lib/iconvme.c: Fix errno.
75808
75809 2005-08-29  Bruno Haible  <bruno@clisp.org>
75810
75811         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75812         that it works when the directory contains spaces.
75813
75814 2005-08-29  Bruno Haible  <bruno@clisp.org>
75815
75816         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75817
75818 2005-08-29  Bruno Haible  <bruno@clisp.org>
75819
75820         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75821         Emit more advice.
75822
75823 2005-08-29  Bruno Haible  <bruno@clisp.org>
75824         and Stepan Kasal  <kasal@ucw.cz>
75825
75826         * check-module: If more parameters are given, check each of them
75827         separately; add more exceptions, as noted by Jim Meyering.
75828         (check_module): New procedure.
75829         (%exempt_header): Now contains all exceptions.
75830
75831 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75832
75833         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75834
75835 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75836
75837         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75838
75839 2005-08-28  Bruno Haible  <bruno@clisp.org>
75840
75841         * m4/gnulib-tool.m4: New file.
75842
75843 2005-08-27  Jim Meyering  <jim@meyering.net>
75844
75845         * modules/unistd-safer (Files): Add pipe-safer.c.
75846         * modules/fcntl-safer (Files): Add creat-safer.c.
75847
75848 2005-08-27  Jim Meyering  <jim@meyering.net>
75849
75850         * m4/stdlib-safer.m4: New file.  From coreutils.
75851         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75852         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75853         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75854         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75855         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75856
75857 2005-08-27  Jim Meyering  <jim@meyering.net>
75858
75859         * lib/fopen-safer.c: Merge minor changes from coreutils.
75860         * lib/dup-safer.c: Likewise.
75861         * lib/fd-safer.c: Likewise.
75862
75863         Merge from coreutils.
75864         * lib/stdio--.h: New file.
75865         * lib/stdlib--.h: New file.
75866         * lib/mkstemp-safer.c: New file.
75867
75868         GNU tar needs these.
75869         * lib/pipe-safer.c: New file.
75870         * lib/creat-safer.c: New file.
75871         * lib/fcntl--.h (creat): Define to creat_safer.
75872         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75873         * lib/unistd--.h (pipe): Define to pipe_safer.
75874         * lib/unistd-safer.h: Declare pipe_safer.
75875
75876 2005-08-26  Simon Josefsson  <jas@extundo.com>
75877
75878         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75879         Haible <bruno@clisp.org>.
75880
75881 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75882
75883         * lib/regex_internal.h: Remove all references to
75884         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75885         or better.
75886         (bitset_not, bitset_merge, bitset_not_merge):
75887         (bitset_mask, re_string_allocate, re_string_construct):
75888         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75889         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75890         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75891         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75892         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75893         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75894         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75895         (re_acquire_state_context):
75896         Remove unnecessary forward decls.
75897         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75898         Put __attribute at function definition,
75899         now that the function decl has been removed.
75900         * lib/regex_internal.c (re_string_peek_byte_case):
75901         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75902         Likewise.
75903
75904 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75905
75906         * m4/regex.m4: Add AC_PREREQ(2.50).
75907         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75908
75909 2005-08-25  Simon Josefsson  <jas@extundo.com>
75910
75911         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75912         __fsetlocking.
75913
75914 2005-08-25  Simon Josefsson  <jas@extundo.com>
75915
75916         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75917         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75918         GLIBC specific code.
75919
75920 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         Make regex safe for g++.  This fixes one real bug (an "err"
75923         that should have been "*err").  g++ problem reported by
75924         Sam Steingold.
75925         * lib/regex_internal.h (re_calloc): New macro, consistent with
75926         re_malloc etc.  All callers of calloc changed to use re_calloc.
75927         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75928         not int.  All callers changed.
75929         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75930         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75931         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75932         (find_recover_state): Change "err" to "*err"; this fixes what
75933         appears to be a real bug.
75934         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75935         versus int.
75936
75937 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75938
75939         * modules/regex (Depends-on): Add malloc, since the code
75940         assumes that !malloc(0) means failure.
75941
75942 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75945
75946         alloca modernization/simplification for regex.
75947         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75948         needs to be at the start of the file, and can be moved into
75949         regex_internal.h and simplified.
75950         * lib/regex_internal.h: Include <alloca.h>.
75951         (__libc_use_alloca) [!defined _LIBC]: New macro.
75952         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75953         now works outside glibc.
75954
75955 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * config/srclist.txt: Add glibc bugs 1241, 1245.
75958
75959 2005-08-25  Jim Meyering  <jim@meyering.net>
75960
75961         * lib/open-safer.c: Include <config.h>.
75962         Otherwise, we'd lose LARGEFILE support in any file using
75963         e.g. "fcntl--.h"
75964
75965 2005-08-25  Bruno Haible  <bruno@clisp.org>
75966
75967         * m4/minmax.m4: Require autoconf 2.52.
75968         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75969         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75970         alternatives of translit over the alphabet.
75971         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75972
75973 2005-08-24  Simon Josefsson  <jas@extundo.com>
75974
75975         * tests/test-getpass.c: New file.
75976
75977 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75978
75979         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75980         for GNU regex features.
75981
75982 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75985         * lib/regex.h (regerror): Likewise.
75986
75987         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75988         requires this.  (The code never needed it.)
75989
75990         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75991         All uses of recently-renamed identifiers changed to use the new,
75992         POSIX-compliant names.  The code will build and run just fine
75993         without these changes, but it's better to eat our own dog food
75994         and use the standard-conforming names.
75995
75996         * lib/regex.h: Fix a multitude of POSIX name space violations.
75997         These changes have an effect only for programs that define
75998         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75999         do not change anything for programs compiled in the normal way.
76000         Also, there is no effect on the ABI.
76001
76002         (_REGEX_SOURCE): New macro.
76003         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76004         defined and _GNU_SOURCE is not; this fixes a name space violation.
76005
76006         Rename the following macros to obey POSIX requirements.
76007         The old names are still visible as macros if _REGEX_SOURCE is defined.
76008         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76009         RE_BACKSLASH_ESCAPE_IN_LISTS.
76010         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76011         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76012         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76013         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76014         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76015         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76016         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76017         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76018         (REG_INTERVALS): renamed from RE_INTERVALS.
76019         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76020         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76021         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76022         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76023         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76024         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76025         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76026         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76027         RE_UNMATCHED_RIGHT_PAREN_ORD.
76028         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76029         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76030         (REG_DEBUG): renamed from RE_DEBUG.
76031         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76032         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76033         unusual, since we can't clash with the POSIX REG_ICASE.
76034         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76035         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76036         (REG_NO_SUB): renamed from RE_NO_SUB.
76037         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76038         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76039         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76040         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76041         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76042         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76043         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76044         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76045         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76046         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76047         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76048         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76049         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76050         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76051         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76052         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76053         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76054         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76055         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76056         (REG_FIXED): Renamed from REGS_FIXED.
76057         (REG_NREGS): Renamed from RE_NREGS.
76058
76059         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76060         of other REG_* macros, since POSIX says the user is allowed to
76061         #undef these macros selectively.
76062
76063         (reg_errcode_t): Update comment stating what other tables need
76064         to be consistent.
76065
76066         Rename the following enum values to obey POSIX requirements.
76067         The old names are still visible as macros.
76068         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76069         is not defined, since GNU is supposed to be a superset of POSIX as
76070         much as possible, and since we want reg_errcode_t to be a signed
76071         type for implementation consistency.
76072         (_REG_NOERROR): Renamed from REG_NOERROR.
76073         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76074         (_REG_BADPAT): Renamed from REG_BADPAT.
76075         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76076         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76077         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76078         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76079         (_REG_EBRACK): Renamed from REG_EBRACK.
76080         (_REG_EPAREN): Renamed from REG_EPAREN.
76081         (_REG_EBRACE): Renamed from REG_EBRACE.
76082         (_REG_BADBR): Renamed from REG_BADBR.
76083         (_REG_ERANGE): Renamed from REG_ERANGE.
76084         (_REG_ESPACE): Renamed from REG_ESPACE.
76085         (_REG_BADRPT): Renamed from REG_BADRPT.
76086         (_REG_EEND): Renamed from REG_EEND.
76087         (_REG_ESIZE): Renamed from REG_ESIZE.
76088         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76089         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76090         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76091         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76092         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76093
76094         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76095         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76096         changed.  But support the old name if the new one is not defined
76097         and if _REGEX_SOURCE.
76098
76099         Change the following member names in struct re_pattern_buffer.
76100         The old names are still supported if !_REGEX_SOURCE.
76101         The new names are always supported, regardless of _REGEX_SOURCE.
76102         (re_buffer): Renamed from buffer.
76103         (re_allocated): Renamed from allocated.
76104         (re_used): Renamed from used.
76105         (re_syntax): Renamed from syntax.
76106         (re_fastmap): Renamed from fastmap.
76107         (re_translate): Renamed from translate.
76108         (re_can_be_null): Renamed from can_be_null.
76109         (re_regs_allocated): Renamed from regs_allocated.
76110         (re_fastmap_accurate): Renamed from fastmap_accurate.
76111         (re_no_sub): Renamed from no_sub.
76112         (re_not_bol): Renamed from not_bol.
76113         (re_not_eol): Renamed from not_eol.
76114         (re_newline_anchor): Renamed from newline_anchor.
76115
76116         Change the following member names in struct re_registers.
76117         The old names are still supported if !_REGEX_SOURCE.
76118         The new names are always supported, regardless of _REGEX_SOURCE.
76119         (rm_num_regs): Renamed from num_regs.
76120         (rm_start): Renamed from start.
76121         (rm_end): Renamed from end.
76122
76123         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76124         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76125         Prepend __ to parameter names.
76126
76127         Undo yesterday's changes.
76128
76129 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76130
76131         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76132         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76133         lib/regex.c.
76134
76135 2005-08-24  Jim Meyering  <jim@meyering.net>
76136
76137         Sync from coreutils.
76138         * m4/fcntl-safer.m4: New file.
76139
76140         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76141         and object files for this module.
76142
76143 2005-08-24  Jim Meyering  <jim@meyering.net>
76144
76145         Sync from coreutils.
76146         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76147
76148 2005-08-24  Jim Meyering  <jim@meyering.net>
76149
76150         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76151         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76152
76153 2005-08-24  Jim Meyering  <jim@meyering.net>
76154
76155         * modules/fcntl-safer: New module.
76156         * modules/fts (Depends-on): Add fcntl-safer.
76157         * MODULES.html.sh (File descriptor based Input/Output):
76158         Add fcntl-safer.
76159
76160 2005-08-24  Bruno Haible  <bruno@clisp.org>
76161
76162         Support for unit test modules.
76163         * modules/README: Mention tests modules.
76164         * modules/TEMPLATE-TESTS: New file.
76165         * gnulib-tool: New options --extract-tests-module, --with-tests and
76166         --tests-base (unused for the moment).
76167         (testsbase, inctests): New variables.
76168         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76169         (func_verify_module): Exclude TEMPLATE-TESTS.
76170         (func_verify_nontests_module, func_verify_tests_module): New functions.
76171         (func_get_dependencies): Add implicit dependency for tests modules.
76172         (func_get_tests_module): New function.
76173         (func_modules_transitive_closure): When --with-tests was specified,
76174         include the unit tests as well, unless explicitly avoided.
76175         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76176         (func_emit_tests_Makefile_am): New function.
76177         (func_create_testdir): When --with-tests was specified, emit a
76178         tests/ directory.
76179         * MODULES.html.sh (Future developments): Update.
76180
76181 2005-08-24  Bruno Haible  <bruno@clisp.org>
76182
76183         * modules/tls-tests: New file.
76184         * tests/test-tls.c: New file, from GNU gettext.
76185
76186 2005-08-24  Bruno Haible  <bruno@clisp.org>
76187
76188         * modules/lock-tests: New file.
76189         * tests/test-lock.c: New file, from GNU gettext.
76190
76191 2005-08-24  Bruno Haible  <bruno@clisp.org>
76192
76193         * lib/lock.h: Add multiple inclusion guard.
76194         * lib/tls.h: Add multiple inclusion guard.
76195
76196 2005-08-24  Bruno Haible  <bruno@clisp.org>
76197
76198         * gnulib-tool: Add support for the --aux-dir option to
76199         --create-testdir, --create-megatestdir, --test, --megatest.
76200         (func_create_testdir, func_create_megatestdir): Optionally emit a
76201         AC_CONFIG_AUX_DIR directive.
76202         (create-testdir, create-megatestdir, test, megatest): Provide a
76203         default value for $auxdir.
76204
76205 2005-08-24  Bruno Haible  <bruno@clisp.org>
76206
76207         * gnulib-tool (import): Use compound statement instead of subshell
76208         where possible.
76209
76210 2005-08-24  Bruno Haible  <bruno@clisp.org>
76211
76212         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76213
76214 2005-08-24  Bruno Haible  <bruno@clisp.org>
76215
76216         * gnulib-tool (func_version): Update.
76217
76218 2005-08-24  Bruno Haible  <bruno@clisp.org>
76219
76220         * gnulib-tool (func_import, func_create_testdir,
76221         func_create_megatestdir): Quote all autoconf macro arguments.
76222
76223 2005-08-24  Bruno Haible  <bruno@clisp.org>
76224
76225         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76226         option --force, because --force causes the aclocal.m4 of each
76227         subdirectory to be newer than the corresponding config.h.in.
76228
76229 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76232         All contents moved to gl_REGEX.
76233         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76234         assume that it does.
76235
76236 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * lib/regex.h (REG_NOSYS)
76239         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76240         Define, since POSIX requires it as of 2001.
76241         (_REG_ENOSYS)
76242         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76243         New private symbol, used to keep the enum signed in all cases.
76244         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76245         Youngman in
76246         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76247
76248         * lib/regex_internal.c (re_string_skip_chars, register_state):
76249         (calc_state_hash):
76250         Remove forward decls; no longer needed now that we use prototypes.
76251         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76252         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76253         (clean_state_log_if_needed): Likewise.
76254
76255 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * config/srclist.txt: Add glibc bugs 1231-1233.
76258
76259 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         Fix problems reported by Sam Steingold in
76262         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76263         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76264         assumed that reg_errcode_t is a signed type, which is not
76265         necessarily true if _XOPEN_SOURCE is not defined.
76266         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76267         since some compilers warn about it otherwise.
76268
76269 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76270
76271         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76272         (init_word_char, create_initial_state, duplicate_node_closure):
76273         (fetch_token, peek_token_bracket, build_range_exp):
76274         (build_collating_symbol): Remove forward decls; no longer needed
76275         now that we use prototypes.
76276
76277         * lib/regcomp.c:
76278         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76279         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76280         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76281         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76282         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76283         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76284         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76285         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76286         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76287         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76288         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76289         (build_charclass, build_charclass_op, fetch_number, create_tree):
76290         (create_token_tree, mark_opt_subexp, duplicate_tree):
76291         Use prototypes rather than old-style definitions.
76292
76293         * lib/regex_internal.c:
76294         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76295         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76296         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76297         (re_string_reconstruct, re_string_peek_byte_case):
76298         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76299         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76300         (re_node_set_init_copy, re_node_set_add_intersect):
76301         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76302         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76303         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76304         (re_acquire_state, re_acquire_state_context, register_state):
76305         (create_ci_newstate, create_cd_newstate, free_state):
76306         Likewise.
76307         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76308         re_search_2):
76309         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76310         (re_search_internal, prune_impossible_nodes):
76311         (acquire_init_state_context, check_matching, static):
76312         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76313         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76314         (update_regs, sift_states_backward, build_sifted_states):
76315         (clean_state_log_if_needed, merge_state_array):
76316         (update_cur_sifted_state, add_epsilon_src_nodes):
76317         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76318         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76319         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76320         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76321         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76322         (check_arrival, check_arrival_add_next_nodes):
76323         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76324         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76325         (check_node_accept_bytes, check_node_accept, extend_buffers):
76326         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76327         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76328         (sift_ctx_init):
76329         Likewise.
76330
76331         * lib/regex_internal.h:
76332         (re_string_allocate, re_string_construct, re_string_reconstruct):
76333         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76334         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76335         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76336         (re_string_context_at, re_string_peek_byte_case):
76337         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76338         is defined, since we now use prototypes always.
76339
76340         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76341         C89 or better.  All uses removed.
76342
76343 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * config/srclist.txt: Add glibc bugs 1220-1227.
76346
76347 2005-08-20  Jim Meyering  <jim@meyering.net>
76348
76349         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76350         of unused local, dfa.
76351
76352 2005-08-20  Bruno Haible  <bruno@clisp.org>
76353
76354         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76355
76356 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76359         (re_node_set_insert_last, re_dfa_add_node):
76360         Rename local variables to avoid GCC shadowing warnings.
76361
76362 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76365         [defined lint]: Suppress bogus uninitialized-variable warnings.
76366
76367         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76368         and let the caller return REG_ESPACE if out of space.  This
76369         removes an uninitialied-variable warning with GCC 4.0.1, and also
76370         avoids taking the address of a local variable.  All callers
76371         changed.
76372
76373 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76374
76375         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76376         $LIBCSRC/posix/regexec.c.
76377         Add glibc bug 1217 for regcomp.c.
76378
76379 2005-08-19  Jim Meyering  <jim@meyering.net>
76380
76381         * lib/regexec.c (proceed_next_node): Redo local variables to
76382         avoid GCC shadowing warnings.
76383
76384 2005-08-18  Bruno Haible  <bruno@clisp.org>
76385
76386         * lib/strstr.c (strstr): Fix return value in multibyte case.
76387         * lib/strcasestr.c (strcasestr): Likewise.
76388
76389 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76390
76391         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76392
76393 2005-08-17  Jim Meyering  <jim@meyering.net>
76394
76395         Make the %s format (seconds since the epoch) work for a negative
76396         number and when used with a zero-padded field width, e.g. %015s.
76397
76398         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76399         label so that it precedes the code to set `digits'.  Otherwise,
76400         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76401         print `00-22'.  Now, it prints `-0022', as it should.
76402
76403 2005-08-17  Bruno Haible  <bruno@clisp.org>
76404
76405         * modules/strstr (Files): Add m4/mbrtowc.m4.
76406         (Depends-on): Add mbuiter.
76407
76408 2005-08-17  Bruno Haible  <bruno@clisp.org>
76409
76410         * modules/strcasestr: New file.
76411         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76412         strcasestr.
76413
76414 2005-08-17  Bruno Haible  <bruno@clisp.org>
76415
76416         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76417
76418 2005-08-17  Bruno Haible  <bruno@clisp.org>
76419
76420         * modules/mbuiter: New file.
76421         * MODULES.html.sh (Extended multibyte and wide character utilities):
76422         Add mbuiter.
76423
76424 2005-08-17  Bruno Haible  <bruno@clisp.org>
76425
76426         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76427         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76428
76429 2005-08-17  Bruno Haible  <bruno@clisp.org>
76430
76431         * m4/strcasestr.m4: New file.
76432
76433 2005-08-17  Bruno Haible  <bruno@clisp.org>
76434
76435         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76436         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76437
76438 2005-08-17  Bruno Haible  <bruno@clisp.org>
76439
76440         * lib/strcasestr.h: New file.
76441         * lib/strcasestr.c: New file.
76442
76443 2005-08-17  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/strcasecmp.c: Use mbuiter.h.
76446
76447 2005-08-17  Bruno Haible  <bruno@clisp.org>
76448
76449         * lib/mbuiter.h: New file.
76450
76451 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76452
76453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76454         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76455         and gl_GETOPT are both invoked via different paths (as happens
76456         with GNU tar CVS because it uses both argp and getopt), the former
76457         wins.
76458
76459 2005-08-16  Bruno Haible  <bruno@clisp.org>
76460
76461         * modules/tls: New file.
76462         * MODULES.html.sh (Multithreading): Add tls.
76463
76464 2005-08-16  Bruno Haible  <bruno@clisp.org>
76465
76466         * modules/strnlen1: New file.
76467         * MODULES.html.sh (String handling): Add strnlen1.
76468
76469 2005-08-16  Bruno Haible  <bruno@clisp.org>
76470
76471         * modules/strcase (Files): Add m4/mbrtowc.m4.
76472         (Depends-on): Add strnlen1, mbchar.
76473
76474 2005-08-16  Bruno Haible  <bruno@clisp.org>
76475
76476         * modules/mbiter: New file.
76477         * MODULES.html.sh (Extended multibyte and wide character utilities):
76478         Add mbiter.
76479
76480 2005-08-16  Bruno Haible  <bruno@clisp.org>
76481
76482         * modules/mbfile: New file.
76483         * MODULES.html.sh (Extended multibyte and wide character utilities):
76484         Add mbfile.
76485
76486 2005-08-16  Bruno Haible  <bruno@clisp.org>
76487
76488         * modules/mbchar: New file.
76489         * MODULES.html.sh (Extended multibyte and wide character utilities):
76490         New section.
76491
76492 2005-08-16  Bruno Haible  <bruno@clisp.org>
76493
76494         * m4/tls.m4: New file, from GNU gettext.
76495
76496 2005-08-16  Bruno Haible  <bruno@clisp.org>
76497
76498         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76499         always.
76500         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76501
76502 2005-08-16  Bruno Haible  <bruno@clisp.org>
76503
76504         * m4/mbiter.m4: New file.
76505
76506 2005-08-16  Bruno Haible  <bruno@clisp.org>
76507
76508         * m4/mbfile.m4: New file.
76509
76510 2005-08-16  Bruno Haible  <bruno@clisp.org>
76511
76512         * m4/mbchar.m4: New file.
76513
76514 2005-08-16  Bruno Haible  <bruno@clisp.org>
76515
76516         * lib/tls.h: New file, from GNU gettext.
76517         * lib/tls.c: New file, from GNU gettext.
76518
76519 2005-08-16  Bruno Haible  <bruno@clisp.org>
76520
76521         * lib/strnlen1.h: New file.
76522         * lib/strnlen1.c: New file.
76523
76524 2005-08-16  Bruno Haible  <bruno@clisp.org>
76525
76526         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76527         (mbi_init): Update.
76528         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76529         NUL byte, not after it.
76530
76531 2005-08-16  Bruno Haible  <bruno@clisp.org>
76532
76533         * lib/strcase.h (strcasecmp): Add note in comments.
76534         * lib/strncasecmp.c: Use code from strcasecmp.c.
76535         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76536         (strcasecmp): Work correctly in multibyte locales.
76537
76538 2005-08-16  Bruno Haible  <bruno@clisp.org>
76539
76540         * lib/mbiter.h: New file.
76541
76542 2005-08-16  Bruno Haible  <bruno@clisp.org>
76543
76544         * lib/mbfile.h: New file.
76545
76546 2005-08-16  Bruno Haible  <bruno@clisp.org>
76547
76548         * lib/mbchar.h: New file.
76549         * lib/mbchar.c: New file.
76550
76551 2005-08-16  Bruno Haible  <bruno@clisp.org>
76552
76553         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76554         the valid ones. Makes the comparison operations transitive:
76555         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76556         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76557
76558 2005-08-15  Simon Josefsson  <jas@extundo.com>
76559
76560         * modules/ssize_t (License): Change to 'unlimited'.
76561
76562         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76563
76564 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76565
76566         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76567         Add comments for each pending glibc patch.
76568
76569 2005-08-15  Bruno Haible  <bruno@clisp.org>
76570
76571         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76572         __cplusplus is defined.
76573
76574 2005-08-14  Jim Meyering  <jim@meyering.net>
76575
76576         Sync from coreutils.
76577
76578         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76579         Use the hash-table-based cycle-detection code not just when
76580         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76581         Reported by James Youngman in
76582         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76583         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76584         FTS_TIGHT_CYCLE_CHECK.
76585         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76586         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76587         once again.
76588         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76589         * lib/fts.c (fd_safer): Remove decl.
76590         Include fcntl--.h rather than unistd-safer.h
76591         (fts_safe_changedir): Don't call fd_safer; no longer needed
76592         now that we include fcntl--.h.
76593
76594 2005-08-12  Simon Josefsson  <jas@extundo.com>
76595
76596         * modules/getndelim2: Use ssize_t module.
76597         * modules/getnline: Likewise.
76598         * modules/safe-read: Likewise.
76599         * modules/xreadlink: Likewise.
76600
76601         * modules/ssize_t: New file.
76602
76603 2005-08-12  Simon Josefsson  <jas@extundo.com>
76604
76605         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76606
76607 2005-08-12  Simon Josefsson  <jas@extundo.com>
76608
76609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76610         ssize_t.
76611
76612 2005-08-12  Simon Josefsson  <jas@extundo.com>
76613
76614         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76615         readline, getdelim and check_version.
76616         (Support for systems lacking ISO C 99: Sizes of integer types):
76617         Add size_max.
76618
76619 2005-08-12  Bruno Haible  <bruno@clisp.org>
76620
76621         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76622
76623 2005-08-11  Simon Josefsson  <jas@extundo.com>
76624
76625         * modules/readline: New file.
76626
76627         * modules/strnlen (Files): Add strnlen.h.
76628
76629 2005-08-11  Simon Josefsson  <jas@extundo.com>
76630
76631         * m4/readline.m4: New file.
76632
76633 2005-08-11  Simon Josefsson  <jas@extundo.com>
76634
76635         * lib/readline.h, readline.c: New file.
76636
76637 2005-08-11  Simon Josefsson  <jas@extundo.com>
76638
76639         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76640         gl_AVOID.
76641
76642 2005-08-11  Bruno Haible  <bruno@clisp.org>
76643
76644         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76645
76646 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76647
76648         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76649
76650 2005-08-10  Simon Josefsson  <jas@extundo.com>
76651
76652         * tests/test-iconvme.c: New file.
76653
76654 2005-08-10  Simon Josefsson  <jas@extundo.com>
76655
76656         * m4/strnlen.m4: New file.
76657
76658         * m4/strndup.m4: Don't check for strnlen declaration, done in
76659         strnlen.m4.
76660
76661 2005-08-10  Simon Josefsson  <jas@extundo.com>
76662
76663         * lib/strndup.c: Use strnlen.h.
76664
76665         * lib/strnlen.h: New file.
76666
76667 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76668
76669         * README: Typos.
76670
76671 2005-08-02  Simon Josefsson  <jas@extundo.com>
76672
76673         * modules/readline: New file.
76674
76675 2005-08-02  Simon Josefsson  <jas@extundo.com>
76676
76677         * modules/getdelim: New file.
76678
76679         * modules/getline: Rewrite, don't use getndelim2.
76680
76681 2005-08-02  Simon Josefsson  <jas@extundo.com>
76682
76683         * m4/getline.m4: Separate out getdelim stuff into separate module.
76684
76685         * m4/getdelim.m4: New file.
76686
76687 2005-08-02  Simon Josefsson  <jas@extundo.com>
76688
76689         * lib/getline.h, getline.c: Rewrite.
76690
76691         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76692
76693 2005-07-31  Bruno Haible  <bruno@clisp.org>
76694
76695         * lib/lock.h (gl_lock_initializer): New macro.
76696         (gl_lock_define_initialized): Use it.
76697         (gl_rwlock_initializer): New macro.
76698         (gl_rwlock_define_initialized): Use it.
76699         (gl_recursive_lock_initializer): New macro.
76700         (gl_recursive_lock_define_initialized): Use it.
76701
76702 2005-07-30  Karl Berry  <karl@gnu.org>
76703
76704         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76705         Report from Ben Pfaff, regarding getopt.
76706
76707 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76710         normal way.
76711         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76712         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76713         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76714         (gl_GETOPT): Use the new macros.  Most of the implementation
76715         is moved to the new macros.  This is for programs like Emacs
76716         that don't want all the functionality of gl_GETOPT.
76717
76718 2005-07-26  Bruno Haible  <bruno@clisp.org>
76719
76720         * m4/lock.m4: Update from GNU gettext.
76721
76722 2005-07-26  Bruno Haible  <bruno@clisp.org>
76723
76724         * lib/lock.h: Update from GNU gettext.
76725         * lib/lock.c: Update from GNU gettext.
76726
76727 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76730         obsolescent AC_TRY_RUN.  Include the default includes files, for
76731         'exit'.
76732
76733 2005-07-24  Bruno Haible  <bruno@clisp.org>
76734
76735         * modules/visibility: New file.
76736         * MODULES.html.sh (Misc): Add visibility.
76737
76738 2005-07-24  Bruno Haible  <bruno@clisp.org>
76739
76740         * m4/visibility.m4: New file.
76741
76742 2005-07-24  Bruno Haible  <bruno@clisp.org>
76743
76744         * doc/visibility.texi: New file.
76745
76746 2005-07-22  Bruno Haible  <bruno@clisp.org>
76747
76748         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76749         $(ALLOCA_H), redundant through BUILT_SOURCES.
76750         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76751         redundant through BUILT_SOURCES.
76752         * modules/byteswap (Makefile.am): Remove explicit dependency on
76753         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76754         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76755         $(FNMATCH_H), redundant through BUILT_SOURCES.
76756         * modules/getopt (Makefile.am): Remove explicit dependency on
76757         $(GETOPT_H), redundant through BUILT_SOURCES.
76758         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76759         redundant through BUILT_SOURCES.
76760         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76761         redundant through BUILT_SOURCES.
76762         * modules/stdbool (Makefile.am): Remove explicit dependency on
76763         $(STDBOOL_H), redundant through BUILT_SOURCES.
76764         * modules/stdint (Makefile.am): Remove explicit dependency on
76765         $(STDINT_H), redundant through BUILT_SOURCES.
76766         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76767         Remove explicit dependency on $(SYSEXITS_H).
76768         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76769
76770 2005-07-18  Simon Josefsson  <jas@extundo.com>
76771
76772         * lib/check-version.c (check_version): Accept identical versions too.
76773
76774 2005-07-18  Bruno Haible  <bruno@clisp.org>
76775
76776         * modules/lock: New file.
76777         * MODULES.html.sh (Multithreading): New section.
76778
76779 2005-07-18  Bruno Haible  <bruno@clisp.org>
76780
76781         * m4/lock.m4: New file, from GNU gettext.
76782
76783 2005-07-18  Bruno Haible  <bruno@clisp.org>
76784
76785         * lib/lock.h: New file, from GNU gettext.
76786         * lib/lock.c: New file, from GNU gettext.
76787
76788 2005-07-18  Bruno Haible  <bruno@clisp.org>
76789
76790         * lib/lock.h (gl_once_t): New type.
76791         (gl_once_define, gl_once): New macros.
76792         * lib/lock.c (fresh_once): New variable.
76793         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76794         functions.
76795
76796 2005-07-16  Simon Josefsson  <jas@extundo.com>
76797
76798         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76799         workaround, suggested by Bruno.
76800
76801 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * modules/xalloc (Depends-on): Add xalloc-die.
76804         * modules/xvasprintf (Depends-on): Add xalloc-die.
76805
76806 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76809         with a minor change.
76810
76811 2005-07-15  Bruno Haible  <bruno@clisp.org>
76812
76813         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76814         When using lib/poll.c, define poll as rpl_poll.
76815
76816 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * modules/argp (Depends-on): Remove unlocked-io.
76819
76820 2005-07-14  Derek Price  <derek@ximbiot.com>
76821
76822         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76823         for glob symlink bug.
76824
76825 2005-07-14  Bruno Haible  <bruno@clisp.org>
76826
76827         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76828         Instead, test for *_unlocked function declarations directly.
76829
76830 2005-07-11  Simon Josefsson  <jas@extundo.com>
76831
76832         * modules/size_max: New file.
76833
76834         * modules/xsize: Depend on size_max module for size_max.m4.
76835
76836 2005-07-11  Simon Josefsson  <jas@extundo.com>
76837
76838         * lib/size_max.h: New file.
76839
76840 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76843         copyright symbol and the year.
76844         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76845         (version_etc_va): Use parameterized copyright notice.
76846         Reword to conform to the current GNU coding standards.
76847
76848 2005-07-11  Karl Berry  <karl@gnu.org>
76849
76850         * doc/gnulib.texi (Quoting): new node.
76851         (Initial import): more info, from Patrice.
76852
76853 2005-07-11  Bruno Haible  <bruno@clisp.org>
76854
76855         * gnulib-tool (func_usage): Document option --avoid.
76856         (Command line options): Handle --avoid.
76857         (func_acceptable): New function.
76858         (func_modules_transitive_closure): Use it.
76859
76860 2005-07-11  Bruno Haible  <bruno@clisp.org>
76861
76862         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76863         Reported by Jim Meyering.
76864
76865 2005-07-10  Bruno Haible  <bruno@clisp.org>
76866
76867         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76868         Needed when size_t is smaller than 'unsigned int'.
76869         Reported by Paul Eggert.
76870
76871 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76872
76873         * modules/argp (Depends-on): Add unlocked-io
76874
76875 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76876
76877         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76878         block of defines.
76879
76880 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76883         fix now.
76884
76885 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76886         and Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76889         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76890
76891 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * modules/regex (Files): Add lib/regex_internal.c,
76894         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76895         (Depends-on): Add extensions.
76896         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76897
76898 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76901         pathconf.
76902         * m4/same.m4 (gl_SAME): Likewise.
76903         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76904
76905         * m4/regex.m4: Adjust to new libc regex implementation.
76906         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76907         all the .c and .h parts of (the new) regex.
76908         Quote the m4 stuff better.
76909         Check for RE_ICASE bug of old gnulib.
76910         Check for REG_STARTEND of recent libc.
76911         Rename local variables from jm_* to gl_*.
76912         Quote operand of "test -f".
76913         Say "recent enough" version of libc, not "version 2".
76914         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76915         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76916         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76917         Remove check for btowc, isascii.
76918         Require AM_LANGINFO_CODESET.
76919
76920 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76921
76922         * lib/regex.c, regex.h: Sync from libc.
76923         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76924         * lib/regexec.c:
76925         New files, synced from libc, except that regex_internal.h
76926         currently has a small porting fix.
76927
76928 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76931         regex_internal.c, regexec.c.
76932         Add regex_internal.h too, but as a comment, since the libc version
76933         is currently broken in gnulib mode.
76934
76935 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         Support programs like Emacs that use gnulib but not gettext.
76938         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76939         * modules/gettext-h: New file.
76940         * modules/gettext (Files): Remove lib/gettext.h.
76941         (Depends-on): Add gettext-h.
76942         (Makefile.am): Remove lib_SOURCES.
76943         * modules/argmatch, modules/c-stack, modules/closeout:
76944         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76945         * modules/execute, modules/file-type, modules/getaddrinfo:
76946         * modules/getopt, modules/human, modules/javacomp:
76947         * modules/javaexec, modules/mkdir-p, modules/obstack:
76948         * modules/openat, modules/pagealign_alloc, modules/pipe:
76949         * modules/quotearg, modules/regex, modules/rpmatch:
76950         * modules/unicodeio, modules/userspec, modules/version-etc:
76951         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76952         * modules/xsetenv:
76953         Depend on gettext-h, not gettext.
76954
76955 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * gnulib-tool (func_import): Add support for 'public domain' license.
76958         * modules/alloca, modules/atexit, modules/memmove:
76959         Now public domain, not GPL.
76960         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76961         * modules/realloc, modules/strerror, modules/strtod:
76962         Now LGPL, not GPL.
76963
76964 2005-07-05  Bruno Haible  <bruno@clisp.org>
76965
76966         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76967         autoconf CVS. Needed for mingw.
76968
76969 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         Remove the dependency of the strftime module on the tzset module.
76972         * modules/strftime (Depends-on): Remove dependency on tzset.
76973
76974 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         Remove the dependency of the strftime module on the tzset module.
76977         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76978         gl_FUNC_TZSET_CLOBBER.
76979
76980 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         Remove the dependency of the strftime module on the tzset module.
76983         * lib/strftime.c (my_strftime)
76984         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76985         Copy the input structure, to work around some of the bug with
76986         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76987         Solaris releases, you should also use the tzset module, but we won't
76988         require it as a dependency any more since we don't want LGPLed code
76989         to depend on GPLed code.
76990
76991 2005-07-02  Jim Meyering  <jim@meyering.net>
76992
76993         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76994         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76995         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76996         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76997
76998 2005-07-02  Jim Meyering  <jim@meyering.net>
76999
77000         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77001
77002 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77005         declares only 'struct timespec;' (!).
77006
77007 2005-07-01  Jim Meyering  <jim@meyering.net>
77008
77009         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77010         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77011         * lib/save-cwd.c, tempname.c:
77012         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77013         and don't include <sys/file.h>).
77014
77015 2005-06-29  Jim Meyering  <jim@meyering.net>
77016
77017         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77018         type name.  Use the variable name instead.
77019         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77020         Likewise.
77021
77022 2005-06-28  Simon Josefsson  <jas@extundo.com>
77023
77024         * modules/check-version (Files): Add check-version.m4.
77025
77026 2005-06-28  Simon Josefsson  <jas@extundo.com>
77027
77028         * m4/check-version.m4: New file, suggested by Jim Meyering
77029         <jim@meyering.net>.
77030
77031 2005-06-28  Simon Josefsson  <jas@extundo.com>
77032
77033         * lib/check-version.h, lib/check-version.c: New files.
77034
77035 2005-06-28  Simon Josefsson  <jas@extundo.com>
77036
77037         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77038         collision with global variable.  Better indentation.  Don't
77039         increment buffer pointer beyond buffer end.  Based on comments
77040         from Paul Eggert <eggert@cs.ucla.edu>.
77041
77042         * lib/base64.h: Indent.
77043
77044 2005-06-28  Simon Josefsson  <jas@extundo.com>
77045
77046         * doc/gnulib.texi (Library version handling): New section.
77047
77048 2005-06-28  Jim Meyering  <jim@meyering.net>
77049
77050         * check-module (find_included_lib_files): Hard-code another
77051         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77052         but modules/fts-lgpl (correctly) does not list those files.
77053
77054         * modules/canonicalize (Files): Add lib/pathmax.h.
77055
77056 2005-06-25  Simon Josefsson  <jas@extundo.com>
77057
77058         * modules/check-version: New file.
77059
77060 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77063         initializer of struct addrinfo, as an indication that we don't
77064         care how many members the structure has.
77065
77066 2005-06-24  Derek Price  <derek@ximbiot.com>
77067         and Bruno Haible  <bruno@clisp.org>
77068
77069         Remove stat module & update lstat.
77070         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77071         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77072         * m4/stat.m4: Remove this file.
77073
77074 2005-06-24  Derek Price  <derek@ximbiot.com>
77075         and Bruno Haible  <bruno@clisp.org>
77076
77077         Remove stat module & update lstat.
77078         * lib/stat.c: Remove this file...
77079         (slash_aware_lstat): ...moving this content and its support...
77080         * lib/lstat.c (rpl_lstat): ...into here.
77081         * lib/lstat.h: New file.
77082
77083 2005-06-24  Derek Price  <derek@ximbiot.com>
77084         and Bruno Haible  <bruno@clisp.org>
77085
77086         Remove stat module & update lstat.
77087         * config/srclist.txt (libc sources): Remove stat.
77088
77089 2005-06-24  Derek Price  <derek@ximbiot.com>
77090         and Bruno Haible  <bruno@clisp.org>
77091
77092         Remove stat module & update lstat.
77093         * MODULES.html.sh (stat): Remove.
77094         * MODULES.html: Regenerated.
77095         * modules/lstat (Description): Correct function name.
77096         (Files): Add "lstat.h".
77097         (Depends-on): Remove stat, add xalloc, stat-macros.
77098         * modules/stat: Remove this file.
77099         (Include): Add "lstat.h", remove <sys/stat.h>.
77100
77101 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77104         (ranged_convert): Don't save conversion in a temporary struct.
77105         This causes a warning with GCC 4.0.0, and anyway in the typical
77106         case it's not worth the extra 100 bytes or so of code.
77107         (ranged_convert, __mktime_internal): When calling a function via a
77108         pointer P, use P () rather than (*P) (), as we now assume C89 or
77109         better.
77110
77111 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77114         "who -r" failed to give output.  Problem reported by Tim Waugh.
77115
77116         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77117         (xcalloc): Use it to avoid needless tests.
77118         Problem reported by Jim Meyering.
77119
77120 2005-06-20  Derek Price  <derek@ximbiot.com>
77121
77122         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77123         unnecessary for Autoconfs > 2.59c.
77124
77125 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77126
77127         * lib/argp.h (__option_is_short): Check upper limit of
77128         __key. Isprint() requires its argument to have the value
77129         of an unsigned char or EOF.
77130
77131 2005-06-16  Jim Meyering  <jim@meyering.net>
77132
77133         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77134         when either N or S is zero.
77135
77136 2005-06-16  Derek Price  <derek@ximbiot.com>
77137
77138         * m4/bison.m4: Declare YACC & YFLAGS precious.
77139
77140 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77141
77142         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77143         multibyte string or pattern, fall back on unibyte matching.
77144         Problem reported by James Youngman.
77145
77146 2005-06-08  Bruno Haible  <bruno@clisp.org>
77147
77148         * modules/csharpcomp: New file.
77149         * MODULES.html.sh (C#): Add csharpcomp.
77150
77151 2005-06-08  Bruno Haible  <bruno@clisp.org>
77152
77153         * m4/csharpcomp.m4: New file, from GNU gettext.
77154
77155 2005-06-08  Bruno Haible  <bruno@clisp.org>
77156
77157         * lib/csharpcomp.h: New file, from GNU gettext.
77158         * lib/csharpcomp.c: New file, from GNU gettext.
77159         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77160
77161 2005-06-08  Bruno Haible  <bruno@clisp.org>
77162
77163         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77164         warning on mingw.
77165
77166 2005-06-07  Derek Price  <derek@ximbiot.com>
77167
77168         Sync from CVS.
77169         * lib/glob_.h: Indent nested #ifdef.
77170
77171 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         Sync from coreutils.
77174         Use "file name" when talking about file names, instead of "filename"
77175         or "path", as per the GNU coding standards.
77176         * lib/mkdir-p.c: Renamed from makepath.c.
77177         (make_dir_parents): Renamed from make_path.  All callers changed.
77178         * lib/mkdir-p.h: Likewise.  All includers changed.
77179         * lib/filenamecat.c: Renamed from path-concat.c.
77180         (file_name_concat): Renamed from path_concat.  All callers changed.
77181         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77182         * lib/filenamecat.h: Likewise.  All includers changed.
77183         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77184         in comments or local variable names.
77185         * lib/basename.c: Likewise.
77186         * lib/canonicalize.c, canonicalize.h: Likewise.
77187         * lib/dirname.c, dirname.h: Likewise.
77188         * lib/euidaccess.c: Likewise.
77189         * lib/exclude.c: Likewise
77190         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77191         * lib/fsusage.c, fsuage.h: Likewise.
77192         * lib/fts.c, fts_.h: Likewise.
77193         * lib/getcwd.c: Likewise.
77194         * lib/getloadavg.c: Likewise.
77195         * lib/mkstemp.c: Likewise.
77196         * lib/mountlist.c, mountlist.h: Likewise.
77197         * lib/openat.c, openat.h: Likewise.
77198         * lib/readlink-stub.c: Likewise.
77199         * lib/readutmp.c, readutmp.h: Likewise.
77200         * lib/rename.c: Likewise.
77201         * lib/rmdir.c: Likewise.
77202         * lib/same.c: Likewise.
77203         * lib/savedir.c: Likewise.
77204         * lib/stripslash.c: Likewise.
77205         * lib/tempname.c: Likewise.
77206         * lib/xreadlink.c: Likewise.
77207         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77208         All uses changed.
77209         * lib/exclude.h: Likewise.
77210
77211         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77212         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77213         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77214         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77215         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77216         files have been getting away with it for years (MORE/BSD 4.3
77217         is extinct now).
77218         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77219         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77220
77221         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77222         Define to 256, not 255, as per modern POSIX.
77223
77224 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         Sync from coreutils.
77227         Use "file name" when talking about file names, instead of "filename"
77228         or "path", as per the GNU coding standards.
77229         * MODULES.html.sh: mkdir-p renamed from makepath.
77230         filenamecat renamed from path-concat.
77231         * modules/filenamecat: Renamed from modules/path-concat.
77232         (Files): filenamecat.h and filenamecat.c renamed from
77233         path-concat.h and path-concat.c.
77234         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77235         (Include): filenamecat.h, not path-concat.h.
77236         * modules/mkdir-p: Renamed from modules/makepath.
77237         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77238         makepath.c.
77239         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77240         (Include): mkdir-p.h, not makepath.h.
77241
77242 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         Sync from coreutils.
77245         * m4/mkdir-p.m4: Renamed from makepath.m4.
77246         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77247         Rename files from makepath.c to mkdir-p.c, and from
77248         makepath.h to mkdir-p.h.
77249         * m4/filenamecat.m4: Renamed from path-concat.m4.
77250         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77251         Rename files from path-concat.c to filenamecat.c,
77252         and from path-concat.h to filenamecat.h.
77253         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77254         "file name" in local variables or comments.
77255         * m4/rename.m4: Likewise.
77256
77257 2005-06-01  Bruno Haible  <bruno@clisp.org>
77258
77259         * modules/csharpexec: New file.
77260         * MODULES.html.sh (C#): New section.
77261
77262 2005-06-01  Bruno Haible  <bruno@clisp.org>
77263
77264         * m4/csharp.m4: New file, from GNU gettext.
77265         * m4/csharpexec.m4: New file, from GNU gettext.
77266
77267 2005-06-01  Bruno Haible  <bruno@clisp.org>
77268
77269         * lib/csharpexec.h: New file, from GNU gettext.
77270         * lib/csharpexec.c: New file, from GNU gettext.
77271         * lib/csharpexec.sh.in: New file, from GNU gettext.
77272
77273 2005-05-31  Derek Price  <derek@ximbiot.com>
77274             Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         Sync from cvs.
77277         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77278
77279 2005-05-31  Derek Price  <derek@ximbiot.com>
77280             Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         Sync from cvs.
77283         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77284
77285 2005-05-29  Derek Price  <derek@ximbiot.com>
77286
77287         * config/srclist.txt (glob_.h, glob.c): Add these files.
77288
77289 2005-05-29  Derek Price  <derek@ximbiot.com>
77290
77291         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77292         * modules/glob: New file.
77293         * modules/getlogin_r: Add link to POSIX spec in description.
77294
77295 2005-05-29  Derek Price  <derek@ximbiot.com>
77296             Paul Eggert  <eggert@cs.ucla.edu>
77297
77298         * m4/glob.m4: New file.
77299
77300 2005-05-29  Derek Price  <derek@ximbiot.com>
77301             Paul Eggert  <eggert@cs.ucla.edu>
77302
77303         * lib/glob_.h, lib/glob.c: New files.
77304
77305 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77308         * modules/fts-lgpl (Depends-on): Remove gettext.
77309
77310 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77313         and don't require gt_INTTYPES_PRI.
77314
77315 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77316
77317         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77318
77319         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77320         the configuration hassle isn't worth it.
77321         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77322         (LONGEST_MODIFIER, PRIuMAX): Remove.
77323
77324 2005-05-27  Bruno Haible  <bruno@clisp.org>
77325
77326         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77327
77328 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77331         _POSIX_PTHREAD_SEMANTICS for Solaris.
77332
77333 2005-05-25  Derek Price  <derek@ximbiot.com>
77334
77335         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77336
77337 2005-05-25  Derek Price  <derek@ximbiot.com>
77338             Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77341         * lib/getlogin_r.c, getlogin_r.h: New files.
77342
77343 2005-05-25  Bruno Haible  <bruno@clisp.org>
77344             Derek Price  <derek@ximbiot.com>
77345
77346         * lib/getlogin_r.h: Simplify API documentation.
77347
77348 2005-05-23  Derek Price  <derek@ximbiot.com>
77349
77350         * modules/minmax (Files): Add m4/minmax.m4.
77351         (configure.ac): Add gl_MINMAX.
77352
77353 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77356         so that unistd-safer.h (GPL'ed code) need not be included.
77357
77358 2005-05-22  Bruno Haible  <bruno@clisp.org>
77359
77360         * m4/minmax.m4: New file.
77361         Based on a patch by Derek Price <derek@ximbiot.com>.
77362
77363 2005-05-22  Bruno Haible  <bruno@clisp.org>
77364
77365         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77366         (INT64_MIN): Fix definition.
77367         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77368
77369         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77370         NEED_SIGNED_INT_TYPES.
77371
77372         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77373         HAVE_SYSTEM_INTTYPES.
77374
77375 2005-05-22  Bruno Haible  <bruno@clisp.org>
77376
77377         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77378         Also include <sys/param.h> if it defines MIN, MAX.
77379         Based on a patch by Derek Price <derek@ximbiot.com>.
77380
77381 2005-05-21  Jim Meyering  <jim@meyering.net>
77382
77383         * modules/fts (Files): Add m4/inttypes-pri.m4.
77384         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77385
77386 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         New fts module.
77389         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77390         (setup_dir, free_dir): New functions.
77391         (enter_dir, leave_dir): Define trivial
77392         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77393         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77394         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77395         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77396         Move to fts-cycle.c.
77397         (fts_open): Use setup_dir.
77398         (fts_close): Use free_dir.
77399         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77400         This adds a label and some gotos, but the alternatives were messier.
77401         Check for memory allocation failure when entering a dir.
77402         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77403         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77404         (FTS): New member fts_cycle, that is a union that contains the
77405         old active_dir_ht and cycle_state.  All uses changed to mention
77406         fts_cycle.ht and fts_cycle.state.
77407         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77408         fts.c, with the following changes:
77409         (setup_dir, free_dir): New functions.
77410         (enter_dir): Now returns bool.  Return true if successful, false
77411         if memory exhausted.  All callers changed.
77412         Do not bother partly cleaning up on
77413         memory allocation failure; that is free_dir's job.
77414         However, free ad if hash_insert fails, to avoid memory leak.
77415         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77416         fts->fts_options to see which union member to use.
77417
77418 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77421         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77422
77423 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77426
77427 2005-05-20  Jim Meyering  <jim@meyering.net>
77428
77429         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77430         Now a macro, to pacify GCC.
77431
77432 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77433
77434         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77435         of -1.
77436
77437 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77438
77439         * lib/chown.c (rpl_chown): Return -1 on failure.
77440
77441 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77444         Don't check for stddef.h.
77445         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77446         don't use its results.
77447         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77448         since we include them unconditionally.  Don't require
77449         AM_STDBOOL_H, since stdbool is a prerequisite.
77450         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77451         since we assume C89 or better.
77452         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77453         as we don't use their results.
77454         Don't check for fchdir, memmove, memset, strrchr, as we use
77455         them unconditionally.
77456         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77457         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77458
77459 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77462         Include <stddef.h> unconditionally, since we assume C89 now.
77463         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77464         * lib/fts.c: Include fts_.h first, to check interface.
77465         Do not include intprops.h; no longer needed.
77466         Include cycle-check.h and hash.h, since fts_.h no longer does.
77467         Remove unnecessary casts of closedir to void.
77468         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77469         decide whether to decrement nlinks.
77470         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77471         (FTS): Use struct hash_table * instead of Hash_table, so that
77472         we no longer need to include hash.h here.
77473
77474 2005-05-18  Jim Meyering  <jim@meyering.net>
77475
77476         * modules/dirfd (License): Change to LGPL.  Most of the code
77477         is already in the public domain.
77478
77479 2005-05-18  Jim Meyering  <jim@meyering.net>
77480
77481         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77482         Reported by Yoann Vandoorselaere.
77483
77484 2005-05-17  Jim Meyering  <jim@meyering.net>
77485
77486         * m4/fts.m4: New file, from coreutils.
77487
77488 2005-05-17  Jim Meyering  <jim@meyering.net>
77489
77490         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77491
77492 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77493
77494         Sync from coreutils.
77495         * m4/unlinkdir.m4: New file.
77496
77497 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         Sync from coreutils.
77500         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77501         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77502         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77503         White space changes only.
77504         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77505         special.
77506         * lib/yesno.c: Include getline.h, not ctype.h.
77507         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77508         Use getline to remove arbitrary restriction on response length.
77509
77510 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * config/srclist-update: Spell out "Street" in FSF postal
77513         mail address; this is the style the FSF seems to prefer.
77514
77515         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77516         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77517         this updates FSF postal mail address.
77518
77519         Sync from coreutils.
77520         * modules/unlinkdir: New file.
77521         * modules/yesno (Depends-on): Add getline.
77522         * MODULES.html.sh (File system functions): Add unlinkdir.
77523
77524 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77527         lib/strsep.h:
77528         Change the initial comment to refer to GPL, not LGPL.
77529         gnulib-tool will change it to LGPL as needed.
77530
77531         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77532         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77533         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77534         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77535         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77536         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77537         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77538         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77539         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77540         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77541         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77542         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77543         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77544         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77545         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77546         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77547         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77548         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77549         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77550         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77551         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77552         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77553         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77554         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77555         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77556         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77557         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77558         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77559         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77560         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77561         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77562         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77563         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77564         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77565         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77566         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77567         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77568         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77569         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77570         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77571         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77572         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77573         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77574         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77575         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77576         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77577         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77578         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77579         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77580         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77581         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77582         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77583         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77584         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77585         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77586         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77587         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77588         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77589         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77590         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77591         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77592         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77593         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77594         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77595         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77596         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77597         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77598         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77599         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77600         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77601         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77602         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77603         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77604         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77605         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77606         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77607         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77608         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77609         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77610         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77611         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77612         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77613         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77614         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77615         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77616         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77617         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77618         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77619         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77620         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77621         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77622         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77623         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77624         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77625         lib/yesno.c, lib/yesno.h:
77626         Update FSF postal mail address.
77627
77628 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77631         tests/test-memmem.c, tests/test-stpncpy.c:
77632         Update FSF postal mail address.
77633
77634 2005-05-13  Bruno Haible  <bruno@clisp.org>
77635
77636         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77637         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77638         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77639         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77640         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77641         Add support for 64-bit integers in the MSVC compiler.
77642
77643 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77644
77645         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77646
77647 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77648
77649         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77650
77651 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * doc/getdate.texi (General date syntax): Don't say that date
77654         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77655         Problem reported by Nic Ferrier.
77656
77657 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77658
77659         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77660         specified in ai_socktype. Fix invalid ai_protocol
77661         check. ai_protocol is usually set to 0 or depending on
77662         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77663         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77664         ai_socktype / ai_protocol in the returned addrinfo structure.
77665
77666 2005-05-10  Simon Josefsson  <jas@extundo.com>
77667
77668         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77669         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77670
77671 2005-05-10  Karl Berry  <karl@gnu.org>
77672
77673         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77674         (from http://www.gnu.org/licenses).
77675         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77676         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77677         fdl.texi suffices.
77678
77679 2005-05-10  Karl Berry  <karl@gnu.org>
77680
77681         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77682         (COPYING.DOC): remove.
77683
77684         * config/srclist-update: new FSF address.
77685
77686 2005-05-10  Derek Price  <derek@ximbiot.com>
77687
77688         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77689         possible.
77690
77691 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77692             Bruno Haible  <bruno@clisp.org>
77693
77694         * modules/inet_ntop: New file.
77695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77696         inet_ntop.
77697
77698 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77699             Bruno Haible  <bruno@clisp.org>
77700
77701         * m4/inet_ntop.m4: New file.
77702
77703 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77704             Bruno Haible  <bruno@clisp.org>
77705
77706         * lib/inet_ntop.h: New file.
77707         * lib/inet_ntop.c: New file, from glibc with modifications.
77708
77709 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * modules/time_r (License): Change to LGPL.
77712         * modules/extensions (License): Change to LGPL.  Actually,
77713         the license is more permissive than that, but currently gnulib-tool
77714         doesn't know how to handle more-permissive licenses.
77715
77716         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77717         Problem reported by Dave Love.
77718
77719 2005-05-08  Jim Meyering  <jim@meyering.net>
77720
77721         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77722         blank.
77723
77724 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * modules/argmatch (Depends-on): Add stdbool.
77727         * modules/backupfile (Depends-on): Likewise.
77728         * modules/chdir-long (Depends-on): Likewise.
77729         * modules/closeout (Depends-on): Likewise.
77730         * modules/cycle-check (Depends-on): Likewise.
77731         * modules/dirname (Depends-on): Likewise.
77732         * modules/fnmatch (Depends-on): Likewise.
77733         * modules/fsusage (Depends-on): Likewise.
77734         * modules/fwriteerror (Depends-on): Likewise.
77735         * modules/getcwd (Depends-on): Likewise.
77736         * modules/getloadavg (Depends-on): Likewise.
77737         * modules/hard-locale (Depends-on): Likewise.
77738         * modules/makepath (Depends-on): Likewise.
77739         * modules/mountlist (Depends-on): Likewise.
77740         * modules/nanosleep (Depends-on): Likewise.
77741         * modules/posixtm (Depends-on): Likewise.
77742         * modules/quotearg (Depends-on): Likewise.
77743         * modules/readtokens (Depends-on): Likewise.
77744         * modules/readtokens0 (Depends-on): Likewise.
77745         * modules/readutmp (Depends-on): Likewise.
77746         * modules/save-cwd (Depends-on): Likewise.
77747         * modules/strftime (Depends-on): Likewise.
77748         * modules/userspec (Depends-on): Likewise.
77749         * modules/utimecmp (Depends-on): Likewise.
77750         * modules/xgetcwd (Depends-on): Likewise.
77751         * modules/xnanosleep (Depends-on): Likewise.
77752         * modules/xstrtod (Depends-on): Likewise.
77753         * modules/yesno (Depends-on): Likewise.
77754
77755 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77756
77757         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77758         needless checks.
77759
77760 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77761
77762         Merge from coreutils.  Among other things,
77763         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77764         * lib/fd-safer.c: New file.
77765         * lib/fcntl-safer.h, open-safer.c: Remove.
77766         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77767         * lib/dup-safer.c: Include unistd-safer.h first.
77768         Don't include errno.h.
77769         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77770         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77771         * lib/file-type.c: Rely on file-type.h change.
77772         * lib/getloadavg.c: Include unistd-safer.h.
77773         (getloadavg): Use safer open.
77774         * lib/getusershell.c: Include "stdio-safer.h".
77775         (getusershell): Use safer fopen.
77776         * lib/long-options.c (long_options): Use NULL rather than 0.
77777         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77778         'free'.
77779         * lib/modechange.c: Likewise.
77780         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77781         (MODE_DONE): New constant.
77782         (struct mode_change): Remove 'next' member.
77783         (make_node_op_equals): New function; like the old one of the
77784         same name, except it allocates an array.
77785         (mode_compile, mode_create_from_ref): Use it.
77786         (mode_compile): Allocate result as an array, not a linked list.
77787         Parse octal string ourself, so that we catch mistakes like "+0".
77788         (mode_adjust): Arg is an array, not a linked list.
77789         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77790         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77791         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77792         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77793         Remove.  This is now stat-macros.h's job.
77794         (talloc): Remove.  All callers replaced by xalloc, so that
77795         our invokers don't have to worry about reporting memory failures.
77796         (make_node_op_equals): Remove.
77797         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77798         New constants.
77799         (struct mode_change): Moved here from modechange.h.
77800         (mode_append_entry): Remove.
77801         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77802         apps to have incorrect behavior.  Use simpler algorithm for head
77803         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77804         Detect more invalid usages rather than having somewhat-random behavior.
77805         Don't insert an "a=" action, as that leads to incorrect behavior.
77806         (mode_compile, mode_create_from_ref): Return NULL on error instead
77807         of an enum, since now there's only one way to have an error.  All
77808         callers changed.
77809         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77810         at the correct time.  Simplify calculation of "+u" and its ilk.
77811         Don't mishandle "+X".
77812         (mode_free): Remove "register" and localize decls.
77813         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77814         (struct mode_change): Move to modechange.c; callers don't
77815         need to see this stuff.
77816         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77817         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77818         (mode_change, mode_adjust): Reflect the new signatures noted above.
77819         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77820         that might redefine system include files.
77821         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77822         (my_usleep): Use NULL rather than (void *) 0.
77823         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77824         Use siginterrupt to specify that system calls should be interrupted.
77825         (rpl_nanosleep): Move initialization of suspended closer to call of
77826         my_usleep.
77827         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77828         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77829         (desirable_utmp_entry): New function.
77830         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77831         using x2nrealloc, to simplify logic.
77832         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77833         size calculation.  Do not assume utmp file is a regular file.
77834         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77835         (READ_UTMP_CHECK_PIDS): New constant.
77836         * lib/save-cwd.c: Include unistd-safer.h.
77837         (save_cwd): Use fd_safer.
77838         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77839         [!_LIBC] Include "stat-macros.h" instead.
77840         * lib/unistd-safer.h (fd_safer): New decl.
77841
77842 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77843
77844         * modules/getloadavg (Depends-on): Add unistd-safer.
77845         * modules/getusershell (Depends-on): Add stdio-safer.
77846         * modules/lstat (Depends-on): Remove xalloc.
77847         * modules/mkstemp (Depends-on): Add stat-macros.
77848         * modules/modechange (Depends-on): Remove xstrtol.
77849         Add stat-macros, xalloc.
77850         * modules/save-cwd (Depends-on): Add unistd-safer.
77851         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77852         * modules/unistd-safer (Files): Add lib/fd-safer.c
77853         (Makefile.am): Remove lib_SOURCES.
77854
77855         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77856         Remove fcntl-safer; unistd-safer supersedes it.
77857
77858 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77859
77860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77861         AC_HEADER_STAT.
77862         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77863         (gl_PREREQ_CHOWN): Remove.
77864         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77865         it.  Don't require AC_HEADER_STAT.
77866         (gl_PREREQ_LSTAT): Remove.
77867         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77868         Don't require AC_HEADER_STAT.
77869         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77870         (gl_PREREQ_RMDIR): Remove.
77871         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77872         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77873         the stat-macros module a prerequisite.
77874         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77875         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77876         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77877         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77878         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77879         variable names.
77880         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77881         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77882         variable prefixes.
77883         * m4/fcntl-safer.m4: Remove.
77884         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77885         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77886         Invoke gl_PREREQ_FD_SAFER.
77887         (gl_PREREQ_FD_SAFER): New macro.
77888         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77889         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77890         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77891         Remove duplicate call to AC_LIBOBJ(readutmp).
77892         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77893
77894         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77895         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77896
77897 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * MODULES.html.sh (Misc): Add byteswap.
77900
77901 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77902
77903         * modules/getcwd (Depends-on): Add extensions.
77904         * modules/openat (Depends-on): Likewise.
77905
77906 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77907
77908         * modules/byteswap: New file.
77909
77910 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77911
77912         * m4/byteswap.m4: New file.
77913
77914 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77915
77916         * lib/byteswap_.h: New file.
77917
77918 2005-04-25  Karl Berry  <karl@gnu.org>
77919
77920         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77921
77922 2005-04-25  Albert Chin  <china@thewrittenword.com>
77923
77924         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77925         Toolkit C bug.
77926
77927 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77928
77929         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77930         (func_ln_if_changed): Remove forcibly for no error message
77931         in case file does not exist.
77932
77933 2005-04-19  Simon Josefsson  <jas@extundo.com>
77934
77935         * gnulib-tool (Options): Make --symlink mean --symbolic.
77936
77937 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77938
77939         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77940
77941 2005-04-16  Simon Josefsson  <jas@extundo.com>
77942
77943         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77944
77945 2005-04-15  Simon Josefsson  <jas@extundo.com>
77946
77947         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77948
77949 2005-04-15  Simon Josefsson  <jas@extundo.com>
77950
77951         * gnulib-tool: Rename --symlink to --symbolic.
77952
77953 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77954
77955         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77956         symbolic links to files instead of copying/moving.  Add --aux-dir,
77957         specifying directory relative --dir where auxiliary build tools
77958         are placed.
77959
77960 2005-04-14  Bruno Haible  <bruno@clisp.org>
77961
77962         * modules/allocsa (License): Change to LGPL.
77963         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77964
77965 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77968         that "UTC +1 second" continues to work.  Problem reported
77969         by Dmitry V. Levin.
77970         (relunit_snumber): New rule.
77971         (relunit): Use it.
77972
77973 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77974
77975         * lib/getdate.y (universal_time_zone_table): New constant.
77976         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77977         universal_time_zone_table.
77978         (lookup_zone): Prefer universal_time_zone_table to
77979         local_time_zone_table, so that "GMT" time stamps are allowed in
77980         London during the summer.  Problem reported by Ian Abbott.
77981
77982 2005-04-12  Jim Meyering  <jim@meyering.net>
77983
77984         * lib/human.c (humblock): Set *options even when returning due to
77985         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77986         warning from gcc-4.
77987
77988 2005-04-09  Jim Meyering  <jim@meyering.net>
77989
77990         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77991         -Wuninitialized: initialize tm0.tm_year.
77992
77993 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77996         count, since there's no maximum.  All uses changed.
77997         Add member dsts_seen.
77998         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77999         not being INT_MAX.
78000         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78001         Use pc_rels_seen to decide whther a date is absolute.
78002
78003         * lib/getdate.y (number): Don't overwrite year.
78004         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78005         check.
78006
78007 2005-04-02  Simon Josefsson  <jas@extundo.com>
78008
78009         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78010         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78011
78012 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78013
78014         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78015         where no absolute path name can be longer than PATH_MAX.
78016
78017 2005-03-27  Jim Meyering  <jim@meyering.net>
78018
78019         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78020
78021 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78024         "one's complement" -> "ones' complement" in comment, as per Knuth.
78025         "value of type" -> "type or expression" in comment.
78026         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78027
78028 2005-03-26  Jim Meyering  <jim@meyering.net>
78029
78030         Comment nits.
78031         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78032         Correct typos: s/or/of/.
78033
78034 2005-03-26  Jim Meyering  <jim@meyering.net>
78035
78036         * modules/check-include-files: Move to ../ and rename to...
78037         * check-module: ...this.
78038
78039 2005-03-25  Jim Meyering  <jim@meyering.net>
78040
78041         * modules/xvasprintf (Files): Add xalloc.h.
78042
78043 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * modules/gettext (Files): config/config.rpath ->
78046         build-aux/config.rpath
78047         * modules/iconv (Files): Likewise.
78048         Problem reported by Oskar Liljeblad.
78049
78050 2005-03-23  Jim Meyering  <jim@meyering.net>
78051
78052         * modules/check-include-files: New script to check for
78053         missing dependencies, multiple includes, etc.
78054
78055         * modules/c-strtold (Depends-on): Add xalloc.
78056         * modules/c-strtod (Depends-on): Add xalloc.
78057         * modules/hash (Depends-on): Add xalloc.
78058         (Files): Remove lib/xalloc.h.
78059
78060         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78061         * modules/userspec (Files): Add lib/inttostr.h.
78062
78063 2005-03-23  Jim Meyering  <jim@meyering.net>
78064
78065         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78066
78067 2005-03-22  Jim Meyering  <jim@meyering.net>
78068
78069         * modules/stat-macros: New module.
78070         * modules/canonicalize, modules/euidaccess, modules/file-type,
78071         * modules/filemode, modules/lchown, modules/makepath,
78072         * modules/rmdir, modules/stat: Depend on new stat-macros module
78073         rather than listing lib/stat-macros.h manually.
78074         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78075
78076 2005-03-22  Jim Meyering  <jim@meyering.net>
78077
78078         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78079
78080 2005-03-22  Bruno Haible  <bruno@clisp.org>
78081
78082         * config/srclist.txt: Replace target directory 'config' with
78083         'build-aux'.
78084         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78085         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78086         ../build-aux/.
78087
78088 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * modules/chdir-long (Depends-on): Add mempcpy.
78091
78092         * modules/acl, modules/backupfile, modules/c-strtod,
78093         modules/c-strtold, modules/canon-host, modules/canonicalize,
78094         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78095         modules/exclude, modules/exitfail, modules/file-type,
78096         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78097         modules/getdate, modules/getline, modules/getpagesize,
78098         modules/getpass, modules/getugroups, modules/group-member,
78099         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78100         modules/inttostr, modules/long-options, modules/makepath,
78101         modules/md5, modules/memcasecmp, modules/memcoll,
78102         modules/modechange, modules/mountlist, modules/path-concat,
78103         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78104         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78105         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78106         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78107         modules/strftime, modules/strndup, modules/strverscmp,
78108         modules/timespec, modules/unlocked-io, modules/userspec,
78109         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78110         modules/yesno:
78111         Remove lib_SOURCES line from Makefile.am section, as this is now
78112         done automatically by the corresponding Autoconf macro.
78113
78114 2005-03-21  Jim Meyering  <jim@meyering.net>
78115
78116         Changes imported from coreutils.
78117
78118         * lib/cycle-check.c: Don't include xalloc.h.
78119
78120         * lib/path-concat.c: Don't include assert.h.
78121         (path_concat): Remove assertion that would have triggered
78122         for ABASE starting with more than one slash.
78123         Reported by Andreas Schwab.
78124
78125         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78126         properly when ABASE is an absolute file name.
78127         Correct the description of this function.
78128         Include <assert.h>.
78129         Add an assertion and a test driver.
78130         This fixes a bug introduced on 2004-07-02.
78131         Andreas Schwab reported the resulting failure of cp --parents:
78132         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78133
78134 2005-03-21  Jim Meyering  <jim@meyering.net>
78135
78136         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78137         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78138
78139 2005-03-21  Jim Meyering  <jim@meyering.net>
78140         and  Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78143         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78144         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78145         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78146         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78147         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78148         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78149         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78150         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78151         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78152         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78153         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78154         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78155         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78156         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78157         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78158         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78159         for these modules.
78160
78161 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78162
78163         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78164         (which shouldn't happen), generate nothing instead of returning 0
78165         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78166
78167 2005-03-16  Bruno Haible  <bruno@clisp.org>
78168
78169         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78170         HAVE_LONGLONG_64BIT.
78171
78172 2005-03-16  Bruno Haible  <bruno@clisp.org>
78173
78174         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78175         HAVE_LONGLONG_64BIT.
78176
78177 2005-03-16  Bruno Haible  <bruno@clisp.org>
78178
78179         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78180         HAVE_LONGLONG_64BIT.
78181
78182 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78185         reliably distinguish strftime failure from empty output on POSIX
78186         hosts.
78187
78188 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78191         (iconv_string): Don't guess a size-zero buffer, as that might cause
78192         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78193         result would be 'too large', where 'too large' is (heuristically)
78194         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78195         overflow concerns.  This will prevent some unwanted malloc failures
78196         when the inputs are very large.
78197
78198 2005-03-15  Karl Berry  <karl@gnu.org>
78199
78200         * config/srclist.txt (config.rpath): from gettext.
78201         * config/config.rpath: update.
78202
78203 2005-03-15  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78206         to 'negate'.
78207
78208         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78209         variable.
78210
78211         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78212         results.
78213
78214 2005-03-14  Simon Josefsson  <jas@extundo.com>
78215
78216         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78217         <fx@gnu.org>.
78218
78219 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78222         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78223         intprops.h.
78224         * lib/strtol.c: Likewise.
78225
78226 2005-03-14  Jim Meyering  <jim@meyering.net>
78227
78228         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78229         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78230         to be nonzero so that we (and caller) can detect the difference
78231         between a valid zero-length expansion and an error return, even
78232         when the underlying strftime fails before writing anything into
78233         that location.
78234
78235 2005-03-14  Bruno Haible  <bruno@clisp.org>
78236
78237         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78238         Update from GNU gettext 0.14.3.
78239
78240 2005-03-10  Jim Meyering  <jim@meyering.net>
78241
78242         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78243
78244 2005-03-10  Jim Meyering  <jim@meyering.net>
78245
78246         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78247         so that this module works on systems without fchdir.
78248
78249 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         Factor int-properties macros into a single file, except for
78252         glibc-related files.
78253         * lib/intprops.h: New file.
78254         * lib/getloadavg.c: Include it instead of limits.h.
78255         (INT_STRLEN_BOUND): Remove.
78256         * lib/human.c: Include intprops.h.
78257         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78258         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78259         302/1000.
78260         * lib/inttostr.h: Include intprops.h instead of limits.h.
78261         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78262         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78263         for consistency with intprops.h.
78264         (time_t_is_integer, twos_complement_arithmetic): Use them.
78265         * lib/sig2str.h: Include <signal.h>, intprops.h.
78266         (INT_STRLEN_BOUND): Remove.
78267         * lib/strftime.c (TYPE_SIGNED): Remove.
78268         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78269         * lib/strtol.c: Adjust comments to match intprops.h.
78270         * lib/userspec.c: Include intprops.h.
78271         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78272         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78273         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78274         instead of rolling our own expressions.
78275         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78276
78277         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78278         instead of int.
78279         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78280         the right thing even if adding 1900 would overflow.  Similarly
78281         for tm_mon + 1 and tm_yday + 1.
78282         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78283         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78284         (DO_SIGNED_NUMBER): New macro.
78285         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78286
78287 2005-03-07  Bruno Haible  <bruno@clisp.org>
78288
78289         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78290
78291 2005-03-07  Bruno Haible  <bruno@clisp.org>
78292
78293         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78294
78295 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78296
78297         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78298         (func_import): Only replace files via --import when they have actually
78299         changed.
78300
78301 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78302
78303         * m4/mmap-anon.m4: New file.
78304         * m4/pagealign_alloc.m4: New file.
78305
78306 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78307             Bruno Haible  <bruno@clisp.org>
78308
78309         * modules/pagealign_alloc: New file.
78310         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78311
78312 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78313             Bruno Haible  <bruno@clisp.org>
78314
78315         * lib/pagealign_alloc.h: New file.
78316         * lib/pagealign_alloc.c: New file.
78317
78318 2005-03-03  Bruno Haible  <bruno@clisp.org>
78319
78320         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78321         Use an all-permissive copyright notice, recommended by RMS.
78322
78323 2005-03-02  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78326         of AIX, the replacement has to be done only after <string.h> is
78327         included, therefore not in config.h. stpncpy.h does the replacement,
78328         and stpncpy.c uses it.
78329
78330 2005-03-02  Bruno Haible  <bruno@clisp.org>
78331
78332         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78333         stpncpy.c uses it.
78334
78335 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78336
78337         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78338         The workaround isn't strictly needed for POSIX conformance, and
78339         it's too much of a pain to configure and maintain.  We'll ask
78340         people to fix their kernels instead.
78341         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78342         (NANOSLEEP_BUG_WORKAROUND): Remove.
78343         (xnanosleep): Remove the workaround.
78344
78345 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78348         Reported by Derek Price.
78349         (Include): Add "timespec.h".
78350
78351         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78352
78353 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78356         to detect nanosleep bug.
78357
78358 2005-03-01  Bruno Haible  <bruno@clisp.org>
78359
78360         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78361
78362 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78363
78364         * modules/gethrxtime: New file.
78365         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78366         (Depends-on): Add gethrxtime.
78367         (configure.ac): Add gl_XNANOSLEEP.
78368         (Makefile.am): Remove lib_SOURCES line.
78369
78370 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78373         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78374
78375 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78376
78377         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78378         * lib/timespec.h (gettime): Return void, since it always
78379         succeeds now.  All uses changed.
78380         * lib/gettime.c (gettime): Likewise.
78381         [HAVE_NANOTIME]: Prefer nanotime.
78382         Assume gettimeofday succeeds, as POSIX requires.
78383         Assime time () succeeds, since other code already does.
78384         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78385         (timespec_subtract): Remove.
78386         (NANOSLEEP_BUG_WORKAROUND): New constant.
78387         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78388         things considerably.  Use it only on GNU/Linux hosts, since the
78389         workaround shouldn't be needed elsewhere.
78390
78391 2005-02-24  Bruno Haible  <bruno@clisp.org>
78392
78393         * modules/gettext (Files): Add m4/glibc2.m4.
78394
78395 2005-02-24  Bruno Haible  <bruno@clisp.org>
78396
78397         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78398         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78399         * m4/progtest.m4:
78400         Update from GNU gettext 0.14.2.
78401         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78402
78403 2005-02-24  Bruno Haible  <bruno@clisp.org>
78404
78405         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78406         * lib/config.charset: Update from GNU gettext 0.14.2.
78407
78408 2005-02-24  Bruno Haible  <bruno@clisp.org>
78409
78410         * lib/gettext.h: Update from GNU gettext 0.14.2.
78411
78412 2005-02-23  Simon Josefsson  <jas@extundo.com>
78413
78414         * m4/iconvme.m4: New file.
78415
78416 2005-02-23  Jim Meyering  <jim@meyering.net>
78417
78418         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78419         change.
78420         Thanks to Bruno Haible for catching it.
78421
78422 2005-02-22  Simon Josefsson  <jas@extundo.com>
78423
78424         * modules/iconvme: New file.
78425
78426         * MODULES.html.sh: Add iconvme.
78427
78428 2005-02-22  Simon Josefsson  <jas@extundo.com>
78429
78430         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78431
78432 2005-02-22  Simon Josefsson  <jas@extundo.com>
78433
78434         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78435
78436 2005-02-22  Jim Meyering  <jim@meyering.net>
78437
78438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78439         s/ifndef/ifdef/.
78440
78441 2005-02-20  Neil Conway  <neilc@samurai.com>
78442
78443         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78444         returned by OSX/Darwin if the specified buffer is not large
78445         enough for the hostname.
78446
78447 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78448
78449         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78450         pass it to _help, otherwise the latter coredumps trying to
78451         dereference state.root_argp.
78452
78453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * modules/chdir-long (Depends-on): Add memrchr.
78456         * modules/memrchr (Files): Add lib/memrchr.h.
78457         (Include): "memrchr.h".
78458
78459 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78462
78463 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * lib/memrchr.h: New file.
78466         * lib/chdir-long.c: Include it.
78467         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78468         Don't bother including stddef.h.
78469
78470 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78473         inclusion.
78474         Include <sys/types.h>, for dev_t.
78475         (ME_DUMMY, ME_REMOTE): Move from here....
78476         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78477         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78478         Dmitry V. Levin.
78479         Include mountlist.h first, to test the interface.
78480
78481 2005-01-29  Bruno Haible  <bruno@clisp.org>
78482
78483         * lib/progname.c (program_name): Initialize.
78484         Needed when linking statically on MacOS X.
78485
78486 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         Sync from coreutils.
78489         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78490         (Depends-on): Add c-strtod.
78491         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78492
78493 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         Sync from coreutils.
78496         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78497
78498         Remove files that are specific to coreutils.
78499         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78500
78501 2005-01-28  Bruno Haible  <bruno@clisp.org>
78502
78503         * modules/javacomp: New file.
78504         * MODULES.html.sh (Java): Add javacomp.
78505
78506 2005-01-28  Bruno Haible  <bruno@clisp.org>
78507
78508         * m4/javacomp.m4: New file, from GNU gettext.
78509
78510 2005-01-28  Bruno Haible  <bruno@clisp.org>
78511
78512         * lib/javacomp.sh.in: New file, from GNU gettext.
78513         * lib/javacomp.h: New file, from GNU gettext.
78514         * lib/javacomp.c: New file, from GNU gettext.
78515
78516 2005-01-26  Simon Josefsson  <jas@extundo.com>
78517
78518         * lib/gai_strerror.c: Use GPL in header.
78519
78520 2005-01-26  Bruno Haible  <bruno@clisp.org>
78521
78522         * modules/javaexec: New file.
78523         * MODULES.html.sh (Java): Add javaexec.
78524
78525 2005-01-26  Bruno Haible  <bruno@clisp.org>
78526
78527         * m4/javaexec.m4: New file, from GNU gettext.
78528
78529 2005-01-26  Bruno Haible  <bruno@clisp.org>
78530
78531         * lib/javaexec.sh.in: New file, from GNU gettext.
78532         * lib/javaexec.h: New file, from GNU gettext.
78533         * lib/javaexec.c: New file, from GNU gettext.
78534
78535 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78536
78537         * modules/lchown (Depends-on): Remove lchown.h
78538
78539 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78540
78541         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78542         must be defined if the header file was not found, in order
78543         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78544
78545 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78546
78547         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78548         initializers for struct pentry_state.
78549         (__argp_error): Check return value of __asprintf
78550         (__argp_failure): Translate error message
78551
78552         * lib/argp-parse.c: Removed braces around the expansion of N_()
78553
78554 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78557         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78558         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78559         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78560         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78561         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78562         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78563         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78564         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78565         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78566         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78567         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78568         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78569         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78570         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78571         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78572         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78573         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78574         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78575         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78576         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78577         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78578         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78579         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78580         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78581         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78582         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78583         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78584         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78585         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78586         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78587         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78588         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78589         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78590         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78591         Use an all-permissive copyright notice, recommended by RMS.
78592
78593 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * modules/chdir-long (Depends-on): Remove mempcpy.
78596
78597 2005-01-21  Jim Meyering  <jim@meyering.net>
78598
78599         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78600         same value as for Solaris 9.
78601
78602         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78603         component length.  This included changing the parameter to be
78604         of type `char *' rather than `char const *'.
78605         * lib/chdir-long.h (chdir_long): Update prototype.
78606
78607         * lib/openat.c (fdopendir, fstatat): New functions.
78608         * lib/openat.h: Include headers required for use of DIR and struct
78609         stat.
78610         [AT_SYMLINK_NOFOLLOW]: Define.
78611         (fdopendir, fstatat): Add prototypes.
78612
78613 2005-01-21  Bruno Haible  <bruno@clisp.org>
78614
78615         * modules/classpath: New file.
78616         * MODULES.html.sh (Java): Add classpath.
78617
78618 2005-01-21  Bruno Haible  <bruno@clisp.org>
78619
78620         * lib/classpath.h: New file, from GNU gettext.
78621         * lib/classpath.c: New file, from GNU gettext.
78622
78623 2005-01-20  Simon Josefsson  <jas@extundo.com>
78624
78625         * modules/version-etc-fsf: New file.
78626
78627 2005-01-20  Simon Josefsson  <jas@extundo.com>
78628
78629         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78630         * lib/version-etc.c: Remove version_etc_copyright.
78631         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78632         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78633
78634 2005-01-20  Simon Josefsson  <jas@extundo.com>
78635
78636         * lib/base64.h (isbase64): Add.
78637
78638         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78639         using a unsigned prototype, don't inline.
78640         (base64_decode): Use it.
78641
78642 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78645         it.
78646
78647 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         * lib/save-cwd.c (save_cwd): Remove code to support the case
78650         where fchdir is missing or flaky.
78651
78652 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78655
78656 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78659         AC_LIBSOURCES now does this.
78660         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78661         with new ullong_max module.
78662
78663 2005-01-19  Bruno Haible  <bruno@clisp.org>
78664
78665         * modules/sh-quote: New file.
78666         * MODULES.html.sh (Executing programs): Add sh-quote.
78667
78668 2005-01-19  Bruno Haible  <bruno@clisp.org>
78669
78670         * lib/sh-quote.h: New file, from GNU gettext.
78671         * lib/sh-quote.c: New file, from GNU gettext.
78672
78673 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         Merge from coreutils.
78676         * m4/ullong_max.m4: New file.
78677         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78678         (gl_MACROS): Assume localeconv exists.
78679
78680 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78681
78682         Merge changes from coreutils, as described below in several
78683         changelogs dated today.
78684
78685         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78686         (O_DIRECTORY): Remove; not needed here, since "." must be
78687         a directory.  All uses removed.
78688         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78689         universal on Suns, and we also need to test for IRIX.
78690         Revamp code to use 'if' rather than '#if'.
78691         Avoid unnecessary comparison of cwd->desc to 0.
78692
78693         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78694         for known valid error numbers rather than observed invalid ones.
78695
78696 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78697
78698         * modules/ullong_max: New file.
78699
78700         * modules/chdir-long, modules/openat: New files.
78701         * modules/save-cwd (Depends-on): Depend on chdir-long.
78702         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78703
78704 2005-01-18  Jim Meyering  <jim@meyering.net>
78705
78706         Merge from coreutils.
78707         * m4/chdir-long.m4, m4/openat.m4: New files.
78708         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78709         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78710         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78711         is sane and DOES follow symlinks.  Besides, testing 20 different
78712         systems found no broken chown implementations.
78713         Prompted by a change in rsync's copy of this macro.
78714         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78715
78716         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78717
78718         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78719         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78720         NULL-means-set-to-current-time semantics.
78721         Remove temporary file immediately, rather than waiting
78722         for configure's at-exit trap code to do it.
78723
78724 2005-01-18  Jim Meyering  <jim@meyering.net>
78725
78726         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78727
78728         * lib/utimens.c (futimens): Account for the fact that futimes
78729         can also fail with errno == ENOSYS or errno == ENOENT.
78730         Patch from Dmitry V. Levin.
78731
78732         Change the name of the robust chdir function from chdir to chdir_long.
78733         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78734         (restore_cwd): Use chdir_long, not chdir.
78735         * lib/chdir-long.c: Renamed from chdir.c.
78736         * lib/chdir-long.h: Renamed from chdir.h.
78737         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78738         Hurd.
78739
78740 2005-01-18  Bruno Haible  <bruno@clisp.org>
78741
78742         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78743         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78744         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78745         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78746         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78747         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78748         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78749         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78750         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78751         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78752         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78753         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78754         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78755         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78756         Use an all-permissive copyright notice, recommended by RMS.
78757
78758 2005-01-18  Bob Proulx  <bob@proulx.com>
78759
78760         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78761         simplify offsetof() macro construct to avoid compile failure with
78762         native HP-UX 11.0 ANSI C compiler.
78763
78764 2005-01-17  Bruno Haible  <bruno@clisp.org>
78765
78766         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78767         redundant because stpncpy.m4 takes care of it.
78768
78769 2005-01-17  Bruno Haible  <bruno@clisp.org>
78770
78771         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78772
78773 2005-01-17  Bruno Haible  <bruno@clisp.org>
78774
78775         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78776         used.
78777
78778 2005-01-17  Bruno Haible  <bruno@clisp.org>
78779
78780         * lib/fwriteerror.h (fwriteerror): Change specification to include
78781         fclose.
78782         * lib/fwriteerror.c: Include <stdbool.h>.
78783         (fwriteerror): At the end, close the file stream. Record whether
78784         stdout was already closed.
78785
78786 2005-01-17  Bruno Haible  <bruno@clisp.org>
78787
78788         * lib/execute.c (environ): Declare if needed.
78789         * lib/pipe.c (environ): Likewise.
78790         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78791
78792 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78793
78794         * modules/argp: Depend on vsnprintf
78795
78796 2005-01-10  Jim Meyering  <jim@meyering.net>
78797
78798         * modules/closeout (Depends-on): Add atexit.
78799
78800 2005-01-06  Bruno Haible  <bruno@clisp.org>
78801
78802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78803
78804 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78807         definitions to be after all include files, to avoid collisions.
78808         Problem reported by Bob Proulx.
78809
78810 2005-01-04  Jim Meyering  <jim@meyering.net>
78811
78812         Changes imported from coreutils.
78813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78814         as the mkstemp template, use a temporary directory and an
78815         8.3-friendly template to avoid trouble on systems like DJGPP.
78816         Reported by Juan M. Guerrero via Stepan Kasal.
78817         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78818         close. Remove the temporary directory right away, rather than waiting
78819         for configure's at-exit trap code to do it.
78820         Suggestion from Stepan Kasal.
78821
78822 2005-01-01  Simon Josefsson  <jas@extundo.com>
78823
78824         * gnulib-tool: Print #include directives when --import'ing.
78825
78826 2004-12-28  Simon Josefsson  <jas@extundo.com>
78827
78828         * tests/test-base64.c: Include required header files.  Remove
78829         unused variables.
78830
78831 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * modules/error (Depends-on): Remove gettext.
78834
78835 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78838         not needed.  This removes a dependency on the gettext module.
78839         [defined _LIBC]: Do not include <libintl.h>; not needed.
78840
78841 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78842
78843         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78844         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78845
78846 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78849         HAVE_DECL_STRTOLD.
78850
78851 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * modules/getdate (Depends-on): Remove alloca-opt.
78854
78855 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78858
78859 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78860
78861         * lib/argp-parse.c: Include <stddef.h>.
78862         (alignof, alignto): New macros.
78863         (parser_init): Don't assume that void * is aligned sufficiently
78864         for struct option.
78865
78866         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78867         need to extend the stack.
78868         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78869         large.
78870
78871 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78872
78873         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78874
78875 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78876
78877         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78878         (2004-10-24) change.  Apparently this was a false alarm.
78879
78880         * modules/getdate: Depend on alloca-opt, not alloca.
78881
78882 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78885         Remove now-obsolete comment about AIX.
78886         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78887         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78888         (YYMAXDEPTH): New macro.
78889
78890 2004-12-18  Simon Josefsson  <jas@extundo.com>
78891
78892         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78893
78894 2004-12-18  Bruno Haible  <bruno@clisp.org>
78895
78896         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78897
78898 2004-12-18  Bruno Haible  <bruno@clisp.org>
78899
78900         * lib/fatal-signal.c (fatal_signals): Make non-const.
78901         (init_fatal_signals): New function.
78902         (uninstall_handlers, install_handlers): Ignore signals that were set to
78903         SIG_IGN.
78904         (at_fatal_signal): Call init_fatal_signals.
78905         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78906         SIG_IGN.
78907         Reported by Paul Eggert.
78908
78909 2004-12-18  Bruno Haible  <bruno@clisp.org>
78910
78911         * doc/alloca.texi: New file.
78912         * doc/alloca-opt.texi: New file.
78913
78914 2004-12-17  Jim Meyering  <jim@meyering.net>
78915
78916         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78917         Otherwise, install-sh could exit with improper exit status when
78918         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78919
78920 2004-12-16  Simon Josefsson  <jas@extundo.com>
78921
78922         * tests/test-base64.c: Add license.
78923
78924 2004-12-15  Stepan Kasal  <address@hidden>
78925
78926         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78927
78928 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * modules/getcwd (Files): Add m4/d-ino.m4.
78931         Suggested by Mark D. Baushke.
78932
78933 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78934
78935         * lib/getdate.y (textint): New member "negative".
78936         (time_zone_hhmm): New function.
78937         Expect 14 shift-reduce conflicts, not 13.
78938         (o_colon_minutes): New rule.
78939         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78940         (yylex): Set the "negative" member of signed numbers.
78941
78942 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * doc/getdate.texi (Time of day items, Time zone items):
78945         Describe new formats +00:00, UTC+00:00.
78946
78947 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78950         spurious "-l"s.  Problem reported by Stepan Kasal.
78951
78952 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78955         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78956
78957 2004-12-04  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78960         Vandoorselaere <yoann@prelude-ids.org>.
78961
78962 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78963
78964         Changes imported from coreutils.
78965         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78966         exist.
78967         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78968
78969 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         Changes imported from coreutils.
78972         * lib/hard-locale.c: Assume <locale.h> exists.
78973         Include "strdup.h".
78974         (GLIBC_VERSION): New macro.
78975         (hard_locale): Assume setlocale exists.
78976         Rewrite to avoid #ifdef.
78977         Use strdup rather than malloc + strcpy.
78978         * lib/human.c: Assume <locale.h> exists.
78979         (human_readable): Assume localeconv exists.
78980
78981 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * modules/hard-locale (Depends-on): Add strdup.
78984
78985 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78986
78987         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78988         convert T2, not T.  (Imported from libc.)
78989
78990 2004-11-30  Simon Josefsson  <jas@extundo.com>
78991
78992         * modules/restrict (License): Change to LGPL.
78993
78994 2004-11-30  Simon Josefsson  <jas@extundo.com>
78995
78996         * m4/restrict.m4: Add copyright and copying conditions.
78997
78998 2004-11-30  Simon Josefsson  <jas@extundo.com>
78999
79000         * m4/base64.m4: New file.
79001
79002 2004-11-30  Simon Josefsson  <jas@extundo.com>
79003
79004         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79005         base64.
79006
79007         * tests/test-base64.c: New file.
79008
79009         * modules/base64: New file.
79010
79011 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79014         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79015
79016         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79017
79018 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79021         (__getcwd.c): Don't restore errno; glibc doesn't.
79022         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79023         first, falling back to our code only if its results look suspicious.
79024         Ensure that the resulting buffer is only as large as necessary.
79025
79026         * lib/readutmp.c: Include readutmp.h first.
79027         Include <errno.h>, since readutmp.h no longer does that.
79028         * lib/readutmp.h: Don't include <errno.h>,
79029         <sys/param.h>, <time.h>; not needed to establish interface.
79030         (errno): Remove decl.
79031         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79032         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79033         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79034
79035 2004-11-28  Simon Josefsson  <jas@extundo.com>
79036
79037         * lib/base64.h, base64.c: New file.
79038
79039 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79042
79043 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79046         (Depends-on): Remove pathmax, same.  Add mempcpy.
79047         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79048         (Makefile.am): Append getcwd.h to lib_SOURCES.
79049         (Include): Add getcwd.h.
79050         (Maintainer): Change from Jim Meyering to "all, glibc",
79051         since getdate now uses intended-for-glibc code.
79052         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79053         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79054
79055 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79056
79057         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79058         HP's ANSI C compiler.
79059         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79060         Declaring int functions causes warnings on some modern systems and
79061         shouldn't be needed to compile on ancient ones.
79062         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79063         defined.
79064
79065         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79066         with the following changes.
79067         (__set_errno): Parenthesize properly.
79068         Include <stdbool.h>.
79069         (MIN, MAX, MATCHING_INO): New macros.
79070         (__getcwd): Define with prototype, not K&R form.
79071         Use heuristics to allocate default buffer on stack if possible.
79072         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79073         behavior, and to avoid the PATH_MAX limit when computing
79074         ../../../../...
79075         Use MATCHING_INO to compare inode number to file.
79076         Check for arithmetic overflow in size calculations.
79077         Fix bug in reallocation of dot array that caused getcwd to fail
79078         on directories nested deeper than 75.
79079         Be more careful about saving errno on error.
79080         Do not use realloc; use only free+malloc, as this is a bit
79081         more flexible and avoids a needless copy operation.
79082         Do not inspect st_dev and st_ino for symbolic links; POSIX
79083         doesn't specify the latter.
79084         Check for closedir errors.
79085         Avoid needless casts.
79086         Use "#ifdef weak_alias" around weak_alias, to be like other
79087         glibc code.
79088         The following changes to getcwd.c have effect only when used in
79089         gnulib; they have no effect inside glibc proper.
79090         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79091         as alloca isn't used.
79092         (alloca, __alloca): Likewise.
79093         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79094         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79095         unconditionally, as gnulib assumes C89 or better.
79096         Do not include <sys/param.h>.
79097         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79098         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79099         better.
79100         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79101         Include <dirent.h> in a way that is compatible with modern Autoconf.
79102         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79103         New macros, if not already defined.
79104         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79105         Use "_LIBC", not "defined _LIBC", for consistency.
79106         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79107         a mempcpy module.
79108         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79109         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79110         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79111         credit only to Jim Meyering and adjust the copyright dates.
79112         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79113         <stdlib.h>, <unistd.h>, "pathmax.h".
79114         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79115         (INITIAL_BUFFER_SIZE): Remove.
79116         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79117
79118 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79121         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79122         Use the _ONCE methods, for efficiency.
79123         Check for fcntl.h.  In test program, include <errno.h>
79124         and <fcntl.h> if available.  Remove old K&R cruft from
79125         test program.  Check for common errors in GNU/Linux,
79126         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79127         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79128         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79129         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79130         name accordingly.
79131         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79132         accommodate new getcwd.c.
79133         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79134         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79135         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79136         that's all we need now.
79137
79138 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79139
79140         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79141         argp-parse.c depends on getopt internals, that means we should
79142         always use our getopt, to be on the safe side.
79143         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79144         order not to spoil the result of an eventual previous invocation
79145         of gl_GETOPT_SUBSTITUTE.
79146
79147 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79148
79149         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79150         redefinition warnings. To avoid them, include the defines
79151         in `#if !defined __need_getopt ... #endif'. The only place
79152         where __getopt_argv_const is used is in definitions
79153         of getopt_long and getopt_long_only below, which are as well
79154         protected by `#ifndef __need_getopt'.
79155         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79156         __need_getopt after including <stdio.h> and <unistd.h> These
79157         headers might have defined it.
79158
79159 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79162
79163 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79164
79165         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79166         (futimens): New function, which uses futimes if available.
79167         (futimens, utimens): Support timespec==NULL, with same semantics
79168         as utime and utimens.
79169         * lib/utimens.h (futimens): New decl.
79170
79171 2004-11-23  Jim Meyering  <jim@meyering.net>
79172
79173         * lib/getopt_.h: Remove trailing blanks.
79174
79175 2004-11-23  Jim Meyering  <jim@meyering.net>
79176
79177         * lib/__fpending.c: Add comment.
79178
79179 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * modules/canonicalize (Depends-on): Add xreadlink.
79182         Problem reported by James Youngman.
79183
79184 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79185
79186         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79187         New macros.
79188         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79189         optopt): Use them instead of invoking ## directly; otherwise, the
79190         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79191
79192 2004-11-19  Bruno Haible  <bruno@clisp.org>
79193
79194         * lib/strtok_r.c: Move comments from here...
79195         * lib/strtok_r.h: ... to here.
79196
79197 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79200         implementations that mishandle size_t overflow.
79201
79202 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79205         might fail.  Problem reported by Yoann Vandoorselaere.
79206         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79207         implementations that mishandle size_t overflow.
79208
79209 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * modules/canon-host (Depends-on): Add strdup.
79212
79213 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79216
79217 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * lib/canon-host.c: Include "strdup.h".
79220         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79221         Use strdup instead of malloc/strcpy to duplicate strings.
79222
79223         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79224         (human_space_before_unit): New constant.
79225         * lib/human.c (human_readable): Support it.
79226
79227         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79228         (xgetcwd): Set errno correctly when failing.
79229         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79230         the failure is actually due to a PATH_MAX problem.
79231
79232         Further getopt changes to make it more likely that glibc will
79233         buy the changes back.
79234         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79235         (getopt): Use it, so to preserve glibc semantic
79236         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79237         when compiling for libc.
79238         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79239         (getopt_long, getopt_long_only): Use it.
79240
79241         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79242         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79243         (getopt): Argv is now char * const *, as per standard.
79244         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79245         not char *__getopt_argv_const *.
79246         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79247         _getopt_long_only_r): Likewise.
79248         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79249         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79250         _getopt_long_r, _getopt_long_only_r): Likewise.
79251         * lib/getopt_.h (__getopt_argv_const): Remove.
79252         (getopt): Argv is now char * const *, as per standard.
79253
79254         * lib/getdate.y (tORDINAL): New token.
79255         (day, relunit): Allow it for relative times.
79256         (relative_time_table): Use tORDINAL for ordinals.
79257
79258 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79261         Document that "second" isn't allowed as an ordinal number.
79262
79263 2004-11-16  Jim Meyering  <jim@meyering.net>
79264
79265         * modules/closeout (Depends-on): Add fpending.
79266
79267 2004-11-15  Jim Meyering  <jim@meyering.net>
79268
79269         * lib/closeout.c: Include "__fpending.h" once again.
79270         Include <stdbool.h>.
79271         (close_stdout): Don't fail just because stdout was closed initially,
79272         since some programs don't write to stdout in the normal course of
79273         operation (other than --version and --help), and we don't want this
79274         function to make e.g. `touch file >&-' fail.
79275         But do fail if it was closed and someone has tried to write to it.
79276         E.g., `printf foo >&-' must fail.
79277
79278 2004-11-13  Jim Meyering  <jim@meyering.net>
79279
79280         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79281
79282 2004-11-12  Simon Josefsson  <jas@extundo.com>
79283
79284         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79285         small doc fix is still pending.
79286
79287 2004-11-11  Simon Josefsson  <jas@extundo.com>
79288
79289         * modules/strtok_r: New file.
79290
79291         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79292         strtok_r.
79293
79294 2004-11-11  Simon Josefsson  <jas@extundo.com>
79295
79296         * m4/strtok_r.m4: New file.
79297
79298         * m4/getopt.m4: Replace opterr.
79299
79300 2004-11-11  Simon Josefsson  <jas@extundo.com>
79301
79302         * lib/strtok_r.h, strtok_r.c: New file.
79303
79304 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79307         of replacing opterr, getopt, etc.  This should handle the
79308         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79309
79310 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79313         we can stop lying to compilers about the constness of argv when we
79314         are compiled outside glibc.
79315         (getopt, getopt_long, getopt_long_only): Use it.
79316         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79317         _getopt_internal, getopt): Likewise.
79318         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79319         _getopt_long_only_r): Likewise.
79320         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79321         _getopt_long_r, _getopt_long_only_r): Likewise.
79322
79323         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79324         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79325         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79326         the other external symbols.
79327         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79328         declaration, since the above renaming now works around collisions.
79329
79330 2004-11-11  Jim Meyering  <jim@meyering.net>
79331
79332         * lib/linebreak.c: Remove trailing blanks.
79333         * lib/alloca_.h: Likewise.
79334         * lib/acosl.c: Likewise.
79335         * lib/euidaccess.c: Likewise.
79336         * lib/allocsa.h: Likewise.
79337
79338 2004-11-10  Simon Josefsson  <jas@extundo.com>
79339
79340         * m4/getaddrinfo.m4: New file.
79341
79342 2004-11-10  Simon Josefsson  <jas@extundo.com>
79343
79344         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79345
79346 2004-11-10  Simon Josefsson  <jas@extundo.com>
79347
79348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79349         getaddrinfo.
79350
79351         * modules/getaddrinfo: New file.
79352
79353 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79356
79357 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79358
79359         * lib/mktime.c (SHR): New macro, which is a portable
79360         substitute for >> that should work even on Crays.
79361         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79362         Problem reported by Mark D. Baushke in
79363         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79364         * lib/getdate.y (SHR): Likewise.
79365         (tm_diff): Use it.
79366         * lib/strftime.c (SHR): Likewise.
79367         (tm_diff): Use it.
79368         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79369         quote_these_too, so that right shifts are well defined.  All uses
79370         changed.
79371
79372 2004-11-10  Jim Meyering  <jim@meyering.net>
79373
79374         Ensure that no close failure goes unreported.
79375         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79376         return early when it seems there's nothing to flush.
79377         Don't include __fpending.h.
79378
79379 2004-11-10  Jim Meyering  <jim@meyering.net>
79380
79381         * modules/closeout (Depends-on): Remove fpending.
79382
79383 2004-11-10  Jim Meyering  <jim@meyering.net>
79384
79385         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79386
79387 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79390         gl_FUNC_STRFTIME.
79391         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79392         and AC_REQUIRE when possible, to avoid duplicate checks.
79393         Check for <wchar.h>.
79394
79395 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79396
79397         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79398
79399 2004-11-09  Bruno Haible  <bruno@clisp.org>
79400
79401         * m4/sockpfaf.m4: New file.
79402
79403 2004-11-05  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79406         Reported by Mark D. Baushke <mdb@cvshome.org>.
79407
79408 2004-11-04  Bruno Haible  <bruno@clisp.org>
79409
79410         2004-09-11  Bruno Haible  <bruno@clisp.org>
79411                 * allocsa.valgrind: New file.
79412         2004-02-06  Bruno Haible  <bruno@clisp.org>
79413                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79414                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79415                 Reported by Christopher Seip <chris.seip@hp.com>.
79416
79417 2004-11-04  Bruno Haible  <bruno@clisp.org>
79418
79419         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79420         (Makefile.am): Distribute it.
79421
79422 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79425         with errno == ERANGE if the buffer is too small.
79426         Problem reported by Mark D. Baushke.
79427
79428 2004-11-03  Albert Chin  <china@thewrittenword.com>
79429             Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79432         equivalent, substitute $ac_type for equivalent type rather than
79433         blindly using uint32_t *always* which won't work if uint32_t is not
79434         available.  Define _UINT32_T to work around typedef of uint32_t if
79435         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79436         2.5.1.
79437
79438 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * m4/jm-macros.m4: Sync from coreutils.
79441         (gl_MACROS): Check for mbrlen, for pathchk.
79442         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79443
79444 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * lib/xreadlink.c (MAXSIZE): New macro.
79447         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79448         size does not exceed MAXSIZE.  Avoid cast.
79449         As suggested by Mark D. Baushke in
79450         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79451         if readlink fails with buffer size just under MAXSIZE, try again
79452         with MAXSIZE.
79453
79454 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79457
79458 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79459         and  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79462         (get_date): Overparenthesize to avoid GCC warning.
79463
79464 2004-11-02  Bruno Haible  <bruno@clisp.org>
79465
79466         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79467         returns void.
79468
79469 2004-11-02  Bruno Haible  <bruno@clisp.org>
79470
79471         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79472         function returns void.
79473
79474 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79477         fflush_unlocked, flockfile, funlockfile, funlockfile,
79478         fputs_unlocked, putc_unlocked.
79479
79480 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79483         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79484         already declared.
79485
79486 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         * modules/getdate (Files): Add doc/getdate.texi.
79489         (Depends-on): Add setenv, xalloc.
79490
79491 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * lib/getdate.y: Add support for TZ="foo" within a date string.
79494         Fix some bugs near time_t boundaries.  Reject dates with
79495         out-of-range components, e.g., "Sept 31".
79496         Include <stdlib.h>, "setenv.h", "xalloc.h".
79497         (ISDIGIT_LOCALE): Remove; unused.
79498         Note that the TZ and time functions used here are not reentrant.
79499         (mktime_ok, get_tz): New functions.
79500         (TZBUFSIZE): New constant.
79501         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79502         This requires that we sometimes generate our own TZ="XXX..." setting.
79503
79504 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79505
79506         * doc/getdate.texi: New file, from coreutils with modifications for
79507         the new TZ parsing.
79508
79509 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79510
79511         * lib/mktime.c (not_equal_tm): Remove redundant check.
79512
79513 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * modules/regex (lib_SOURCES): Add regex.c.
79516         Reported by James Youngman in
79517         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79518
79519 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         * lib/getdate.y: Use Bison 1.875 features, and some minor
79522         code cleanups.  This change does not affect semantics.
79523         Don't include <stdlib.h>; no longer needed.
79524         Don't include unlocked-io.h; only the "#if TEST" code uses
79525         stdio, and performance isn't crucial there.
79526         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79527         Bison 1.875 features as described below.
79528         All uses of "PC." replaced by "pc->".
79529         (YYSTYPE): Add a forward declaration.
79530         (yylex, yyerror): Use full prototypes in forward decls.
79531         Use "%pure-parser" rather than obsolescent "%pure_parser".
79532         Use %parse-param and %lex-param instead of obsolescent
79533         YYPARSE_PARAM and YYLEX_PARAM.
79534         (meridian_table, month_and_day_table, time_units_table,
79535         relative_time_table, time_zone_table, military_table,
79536         lookup_zone, lookup_word, get_date):
79537         Use NULL instead of 0 where appropriate.
79538         (to_hour): Avoid abort (), to avoid a dependency on
79539         stdlib.h.
79540         (yyerror, yylex): Now accepts parser_control * arg.
79541         (main) [TEST]: Use '\0' rather than 0 for char.
79542
79543 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79546
79547 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79550         It's now the caller's responsibility to handle the case where
79551         !HAVE_GETPAGESIZE && !defined getpagesize.
79552
79553         * lib/mktime.c (leapyear): Arg is long int, not int.
79554
79555 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79558
79559 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79560
79561         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79562         missing.  Problem reported by James Youngman.
79563
79564 2004-10-16  Simon Josefsson  <jas@extundo.com>
79565
79566         * gnulib-tool: Fix comments.  Fix parse problem.
79567         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79568
79569 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79570
79571         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79572         implementation of getopt_long.  Problem reported by Alexander Taler in:
79573         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79574
79575 2004-10-15  Bruno Haible  <bruno@clisp.org>
79576
79577         * gnulib-tool: Untabify. Initialize supplied_libname.
79578         (func_usage): More homogenous output.
79579         (func_modules_transitive_closure, func_modules_to_filelist,
79580         func_emit_lib_Makefile_am): New functions.
79581         (func_import): New function, extracted from big case statement. Use
79582         func_get_license, func_modules_transitive_closure,
79583         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79584         opt_lgpl. Don't use test -a, as it's not portable.
79585         (func_create_testdir): Use func_modules_transitive_closure,
79586         func_modules_to_filelist, func_emit_lib_Makefile_am.
79587
79588 2004-10-15  Bruno Haible  <bruno@clisp.org>
79589
79590         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79591
79592 2004-10-15  Bruno Haible  <bruno@clisp.org>
79593
79594         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79595         the portions belonging to each module.
79596         Suggested by Derek Robert Price <derek@ximbiot.com>.
79597
79598 2004-10-12  Simon Josefsson  <jas@extundo.com>
79599
79600         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79601         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79602         to real functions.
79603
79604 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79605
79606         * modules/vsnprintf: New file.
79607
79608 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79609
79610         * m4/vsnprintf.m4: New file.
79611
79612 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79613
79614         * lib/vsnprintf.h: New file.
79615         * lib/vsnprintf.c: New file.
79616
79617 2004-10-11  Bruno Haible  <bruno@clisp.org>
79618
79619         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79620         vsnprintf.
79621
79622 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79623
79624         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79625
79626 2004-10-07  Bruno Haible  <bruno@clisp.org>
79627
79628         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79629         fits into the provided buffer.
79630
79631 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         * lib/diacrit.c, diacrit.h: Add GPL notice.
79634
79635         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79636         notice.
79637         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79638         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79639         This avoids a potential constant-folding bug.
79640
79641 2004-10-05  Bruno Haible  <bruno@clisp.org>
79642
79643         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79644         for the declaration of strsep.
79645
79646 2004-10-05  Bruno Haible  <bruno@clisp.org>
79647
79648         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79649
79650 2004-10-04  Simon Josefsson  <jas@extundo.com>
79651
79652         * modules/memmem: New file.
79653         * tests/test-memmem.c: New file.
79654         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79655
79656 2004-10-04  Simon Josefsson  <jas@extundo.com>
79657
79658         * m4/memmem.m4: New file.
79659
79660 2004-10-04  Simon Josefsson  <jas@extundo.com>
79661
79662         * lib/memmem.h: New file.
79663         * lib/memmem.c: New file, taken from glibc.
79664
79665 2004-10-04  Simon Josefsson  <jas@extundo.com>
79666
79667         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79668         '#ifdef USE_UNLOCKED_IO'.
79669
79670 2004-10-04  Simon Josefsson  <jas@extundo.com>
79671
79672         * config/srclist.txt: Add memmem from glibc.
79673
79674 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79677
79678         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79679         modules/exclude, modules/getdate, modules/getline,
79680         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79681         modules/getusershell, modules/linebuffer, modules/md5,
79682         modules/mountlist, modules/posixtm, modules/readtokens,
79683         modules/readutmp, modules/regex, modules/sha1,
79684         modules/version-etc, modules/yesno:
79685         Remove dependency on unlocked-io.
79686
79687 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79690
79691         * m4/unlocked-io.m4: Add copyright notice.
79692         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79693
79694 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79697         * lib/xmalloc.c (xmemdup): Likewise.
79698         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79699         XFREE): Remove these long-obsolescent macros.
79700         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79701         * lib/xstrdup.c: Remove.
79702
79703         * lib/regex.c (re_comp): Cast gettext return value to char *,
79704         Problem reported by Martin Neitzel via Mark D. Baushke.
79705
79706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79709         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79710         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79711         regex.c, sha1.c, version-etc.c, yesno.c:
79712         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79713         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79714         the includer's responsibility.
79715
79716         Sync from coreutils.
79717
79718         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79719         points to the start of a string, as the C Standard says the
79720         resulting behavior is undefined.
79721
79722         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79723         simple -> simple_backups, numbered_existing ->
79724         numbered_existing_backups, numbered -> numbered_backups
79725         to avoid shadowing problems.  All uses changed.
79726         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79727         * lib/backupfile.c (check_extension, numbered_backup):
79728         Rename locals to avoid shadowing 'basename'.
79729         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79730         once.
79731
79732         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79733         * lib/.cvsignore: Add getopt.h.
79734
79735 2004-10-04  Bruno Haible  <bruno@clisp.org>
79736
79737         * modules/README: New file.
79738         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79739         not a module.
79740
79741 2004-10-02  Jim Meyering  <jim@meyering.net>
79742
79743         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79744
79745 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79746
79747         * modules/strsep: New file.
79748
79749 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79750
79751         * m4/strsep.m4: New file.
79752
79753 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79754
79755         * lib/strsep.h: New file.
79756         * lib/strsep.c: New file.
79757
79758 2004-10-01  Simon Josefsson  <jas@extundo.com>
79759
79760         * lib/snprintf.c (snprintf): Handle size==0.
79761
79762 2004-10-01  Simon Josefsson  <jas@extundo.com>
79763             Bruno Haible  <bruno@clisp.org>
79764
79765         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79766         (snprintf): Declare 'args'.
79767
79768 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * lib/snprintf.c: Remove comments as to why each header is needed.
79771
79772 2004-10-01  Bruno Haible  <bruno@clisp.org>
79773
79774         * MODULES.html.sh: Add strsep.
79775
79776 2004-09-30  Simon Josefsson  <jas@extundo.com>
79777
79778         * modules/snprintf: New file.
79779
79780 2004-09-30  Simon Josefsson  <jas@extundo.com>
79781
79782         * m4/snprintf.m4: New file.
79783
79784 2004-09-30  Simon Josefsson  <jas@extundo.com>
79785
79786         * lib/snprintf.h, lib/snprintf.c: New files.
79787
79788 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79789
79790         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79791         (hol_entry_help): Never translate an empty string.
79792         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79793         * lib/argp.h (OPTION_NO_TRANS): New option.
79794
79795 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * modules/argp (Maintainer): Replace Simon Josefsson
79798         by Sergey Poznyakoff.
79799
79800 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79803         changes merged back into glibc.
79804
79805 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79808
79809 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79810
79811         * lib/xvasprintf.c: Include xalloc.h.
79812         (xvasprintf): Use xalloc_die, not xmalloc_die.
79813
79814 2004-09-29  Bruno Haible  <bruno@clisp.org>
79815
79816         * modules/alloca-opt: New file, derived from modules/alloca.
79817         * modules/allocsa: Depend on alloca-opt instead of alloca.
79818         * modules/setenv: Likewise.
79819         * modules/vasnprintf: Likewise.
79820         * MODULES.html.sh: Add alloca-opt.
79821
79822 2004-09-28  Simon Josefsson  <jas@extundo.com>
79823
79824         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79825         LGPL, and to replace license template from GPL to LGPL.
79826
79827 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         * modules/dummy: Change license to LGPL.
79830
79831 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79834
79835 2004-09-24  Simon Josefsson  <jas@extundo.com>
79836
79837         * modules/minmax (License): Change from GPL to LGPL.
79838
79839 2004-09-23  Simon Josefsson  <jas@extundo.com>
79840
79841         * gnulib-tool (--import): Typo.
79842
79843 2004-09-23  Simon Josefsson  <jas@extundo.com>
79844
79845         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79846
79847 2004-09-22  Bruno Haible  <bruno@clisp.org>
79848
79849         * modules/*: Add 'License' field.
79850         * gnulib-tool: Accept --extract-license option.
79851         (func_get_license): New function.
79852
79853 2004-09-21  Bruno Haible  <bruno@clisp.org>
79854
79855         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79856         Reported by Simon Josefsson.
79857
79858 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79861         gl_AC_TYPE_LONG_LONG.
79862
79863 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79866
79867 2004-09-18  Simon Josefsson  <jas@extundo.com>
79868         and  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79871         calls with autoreconf.  Define GL_LIB.
79872
79873 2004-09-14  Karl Berry  <karl@gnu.org>
79874
79875         * config/srclist.txt: unsync setenv.c, sigh.
79876
79877 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79880         Problem reported by Bruno Haible in:
79881         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79882
79883 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79884
79885         * config/srclist.txt: Comment out argp-pvh.c.
79886
79887 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79890         in case some system header has #define'd it.  Problem reported by
79891         Soeren D. Schulze in
79892         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79893
79894 2004-09-09  Karl Berry  <karl@gnu.org>
79895
79896         * regex.[ch]: delete from the root.  These were supposed to be
79897                 synced with emacs cvs, but this has not happened for about
79898                 a year, and anyway nothing else uses emacs regex.[ch].
79899                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79900                 lib/regex[.ch] is untouched.
79901
79902 2004-09-09  Bruno Haible  <bruno@clisp.org>
79903
79904         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79905
79906 2004-09-09  Bruno Haible  <bruno@clisp.org>
79907
79908         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79909         modifications.
79910         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79911
79912 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79913
79914         * modules/xvasprintf: New file.
79915         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79916
79917 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79918
79919         * lib/xvasprintf.h: New file.
79920         * lib/xvasprintf.c: New file.
79921         * lib/xasprintf.c: New file.
79922
79923 2004-09-08  Bruno Haible  <bruno@clisp.org>
79924
79925         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79926
79927 2004-09-08  Bruno Haible  <bruno@clisp.org>
79928
79929         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79930         length is > INT_MAX.
79931         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79932         more.
79933
79934 2004-09-08  Bruno Haible  <bruno@clisp.org>
79935
79936         * lib/stdint_.h: New file, taken from GNU clisp.
79937
79938 2004-09-08  Bruno Haible  <bruno@clisp.org>
79939             Oskar Liljeblad  <oskar@osk.mine.nu>
79940
79941         * modules/stdint: New file.
79942         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79943
79944 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         Import from coreutils.
79947         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79948         strings on unbounded length.  alloca's performance benefits aren't
79949         that important here.
79950         (V_STRDUP): Remove.
79951         (parse_with_separator): New function, with most of the internals
79952         of the old parse_user_spec.  Allow user to omit both user and group,
79953         for compatibility with FreeBSD.
79954         Clone only the user name, not the entire spec.
79955         Do not set *uid, *gid unless entirely successful.
79956         Avoid memory leak in some failing cases.
79957         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79958         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79959         (parse_user_spec): Rewrite to use parse_with_separator.
79960
79961 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79962
79963         * modules/userspec: Don't depend on alloca.
79964
79965 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79968
79969 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79972         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79973         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79974
79975 2004-08-16  Simon Josefsson  <jas@extundo.com>
79976
79977         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79978         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79979         Add --dry-run for --import.
79980         Let user provided command line parameters override configure.ac
79981         settings.
79982
79983 2004-08-12  Simon Josefsson  <jas@extundo.com>
79984
79985         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79986         as discussed with Paul Eggert in threads rooted at
79987         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79988         and
79989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79990         Before, the test was empty, and relied on ELIDE_CODE in source
79991         code.)
79992         (gl_PREREQ_GETOPT): New macro.
79993         (gl_GETOPT): Use them.
79994
79995 2004-08-12  Simon Josefsson  <jas@extundo.com>
79996
79997         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79998         * lib/getopt_.h: Renamed from getopt.h.
79999
80000 2004-08-12  Simon Josefsson  <jas@extundo.com>
80001
80002         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80003         Change default library name from libfoo to libgnu.
80004         Now, if you have a configure.ac that says:
80005                 gl_SOURCE_BASE(gl)
80006                 gl_M4_BASE(gl/m4)
80007                 gl_MODULES(error getopt etcetera)
80008                 gl_INIT
80009         you can import all you need by running:
80010                 ../gnulib/gnulib-tool --import
80011
80012         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80013         (Makefile.am): Rewrite, use logic from argz.
80014         (Include): Use <getopt.h> instead of "getopt.h".
80015
80016 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80017
80018         * modules/argp (Files): Add m4/unlocked-io.m4.
80019         (Depends-on): Add extensions.
80020
80021 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80024         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80025         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80026         Check for program_invocation_name, program_invocation_short_name,
80027         flockfile, funlockfile, features.h, _getopt_long_only_r.
80028
80029 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80030
80031         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80032         its complicated substitute.
80033         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80034         and program_invocation_name.
80035         (__argp_basename) [!_LIBC]: Remove; the only use was
80036         replaced by its body.
80037         (__argp_short_program_name): Change condition from
80038         !defined __argp_short_program_name to
80039         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80040         to match argp-namefrob.h.
80041         (__argp_failure): Don't assume strerror_r returns char *.
80042         * lib/argp-parse.c (N_): Define unconditionally.
80043         (argp_default_options): Fill out initializers with 0 to avoid
80044         gcc warnings.
80045
80046 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80049         getopt1.c.
80050
80051 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         Merge from coreutils.
80054
80055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80056
80057         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80058         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80059
80060 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         Merge from coreutils.
80063
80064         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80065         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80066         for Reliant Unix 5.43.
80067
80068         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80069         (union fooround): Use uintmax_t, not long int.
80070         The rest is a merge from libc:
80071         [defined _LIBC]: Include <shlib-compat.h>.
80072         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80073
80074         * lib/settime.c (settime): Recode to avoid warning with
80075         Sun Forte C 6U2.
80076
80077         * lib/strverscmp.c: Convert to UTF-8.
80078
80079 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80082         m4/uintmax_t.m4.
80083
80084 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         * modules/xalloc-die: New file.
80087         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80088
80089         * modules/md5 (Files): Add m4/uint32_t.m4.
80090         * modules/sha1: Renamed from modules/sha.
80091         (Files):
80092         Rename lib/sha.h to lib/sha1.h.
80093         Rename lib/sha.c to lib/sha1.c.
80094         Rename m4/sha.m4 to m4/sha1.m4.
80095         (lib_SOURCES): Likewise.
80096         (configure.ac): Rename gl_SHA to gl_SHA1.
80097         (Include): sha.h -> sha1.h.
80098
80099 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80102         * m4/sha1.m4: Renamed from sha.m4.
80103         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80104
80105 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80106
80107         * lib/obstack.h (obstack_empty_p):
80108         Don't assume that chunk->contents is suitably aligned.
80109         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80110         Likewise. Problem reported by Benno in
80111         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80112
80113         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80114         readable.  This could be improved further but it'd take some work.
80115
80116 2004-08-08  Simon Josefsson  <jas@extundo.com>
80117
80118         * modules/xgethostname (Depends-on): Remove exit and error (not
80119         used).
80120
80121         * modules/getpass-gnu: Add getpass.h.
80122         (Depends-on): Add stdbool.
80123         * modules/getpass: Add getpass.h.
80124
80125 2004-08-08  Simon Josefsson  <jas@extundo.com>
80126
80127         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80128         Check getpass declaration.
80129
80130 2004-08-08  Simon Josefsson  <jas@extundo.com>
80131
80132         * lib/xgethostname.c: Don't include error.h (not used).
80133
80134         * lib/getpass.h: Add.
80135         * lib/getpass.c: Include getpass.h first.
80136
80137 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80138
80139         * lib/xalloc-die.c: New file.
80140         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80141         All uses removed.
80142         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80143         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80144         xalloc-die.c.
80145         (_, N_, xalloc_die): Move to xalloc-die.c.
80146         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80147         so that we needn't mess with xalloc_msg_memory_exhausted.
80148
80149         * lib/sha1.h: Renamed from sha.h.
80150         (SHA1_H): Renamed from _SHA_H.
80151         (sha1_ctx): Renamed from sha_ctx.
80152         (sha1_init_ctx): Renamed from sha_init_ctx.
80153         (sha1_process_block): Renamed from sha_process_block.
80154         (sha1_process_bytes): Renamed from sha_process_bytes.
80155         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80156         (sha1_read_ctx): Renamed from sha_read_ctx.
80157         (sha1_stream): Renamed from sha_stream.
80158         (sha1_buffer): Renamed from sha_buffer.
80159         * lib/sha1.c: Likewise; renamed from sha.c.
80160         Do not include <sys/types.h>.
80161         Include <stddef.h> rather than <stdlib.h>.
80162
80163 2004-08-08  Bruno Haible  <bruno@clisp.org>
80164
80165         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80166         FILESYSTEM_PREFIX_LEN.
80167         * lib/progreloc.c: Likewise.
80168         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80169
80170 2004-08-06  Simon Josefsson  <jas@extundo.com>
80171
80172         * modules/progname (Depends-on): Don't depend on stdbool.
80173
80174 2004-08-06  Simon Josefsson  <jas@extundo.com>
80175
80176         * modules/getsubopt: New file.
80177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80178         getsubopt.
80179
80180 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         More merge from coreutils.
80183
80184         * m4/utimens.m4, m4/utimecmp.m4: New files.
80185         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80186         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80187         prereq.m4, sha.m4: Import changes from coreutils.
80188
80189 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         More merge from coreutils.
80192         * modules/raise, modules/readtokens0, modules/utimens:
80193         * modules/utimecmp, module/xnanosleep: New files.
80194         * modules/strftime: Add lib/strftime.h.
80195         Change include from <time.h> to "strftime.h".
80196         * modules/yesno: Add lib/yesno.h.
80197         * modules/backupfile: Remove lib/addext.c.
80198         * modules/euidaccess: Add stat-macros.h.
80199         * modules/canonicalize, modules/euidaccess,
80200         modules/filemode, modules/lchown, modules/makepath,
80201         modules/rmdir, modules/stat: Likewise.
80202
80203 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         Merge from tar.
80206         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80207         SIZE_MAX is a valid preprocessor constant.
80208         (__argp_basename): Change from "#ifndef _LIBC"
80209         to "#ifndef __argp_short_program_name", so that
80210         we don't compile these functions for tar.
80211
80212         More merges from coreutils.
80213         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80214         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80215         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80216         * lib/addext.c: Remove; no longer needed.
80217         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80218         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80219         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80220         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80221         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80222         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80223         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80224         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80225         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80226         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80227         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80228         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80229         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80230         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80231         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80232         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80233         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80234         Import changes from coreutils.
80235
80236 2004-08-05  Simon Josefsson  <jas@extundo.com>
80237
80238         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80239
80240 2004-08-05  Simon Josefsson  <jas@extundo.com>
80241
80242         * m4/getsubopt.m4: New file.
80243
80244 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80245
80246         Merge from coreutils.
80247
80248         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80249         * m4/getcwd-path-max.m4: New files.
80250
80251         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80252         FILESYSTEM_PREFIX_LEN ->
80253         FILE_SYSTEM_PREFIX_LEN.
80254         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80255         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80256         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80257         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80258
80259         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80260         prerequisite modules now handle the DOS stuff.
80261         Don't check for unistd.h.
80262
80263 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80264
80265         Merge from coreutils.
80266
80267         * lib/.gdb-history: Remove; this doesn't belong here.
80268
80269         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80270         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80271         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80272         * lib/getcwd.c: New files.
80273
80274         * lib/dirname.h: Include <stdbool.h>.
80275         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80276         for consistency with POSIX terminology.  All uses changed.
80277         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80278         (strip_trailing_slashes): Use bool for booleans.
80279         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80280
80281         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80282         sometimes returns a positive errno value even when it succeeds.
80283         (print_errno_message) [!LIBC]: Fall back on strerror if
80284         __strerror_r fails.
80285
80286         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80287         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80288         (longest_relative_suffix): New function.
80289         (path_concat): Use it.  Assume first argument is not NULL.
80290         Port to DOS.  Omit redundant separators.
80291         Report an error instead of returning NULL.
80292         Use mempcpy instead of memcpy.
80293         (xpath_concat): Remove: not declared or used.
80294
80295         * lib/same.h: Include <stdbool.h>
80296         (same_name): Return bool, not int.
80297         * lib/same.c (same_name): Likewise.
80298         (errno): Don't declare; we assume C89 or better now.
80299
80300         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80301         if not already defined.
80302
80303         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80304         * lib/dup-safer.c (errno): Likewise.
80305
80306 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80307
80308         Merge from coreutils.
80309         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80310         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80311         * modules/path-concat: Don't depend on strdup.
80312
80313 2004-08-03  Simon Josefsson  <jas@extundo.com>
80314
80315         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80316         * lib/progname.h: Don't include stdbool.h.
80317
80318 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80321         * MODULES.html.sh (func_all_modules): Remove fatal.
80322
80323 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80326
80327 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80328
80329         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80330         working.
80331
80332 2004-08-02  Simon Josefsson  <jas@extundo.com>
80333
80334         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80335         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80336         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80337
80338 2004-08-01  Simon Josefsson  <jas@extundo.com>
80339
80340         * lib/xgetdomainname.c: Include stdlib.h, for free().
80341
80342 2004-07-19  Bruno Haible  <bruno@clisp.org>
80343
80344         * MODULES.html.sh (func_all_modules): Add dummy.
80345
80346 2004-07-16  Simon Josefsson  <jas@extundo.com>
80347
80348         * modules/dummy: New file.
80349
80350 2004-07-16  Simon Josefsson  <jas@extundo.com>
80351
80352         * lib/dummy.c: New file.
80353
80354 2004-07-16  Bruno Haible  <bruno@clisp.org>
80355
80356         * lib/backupfile.h: Add extern "C" for C++.
80357         * lib/closeout.h: Likewise.
80358         * lib/copy-file.h: Likewise.
80359         * lib/findprog.h: Likewise.
80360         * lib/full-write.h: Likewise.
80361         * lib/pathname.h: Likewise.
80362         * lib/progname.h: Likewise.
80363         * lib/stpcpy.h: Likewise.
80364         * lib/stpncpy.h: Likewise.
80365         * lib/strcase.h: Likewise.
80366         * lib/strstr.h: Likewise.
80367         * lib/xalloc.h: Likewise.
80368
80369         * lib/mbswidth.h: Add extern "C" for C++.
80370         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80371
80372 2004-07-13  Robert Millan  <robertmh@gnu.org>
80373
80374         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80375
80376 2004-07-09  Simon Josefsson  <jas@extundo.com>
80377
80378         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80379         failed without this.)
80380
80381 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80382
80383         * modules/chown (Files): Add lib/fchown-stub.c, since
80384         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80385
80386 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80387
80388         * lib/fchown-stub.c: New file.
80389
80390 2004-06-24  Jim Meyering  <jim@meyering.net>
80391
80392         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80393
80394 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * modules/argz: Omit "#include".
80397
80398         * MODULES.html.sh (func_all_modules): Add calloc, to match
80399         2004-06-01 addition of calloc module.
80400
80401 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * m4/argz.m4: New file, which is autoupdated from libtool.
80404
80405 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80408         libtool.
80409
80410 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80411
80412         * config/srclist-update: Don't insist on "USA." before the
80413         close-comment, as libtool omits the period and puts the */ on a
80414         separate line.
80415         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80416         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80417
80418 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80419
80420         * modules/argz: New file.
80421         * MODULES.html.sh (func_all_modules): Add argz.
80422
80423 2004-06-12  Jim Meyering  <jim@meyering.net>
80424         and  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         * modules/hash (Files): Add lib/xalloc.h.
80427         * modules/pipe (Depends-on): Add wait-process.
80428         * modules/stat (Depends-on): Add xalloc.
80429         * modules/userspec (Files): Add lib/userspec.h.
80430         * modules/xstrto
80431
80432         Upgrade from gettext-0.13.
80433         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80434         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80435         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80436
80437 2004-06-10  Jim Meyering  <jim@meyering.net>
80438
80439         * lib/calloc.c: New file.
80440
80441 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * lib/getdate.y (yylex): Allow space between sign and number.
80444         Problem reported by Dan Jacobson.
80445
80446 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         Merge from coreutils CVS.
80449
80450         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80451         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80452         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80453         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80454         xstrtol.m4: Fix copyright date and/or serial number.
80455
80456         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80457         See if we need an fchown replacement.
80458         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80459         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80460         and use the replacement function if we detect either defect.
80461
80462         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80463         gl_UTIMECMP.
80464
80465 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80466         and  Jim Meyering  <jim@meyering.net>
80467
80468         Merge from coreutils CVS.
80469
80470         * lib/stat-macros.h: New file, with contents from file-type.h
80471         and coreutils' system.h.
80472         * lib/file-type.c: Include "stat-macros.h".
80473         * lib/file-type.h (file_type): Move all macro definitions to new file,
80474         stat-macros.h.
80475
80476         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80477         Wrap old code with this conditional.
80478         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80479         function that does not dereference symlinks.
80480         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80481
80482         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80483         dependency problems.
80484         (xreadlink): Accept new arg SIZE, for efficiency.
80485         All decls and uses changed.
80486         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80487
80488         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80489         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80490
80491         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80492         sysexits.h.
80493
80494 2004-06-01  Jim Meyering  <jim@meyering.net>
80495
80496         * m4/calloc.m4: New file.
80497
80498 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80499
80500         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80501         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80502         Also, fix a typo in a diagnostic.
80503
80504 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80505
80506         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80507         or AC_FUNC_REALLOC.
80508
80509 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80512         macros to be defined.
80513         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80514         the allocator returns NULL because the requested size is zero.
80515
80516 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80519         var.  Add comment explaining why libc still defines it.  This
80520         merges the following patch from glibc:
80521         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80522
80523 2004-05-20  Andreas Schwab  <schwab@suse.de>
80524
80525         * m4/free.m4: Replace free if it not known to work, not the other
80526         way round.
80527
80528 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80531         present in glibc since revision 1.1 of this file.
80532         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80533         obstack_alignment_mask, obstack_alloc, obstack_base,
80534         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80535         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80536         obstack_grow0, obstack_init, obstack_int_grow,
80537         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80538         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80539         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80540         nonexistent functions.
80541
80542 2004-05-18  Karl Berry  <karl@gnu.org>
80543
80544         * config/srclist.txt: break link for vasnprintf.c.
80545
80546 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         Port obstack to the AS/400, where pointers are 16 bytes wide and
80549         you cannot cast an integer to a valid pointer.  This patch is
80550         currently waiting to be integrated into glibc; see
80551         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80552
80553         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80554         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80555         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80556         (struct obstack): temp member is now a union of a pointer and
80557         an integer, instead of an integer.  All integer uses changed.
80558         This does not affect the physical layout of struct obstack,
80559         except on hosts (like the AS/400) where the size or alignment of
80560         void * is greater than that of ptrdiff_t.
80561         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80562         __STDC__)]: Store temporary in pointer member of union, not
80563         integer member.
80564         * lib/obstack.c: Include <stddef.h>, for offsetof.
80565         (struct fooalign): Remove; it doesn't need a name.
80566         (union fooround): Change double to long double, and add void *.
80567         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80568         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80569         not a macro.  Hence the values are always int; so remove all
80570         casts-to-int in uses.
80571
80572 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80573
80574         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80575         we can get this patch merged into glibc.
80576
80577 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80578             Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         * m4/argp: Depend on alloca.
80581
80582 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80583             Paul Eggert  <eggert@cs.ucla.edu>
80584
80585         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80586         freecoding.
80587
80588 2004-05-17  Bruno Haible  <bruno@clisp.org>
80589
80590         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80591         precision that consists of a '.' followed by an empty digit string.
80592         Patch by Tor Lillqvist <tml@iki.fi>.
80593
80594 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80597         for backward compatibility with older code.  We need our own
80598         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80599         it under some other name, and our alloca.h will define it.
80600
80601 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80602             Derek Price  <derek@ximbiot.com>
80603
80604         * lib/alloca.c: Include <alloca.h>, to get our interface.
80605         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80606         include <alloca.h> first.  Use C89 prototype for alloca; this
80607         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80608         Use #elif for simplicity, since we can assume C89 now.
80609         Don't try to source the system alloca.h since it will not be found
80610         and to prevent recursively including its replacement.
80611         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80612         * lib/regex.c: Likewise.
80613
80614 2004-05-16  Derek Price  <derek@ximbiot.com>
80615             Paul Eggert  <eggert@cs.ucla.edu>
80616
80617         getline cleanup.  This changes the getndelim2 API: both order of
80618         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80619         no delimiter).
80620
80621         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80622         interface does that.
80623         (getline): Always use getdelim, so that we don't have two
80624         copies of this code.
80625         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80626         if available.
80627         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80628         (GETNDELIM2_MAXIMUM): New macro.
80629         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80630         instead of the old practice of delim2==0.  All callers changed.
80631         Return -1 on overflow, instead of returning junk.
80632         Do not set *linesize unless allocation succeeds.
80633         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80634         that we include sys/types.h.
80635         * lib/getnline.h: Likewise.
80636         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80637         (getndelim2): Reorder arguments.
80638         * lib/getnline.c (getnline, getndelim):
80639         Don't discard the NMAX argument.
80640         (getnline): Invoke getndelim, to avoid code duplication.
80641         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80642         of (size_t) -1 by callers of the getnline family.
80643
80644 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80647         Check for gettimeofday.
80648         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80649         Check for settimeofday, stime.
80650
80651 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         * lib/nanosleep.c (suspended): Change its type from int to
80654         sig_atomic_t volatile.
80655         (first_call): Make it private to rpl_nanosleep, and have it
80656         be zero initially as that's a bit faster.
80657         (my_usleep): Round up fractional times instead of truncating them,
80658         as this is the usual meaning for 'sleep'.
80659
80660         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80661         doesn't work.
80662         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80663         (ENOSYS): Define if not defined.
80664         (settime): Fall back on stime if it exists and settimeofday fails.
80665         But don't bother with fallbacks if a method fails with errno == EPERM.
80666
80667 2004-05-11  Jim Meyering  <jim@meyering.net>
80668
80669         Prior to this change, the save_cwd caller required read access to the
80670         current directory on most systems (ones with the fchdir function).
80671
80672         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80673         fails, try write-only, and finally, resort to using xgetcwd.
80674
80675 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80676
80677         * lib/obstack.c, obstack.h: Import changes from libc.
80678
80679 2004-04-28  Bruno Haible  <bruno@clisp.org>
80680
80681         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80682         also implicitly appends .exe to executables.
80683         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80684         accepts Windows pathnames.
80685         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80686         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80687         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80688         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80689         Reported by Derek Robert Price <derek@ximbiot.com>.
80690
80691 2004-04-21  Karl Berry  <karl@gnu.org>
80692
80693         * config/srclist.txt (localcharset.c): break sync.
80694
80695 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80696
80697         * m4/host-os.m4: Add a copyright notice.
80698
80699 2004-04-20  Jim Meyering  <jim@meyering.net>
80700
80701         Change UTILS_ to gl_ in AC_DEFINE'd names.
80702         Change utils_- and jm_-prefixed variables, too.
80703         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80704         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80706
80707         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80708         Don't emit trailing blanks.
80709         Also rename jm_-prefixed variables to have gl_ prefix.
80710
80711         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80712         Also rename jm_-prefixed variables to have gl_ prefix.
80713
80714         * m4/jm-macros.m4: Reflect the renamings.
80715         * m4/prereq.m4: Likewise.
80716
80717 2004-04-20  Jim Meyering  <jim@meyering.net>
80718
80719         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80720         memory.
80721
80722 2004-04-20  Jim Meyering  <jim@meyering.net>
80723             Bruno Haible  <bruno@clisp.org>
80724
80725         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80726         memory when realloc fails.
80727
80728 2004-04-19  Jim Meyering  <jim@meyering.net>
80729
80730         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80731         now that readutmp.c may call `free (0)'.
80732
80733 2004-04-19  Bruno Haible  <bruno@clisp.org>
80734
80735         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80736         * m4/inttypes_h.m4: Likewise.
80737         * m4/stdint_h.m4: Likewise.
80738         * m4/intmax_t.m4: Likewise.
80739         * m4/uintmax_t.m4: Likewise.
80740
80741 2004-04-18  Jim Meyering  <jim@meyering.net>
80742
80743         * m4/prereq.m4: Don't forbid jm_ prefix.
80744
80745         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80746         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80747         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80748         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80749         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80750         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80751         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80752         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80753         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80754         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80755         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80756         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80757         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80758         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80759         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80760         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80761         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80762         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80763         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80764
80765 2004-04-18  Jim Meyering  <jim@meyering.net>
80766
80767         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80768         failure, don't leak memory and do call END_UTMP_ENT.
80769
80770 2004-04-16  Jim Meyering  <jim@meyering.net>
80771
80772         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80773         coreutils' stat program.
80774         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80775
80776 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80777
80778         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80779         C89.
80780         (CHAR_BIT): Remove, since we assume C89.
80781         Include <stdint.h> if available, as per current Autoconf CVS advice.
80782
80783 2004-03-31  Jim Meyering  <jim@meyering.net>
80784
80785         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80786         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80787         * m4/xalloc.m4: Likewise.
80788
80789 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80790
80791         Merge from coreutils.
80792
80793         * m4/inttostr.m4: New file.
80794         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80795         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80796         Require gl_CLOCK_TIME.
80797         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80798
80799 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80800
80801         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80802         not bool, to be more consistent with Unix conventions.
80803         Suggested by Bruno Haible.
80804
80805         Merge from coreutils.
80806
80807         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80808         * lib/umaxtostr.c: New files.
80809
80810         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80811         the usual <time.h> dance.
80812         (get_date): Change signature to support fractional time stamps.
80813         All callers changed.
80814         * lib/getdate.y: Include "getdate.h" first, as we can now
80815         assume C89 and don't need to worry about 'const'.
80816         Similarly, include "unlocked-io.h" near start, not in middle.
80817         Include <limits.h>.
80818         (textint.value): Use long int rather than int.
80819         (textint.digits): Use size_t rather than int.
80820         (BILLION, LOG10_BILLION): New constants.
80821         (parser_control): New member rel_ns.  Members day_ordinal,
80822         time_zone, month, day, hour, minutes, rel_year, rel_month,
80823         rel_day, rel_hour, rel_minutes, rel_seconds
80824         are now long int, not int.  Member seconds is now struct timespec,
80825         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80826         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80827         not int.
80828         (%union.intval): Now long int, not int.
80829         New member timespec.
80830         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80831         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80832         (spec): Now is a timespec or an item list.
80833         (timespec, items): New nonterminals.
80834         (time, rel, relunit, number, get_date):
80835         Add support for fractional seconds.
80836         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80837         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80838         (to_hour): First arg is now long int, not int.
80839         (to_year): Returns long int, not int.
80840         Don't treat year -70 like 70.
80841         (tm_diff): Returns long int, not int.
80842         (lookup_word): Use bool instead of int when appropriate.
80843         (yylex): Use size_t for count, not int.
80844         Detect overflow when parsing large integer constants.
80845         Add support for fractions.
80846         (get_date): Make pointers 'const' if possible.
80847         Use more-portable code to detect integer overflow.
80848         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80849         Don't use ctime; it's not reliable if the year has >4 digits.
80850
80851         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80852         This is for compatibility with BSD.
80853
80854         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80855         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80856         From coreutils' system.h.
80857
80858         * lib/userspec.c: Don't include "posixver.h".
80859         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80860         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80861         compatible extension.  Simplify code by removing a boolean int
80862         that was always nonzero if a string was nonnull.
80863
80864 2004-03-30  Jim Meyering  <jim@meyering.net>
80865
80866         Merge from coreutils.
80867
80868         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80869         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80870         on some systems one must include <grp.h> before it.
80871         Reported by Christian Krackowizer.
80872
80873 2004-03-30  Jim Meyering  <jim@meyering.net>
80874
80875         Merge from coreutils.
80876
80877         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80878
80879         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80880         an empty input stream.
80881
80882         * lib/readtokens.c: Include <stdbool.h>.
80883         (readtoken): Use `size_t' rather than int/long.
80884         All callers adjusted.
80885         Use `bool' rather than `int' where appropriate.
80886         Use memset rather than an explicit loop.
80887         Use x2nrealloc rather than xrealloc.
80888         Allow the use of `\0' as a delimiter.
80889         (readtokens): Likewise.
80890         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80891
80892 2004-03-30  Jim Meyering  <jim@meyering.net>
80893
80894         * m4/realloc.m4: Remove file, since now it does no more than
80895         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80896         the `configure.ac' section of module/realloc.
80897         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80898
80899 2004-03-30  Bruno Haible  <bruno@clisp.org>
80900
80901         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80902         nonnull.
80903
80904 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80905
80906         Merge changes to getloadavg.c from coreutils and Emacs.
80907
80908         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80909         Define to an expression, not to the empty string.
80910         Include cloexec.h and xalloc.h.
80911         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80912         Use set_cloexec_flag rather than rolling our own.
80913         * lib/cloexec.c, lib/cloexec.h: New files.
80914
80915 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80916
80917         * m4/cloexec.m4: New file.
80918
80919 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80920
80921         * lib/getopt.h: Sync with libc CVS.
80922
80923 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80924             Bruno Haible  <bruno@clisp.org>
80925
80926         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80927         mbswidth.
80928
80929 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80930             Bruno Haible  <bruno@clisp.org>
80931
80932         * lib/mbswidth.h: Include <wchar.h> only if
80933         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80934         <wchar.h>.
80935         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80936
80937 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80938
80939         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80940         Sync with libc CVS.
80941         * lib/getopt_int.h: New file, also synced from libc.
80942
80943 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80944
80945         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80946         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80947         Bring back getopt.c, getopt.h, getopt1.c.
80948
80949 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80950
80951         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80952         All uses changed.  Check for sa_sigaction member; this fixes
80953         a bug first reported by Jason Andrade in
80954         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80955
80956 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80957
80958         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80959         '#if' expressions.  Unlike the code it replaces, it does not
80960         depend on (defined _SC_PAGESIZE).  However, it does depend on
80961         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80962         first reported by Jason Andrade in
80963         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80964
80965 2004-02-25  Simon Josefsson  <jas@extundo.com>
80966
80967         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80968
80969 2004-02-25  Simon Josefsson  <jas@extundo.com>
80970
80971         * lib/strdup.h: New file.
80972         * lib/strdup.c: Include it.
80973         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80974         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80975
80976 2004-02-23  Karl Berry  <karl@gnu.org>
80977
80978         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80979         (from fencepost.gnu.org:/gd/gnuorg).
80980
80981 2004-02-23  Karl Berry  <karl@gnu.org>
80982
80983         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80984         * config/srclist.txt: add maintain/standards documents.
80985
80986 2004-02-18  Bruno Haible  <bruno@clisp.org>
80987
80988         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80989         Reported by Derek Robert Price <derek@ximbiot.com>.
80990
80991 2004-02-16  Karl Berry  <karl@gnu.org>
80992
80993         * config/mkinstalldirs, install-sh: update from automake.
80994
80995 2004-02-06  Karl Berry  <karl@gnu.org>
80996
80997         * m4/po.m4: update from gettext 0.14.1.
80998
80999 2004-02-06  Karl Berry  <karl@gnu.org>
81000
81001         * lib/config.charset: update from gettext 0.14.1.
81002
81003 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81004
81005         Add comments and code, prompted by suggestions from Bruno Haible
81006         for sh-quote.
81007         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81008         describing the enum quoting_style values.
81009         * lib/quotearg.c (quotearg_alloc): New function.
81010         (quotearg_buffer_restyled): Treat lone { and } as special.
81011         Treat = as special.  Work around bug with older shells
81012         that "see" a '\' that is really the 2nd byte of a multibyte char.
81013         Quote empty string with shell_quoting_style.
81014
81015 2004-02-03  Bruno Haible  <bruno@clisp.org>
81016
81017         * m4/pipe.m4: New file, from GNU gettext.
81018
81019 2004-02-03  Bruno Haible  <bruno@clisp.org>
81020
81021         * lib/pipe.h: New file, from GNU gettext.
81022         * lib/pipe.c: New file, from GNU gettext.
81023
81024 2004-01-27  Bruno Haible  <bruno@clisp.org>
81025
81026         * m4/execute.m4: New file, from GNU gettext.
81027
81028 2004-01-27  Bruno Haible  <bruno@clisp.org>
81029
81030         * lib/execute.h: New file, from GNU gettext.
81031         * lib/execute.c: New file, from GNU gettext.
81032         * lib/w32spawn.h: New file, from GNU gettext.
81033
81034 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81035
81036         Merge from diffutils.
81037
81038         * lib/file-type.c (file_type): Add typed memory objects.
81039         * lib/file-type.h (S_TYPEISTMO): New macro.
81040
81041         * lib/c-stack.h (c_stack_action): Remove argv argument.
81042         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81043         (die): Don't calculate message unless segv_action returns.
81044         (get_stack_location, min_address_from_argv, max_address_from_argv,
81045         volatile stack_base, volatile_stack_size): Remove.
81046         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81047         that every segmentation violation is a stack overflow.  (Ouch!)
81048         See Debian bug 136249 (still outstanding) for more info about why
81049         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81050
81051 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81052
81053         Exit-status fix from coreutils.
81054
81055         Use exit_failure consistently in place of EXIT_FAILURE,
81056         so that program exit statuses are consistent on failure.
81057
81058         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81059         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81060         * lib/argmatch.h: Comment fix to match the above.
81061         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81062         Now a macro referring to exit_failure, instead of a separate
81063         variable.  Include "exitfail.h" to get it.
81064         * lib/xstrtol.h: Include "exitfail.h".
81065         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81066
81067         * lib/long-options.c (parse_long_options): Use prototype
81068         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81069         for clarity.
81070
81071 2004-01-21  Jim Meyering  <jim@meyering.net>
81072
81073         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81074         so as not to conflict with a different-sized __mktime_internal
81075         function in GNU libc.
81076         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81077         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81078
81079 2004-01-20  Karl Berry  <karl@gnu.org>
81080
81081         * config/config.guess: update from config.
81082
81083         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81084
81085 2004-01-20  Bruno Haible  <bruno@clisp.org>
81086
81087         Safer stack allocation.
81088         * lib/setenv.c: Include allocsa.h.
81089         (alloca): Remove fallback definition.
81090         (freea): Remove macro.
81091         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81092         instead of freea.
81093
81094 2004-01-20  Bruno Haible  <bruno@clisp.org>
81095
81096         * m4/eealloc.m4: New file, from GNU gettext.
81097
81098 2004-01-20  Bruno Haible  <bruno@clisp.org>
81099
81100         * m4/allocsa.m4: New file, from GNU gettext.
81101
81102 2004-01-20  Bruno Haible  <bruno@clisp.org>
81103
81104         * lib/xallocsa.h: New file, from GNU gettext.
81105         * lib/xallocsa.c: New file, from GNU gettext.
81106
81107 2004-01-20  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81110
81111 2004-01-20  Bruno Haible  <bruno@clisp.org>
81112
81113         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81114         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81115         specially.
81116
81117 2004-01-20  Bruno Haible  <bruno@clisp.org>
81118
81119         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81120         patch.
81121
81122 2004-01-20  Bruno Haible  <bruno@clisp.org>
81123
81124         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81125
81126 2004-01-20  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/eealloc.h: New file.
81129
81130 2004-01-20  Bruno Haible  <bruno@clisp.org>
81131
81132         * lib/binary-io.h: Avoid warnings on Cygwin.
81133
81134 2004-01-20  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/allocsa.h: New file, from GNU gettext.
81137         * lib/allocsa.c: New file, from GNU gettext.
81138
81139 2004-01-18  Karl Berry  <karl@gnu.org>
81140
81141         * doc/gpl.texi, doc/lgpl.texi: new files.
81142
81143 2004-01-18  Karl Berry  <karl@gnu.org>
81144
81145         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81146         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81147
81148 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81149
81150         Merge from coreutils.
81151
81152         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81153         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81154         (gl_DEFAULT_POSIX2_VERSION): Move
81155         the documentation from 'configure' into 'config.hin',
81156         so that 'configure --help' isn't burdened by it and
81157         we don't have to worry about its formatting there.
81158         Reword the documentation so that it's more succinct
81159         and can be run together into a single paragraph.
81160         * m4/same.m4 (gl_SAME): Check for pathconf.
81161
81162 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81163
81164         Merge from coreutils.
81165
81166         * lib/posixver.c: Include posixver.h.
81167
81168         * lib/same.c: Include <stdbool.h>, <limits.h>.
81169         (_POSIX_NAME_MAX): Define if not defined.
81170         (MIN): New macro.
81171         (same_name): If file names are silently truncated, report
81172         that the file names are the same if they are the same after
81173         the silent truncation.
81174
81175         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81176         conversion function.
81177         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81178         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81179         longer needed.
81180
81181 2004-01-15  Jim Meyering  <jim@meyering.net>
81182
81183         Merge from coreutils.
81184
81185         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81186         if no library is required.
81187         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81188         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81189         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81190         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81191         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81192         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81193         value, $ac_cv_search_crypt, if it's "none required".
81194         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81195         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81196         not gl_FUNC_GETLOADAVG.
81197         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81198         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81199
81200 2004-01-15  Jim Meyering  <jim@meyering.net>
81201
81202         Merge from coreutils.
81203
81204         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81205         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81206         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81207
81208         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81209         optional configure-time default.
81210
81211         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81212
81213         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81214
81215 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81216
81217         Merge from coreutils.
81218
81219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81220         value, $ac_cv_search_nanosleep, if it's "none required".
81221
81222 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81223
81224         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81225         with like-named macro in fnmatch.c.
81226         (EXT): Use an internal constant instead.
81227
81228         Merge fnmatch patches from glibc.
81229         * lib/fnmatch.c (mbsinit): Remove define.
81230         Add libc_hidden_ver (__fnmatch, fnmatch).
81231         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81232         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81233
81234 2004-01-14  Karl Berry  <karl@gnu.org>
81235
81236         * config/install-sh: update from automake.
81237
81238 2004-01-13  Karl Berry  <karl@gnu.org>
81239
81240         * config/install-sh: update from automake.
81241
81242 2004-01-09  Karl Berry  <karl@gnu.org>
81243
81244         * config/install-sh: update from automake.
81245
81246 2004-01-05  Karl Berry  <karl@gnu.org>
81247
81248         * config/config.{sub,guess}: update from config.
81249
81250 2003-12-31  Karl Berry  <karl@gnu.org>
81251
81252         * config/depcomp: update from automake.
81253
81254 2003-12-14  Karl Berry  <karl@gnu.org>
81255
81256         * lib/config.charset: update from gettext-runtime.
81257
81258 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81259
81260         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81261         Bug reported by Alfred M. Szmidt.
81262
81263 2003-12-03  Bruno Haible  <bruno@clisp.org>
81264
81265         * m4/gettext.m4: Upgrade from gettext-0.13.
81266         * m4/po.m4: Upgrade from gettext-0.13.
81267         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81268         * m4/intmax.m4: New file, from gettext-0.13.
81269         * m4/printf-posix.m4: New file, from gettext-0.13.
81270
81271 2003-11-29  Karl Berry  <karl@gnu.org>
81272
81273         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81274
81275 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81276             Bruno Haible  <bruno@clisp.org>
81277
81278         * lib/printf-parse.h: Don't include sys/types.h.
81279         (ARG_NONE): New macro.
81280         (char_directive): Change type of *arg_index fields to size_t.
81281         * lib/printf-parse.c: Don't include sys/types.h.
81282         (SSIZE_MAX): Remove macro.
81283         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81284         Remove unnecessary overflow check.
81285         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81286         fields.
81287
81288 2003-11-25  Bruno Haible  <bruno@clisp.org>
81289
81290         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81291
81292 2003-11-25  Bruno Haible  <bruno@clisp.org>
81293
81294         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81295         gt_TYPE_SSIZE_T.
81296
81297 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81298
81299         * modules/alloca: Remove dependency on xalloc.
81300
81301 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81302
81303         * lib/alloca.c: Remove dependency on xalloc module.
81304         (xalloc_die): Remove.
81305         (memory_full) [!defined emacs]: New macro.
81306         [!defined emacs]: Don't include xalloc.h.
81307         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81308         address arithmetic overflows.  Change datatypes a bit to avoid
81309         unnecessary casts.
81310
81311 2003-11-22  Jim Meyering  <jim@meyering.net>
81312
81313         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81314         s/size/size_t/.
81315
81316 2003-11-21  Karl Berry  <karl@gnu.org>
81317
81318         * config/config.{sub,guess}: update from config.
81319
81320 2003-11-18  Karl Berry  <karl@gnu.org>
81321
81322         * config/config.{sub,guess}: update from config.
81323
81324         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81325
81326 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81327
81328         * README: Mention that S+T cannot overflow if S is the size of
81329         an existing object and T is sufficiently small.
81330
81331 2003-11-17  Jim Meyering  <jim@meyering.net>
81332
81333         On systems without utime and without a utimes function capable of
81334         dealing with a NULL struct utimbuf* argument, this utime replacement
81335         could -- in unusual circumstances -- leak a file descriptor.
81336         * lib/utime.c: Include <unistd.h> and <errno.h>.
81337         (utime_null): Be sure to close `fd' and to preserve errno.
81338         Reported by Geoff Collyer via Arnold Robbins.
81339
81340 2003-11-17  Bruno Haible  <bruno@clisp.org>
81341
81342         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81343         (Depends-on): Add xsize.
81344
81345 2003-11-17  Bruno Haible  <bruno@clisp.org>
81346
81347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81348
81349 2003-11-17  Bruno Haible  <bruno@clisp.org>
81350
81351         * lib/vasnprintf.c (alloca): Remove fallback definition.
81352         (freea): Remove definition.
81353         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81354         Reported by Paul Eggert.
81355
81356 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81357             Bruno Haible  <bruno@clisp.org>
81358
81359         Protect against address arithmetic overflow.
81360         * lib/printf-args.h: Include stddef.h.
81361         (arguments): Change type of field 'count' to size_t.
81362         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81363         'unsigned int' where appropriate.
81364         * lib/printf-parse.h: Include sys/types.h.
81365         (char_directive): Change type of *arg_index fields to ssize_t.
81366         (char_directives): Change type of fields 'count', max_*_length to
81367         size_t.
81368         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81369         (SSIZE_MAX): Define fallback value.
81370         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81371         instead of 'int' where appropriate. Check a_allocated, d_allocated
81372         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81373         * lib/vasnprintf.c: Include xsize.h.
81374         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81375         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81376         overflow. Avoid wraparound when converting a width or precision from
81377         decimal to binary.
81378
81379 2003-11-16  Bruno Haible  <bruno@clisp.org>
81380
81381         Update from GNU gettext.
81382         * lib/printf-parse.c: Generalize to it can be compiled for wide
81383         strings.
81384         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81385         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81386         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81387         SNPRINTF): New macros.
81388         Don't include <alloca.h> if the file is used inside libintl.
81389         (local_wcslen): New function, for Solaris 2.5.1.
81390         (VASNPRINTF): Use it instead of wcslen.
81391
81392 2003-11-16  Bruno Haible  <bruno@clisp.org>
81393
81394         * lib/xsize.h (xmax): New function.
81395         (xsum, xsum3, xsum4): Declare as "pure" functions.
81396
81397 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81398
81399         * modules/xalloc (Files): Undo latest change, since xalloc.h
81400         no longer needs SIZE_MAX or PTRDIFF_MAX.
81401
81402 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81403
81404         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81405         gl_PTRDIFF_MAX.
81406
81407 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81408
81409         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81410         "return", to pacify some unknown compiler.  Problem reported
81411         by Joerg Schilling.
81412
81413 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81414
81415         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81416         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81417         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81418         heuristic is just as accurate as far as we know, and it removes a
81419         dependency on size_max.m4 and ptrdiff_max.m4.
81420
81421 2003-11-11  Bruno Haible  <bruno@clisp.org>
81422
81423         * modules/xsize (Files): Add m4/size_max.m4.
81424         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81425
81426 2003-11-11  Bruno Haible  <bruno@clisp.org>
81427
81428         * m4/size_max.m4: New file.
81429         * m4/ptrdiff_max.m4: New file.
81430         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81431         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81432         (gl_XALLOC): Invoke it.
81433
81434 2003-11-11  Bruno Haible  <bruno@clisp.org>
81435
81436         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81437         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81438         defined.
81439
81440 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81441
81442         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81443         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81444         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81445         From Bruno Haible.
81446         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81447         not (size_t) -1, since it's defined here.
81448
81449 2003-11-09  Karl Berry  <karl@gnu.org>
81450
81451         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81452
81453 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81454
81455         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81456         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81457         Reject sizes of exactly SIZE_MAX bytes.
81458         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81459         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81460
81461 2003-11-05  Bruno Haible  <bruno@clisp.org>
81462
81463         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81464         SIZE_MAX defined in <limits.h> on Solaris.
81465
81466 2003-11-04  Jim Meyering  <jim@meyering.net>
81467
81468         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81469         variable names, rather than @VAR@.
81470         * modules/poll: Likewise.
81471
81472 2003-11-04  Bruno Haible  <bruno@clisp.org>
81473
81474         * modules/xsize: New file.
81475         * modules/linebreak: Depend on xsize.
81476         * MODULES.html.sh (func_all_modules): Add xsize.
81477
81478 2003-11-04  Bruno Haible  <bruno@clisp.org>
81479
81480         * m4/xsize.m4: New file.
81481
81482 2003-11-04  Bruno Haible  <bruno@clisp.org>
81483
81484         * lib/xsize.h: New file.
81485         * lib/linebreak.c: Include xsize.h.
81486         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81487         argument for overflow.
81488         Suggested by Paul Eggert.
81489
81490 2003-11-03  Karl Berry  <karl@gnu.org>
81491
81492         * config/config.{guess,sub}: update from config.
81493
81494 2003-11-03  Jim Meyering  <jim@meyering.net>
81495
81496         * modules/userspec (lib_SOURCES): Add userspec.h.
81497         (Include): Add "userspec.h".
81498         Improve description.
81499
81500 2003-11-03  Jim Meyering  <jim@meyering.net>
81501
81502         * lib/userspec.c: Include "userspec.h".
81503         * lib/userspec.h: New file.
81504
81505 2003-11-03  Bruno Haible  <bruno@clisp.org>
81506
81507         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81508
81509 2003-11-03  Bruno Haible  <bruno@clisp.org>
81510
81511         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81512         available, to avoid (extremely rare) race condition.
81513         Suggested by Paul Eggert.
81514
81515 2003-11-02  Karl Berry  <karl@gnu.org>
81516
81517         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81518
81519 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81520
81521         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81522         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81523         (read_filesystem_list): Set and use me_type_malloced.
81524         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81525         whatever the type happens to be), for brevity and consistency.
81526         Check for size calculation overflow on Alphas running OSF/1.
81527
81528 2003-10-31  Jim Meyering  <jim@meyering.net>
81529
81530         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81531
81532         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81533
81534 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81535             Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81538         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81539
81540 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81543         netbsd*-gnu*.  Suggested by Robert Millan.
81544
81545 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81546
81547         * modules/group-member: Depend on stdbool.
81548
81549 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81550
81551         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81552
81553 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81554
81555         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81556         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81557         after the 'gnu' in these cases.  This fixes some bugs in the
81558         previous change, and is based on suggestions by Robert Millan.
81559
81560 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81561
81562         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81563         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81564         no longer needed.
81565         * lib/quotearg.c (quotearg_n_options): Use it.
81566         * lib/group-member.c: Include <stdbool.h>.
81567         (free_group_info): Arg is now const *; don't free arg.
81568         (get_group_info): Now returns bool and accepts struct group_info *,
81569         rather than returning a malloc'ed struct group_info *.
81570         All uses changed.  Check for overflow in internal size calculation.
81571
81572         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81573         rather than xmalloc/xrealloc.
81574         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81575         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81576         conformance bug: the old code used a pointer after freeing the
81577         storage that it addressed.
81578         * lib/hash.c (hash_initialize): Simplify the code by using
81579         xalloc_oversized rather than doing it by hand.
81580         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81581         the buffer preserved.  Use free and xmalloc instead.
81582         * lib/quotearg.c (quotearg_n_options): Likewise.
81583         Use a simpler test for size overflow.  Don't use xalloc_oversized
81584         because unsigned int might be wider than size_t (!); this suggests
81585         that we should switch from unsigned int to size_t for slot numbers.
81586
81587 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81588
81589         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81590         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81591         NetBSD kernels.  Requested by Richard Stallman.
81592
81593 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81594
81595         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81596         to allocate the returned structure.  Do not allocate a subarray,
81597         as x2nrealloc will do that.
81598         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81599         instead of xnrealloc.
81600         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81601
81602 2003-10-27  Bruno Haible  <bruno@clisp.org>
81603
81604         * lib/stdbool_.h: Better support for BeOS.
81605
81606 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81607
81608         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81609         now uses inline.
81610
81611 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81612
81613         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81614         callers that want to do their own size-overflow checking.  Include
81615         <stdbool.h>, since xalloc_oversized returns bool.
81616         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81617         to use xalloc_oversized.
81618
81619         Add two functions x2realloc, x2nrealloc, for programs that grow
81620         arrays dynamically by doubling their sizes.
81621         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81622         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81623         New functions.
81624
81625         Port to C99 semantics for 'inline' of external functions.
81626         Bug reported by Bruno Haible.
81627         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81628         with the old contents of xnmalloc.
81629         (xnmalloc, xmalloc): Use it.
81630         (xnrealloc_inline): New static inline function,
81631         with the old contents of xnrealloc.
81632         (xnrealloc, xrealloc): Use it.
81633
81634         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81635         that.
81636
81637 2003-10-26  Karl Berry  <karl@gnu.org>
81638
81639         * config/srclist.txt (COPYING.DOC): no longer available from
81640         /gd/gnuorg; don't know where the ultimate source is.
81641
81642 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81643
81644         Fix several address-calculation bugs in the hash modules,
81645         plus some minor code cleanup.
81646
81647         * lib/hash.h: Include <stdbool.h>, for bool.
81648         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81649         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81650         hash_get_n_entries, hash_get_max_bucket_length,
81651         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81652         hash_rehash): Use size_t rather than unsigned.
81653         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81654         hash_get_n_buckets_used, hash_get_n_entries,
81655         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81656         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81657         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81658         Likewise.
81659         (SIZE_MAX): Define if not defined.
81660         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81661         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81662         hash_print):
81663         Use const * when possible.
81664         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81665         (check_tuning): Fix bug: if tuning parameters were very close to
81666         0 or 1, rounding errors could have caused subscript violations.
81667         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81668         (hash_initialize): Add 'fail:' label
81669         to free table and return NULL, and use it to simplify code.
81670         Use calloc rather than clearing the storage ourself.
81671         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81672         buffer size calculations.
81673         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81674         Include <stddef.h>, for size_t.
81675         * lib/hash-pjw.c (hash_pjw): Likewise.
81676         Switch to method described by Bruno Haible.
81677         Include <limits.h>, for CHAR_BIT.
81678         (SIZE_BITS): New macro.
81679
81680 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81681
81682         * m4/getline.m4 (AM_FUNC_GETLINE):
81683         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81684         hosts.  Problem reported by Derek Robert Price in
81685         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81686         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81687         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81688
81689 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81690
81691         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81692         ceiling the allocation at NMAX bytes rather than silently
81693         discarding input bytes before NMAX is reached.  This makes
81694         a difference only if NMAX exceeds SIZE_MAX / 2.
81695
81696         * lib/obstack.c: Merge from glibc.
81697         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81698         Add libc_hidden_def (_obstack_newchunk).
81699         (_obstack_free) [! defined _LIBC]: Remove.
81700         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81701         a clone of the function body.
81702         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81703         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81704
81705         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81706         glibc.
81707         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81708         arg to memcpy.
81709
81710         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81711         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81712         Don't use lvalue casts, as GCC plans to remove support for them
81713         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81714         was also present in the non-GCC version, indicating that this
81715         code had always been buggy and had never been widely used.
81716         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81717         Use the fast variant of each macro, rather than copying the
81718         definiens of the fast variant; that way, we'll be more likely to
81719         catch future bugs in the fast variants.
81720
81721 2003-10-20  Bruno Haible  <bruno@clisp.org>
81722
81723         * modules/wait-process: New file.
81724         * MODULES.html.sh (func_all_modules): Add wait-process.
81725
81726 2003-10-20  Bruno Haible  <bruno@clisp.org>
81727
81728         * m4/wait-process.m4: New file.
81729
81730 2003-10-20  Bruno Haible  <bruno@clisp.org>
81731
81732         * lib/wait-process.h: New file, from GNU gettext.
81733         * lib/wait-process.c: New file, from GNU gettext.
81734
81735 2003-10-19  Jim Meyering  <jim@meyering.net>
81736
81737         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81738         HPUX 10.20.
81739
81740 2003-10-18  Karl Berry  <karl@gnu.org>
81741
81742         * config/config.guess: update from config.
81743
81744 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81745
81746         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81747         (getgroups): First arg is int, not size_t.
81748         Don't let 'free' mangle errno.
81749
81750 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81751
81752         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81753
81754 2003-10-16  Karl Berry  <karl@gnu.org>
81755
81756         * config/config.{guess,sub}: update from config.
81757
81758 2003-10-16  Jim Meyering  <jim@meyering.net>
81759
81760         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81761         memcpy.
81762
81763 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81764
81765         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81766         (SIZE_MAX): Remove.
81767         (new_exclude, add_exclude_file): Initial size no longer needs to
81768         be a power of 2.
81769         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81770         our own address arithmetic overflow checking.
81771
81772         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81773         (fnmatch): Do not alloca more than 2000 wide characters;
81774         instead, use malloc for large buffers.
81775         Check for address arithmetic overflow, and return -1
81776         with errno set to ENOMEM in that case.
81777         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81778         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81779         instead, return -1.  Check for address arithmetic overflow.
81780
81781 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81782
81783         Handle invalid suffixes and overflow independently, so that
81784         callers can treat them independently as needed.  Fix some bugs in
81785         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81786         suffix for a human-readable blocksize.  The major caller-visible
81787         change is the addition of a new
81788         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81789         that both overflow and suffix chars were found.
81790
81791         * lib/human.c (humblock): Don't check separately for invalid suffix
81792         char; that is xstrtoumax's job (now that its bug is fixed).
81793         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81794         INTMAX_MAX]: New macros.
81795         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81796         TYPE_MAXIMUM): New macros.
81797         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81798         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81799         if overflow occurs, as it's what __strtol does and it's more useful
81800         in practice.
81801         (__xstrtol): If __strtol reports some error other than ERANGE,
81802         reflect it to the caller as LONGINT_INVALID.  If it reports
81803         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81804         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81805         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81806         value.
81807         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81808         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81809         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81810         [defined UINTMAX_MAX]: New macros.
81811
81812 2003-10-14  Bruno Haible  <bruno@clisp.org>
81813
81814         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81815
81816 2003-10-14  Bruno Haible  <bruno@clisp.org>
81817
81818         * m4/sig_atomic_t: New file, from GNU gettext.
81819         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81820
81821 2003-10-14  Bruno Haible  <bruno@clisp.org>
81822
81823         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81824         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81825         Also use volatile where needed.
81826
81827 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81828
81829         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81830         Change maintainer from Bruno Haible to 'all'.
81831
81832 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81833
81834         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81835
81836 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81837
81838         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81839         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81840         and define in terms of the other primitives.
81841         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81842         (SIZE_MAX): Define if not already defined.
81843         (array_size_overflow): New function.
81844         (xalloc_die): Abort instead of exiting if 'error' returns.
81845         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81846         (xmalloc, xrealloc): Use them.
81847         (xcalloc): Check for address arithmetic overflow.
81848         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81849         a bit faster than strcpy.
81850
81851 2003-10-10  Simon Josefsson  <jas@extundo.com>
81852
81853         * modules/argp (Depends-on): Add restrict and strcase.
81854
81855 2003-10-10  Simon Josefsson  <jas@extundo.com>
81856
81857         * m4/argp.m4: Add AC_C_INLINE.
81858
81859 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81860
81861         Merge getpass from libc, plus a few fixes.
81862
81863         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81864         Include <stdbool.h>.
81865         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81866         __fsetlocking to empty.
81867         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81868         do include <bits/libc-lock.h>.
81869         Do not include <fcntl.h>; not needed.
81870         [_LIBC]: Include <wchar.h>.
81871         (NOTCANCEL_MODE): New macro.
81872         (flockfile, funlockfile) [_LIBC]: New macros.
81873         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81874         [!_LIBC]: New macros.
81875         (call_fclose): New function.
81876         (getpass): Use it.  Save tty stream separately; this simplifies the
81877         code and makes it more reliable if stdin happens to equal stdout.
81878         Invoke __fsetlocking on tty.
81879         Handle thread cancellation if needed.
81880         Namespace cleanup (use __tcgetattr, __getline).
81881         Use bool for Booleans.
81882         [USE_IN_LIBIO]: Handle wide streams.
81883         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81884         stream might go where.
81885
81886         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81887         doesn't have to include <stdio.h> before us.
81888         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81889         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81890         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81891         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81892         if not declared, so that we can use getpass.c code from libc without
81893         rewriting it.
81894         (flockfile, ftrylockfile, funlockfile): New macros.
81895
81896 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81897
81898         * modules/getpass: Depend on stdbool.
81899
81900 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81901
81902         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81903
81904 2003-10-07  Karl Berry  <karl@gnu.org>
81905
81906         * config/config.{guess,sub}: update from config.
81907
81908 2003-10-06  Jim Meyering  <jim@meyering.net>
81909             Bruno Haible  <bruno@clisp.org>
81910
81911         This lets translators provide better translations for the
81912         "Written by ..." part of --version output.
81913         * lib/version-etc.h: Include stdarg.h.
81914         (version_etc_copyright): Declare as readonly.
81915         (version_etc): Make this function variadic with a NULL-terminated list
81916         of author name strings.
81917         (version_etc_va): New declaration.
81918         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81919         (version_etc_copyright): Declare as readonly.
81920         (version_etc_va): New function. Provide a different translatable string
81921         for each possible number of authors < 10. Abbreviate when there are 10
81922         authors or more.
81923         (version_etc): Make this function variadic. Call version_etc_va.
81924         Suggestion from Gary V. Vaughan.
81925
81926         * lib/long-options.h (parse_long_options): Change prototype: the
81927         authors string is moved to the end and becomes variadic.
81928         * lib/long-options.c: Include stdarg.h.
81929         (parse_long_options): Make this function variadic, too.
81930         Call version_etc_va, not version_etc.
81931
81932 2003-10-06  Bruno Haible  <bruno@clisp.org>
81933
81934         * modules/version-etc-2: Remove file.
81935         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81936
81937 2003-10-06  Bruno Haible  <bruno@clisp.org>
81938
81939         * modules/fatal-signal: New file.
81940         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81941
81942 2003-10-06  Bruno Haible  <bruno@clisp.org>
81943
81944         * m4/fatal-signal.m4: New file.
81945         * m4/signalblocking.m4: New file, from GNU gettext.
81946
81947 2003-10-06  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/version-etc-2.h: Remove file.
81950         * lib/version-etc-2.c: Remove file.
81951
81952 2003-10-06  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/fatal-signal.h: New file, from GNU gettext.
81955         * lib/fatal-signal.c: New file, from GNU gettext.
81956
81957 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81958
81959         * README: Rework advice for preventing empty .o files.
81960         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81961         not <sys/types.h>.
81962
81963 2003-10-04  Karl Berry  <karl@gnu.org>
81964
81965         * lib/argp*: update from libc.
81966
81967 2003-10-04  Karl Berry  <karl@gnu.org>
81968
81969         * config/config.{guess,sub}: update from config.
81970
81971 2003-10-02  Bruno Haible  <bruno@clisp.org>
81972
81973         * modules/lchown (Include): Add lchown.h.
81974         * modules/time_r (Include): Use "..." syntax.
81975         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81976
81977 2003-10-01  Simon Josefsson  <jas@extundo.com>
81978
81979         * MODULES.html.sh (func_all_modules): Move gethostname from section
81980         'based on' to section 'lacking' POSIX:2001.
81981
81982 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81983
81984         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81985         to output mode on the same stream.
81986
81987 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81988
81989         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81990         Fix arg typo in previous patch.
81991
81992 2003-09-28  Jim Meyering  <jim@meyering.net>
81993
81994         * lib/error.c: Correct cpp indentation.
81995
81996 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81997
81998         * modules/free: New file.
81999
82000 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82001
82002         * m4/free.m4: New file.
82003
82004 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82005
82006         * lib/minmax.h (MIN, MAX)
82007         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82008         Omit the special code that used __typeof__, since we worry that
82009         it could be more trouble than it's worth.  See:
82010         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82011         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82012
82013         * lib/free.c: New file.
82014
82015 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82016
82017         Trivial fixes to Makefile.am parts of module listings.
82018         * modules/strstr: Append strstr.h to lib_SOURCES.
82019         * modules/strcase: Likewise, for strcase.h.
82020
82021 2003-09-27  Karl Berry  <karl@gnu.org>
82022
82023         * config/mkinstalldirs: update from automake.
82024
82025 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82026
82027         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82028         (error_tail): Do not loop, reallocating temporary buffer, since
82029         the output cannot contain more wide characters than the input
82030         contains bytes, the size must be big enough already.  This avoids
82031         one potential size overflow calculation.  Check for size overflow
82032         when calculating temporary buffer size.  Free temporary buffer
82033         when done, if it was allocated with malloc; this plugs a memory
82034         leak.  Remove casts from void * to pointers, that are no longer
82035         needed now that we're assuming C89 or better.
82036
82037         Merge error changes from glibc.
82038
82039         * lib/error.c, error.h: Update copyright notice header to match glibc.
82040         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82041         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82042         Disable cancellation while printing error.
82043         * lib/error.h: Prepend __ to parameter names.
82044
82045 2003-09-26  Jim Meyering  <jim@meyering.net>
82046
82047         * lib/error.c (error_tail): Move some declarations
82048         into inner scope where the local variables are used.
82049
82050 2003-09-26  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82053         stpncpy().
82054         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82055
82056 2003-09-26  Bruno Haible  <bruno@clisp.org>
82057
82058         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82059         (stpncpy): Define as alias for gnu_stpncpy.
82060         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82061
82062 2003-09-25  Simon Josefsson  <jas@extundo.com>
82063
82064         * lib/xgetdomainname.h: New file.
82065         * lib/xgetdomainname.c: New file.
82066
82067 2003-09-25  Simon Josefsson  <jas@extundo.com>
82068             Bruno Haible  <bruno@clisp.org>
82069
82070         * modules/getdomainname: New file.
82071         * modules/xgetdomainname: New file.
82072         * MODULES.html.sh (func_all_modules): Add getdomainname,
82073         xgetdomainname.
82074
82075 2003-09-25  Simon Josefsson  <jas@extundo.com>
82076             Bruno Haible  <bruno@clisp.org>
82077
82078         * m4/getdomainname.m4: New file.
82079
82080 2003-09-25  Simon Josefsson  <jas@extundo.com>
82081             Bruno Haible  <bruno@clisp.org>
82082
82083         * lib/getdomainname.h: New file.
82084         * lib/getdomainname.c: New file.
82085
82086 2003-09-25  Karl Berry  <karl@gnu.org>
82087
82088         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82089
82090 2003-09-25  Karl Berry  <karl@gnu.org>
82091
82092         * config/install-sh: update from automake.
82093
82094 2003-09-25  Bruno Haible  <bruno@clisp.org>
82095
82096         * modules/version-etc-2: New file, from modules/version-etc with
82097         modifications.
82098         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82099
82100 2003-09-25  Bruno Haible  <bruno@clisp.org>
82101
82102         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82103         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82104
82105 2003-09-24  Simon Josefsson  <jas@extundo.com>
82106
82107         * modules/xgethostname: Add xgethostname.h.
82108
82109 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82110
82111         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82112         the buffer associated with the argument.  Bug reported by
82113         Simon Josefsson.
82114
82115 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82116
82117         * README: Document assumptions that 'int' is at least 32 bits
82118         wide, that integer arithmetic is 2's complement without overflow,
82119         that there are no holes in integer values, that adding sizes of
82120         two nonoverlapping objects can't overflow, and that all-bits-zero
82121         yields scalar zero.  Fix spelling and capitalization typos.
82122
82123 2003-09-19  Karl Berry  <karl@gnu.org>
82124
82125         * lib/argp.h: update from libc.
82126
82127 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82128
82129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82130         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82131         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82132
82133 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82134
82135         * gnulib-tool: Use "test -h", not "test -L", for portability
82136         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82137         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82138         (sed_extract_prog): Issue s commands one-by-one, rather than
82139         using \| in one s command.
82140
82141 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82142
82143         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82144         input error, instead of returning NULL the next time we are called
82145         (and therefore losing track of errno).
82146
82147 2003-09-16  Bruno Haible  <bruno@clisp.org>
82148
82149         * gnulib-tool (func_create_testdir): Warn about duplicated
82150         dependencies.
82151
82152 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82153
82154         * modules/argmatch, modules/fatal, modules/obstack,
82155         modules/xalloc, modules/xgethostname: Sort dependencies by
82156         importance, not alphabetically.
82157
82158 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82159
82160         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82161         fails, so that the caller gets the proper errno.
82162
82163         * lib/readutmp.c (read_utmp): Likewise.
82164         Check for fstat error.  Close stream and free storage
82165         when failing.
82166
82167 2003-09-14  Karl Berry  <karl@gnu.org>
82168
82169         * config/srclist.txt (strdup.c): disable for c89 changes.
82170
82171 2003-09-14  Jim Meyering  <jim@meyering.net>
82172
82173         * lib/getloadavg.c: Correct cpp indentation.
82174         * lib/strdup.c: Likewise.
82175         * lib/vasnprintf.c: Likewise.
82176
82177 2003-09-14  Bruno Haible  <bruno@clisp.org>
82178
82179         * modules/fwriteerror: New file.
82180         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82181
82182 2003-09-14  Bruno Haible  <bruno@clisp.org>
82183
82184         * lib/fwriteerror.h: New file.
82185         * lib/fwriteerror.c: New file.
82186
82187 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82188
82189         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82190         modules/xgethostname, modules/xalloc: Depend on exit.
82191
82192 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82193
82194         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82195
82196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82197         and AC_MINIX, too, so that their extensions are available.
82198
82199         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82200         This macro has been superseded by gl_BACKUPFILE.
82201
82202         More patches to assume C89 or better.
82203
82204         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82205
82206         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82207         unconditionally.
82208         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82209         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82210         Include <string.h>, <stdlib.h> unconditionally.
82211         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82212         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82213         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82214         headers or for string.h.
82215         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82216         or strtoul.
82217
82218         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82219         headers.
82220         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82221         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82222         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82223         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82225         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82226         memcpy, memset.
82227         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82228         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82229         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82230         strtol.
82231         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82232         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82233         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82234         strtoul.
82235
82236 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82237
82238         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82239         * lib/obstack.c [!defined _LIBC]: Likewise.
82240         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82241         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82242         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82243
82244         More changes to assume C89 or better.
82245
82246         * lib/error.c (error_tail): Assume vprintf.
82247
82248         * lib/argmatch.c (getenv): Remove decl.
82249         * lib/progreloc.c (get_full_program_name): Define via prototype.
82250         * lib/setenv.c (clearenv): Likewise.
82251         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82252         needed.
82253         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82254         (malloc, memcpy): Remove decls.
82255         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82256         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82257         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82258         (memcpy): Remove macro.
82259         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82260         (__P): Remove.  All uses removed.
82261         (PTR): Remove.  All uses changed to void *.
82262         (CHAR_BIT, NULL): Remove.
82263         (spaces, zeros, memset_space, memset_zero)
82264         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82265         Remove.
82266         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82267         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82268         Define with prototype.
82269         Remove now-unnecessary prototype decl.
82270         (extra_args_spec): Assume ANSI C.  All uses changed.
82271         (extra_args_spec_iso): Remove.
82272         (my_strftime, emacs_strftimeu): Define via prototype.
82273         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82274         unconditionally.
82275         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82276         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82277         (strtoul, strtol): Remove decls.
82278         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82279         LONG_MAX): Remove.
82280         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82281         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82282         (LOCALE_PARAM_PROTO): New macro.
82283         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82284         (INTERNAL (strtol), strtol): Define with a prototype.
82285         (PARAMS): Remove.  All uses removed.
82286         * lib/tempname.c: Include <string.h> unconditionally.
82287         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82288         * lib/xgethostname.c (main): Define with a prototype.
82289         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82290         Include <stdlib.h> unconditionally.
82291         (calloc, malloc, realloc, free): Remove decls.
82292         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82293         Include <stdlib.h> unconditionally.  Sort include file names.
82294         (strtod): Remove.
82295         (xstrtod): Define with a prototype.
82296         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82297         (strtol, strtoul): Remove decls.
82298
82299 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82300
82301         More patches to assume C89 or better.
82302         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82303         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82304         string.h, memchr, STDC_HEADERS.
82305
82306 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82307
82308         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82309         Include <stdlib.h>, <string.h> unconditionally.
82310         Remove now-unnecessary cast to char *.
82311         * lib/strnlen.c: Include <string.h> unconditionally.
82312         * lib/yesno.c (yesno): Define with a prototype.
82313
82314 2003-09-11  Bruno Haible  <bruno@clisp.org>
82315
82316         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82317
82318 2003-09-10  Jim Meyering  <jim@meyering.net>
82319
82320         * lib/error.c: Correct indentation of cpp directives.
82321
82322 2003-09-10  Bruno Haible  <bruno@clisp.org>
82323
82324         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82325         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82326         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82327         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82328         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82329         <stdlib.h> and <string.h> checks.
82330         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82331         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82332
82333 2003-09-10  Bruno Haible  <bruno@clisp.org>
82334
82335         * lib/strcspn.c: Include <string.h> unconditionally.
82336         * lib/strpbrk.c: Include <string.h> unconditionally.
82337         * lib/strstr.c: Include <string.h> unconditionally.
82338         * lib/unicodeio.c: Include <string.h> unconditionally.
82339         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82340         * lib/unsetenv.c: Likewise.
82341         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82342         * lib/yesno.c: Include <stdlib.h> unconditionally.
82343         (rpmatch): Add prototype.
82344
82345 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82346
82347         More patches to assume C89 or better.
82348         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82349         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82350         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82351         or for string.h.
82352         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82353         stdlib.h.
82354         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82355         C headers.
82356         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82357         string.h.
82358         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82359         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82360         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82361         or for string.h.
82362         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82363         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82364         C headers.
82365         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82366         memcpy.
82367         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82368         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82369         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82370         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82371         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82372         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82373         string.h, free.
82374         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82375         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82376         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82377         C headers, or for string.h.
82378         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82379         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82380         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82381         headers, memory.h, stdlib.h, string.h, strings.h.
82382         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82383         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82384         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82385         strchr.
82386         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82387         headers, memory.h, string.h.
82388         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82389         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82390         free.
82391         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82392         headers.
82393         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82394         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82395         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82396         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82397         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82398
82399 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82400
82401         More K&R removal.
82402
82403         * lib/acosl.c (main): Use a prototype.
82404         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82405         tanl.c: Likewise.
82406
82407         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82408
82409         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82410         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82411         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82412         with a prototype.
82413         * lib/getopt.c (const): Remove macro.
82414         Include <string.h> unconditionally.
82415         (my_index): Remove; all uses changed to strchr.
82416         (strlen): Remove decl.
82417         (exchange): Remove forward decl; no longer needed.
82418         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82419         Define with prototype.
82420         * lib/getopt1.c (const): Remove macro.
82421         (getopt_long, getopt_long_only, main): Define with prototype.
82422
82423         * lib/getugroups.c: Include <string.h> unconditionally.
82424
82425         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82426         (getusershell, setusershell, endusershell, readname, main):
82427         Define with prototypes.
82428
82429         * lib/group-member.c: Include group-member.h first.
82430         Include <stdlib.h> unconditionally.
82431
82432         * lib/hard-locale.c: Include hard-locale.h first.
82433         Include <stdlib.h>, <string.h> unconditionally.
82434
82435         * lib/hash.c (free, malloc): Remove decls.
82436         Include <stdlib.h> unconditionally.
82437
82438         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82439         (getenv): Do not declare.
82440
82441         * lib/idcache.c: Include <string.h> unconditionally.
82442
82443         * lib/long-options.c: Include long-options.h first, to test interface.
82444         Include <stdlib.h> unconditionally.
82445
82446         * lib/makepath.c: Include makepath.h first, to test interface.
82447         Include <stdlib.h> and <string.h> unconditionally.
82448
82449         * lib/linebuffer.c: Include <stdlib.h>.
82450         (free): Remove decl.
82451
82452         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82453         stddef.h. rpl_malloc returns void *, not char *.
82454         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82455         prototype.
82456
82457         * lib/md5.h: Include <limits.h> unconditionally.
82458         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82459         (__P): Remove; all uses removed.
82460         * lib/md5.c: Include "md5.h" first.
82461         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82462         md5_buffer, md5_process_bytes, md5_process_block):
82463         Define with prototypes.
82464         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82465         * lib/sha.c: Include "sha.h" first.
82466         Include <stdlib.h>, <string.h> unconditionally.
82467
82468         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82469         * lib/memcmp.c (__ptr_t): Likewise.
82470         * lib/memrchr.c (__ptr_t): Likewise.
82471         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82472         Include <string.h> unconditionally.
82473         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82474         * lib/memchr.c: Include <stdlib.h> unconditionally.
82475         * lib/memchr.c (LONG_MAX): Remove.
82476         * lib/memrchr.c (LONG_MAX): Likewise.
82477         * lib/memchr.c (__memchr): Define via a prototype.
82478         * lib/memrchr.c (__memrchr): Likewise.
82479         * lib/memcmp.c (__P): Remove, and remove all uses.
82480         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82481         Remove forward decls; no longer needed.
82482         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82483         Use types required by C89 in prototype.
82484
82485         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82486         * lib/savedir.c: Likewise.
82487         * lib/mkdir.c (free): Remove decl.
82488         * lib/rmdir.c (rmdir): Define with a prototype.
82489         * lib/savedir.c: Include savedir.h first, to test interface.
82490
82491         * lib/mktime.c (STDC_HEADERS): Remove.
82492         Include <stdlib.h>, <string.h> unconditionally.
82493
82494         * lib/modechange.c: Include <stdlib.h> unconditionally.
82495         (malloc): Remove decl.
82496
82497         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82498         (free): Remove decl.
82499
82500         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82501         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82502         (This type really should be intptr_t, but that's a C99ism.)
82503         (_obstack_memcpy): Remove: all uses changed to memcpy.
82504         Include <string.h> unconditionally.
82505         (struct obstack): Assume __STDC__ for types of members
82506         chunkfun, freefun, extra_arg.
82507         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82508         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82509         obstack_begin, obstack_specify_allocation,
82510         obstack_specify_allocation_with_arg, obstack_chunkfun,
82511         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82512         Remove unprototyped decls and the macros that use them.
82513         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82514         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82515         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82516         (defined __STDC__ && __STDC__)]:
82517         Remove nonprototyped code.
82518         Include <stdlib.h> unconditionally.
82519         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82520         _obstack_allocated_p, _obstack_free, obstack_free,
82521         _obstack_memory_used, print_and_abort):
82522         Define using prototypes.
82523         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82524         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82525         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82526         obstack_next_free, obstack_object_size, obstack_room) [0]:
82527         Remove unused, unprototyped code.
82528
82529         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82530
82531         * lib/physmem.c (physmem_total, physmem_available, main): Define
82532         with prototypes.
82533
82534         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82535         (main): Define with a prototype.
82536
82537         * lib/posixver.c (getenv): Remove decl.
82538
82539         * lib/putenv.c (malloc): Returns void *, not char *.
82540         Include <string.h> unconditionally.
82541         (strchr, memcpy, NULL): Do not define.
82542
82543         * lib/readtokens.c: Include readtokens.h first, to test interface.
82544         Include <stdlib.h>, <string.h> unconditionally.
82545         (init_tokenbuffer): Define with a prototype.
82546
82547         * lib/regex.c (PARAMS): Remove.  All uses removed.
82548         All uses of _RE_ARGS removed, too.
82549         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82550         unconditionally.
82551         (bzero): Assume memset exists.
82552         (memcmp, memcpy, NULL): Remove.
82553         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82554         char, or assignments to local vars of type signed char.
82555         (init_syntax_once, PREFIX(extract_number_and_incr),
82556         PREFIX(print_partial_compiled_pattern),
82557         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82558         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82559         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82560         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82561         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82562         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82563         wcs_compile_range, byte_compile_range, truncate_wchar,
82564         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82565         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82566         count_mbs_length, wcs_re_match_2_internal,
82567         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82568         PREFIX(alt_match_null_string_p),
82569         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82570         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82571         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82572         now-unnecessary declaration, if any.
82573         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82574         regcomp, regexec):
82575         Remove now-unnecessary casts among pointer types.
82576         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82577
82578         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82579         (free): Remove decl.
82580
82581         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82582
82583         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82584         (free): Remove decl.
82585
82586         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82587         * lib/xgetcwd.c: Likewise.
82588
82589         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82590         (free): Remove decl.
82591
82592         * lib/strchrnul.c (strchrnul): Define with a prototype.
82593         Fix bug: c_in was not converted to char before searching.
82594
82595         The following changes are not K&R related:
82596
82597         * lib/group-member.h: Include <sys/types.h>, so that this file is
82598         self-contained.
82599         * lib/makepath.h: Likewise.
82600
82601         * lib/getusershell.c (readname, default_index, line_size, readname):
82602         Use size_t, not int, for sizes.
82603         (readname): If the size overflows, report an error instead of
82604         looping forever.
82605
82606 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82607
82608         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82609         libc.
82610
82611 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82612
82613         * README: New section: portability guidelines.
82614
82615 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82616
82617         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82618         C89 spec.
82619
82620 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82621
82622         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82623
82624 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82625
82626         Assume C89 or better; remove K&R cruft.
82627         A few of these changes were first proposed by Derek Robert Price
82628         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82629
82630         * lib/addext.c: Include <string.h> unconditionally.
82631         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82632         Don't declare getenv or malloc.
82633
82634         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82635         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82636         (NULL): Remove.
82637         (find_stack_direction, alloca): Use prototypes.
82638
82639         * lib/atexit.c (atexit): Define using a prototype.
82640
82641         * lib/basename.c, dirname.c, stripslash.c:
82642         Include <string.h> unconditionally.
82643
82644         * lib/bcopy.c: Include <stddef.h>.
82645         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82646
82647         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82648
82649         * lib/error.h (error, error_at_line, error_print_progname)
82650         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82651         * lib/error.c: Include error.h first, to check interface.
82652         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82653         (VA_START): Remove; all uses changeed to va_start.
82654         (exit, strerror): Remove decls.
82655         (error_print_progname): Prototype uncondionally.
82656         Don't include <errno.h>; no longer needed.
82657         (private_strerror): Remove.
82658         (error_tail): Always define.
82659         (error, error_at_line): Assume C89 or better; always use prototypes.
82660         * lib/fatal.c: Include "fatal.h" first, to test interface.
82661         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82662         (VA_START): Remove; all uses changed to va_start.
82663         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82664         this case.
82665         (exit): Remove decl.
82666         (fatal): Prototype unconditionally.  Assume va_start works.
82667         Abort at end, to pacify gcc.
82668
82669         * lib/euidaccess.c (main): Define with a prototype.
82670
82671         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82672
82673         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82674
82675         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82676         prototypes.
82677         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82678         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82679         (getenv): Remove decl.
82680         (fnmatch): Define using a prototype.
82681         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82682         (FCT): Define using a prototype.
82683
82684         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82685
82686         * lib/gethostname.c: Include <stddef.h>.
82687         (gethostname): Define with prototype.  Length is size_t, not int.
82688
82689 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82690
82691         Assume C89 or better; remove K&R cruft.
82692         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82693         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82694         string.h, getenv, malloc.
82695         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82696         headers.
82697         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82698         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82699         do not check for strerror.
82700         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82701         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82702         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82703         do not check for doprnt or vprintf.
82704         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82705         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82706
82707 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82708
82709         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82710         getversion.c should have been removed then, but was accidentally
82711         preserved.
82712
82713         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82714         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82715
82716 2003-09-08  Karl Berry  <karl@gnu.org>
82717
82718         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82719                 config, forget about prep.
82720
82721         * config/depcomp, missing: update from automake.
82722
82723 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82724
82725         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82726         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82727
82728 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82729
82730         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82731         copy_tm_result.  Bug reported by Simon Josefsson in
82732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82733
82734 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82735
82736         * m4/time_r.m4: New file.
82737         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82738         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82739         is. Check for timegm declaration.
82740         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82741         Do not check for gmtime_r.
82742         Replace mktime if __mktime_internal does not exist and if mktime
82743         hasn't been replaced already.
82744
82745 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82746
82747         * lib/time_r.c, lib/time_r.h: New files.
82748
82749         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82750         __localtime_r.
82751         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82752         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82753
82754         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82755         __gmtime_r.
82756         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82757         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82758         Include <time_r.h>.
82759
82760         * lib/timegm.c: Switch to glibc implementation, with the following
82761         changes:
82762         [defined HAVE_CONFIG_H]: Include <config.h>.
82763         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82764         (__mktime_internal) [!defined _LIBC]: New decl.
82765         (__gmtime_r) [!defined _LIBC]: New macro and function.
82766         (timegm): Use a prototype, since gnulib assumes C89.
82767         Do not bother declaring tmp to be const, as it's not really usefu.
82768         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82769         (timegm): Declare only if HAVE_DECL_TIMEGM.
82770
82771 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82772
82773         * MODULES.html.sh (func_all_modules): Add time_r.
82774         * modules/time_r: New file.
82775         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82776         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82777
82778 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82779
82780         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82781         Bug reported by Lute Kamstra in
82782         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82783
82784         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82785         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82786         course with correspondingly smaller numbers for tomorrow and
82787         yesterday.  From Tadayoshi Funaba.  Originally installed into
82788         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82789         coreutils merge?).
82790
82791 2003-08-31  Simon Josefsson  <jas@extundo.com>
82792
82793         * modules/timegm: New file.
82794         * MODULES.html.sh (func_all_modules): Add timegm.
82795
82796 2003-08-31  Simon Josefsson  <jas@extundo.com>
82797
82798         * m4/timegm.m4: New file.
82799
82800 2003-08-31  Simon Josefsson  <jas@extundo.com>
82801
82802         * lib/timegm.h: New file.
82803         * lib/timegm.c: New file.  Based on
82804         wget-1.8.2/src/http.c:mktime_from_utc.
82805
82806 2003-08-31  Karl Berry  <karl@gnu.org>
82807
82808         * lib/argp.h: update from libc.
82809
82810 2003-08-28  Bruno Haible  <bruno@clisp.org>
82811
82812         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82813         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82814         followed by '#define fnmatch fnmatch_posix' gives an error.
82815
82816 2003-08-28  Bruno Haible  <bruno@clisp.org>
82817
82818         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82819         warning on QNX, which defines O_BINARY to 000000.
82820
82821 2003-08-27  Jim Meyering  <jim@meyering.net>
82822
82823         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82824         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82825         would fail after 32.  Reported by Danny Levinson.  Details here:
82826         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82827
82828 2003-08-24  Bruno Haible  <bruno@clisp.org>
82829
82830         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82831         MSVC7 <stdio.h> is included later.
82832
82833 2003-08-22  Simon Josefsson  <jas@extundo.com>
82834
82835         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82836
82837 2003-08-20  Karl Berry  <karl@gnu.org>
82838
82839         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82840
82841 2003-08-20  Bruno Haible  <bruno@clisp.org>
82842
82843         * modules/progname: New file.
82844         * MODULES.html.sh (func_all_modules): Add progname.
82845
82846 2003-08-20  Bruno Haible  <bruno@clisp.org>
82847
82848         * lib/progname.h: New file, from GNU gettext.
82849         * lib/progname.c: New file, from GNU gettext.
82850         * lib/progreloc.c: New file, from GNU gettext.
82851
82852 2003-08-19  Jim Meyering  <jim@meyering.net>
82853
82854         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82855         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82856
82857 2003-08-19  Bruno Haible  <bruno@clisp.org>
82858
82859         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82860         more.
82861
82862 2003-08-19  Bruno Haible  <bruno@clisp.org>
82863
82864         * lib/xstrdup.c: Assume <string.h> exists.
82865
82866 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82867
82868         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82869         in makefile rules.
82870
82871 2003-08-18  Jim Meyering  <jim@meyering.net>
82872
82873         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82874         * m4/lib-ld.m4: Likewise.
82875
82876 2003-08-18  Jim Meyering  <jim@meyering.net>
82877
82878         * lib/setenv.h: Indent nested cpp directive.
82879         * lib/vasnprintf.c: Remove trailing blanks.
82880
82881 2003-08-17  Simon Josefsson  <jas@extundo.com>
82882
82883         * modules/xstrndup: New file.
82884         * MODULES.html.sh (func_all_modules): Add xstrndup.
82885
82886 2003-08-17  Simon Josefsson  <jas@extundo.com>
82887
82888         * modules/argp: Fix autoconf macro name. Add more dependencies.
82889
82890 2003-08-17  Simon Josefsson  <jas@extundo.com>
82891
82892         * m4/xstrndup.m4: New file.
82893
82894 2003-08-17  Simon Josefsson  <jas@extundo.com>
82895
82896         * m4/argp.m4: New file.
82897
82898 2003-08-17  Simon Josefsson  <jas@extundo.com>
82899             Bruno Haible  <bruno@clisp.org>
82900
82901         * lib/xstrndup.h: New file.
82902         * lib/xstrndup.c: New file.
82903
82904 2003-08-17  Bruno Haible  <bruno@clisp.org>
82905
82906         * modules/strndup (Files, Include): Add lib/strndup.h.
82907
82908 2003-08-17  Bruno Haible  <bruno@clisp.org>
82909
82910         * modules/euidaccess (Files): Add lib/euidaccess.h.
82911
82912 2003-08-17  Bruno Haible  <bruno@clisp.org>
82913
82914         * lib/strndup.h: New file.
82915
82916 2003-08-17  Bruno Haible  <bruno@clisp.org>
82917
82918         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82919         like AC_GNU_SOURCE.
82920         * modules/extensions (configure.ac): Comment out the invocation of
82921         gl_USE_SYSTEM_EXTENSIONS.
82922
82923 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82924
82925         Merges from coreutils, etc.
82926         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82927         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82928         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82929         fixing a typo.
82930         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82931         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82932
82933 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82934
82935         Document merge from coreutils.
82936         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82937         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82938         * modules/utime: Add m4/utimes-null.m4.
82939
82940 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82941
82942         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82943         space, undoing this 2003-08-12 change:
82944         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82945
82946 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82947
82948         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82949         strtoul.c from libc, undoing this 2003-08-12 change:
82950         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82951
82952 2003-08-16  Jim Meyering  <jim@meyering.net>
82953
82954         Merges from coreutils.
82955         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82956         prefix.  Adjust cache variables similarly.  Create 500 rather than
82957         just 300 files, to exercise bug on Darwin6.5, too.
82958         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82959         $missing_dir.
82960         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82961         AM_SYS_POSIX_TERMIOS.
82962         Reported by mkc@mathdogs.com.
82963         Also change use of $am_cv_sys_posix_termios
82964         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82965         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82966         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82967         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82968         in /proc/mounts until it finds one with matching device number.  This
82969         is unnecessary when the FILE argument *is* a mount point.  No stat call
82970         is necessary in that case.  So, disable the statvfs-testing code on
82971         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82972         as RedHat bug# 84846.
82973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82974         to 1MB, so as not to render systems with no stack size limit (e.g.,
82975         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82976         Include <unistd.h>.  On some systems,
82977         it is required for the definition of _SC_PAGESIZE.
82978
82979 2003-08-16  Jim Meyering  <jim@meyering.net>
82980
82981         Merge from coreutils.
82982         * lib/xstrtoimax.c: #else #if -> #elif.
82983         * lib/xstrtoumax.c: Likewise.
82984
82985 2003-08-16  Jim Meyering  <jim@meyering.net>
82986
82987         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82988         * m4/utimes.m4: Removed.
82989         * m4/utimes-null.m4: Renamed from utimes.m4.
82990
82991         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82992         to 1MB, so as not to render systems with no stack size limit (e.g.,
82993         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82994         Include <unistd.h>.  On some systems,
82995         it is required for the definition of _SC_PAGESIZE.
82996
82997 2003-08-16  Jim Meyering  <jim@meyering.net>
82998         and Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         Merges from coreutils, etc.
83001
83002         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83003         using the latest version from cvs.  This avoids problems with #line
83004         directives using a vendor (Sun) compiler.
83005         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83006         Don't set GETGROUPS_LIB here; now it's
83007         done via getgroups.m4's wrapper function.
83008         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83009         rather than just in sh-util/configure.in, so that the
83010         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83011         same.
83012         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83013         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83014         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83015         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83016         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83017         Remove code that is now done by the newly-required macros.
83018         Append $(EXEEXT) to DF_PROG.
83019         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83020         Do not invoke or require the following here,
83021         since prereq.m4 or some gnulib .m4 now does this for us:
83022         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83023         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83024         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83025         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83026         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83027         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83028         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83029         AC_FUNC_OBSTACK.
83030         Do not replace the following functions, as this is now the job
83031         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83032         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83033         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83034         atexit getpass, strdup, getpagesize.
83035         Replace 'raise'.
83036         Do not check for the following functions, as this is now the job
83037         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83038         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83039         setregid.
83040         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83041         Check for sys/sysctl.h.
83042         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83043         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83044         of checking for ssize_t ourselves.
83045
83046         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83047         Require every macro that gnulib/modules/* suggests for us.
83048         (jm_PREREQ_ADDEXT): New macro.
83049         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83050         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83051
83052         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83053         (gl_PHYSMEM): Use it.
83054         Also check for `table' function.
83055         Check for new headers and functions.
83056         Add check for sys/sysmp.h.
83057         With suggestions from Kaveh Ghazi.
83058         Ignore headers that are present but cannot be compiled.  This
83059         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83060         C 5.4.
83061
83062 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83063
83064         Document merge from coreutils.
83065         * modules/userspec: Depend on posixver.
83066         * modules/strftime: Depend on tzset.
83067
83068 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83069
83070         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83071         rather than tab, after '#' in shell-script copyright notices.
83072         Suggested by Bruno Haible.
83073
83074 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83075
83076         * config/srclist-update: Use three spaces, rather than tab, after '#'
83077         in shell-script copyright notices.  Suggested by Bruno Haible.
83078         Remove unnecessary parenthesization in regular expression.
83079
83080 2003-08-15  Jim Meyering  <jim@meyering.net>
83081
83082         Merge from coreutils.
83083         * lib/xgethostname.c: Include <stdlib.h>.
83084         (xghostname): Don't exit for anything other than memory-related
83085         failure; just return NULL.
83086         * lib/userspec.c: Include "posixver.h".
83087         (parse_user_spec): Accept `.' as a separator only
83088         in pre-POSIX-200112 mode.
83089         * lib/strtoimax.c: Use #elif rather than #else #if.
83090         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83091         Remove function, now that we can rely on a working tzset function.
83092         [!_LIBC]: Ensure that the required autoconf test has been run.
83093         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83094         Use underlying_strftime for %r.
83095         * lib/sha.c: Merge in some clean-up and optimization changes from
83096         glibc.
83097         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83098         Ensure that it is a multiple of 64.
83099         Rearrange loop exit tests so as to avoid performing an
83100         additional fread after encountering an error or EOF.
83101         * lib/realloc.c: Update copyright date.
83102
83103 2003-08-15  Jim Meyering  <jim@meyering.net>
83104         and Paul Eggert  <eggert@twinsun.com>
83105
83106         Merge from coreutils.
83107         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83108         member but strut utmpx does not.  Needed for AIX 4.3.3.
83109         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83110
83111 2003-08-15  Jim Meyering  <jim@meyering.net>
83112         and Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         Merges from coreutils, etc.
83115         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83116         Require gl_FUNC_TZSET_CLOBBER.
83117         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83118         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83119         members.
83120
83121 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83122
83123         Help the merge from coreutils.
83124         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83125         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83126         * m4/tzset.m4: Use it too.
83127
83128 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83129
83130         * modules/tzset: New file.
83131
83132 2003-08-14  Jim Meyering  <jim@meyering.net>
83133
83134         Merges from coreutils.
83135         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83136         variable names, rather than @FNMATCH_H@.
83137         * modules/alloca: Likewise for $(ALLOCA_H).
83138
83139         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83140         the three copies of the literal target, `fnmatch.h'.
83141         * modules/alloca (alloca.h): Likewise.
83142
83143 2003-08-14  Jim Meyering  <jim@meyering.net>
83144
83145         Merge from coreutils.
83146         * m4/tzset.m4: New file.
83147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83148         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83149         otherwise, AIX 5.1 systems would end up using the latter.
83150         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83151         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83152         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83153         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83154
83155 2003-08-14  Jim Meyering  <jim@meyering.net>
83156
83157         Merge from coreutils.
83158         * lib/obstack.h: Whitespace changes.
83159         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83160         and xcalloc return values.
83161         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83162         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83163         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83164         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83165         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83166         error from mntctl.
83167         Use mntctl's return value to drive the entry-processing loop, since
83168         we can't rely on the value of the vmt_length member in the last
83169         entry.  On some systems doing so could result in exhausting
83170         virtual memory.  Based in part on a patch from Mike Jetzer.
83171
83172 2003-08-14  Jim Meyering  <jim@meyering.net>
83173         and Paul Eggert  <eggert@twinsun.com>
83174
83175         Merges from coreutils, plus other fixes.
83176         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83177         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83178         for credits and details.  Thanks to Kaveh Ghazi for helping
83179         to keep these files in sync.
83180         (ARRAY_SIZE): Define it.
83181         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83182         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83183         (memcasecmp): Don't assume size_t fits in unsigned int.
83184         Remove casts and duplicate code.
83185         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83186         (memcpy): Remove definition.
83187         Merge in some clean-up and optimization changes from glibc.
83188         [BLOCKSIZE]: Move definition to top of file.
83189         Ensure that it is a multiple of 64.
83190         Rearrange loop exit tests so as to avoid performing an
83191         additional fread after encountering an error or EOF.
83192         * lib/md5.h (md5_uintptr): Define.
83193         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83194         return to the initial working directory.  Preserve errno
83195         for caller.
83196         * lib/idcache.c: Include "xalloc.h".
83197         (xmalloc, xrealloc): Remove decls.
83198         (getuser): Remove casts no longer required in C89.
83199         * lib/human.c: Include stdio.h, for sprintf.
83200         * lib/group-member.c: Include "xalloc.h".
83201         (xmalloc, xrealloc): Remove decls.
83202         (get_group_info): Remove casts no longer required in C89.
83203         * lib/getusershell.c (readname): Remove casts no longer required in
83204         C89.
83205         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83206         * lib/getline.c: Whitespace fix, from coreutils.
83207
83208 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83209
83210         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83211         Check for isascii.
83212
83213         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83214         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83215         Undo previous (whitespace-only) change.
83216
83217 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83218
83219         * lib/exclude.c: Include <ctype.h>
83220         (IN_CTYPE_DOMAIN): New macro.
83221         (is_space): New fn.
83222         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83223         and empty lines.
83224
83225         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83226         Undo previous (whitespace-only) change.
83227
83228 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83229
83230         * config/srclist-update: Change update back to the old behavior,
83231         leaving whitespace alone.  Use one 'sed' command rather than a
83232         pipeline.
83233         (fixlicense): Now a variable, not a function.
83234         (remove_trailing_blanks): Remove.
83235         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83236         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83237         Undo previous (whitespace-only) change.
83238
83239 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83240
83241         Merge from coreutils.
83242         * modules/euidaccess: Add lib_SOURCES, include for new
83243         file euidaccess.h
83244
83245 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83246
83247         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83248         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83249         Normalize leading white space and remove trailing white space.
83250
83251         Merge from coreutils
83252         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83253
83254         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83255         0.12.1.  These files are now being upgraded automatically by
83256         ../config/srclist-update.
83257
83258 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83259
83260         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83261         Normalize leading white space and remove trailing white space.
83262         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83263         notice, as per ../config/srclist-update.
83264
83265         Merge from coreutils.
83266         * lib/euidaccess.h: New file.
83267         * lib/euidaccess.c: Include it.
83268         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83269         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83270         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83271
83272 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83273
83274         * config/srclist-update: Add copyright notice.
83275         (remove_id_lines, remove_trailing_blanks): New constants.
83276         (fixfile): Use them to normalize spacing a bit in copied files.
83277         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83278         Normalize leading white space and remove trailing white space.
83279
83280         * config/texinfo.tex: Sync with texinfo.
83281
83282         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83283         strtoul.c from libc, to merge coreutils whitespace changes.
83284
83285         * config/srclist.txt: Get the following m4 files from gettext:
83286         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83287         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83288         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83289         wint_t.m4.
83290
83291 2003-08-12  Karl Berry  <karl@gnu.org>
83292
83293         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83294         been made.
83295
83296 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83297
83298         * modules/gnu-source, m4/gnu-source.m4:
83299         Remove; we're assuming Autoconf 2.54 or later now.
83300         Suggested by Bruno Haible.
83301         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83302
83303 2003-08-11  Bruno Haible  <bruno@clisp.org>
83304
83305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83306
83307 2003-08-11  Bruno Haible  <bruno@clisp.org>
83308
83309         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83310         (vasnprintf): Use it instead of wcslen.
83311
83312 2003-08-11  Bruno Haible  <bruno@clisp.org>
83313
83314         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83315         value to ensure that _Bool promotes to int. Use #define for _Bool when
83316         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83317
83318 2003-08-10  Karl Berry  <karl@gnu.org>
83319
83320         * lib/regex.h: update from libc (whitespace fix).
83321
83322 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83323
83324         Merge some files from coreutils.  These changes were
83325         originally made by Jim Meyering.
83326         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83327         many older Unixes require this.
83328         * lib/alloca.c (alloca): Remove cast to argument of free;
83329         no longer needed in C89.
83330         * lib/alloca_.h, regex.h: Fix white space to match
83331         what GNU indent does.
83332
83333 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83334
83335         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83336         apparently Emacs's Unicode mode got confused before my 2003-08-05
83337         checkin.
83338
83339 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83340
83341         * m4/extensions.m4: New file.
83342         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83343         Require gl_USE_SYSTEM_EXTENSIONS.
83344         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83345         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83346
83347 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83348
83349         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83350         * modules/extensions, modules/gnu-source: New files.
83351         * modules/timespec, modules/unlocked-io: Depend on extensions.
83352
83353 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83354
83355         * modules/restrict: New file.
83356         * MODULES.html.sh (func_all_modules): Add restrict.
83357         * modules/regex: Depend on restrict.
83358
83359 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83360
83361         * m4/restrict.m4: New file.
83362         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83363
83364 2003-08-07  Bruno Haible  <bruno@clisp.org>
83365
83366         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83367         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83368
83369 2003-08-07  Bruno Haible  <bruno@clisp.org>
83370
83371         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83372         makes the module 'getndelim2' compatible with the module 'getline'.
83373
83374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83375
83376         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83377         byte with "\201" to avoid glitches when editing that source file
83378         with multi-gnome-terminal.
83379
83380 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83381
83382         * lib/bumpalloc.h: Remove.
83383
83384 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83385
83386         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83387         * modules/bumpalloc: Remove.
83388
83389 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83390
83391         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83392         GNU coding style.
83393
83394         Merge from coreutils.
83395         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83396         1. From glibc.
83397         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83398         from Karl Berry, implemented by Jim Meyering.
83399         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83400         from Dmitry V. Levin.
83401         Remove anachronistic cast of xrealloc.
83402         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83403         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83404         type. Otherwise, it wouldn't compile with at least /bin/cc on
83405         ymp-cray-unicos9.0.2.X.
83406         Combine two mostly-identical uses of alloca into one.
83407         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83408
83409 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83410
83411         [From Emacs.]
83412
83413         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83414         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83415         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83416         obsolete NLIST_NAME_UNION.
83417         [__GNU__]: Undef BSD and FSCALE.
83418         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83419
83420 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83421
83422         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83423         an enum type, so that it's guaranteed to promote to int.  See:
83424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83425
83426 2003-08-03  Karl Berry  <karl@gnu.org>
83427
83428         * config/depcomp: update from automake.
83429
83430 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83431
83432         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83433         (strerror): Don't assume that a printable int fits in 14 bytes.
83434
83435 2003-07-31  Bruno Haible  <bruno@clisp.org>
83436
83437         * modules/getpass-gnu: New file.
83438         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83439
83440 2003-07-31  Bruno Haible  <bruno@clisp.org>
83441
83442         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83443
83444 2003-07-24  Karl Berry  <karl@gnu.org>
83445
83446         * config/missing: update from automake.
83447
83448 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83449             Bruno Haible  <bruno@clisp.org>
83450
83451         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83452         * lib/getline.c (getline, getdelim): Likewise.
83453         Remove _GNU_SOURCE define; now it's defined in config.h through
83454         m4/getline.m4.
83455
83456 2003-07-23  Karl Berry  <karl@gnu.org>
83457
83458         * config/config.sub: update from prep.
83459
83460 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83461
83462         * modules/xalloc (Depends-on): Add exitfail.
83463         * modules/xmemcoll: Likewise.
83464
83465 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83466
83467         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83468         over-parenthesization in macros.
83469
83470         Sync with coreutils.
83471
83472         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83473         required by C99.
83474
83475         Use `exit_failure' for xalloc and xmemcoll instead of their own
83476         private exit-failure variables.
83477         * lib/xalloc.h (xalloc_exit_failure): Remove.
83478         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83479         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83480         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83481         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83482         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83483
83484 2003-07-20  Jim Meyering  <jim@meyering.net>
83485
83486         * modules/closeout (Depends-on): Add exitfail.
83487         Suggestion from Bruno Haible.
83488
83489 2003-07-19  Karl Berry  <karl@gnu.org>
83490
83491         * config/config.sub: update from prep.
83492
83493 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83494
83495         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83496         Remove.
83497         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83498         to test that it can stand by itself.  Include "exitfail.h".
83499         Clients should set exit_failure instead.
83500         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83501
83502 2003-07-18  Bruno Haible  <bruno@clisp.org>
83503
83504         * modules/getndelim2: New file.
83505         * modules/getline: Share files with module getndelim2.
83506         * modules/getnline: Depend on getndelim2 instead of sharing files with
83507         it. Add getnline.c to lib_SOURCES.
83508         * MODULES.html.sh (func_all_modules): Add getndelim2.
83509
83510 2003-07-18  Bruno Haible  <bruno@clisp.org>
83511
83512         * m4/getndelim2.m4: New file.
83513         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83514         invoke gl_PREREQ_GETNDELIM2.
83515         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83516         gl_PREREQ_GETNDELIM2.
83517         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83518         gl_GETNDELIM2.
83519
83520 2003-07-18  Bruno Haible  <bruno@clisp.org>
83521
83522         * lib/getndelim2.h: New file.
83523         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83524         getndelim2.h.
83525         (getndelim2): Make non-static. Change return type to ssize_t.
83526         * lib/getline.h: Change argument names.
83527         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83528         * lib/getnline.c: Include getndelim2.h.
83529
83530 2003-07-18  Andreas Schwab  <schwab@suse.de>
83531
83532         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83533
83534 2003-07-17  Karl Berry  <karl@gnu.org>
83535
83536         * config/config.sub: update from prep.
83537
83538 2003-07-17  Bruno Haible  <bruno@clisp.org>
83539
83540         * modules/getnline: New file.
83541         * modules/getline: Add lib/getndelim2.c to source file list.
83542         * MODULES.html.sh (func_all_modules): Add getnline.
83543
83544 2003-07-17  Bruno Haible  <bruno@clisp.org>
83545
83546         * m4/getnline.m4: New file.
83547
83548 2003-07-17  Bruno Haible  <bruno@clisp.org>
83549
83550         * m4/Makefile.am.in: Remove file.
83551         * m4/Makefile.am: Remove file.
83552         * m4/Makefile.in: Remove file.
83553
83554 2003-07-17  Bruno Haible  <bruno@clisp.org>
83555
83556         * lib/getnline.h: New file.
83557         * lib/getnline.c: New file.
83558         * lib/getndelim2.c: New file, extracted from getline.c.
83559         (getndelim2): Renamed from getdelim2, with added nmax argument.
83560         * lib/getline.c: Include getndelim2.c.
83561         (getdelim2): Moved out to getndelim2.c.
83562         (getline, getdelim): Update.
83563
83564 2003-07-17  Bruno Haible  <bruno@clisp.org>
83565
83566         * lib/Makefile.am: Remove file.
83567         * lib/Makefile.in: Remove file.
83568
83569 2003-07-17  Bruno Haible  <bruno@clisp.org>
83570
83571         * configure.in: Remove file.
83572         * Makefile.in: Remove file.
83573
83574 2003-07-17  Bruno Haible  <bruno@clisp.org>
83575
83576         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83577
83578 2003-07-16  Karl Berry  <karl@gnu.org>
83579
83580         * config/srclist-update: was running fixlicense twice, which caused
83581                 texinfo.tex to be nullified for some reason.  Simplify,
83582                 $gplsrc is no longer needed as far as I can see?
83583
83584 2003-07-16  Jim Meyering  <jim@meyering.net>
83585
83586         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83587
83588 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83589
83590         * config/srclist.txt: Get the following files from gettext-runtime/intl
83591         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83592         ref-del.sin.  From Bruno Haible.
83593         * config/srclist-update (fixfile): Change grep pattern again, since the
83594         previous fix didn't work (there was another trailing $).  Use
83595         '[$]' to escape the $s.
83596
83597 2003-07-15  Karl Berry  <karl@gnu.org>
83598
83599         * lib/vasnprintf.c: update from gettext.
83600
83601 2003-07-15  Karl Berry  <karl@gnu.org>
83602
83603         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83604         gets expanded when surrounded by '$'.
83605
83606 2003-07-15  Jim Meyering  <jim@meyering.net>
83607
83608         * modules/save-cwd: Don't depend on error.  From Derek Price.
83609
83610 2003-07-15  Jim Meyering  <jim@meyering.net>
83611
83612         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83613
83614 2003-07-14  Simon Josefsson  <jas@extundo.com>
83615
83616         * modules/mempcpy: New file.
83617         * MODULES.html.sh (func_all_modules): Add mempcpy.
83618
83619 2003-07-14  Simon Josefsson  <jas@extundo.com>
83620
83621         * m4/mempcpy.m4: New file.
83622
83623 2003-07-14  Simon Josefsson  <jas@extundo.com>
83624
83625         * lib/mempcpy.h: New file.
83626         * lib/mempcpy.c: New file.
83627
83628 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83629
83630         * modules/getdate, modules/posixtm: Depend on mktime.
83631
83632 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83633
83634         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83635         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83636         unicodeio.c, unicodeio.h, unlocked-io.h:
83637         Switch from LGPL to GPL.
83638
83639 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83640
83641         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83642         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83643         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83644         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83645         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83646         updated automatically by ../config/srclist-update.  This changes
83647         their license from LPGL to GPL.
83648
83649 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83650
83651         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83652         assumed to refer to the root of the most recent stable gettext version.
83653         * config/srclistvars.sh: Add defaults for eggert.
83654         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83655         Match "This program" as well as "The program".  This is needed
83656         for gettext.
83657
83658 2003-07-14  Jim Meyering  <jim@meyering.net>
83659
83660         Don't emit diagnostics.  Let callers do that.
83661         * lib/save-cwd.c: Don't include "error.h".
83662         (save_cwd): Don't call error.  Ensure that errno is valid
83663         when returning nonzero.
83664
83665         * lib/save-cwd.h (restore_cwd): Update prototype.
83666         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83667         Simplify.  Don't call error upon failure.  Let callers do that.
83668         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83669         when auditing is enabled.  But don't bother updating the #if.
83670
83671 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83672
83673         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83674         it breaks C++ compilation.
83675         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83676
83677 2003-07-10  Simon Josefsson  <jas@extundo.com>
83678
83679         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83680
83681 2003-07-10  Jim Meyering  <jim@meyering.net>
83682
83683         * m4/clock_time.m4: Remove trailing blank.
83684         * m4/intmax_t.m4: Likewise.
83685
83686 2003-07-10  Jim Meyering  <jim@meyering.net>
83687
83688         * lib/vasnprintf.c: Remove trailing blanks.
83689         Make cpp indentation consistent.
83690
83691 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83692
83693         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83694         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83695         Switch from LGPL to GPL.
83696
83697 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83698
83699         * config/srclist.txt: Sort sublists.  Add
83700         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83701         that differ from gnulib for one reason or another; we'd like this list
83702         to be smaller but for now let's document what we have.
83703
83704 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83705
83706         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83707         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83708         and sweeter "eval x=$x".
83709         * config/srclist.txt: Get lib/argp* from glibc.
83710
83711 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83712
83713         * lib/mktime.c: Fix some boundary cases and remove need for floating
83714         point.
83715
83716         Issue a compile-time diagnostic if time_t is floating point, or if
83717         two's complement arithmetic is not in effect, or if arithmetic
83718         right shift does not propagate the sign.  These assumptions were
83719         all in the original code but they weren't checked.
83720
83721         (TIME_T_MIDPOINT, verify): New macros.
83722         (__isleap): Remove; it has integer overflow problems.
83723         (leapyear): New function, without those problems.
83724         (ydhms_tm_diff): Remove; splitting into two parts.
83725         (ydhms_diff): New function, containing the arithmetic part of
83726         the old ydhms_tm_diff function.  Issue a compile-time
83727         diagnostic if we are not using C99 integer division.
83728         Avoid casts when possible.
83729         (guess_time_tm): New function, containing the checking part of
83730         the old ydhms_tm_diff function.  Return the new value, rather than
83731         the difference between it and the old.  Accept a new argument T
83732         so that *T specifies the old value.  Check for overflow in the result.
83733
83734         (__mktime_internal): Use a time_t offset, not a long int offset.
83735         This undoes the 2003-06-04 change, which is no longer needed now
83736         that we have better overflow checking.
83737         (localtime_offset): Likewise.
83738
83739         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83740         and long are 64-bit but int is only 32-bit.
83741         (ydhms_diff): Use long int to store year1 and yday1.
83742         Issue a compile-time diagnostic if long int is not wide enough.
83743
83744         (__mktime_internal): Use long int to store adjusted year and yday.
83745         Use plain C rather than preprocessor commands, if that doesn't
83746         affect efficiency.
83747         Check for overflow (and try to repair) after each probe
83748         rather than checking only at the very end.  This avoids some bugs
83749         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83750         does not equal GMT offset at maximum time).
83751         Use integer to check for overflow rather than floating point; this
83752         is more portable to non-IEEE hosts, and is a tad faster.
83753         When we detect that we are oscillating between two values,
83754         don't check whether tm_isdst has the requested value, since
83755         we already know the answer.  When tm_isdst has the wrong value,
83756         use a different heuristic to find the right one, based on the
83757         extreme values actually observed in practice in tz2003a,
83758         rather than the (overly optimistic) "previous 3 calendar quarters".
83759
83760         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83761         "T const" to accommodate glibc style.
83762         (check_result): Use less-confusing report format.  "long" -> "long int.
83763         (main): Likewise.
83764         Don't loop if the iteration overflows time_t.
83765         Allow a negative step in the iteration.
83766
83767 2003-07-06  Karl Berry  <karl@gnu.org>
83768
83769         * config/depcomp: update from automake.
83770         * config/config.sub: update from prep.
83771
83772 2003-07-03  Karl Berry  <karl@gnu.org>
83773
83774         * config/config.guess: update from prep.
83775
83776 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83777
83778         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83779         xreadlink.c now includes it unconditionally.
83780
83781 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83782
83783         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83784         having it depend on HAVE_SYS_TYPES_H.
83785
83786 2003-07-01  Bruno Haible  <bruno@clisp.org>
83787
83788         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83789         <sys/types.h> should be sufficient.
83790         Reported by Paul Eggert.
83791
83792 2003-06-26  Karl Berry  <karl@gnu.org>
83793
83794         * config/depcomp: update from automake.
83795
83796 2003-06-26  Bruno Haible  <bruno@clisp.org>
83797
83798         * modules/human: Depend on module stdbool.
83799
83800 2003-06-25  Bruno Haible  <bruno@clisp.org>
83801
83802         * modules/readlink: New file.
83803         * modules/xreadlink: Depend on it.
83804         * MODULES.html.sh (func_all_modules): Add readlink.
83805
83806 2003-06-25  Bruno Haible  <bruno@clisp.org>
83807
83808         * m4/readlink.m4: New file.
83809
83810 2003-06-25  Bruno Haible  <bruno@clisp.org>
83811
83812         * lib/readlink.c: New file.
83813
83814 2003-06-22  Karl Berry  <karl@gnu.org>
83815
83816         * config/srclist.txt: update mkinstalldirs from automake.
83817         * config/mkinstalldirs: update.
83818
83819 2003-06-22  Bruno Haible  <bruno@clisp.org>
83820
83821         Portability to mingw32.
83822         * m4/ssize_t.m4: New file, from GNU gettext.
83823         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83824         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83825
83826 2003-06-22  Bruno Haible  <bruno@clisp.org>
83827
83828         * modules/safe-read: Add m4/ssize_t.m4.
83829         * modules/xreadlink: Add m4/ssize_t.m4.
83830
83831 2003-06-20  Bruno Haible  <bruno@clisp.org>
83832
83833         Assume C89, so PARAMS isn't needed.
83834         * lib/unicodeio.h (PARAMS): Remove.
83835         * lib/unicodeio.c: Don't use PARAMS.
83836
83837 2003-06-18  Karl Berry  <karl@gnu.org>
83838
83839         * config/config.{guess,sub}: update from prep.
83840
83841 2003-06-18  Jim Meyering  <jim@meyering.net>
83842
83843         Merge changes from coreutils.
83844         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83845         Remove explicit declarations of xmalloc and realloc.
83846         Include xalloc.h.
83847         (read_utmp): Remove anachronistic cast of xmalloc.
83848
83849 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83850
83851         Assume C89, so PARAMS isn't needed.
83852         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83853         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83854         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83855         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83856         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83857         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83858         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83859         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83860         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83861         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83862         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83863         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83864         no longer needed. Anyway, config.h should always be included before any
83865         other file.
83866
83867 2003-06-11  Simon Josefsson  <jas@extundo.com>
83868
83869         * modules/sysexits: New file.
83870         * MODULES.html.sh (func_all_modules): Add sysexits.
83871
83872 2003-06-11  Simon Josefsson  <jas@extundo.com>
83873
83874         * lib/sysexit_.h: New file.
83875
83876 2003-06-11  Derek Price  <derek@ximbiot.com>
83877
83878         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83879         necessary.
83880
83881 2003-06-11  Bruno Haible  <bruno@clisp.org>
83882
83883         * m4/sysexits.m4: New file.
83884
83885 2003-06-10  Simon Josefsson  <jas@extundo.com>
83886
83887         * lib/argp.h: New file, from glibc.
83888         * lib/argp-ba.c: New file, from glibc.
83889         * lib/argp-eexst.c: New file, from glibc.
83890         * lib/argp-fmtstream.c: New file, from glibc.
83891         * lib/argp-fmtstream.h: New file, from glibc.
83892         * lib/argp-fs-xinl.c: New file, from glibc.
83893         * lib/argp-help.c: New file, from glibc.
83894         * lib/argp-namefrob.h: New file, from glibc.
83895         * lib/argp-parse.c: New file, from glibc.
83896         * lib/argp-pv.c: New file, from glibc.
83897         * lib/argp-pvh.c: New file, from glibc.
83898         * lib/argp-xinl.c: New file, from glibc.
83899
83900 2003-06-10  Simon Josefsson  <jas@extundo.com>
83901
83902         * modules/strchrnul: New file.
83903
83904 2003-06-10  Simon Josefsson  <jas@extundo.com>
83905
83906         * modules/argp: New file.
83907
83908 2003-06-10  Simon Josefsson  <jas@extundo.com>
83909
83910         * m4/strchrnul.m4: New file.
83911
83912 2003-06-10  Simon Josefsson  <jas@extundo.com>
83913
83914         * lib/strchrnul.h: New file.
83915         * lib/strchrnul.c: New file.
83916
83917 2003-06-10  Bruno Haible  <bruno@clisp.org>
83918
83919         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83920
83921 2003-06-07  Karl Berry  <karl@gnu.org>
83922
83923         * config/config.{guess,sub}: update from prep.
83924
83925 2003-06-07  Jim Meyering  <jim@meyering.net>
83926
83927         * modules/strtod: Use $(...) notation, not @...@ for
83928         AC_REPLACE'd variables.
83929         * modules/localcharset: Likewise.
83930
83931 2003-06-07  Jim Meyering  <jim@meyering.net>
83932
83933         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83934         in place of my name in the copyright comment.
83935         Remove definition and uses of __P.
83936
83937         From coreutils.
83938         * lib/stat.c: Don't declare xmalloc explicitly.
83939         Instead, include "xalloc.h".
83940         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83941         xrealloc, and xcalloc return values.
83942         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83943         Improve comment.
83944         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83945
83946 2003-06-07  Bruno Haible  <bruno@clisp.org>
83947
83948         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83949         avoid AC_CONFIG_LINKS.
83950         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83951         fnmatch.h, to avoid AC_CONFIG_LINKS.
83952         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83953
83954 2003-06-07  Bruno Haible  <bruno@clisp.org>
83955
83956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83957         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83958         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83959         directory.
83960         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83961         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83962         directory.
83963
83964 2003-06-06  Jim Meyering  <jim@meyering.net>
83965
83966         Merge from coreutils.
83967         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83968         Consolidate declarations and initializations of *_base* locals.
83969
83970         Merge from coreutils.
83971         This avoids a core dump on systems without GNU putenv,
83972         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83973         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83974         (unsetenv): New static function, from GNU libc.
83975         (rpl_putenv): Use it.
83976
83977         * lib/modechange.c: Remove trailing blanks.
83978
83979         Merge from coreutils.
83980         * lib/fsusage.c: Remove declaration of statfs.
83981         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83982
83983         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83984
83985 2003-06-06  Jim Meyering  <jim@meyering.net>
83986
83987         * lib/stdbool_.h: Renamed from stdbool.h.in.
83988
83989 2003-06-06  Jim Meyering  <jim@meyering.net>
83990             Bruno Haible  <bruno@clisp.org>
83991
83992         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83993         Adjust Makefile.am snippet not to redirect directly to target.
83994         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83995
83996 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83997
83998         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83999         mismatch, look in future quarters as well as past.  This fixes a
84000         bug when processing fall-backwards gaps immediately after a long
84001         period of daylight-saving time.
84002
84003         * lib/mktime.c: Assume freestanding C89 or better.
84004         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84005         (__P): Remove; not used.
84006         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84007         (mktime, not_equal_tm, print_tm, check_result,
84008         main): Use prototypes.  Use const * where appropriate.
84009         (main): Fix typo in testing code that uncovered by above changes.
84010         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84011
84012 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84013
84014         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84015         locale.h, localeconv.  This merges changes from coreutils.
84016
84017         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84018         It can be removed after the next Autoconf is released.
84019         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84020         needed.
84021
84022 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84023
84024         * lib/mktime.c: Fix Debian bug 177940
84025         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84026         (localtime_offset): Now long int, not time_t, because we want it
84027         to be guaranteed to be signed.  All uses changed.
84028         (__mktime_internal): If overflow would occur when adding offset,
84029         don't add it.
84030
84031         Merge 'human' changes from coreutils.  Rewrite to support
84032         locale-specific notations like thousands separators.
84033         * lib/human.c: Simplify authorship notice.
84034         Include human.h immediately after config.h.
84035         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84036         <limits.h>: Do not include, since human.h does.
84037         (SIZE_MAX, UINTMAX_MAX): New macros.
84038         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84039         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84040         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84041         (power_letter): Renamed from suffixes.
84042         (generate_suffix_backwards): Remove.
84043         (adjust_value): Now takes int style (because of human.h changes)
84044         and long double value (for greater precision on some platforms).
84045         (group_number): New function.
84046         (human_readable): Use it.  Use integer options, not enum.
84047         Put the options before the sizes in the arg list.
84048         Support all the new options.
84049         The old human_readable function has been removed;
84050         use inttostr.h instead.
84051         (human_readable, default_block_size, humblock):
84052         Use uintmax_t, not int, for block sizes.
84053         (human_readable_inexact, block_size_types): Remove.
84054         (block_size_opts): New constant.
84055         (human_options): Renamed from human_block_size, with new signature
84056         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84057         * lib/human.h: Add copyright and authorship notice.
84058         Include <limits.h> and <stdbool.h> unconditionally.
84059         (PARAMS): Remove.  All uses removed.
84060         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84061         (enum human_inexact_style): Remove tag; now a nameless enum.
84062         (human_floor, human_ceiling, human_round_to_even): Now have
84063         values 2, 0, 1 rather than -1, 1, 0.
84064         (human_group_digits, human_suppress_point_zero, human_autoscale,
84065         human_base_1024, human_SI, human_B): New constants.
84066         (human_readable_inexact, human_block_size): Remove.
84067         (human_readable): Size args are now uintmax_t, not int.
84068         (human_options): New decl.
84069
84070         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84071         unnecessary now that we assume C89 or better.  This change
84072         imported from coreutils.
84073
84074         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84075         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84076         in the 2003-05-30 sync from glibc.
84077
84078         .h files should stand alone, but we shouldn't include <sys/types.h>
84079         if we can get away with just <stddef.h>.
84080
84081         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84082         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84083         rather than <sys/types.h>, as we merely need size_t.
84084         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84085         to get size_t.
84086         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84087         Include <stdio.h>, to get FILE.
84088         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84089         memcasecmp.h has included <stddef.h> and all we need is size_t.
84090         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84091         our interface, instead of including <sys/types.h>
84092
84093 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84094
84095         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84096         now, as glibc mktime is buggy on non-glibc systems.
84097
84098 2003-06-03  Karl Berry  <karl@gnu.org>
84099
84100         * config/config.sub: update from prep.
84101
84102 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84103
84104         [from coreutils]
84105         Fix some minor time-related bugs with POSIX time arguments.
84106         Some valid time stamps were being rejected (notably -1, and
84107         time stamps before 1900 on 64-bit hosts).  And some invalid
84108         time stamps were being accepted, e.g. September 31.
84109
84110         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84111         that we can return (time_t) -1 successfully.
84112         * lib/posixtm.c: Likewise.
84113         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84114         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84115         (t): Remove static var.
84116         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84117         of static var.  All uses changed.
84118         (year): Do not reject years before 1900; they can occur with
84119         64-bit time_t.
84120         (posix_time_parse): Do not check for out-of-range components;
84121         that is now the caller's responsibility, since our checks were
84122         only approximations.
84123         (posixtime): Use mktime to check for out-of-range components,
84124         since it knows them exactly.
84125         If mktime returns (time_t) -1, check whether an error actually occurred
84126         by invoking localtime on -1.
84127         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84128         posixtime failures better.
84129         Improve the test data (in comments only).
84130
84131 2003-06-02  Karl Berry  <karl@gnu.org>
84132
84133         * config/mkinstalldirs (version): new variable.
84134         (--version): new option.
84135         (usage): improve message.
84136
84137 2003-05-30  Karl Berry  <karl@gnu.org>
84138
84139         * lib/mktime.c: update from libc.
84140
84141 2003-05-30  Bruno Haible  <bruno@clisp.org>
84142
84143         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84144         * config/config.rpath: Upgrade to gettext-0.12.1.
84145
84146 2003-05-30  Bruno Haible  <bruno@clisp.org>
84147
84148         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84149         * m4/nls.m4: New file, from gettext-0.12.1.
84150         * m4/po.m4: New file, from gettext-0.12.1.
84151         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84152
84153 2003-05-30  Bruno Haible  <bruno@clisp.org>
84154
84155         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84156         * lib/localcharset.h: Likewise.
84157         * lib/localcharset.c: Likewise.
84158
84159 2003-05-29  Karl Berry  <karl@gnu.org>
84160
84161         * config/config.rpath: update from gettext.
84162
84163 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84164
84165         Assume the headers required for C89 freestanding compilers.
84166         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84167         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84168         * m4/human.m4 (gl_HUMAN): Likewise.
84169         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84170         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84171         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84172         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84173         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84174         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84175
84176 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84177
84178         Assume the headers required for C89 freestanding compilers.
84179         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84180         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84181         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84182         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84183         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84184         define, since <limits.h> is guaranteed to do that.
84185         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84186         * lib/exclude.c: Include <stdbool.h> unconditionally.
84187         * lib/tempname.c: Include <stddef.h> unconditionally.
84188         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84189         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84190         <stddef.h> does that.
84191         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84192         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84193         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84194         needed.
84195         * lib/xstrtol.c: Likewise.
84196         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84197         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84198
84199         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84200         warnings on some platforms.
84201
84202         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84203         arbitrarily.
84204
84205 2003-05-26  Jim Meyering  <jim@meyering.net>
84206
84207         Merge in a change from coreutils:
84208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84209         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84210         that condition, rather than `-1' which is slightly misleading.
84211         Change the name of the cache variable to have the gl_ prefix.
84212         Prompted by a patch from Richard Dawe for DJGPP.
84213
84214 2003-05-24  Karl Berry  <karl@gnu.org>
84215
84216         * config/config.guess: update from prep.
84217
84218 2003-05-22  Karl Berry  <karl@gnu.org>
84219
84220         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84221
84222 2003-05-20  Karl Berry  <karl@gnu.org>
84223
84224         * config/config.guess: update from prep.
84225
84226 2003-05-18  Karl Berry  <karl@gnu.org>
84227
84228         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84229         might actually be set by the user.
84230
84231         * config/depcomp, install-sh, mdate-sh: update from automake.
84232
84233 2003-05-17  Bruno Haible  <bruno@clisp.org>
84234
84235         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84236         invalid expansion for AC_EGREP_CPP.
84237         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84238         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84239         Suggested by Akim Demaille <akim@epita.fr> in
84240         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84241
84242 2003-05-12  Jim Meyering  <jim@meyering.net>
84243
84244         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84245         the space-padded-by-default conversion specifiers, %e, %k, %l.
84246
84247 2003-05-12  Bruno Haible  <bruno@clisp.org>
84248
84249         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84250         the string is longer than 4 KB.
84251
84252 2003-05-11  Karl Berry  <karl@gnu.org>
84253
84254         * config/config.{guess,sub}: update from prep.
84255
84256 2003-05-09  Bruno Haible  <bruno@clisp.org>
84257
84258         * modules/error: Add m4/strerror_r.m4 to file list.
84259
84260 2003-05-03  Bruno Haible  <bruno@clisp.org>
84261
84262         Upgrade to Unicode-4.0.
84263         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84264         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84265         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84266         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84267         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84268         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84269         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84270         Change width of U+E0100..U+E01EF from 1 to 0.
84271
84272 2003-04-25  Jim Meyering  <jim@meyering.net>
84273
84274         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84275         of type size_t, not int.
84276
84277 2003-04-25  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/copy-file.c: Include <stddef.h>, for size_t.
84280
84281 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84282
84283         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84284         code which expansion is under static control.  Patch imported from
84285         Akim Demaille's patch to Bison; see
84286         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84287
84288 2003-04-14  Bruno Haible  <bruno@clisp.org>
84289
84290         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84291
84292 2003-04-11  Jim Meyering  <jim@meyering.net>
84293
84294         Merge changes from Coreutils.
84295
84296         2003-03-22  Jim Meyering  <jim@meyering.net>
84297
84298         * lib/strftime.c (widen): Cast alloca return value to proper type.
84299
84300         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84301
84302         From GNU libc.
84303         * lib/strftime.c (my_strftime): Handle very large width
84304         specifications for numeric values correctly.  Improve checks for
84305         overflow.
84306
84307         2003-01-19  Jim Meyering  <jim@meyering.net>
84308
84309         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84310         definitions.
84311         (nl_get_alt_digit) [! defined my_strftime]: Define.
84312         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84313         _nl_get_alt_digit and _nl_get_walt_digit.
84314
84315         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84316         libc. These changes have no effect outside of _LIBC.
84317
84318 2003-04-10  Bruno Haible  <bruno@clisp.org>
84319
84320         * modules/findprog: New file.
84321         * MODULES.html.sh (func_all_modules): Add it.
84322
84323 2003-04-10  Bruno Haible  <bruno@clisp.org>
84324
84325         * m4/findprog.m4: New file.
84326         * m4/eaccess.m4: New file.
84327
84328 2003-04-10  Bruno Haible  <bruno@clisp.org>
84329
84330         * lib/findprog.h: New file, from GNU gettext.
84331         * lib/findprog.c: New file, from GNU gettext.
84332
84333 2003-04-05  Jim Meyering  <jim@meyering.net>
84334
84335         Merge changes from Coreutils.
84336
84337         * lib/exclude.h (PARAMS): Remove definition and uses.
84338         * lib/exclude.c: Remove uses of `PARAMS'.
84339
84340         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84341         Add test-cases for DOS filenames. Declare program_name.
84342         (main): Set up program_name.  Patch by Rich Dawe.
84343
84344         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84345         error from mntctl.
84346         Use mntctl's return value to drive the entry-processing loop, since
84347         we can't rely on the value of the vmt_length member in the last
84348         entry.  On some systems doing so could result in exhausting
84349         virtual memory.  Based in part on a patch from Mike Jetzer.
84350
84351 2003-04-04  Bruno Haible  <bruno@clisp.org>
84352
84353         * modules/linebreak: New file.
84354         * MODULES.html.sh (func_all_modules): Add it.
84355
84356 2003-04-04  Bruno Haible  <bruno@clisp.org>
84357
84358         * m4/linebreak.m4: New file.
84359
84360 2003-04-04  Bruno Haible  <bruno@clisp.org>
84361
84362         * lib/linebreak.h: New file, from GNU gettext.
84363         * lib/linebreak.c: New file, from GNU gettext with slight
84364         modifications.
84365         * lib/lbrkprop.h: New file, from GNU gettext.
84366
84367 2003-04-03  Bruno Haible  <bruno@clisp.org>
84368
84369         * modules/utf8-ucs4: New file.
84370         * modules/utf16-ucs4: New file.
84371         * modules/ucs4-utf8: New file.
84372         * modules/ucs4-utf16: New file.
84373         * MODULES.html.sh (func_all_modules): Add them.
84374
84375 2003-04-03  Bruno Haible  <bruno@clisp.org>
84376
84377         * m4/utf-ucs4.m4: New file.
84378         * m4/ucs4-utf.m4: New file.
84379
84380 2003-04-03  Bruno Haible  <bruno@clisp.org>
84381
84382         * lib/utf8-ucs4.h: New file, from GNU gettext.
84383         * lib/utf16-ucs4.h: New file, from GNU gettext.
84384         * lib/ucs4-utf8.h: New file, from GNU gettext.
84385         * lib/ucs4-utf16.h: New file, from GNU gettext.
84386
84387 2003-04-02  Bruno Haible  <bruno@clisp.org>
84388
84389         * modules/binary-io: New file.
84390         * MODULES.html.sh (func_all_modules): Add it.
84391
84392 2003-04-02  Bruno Haible  <bruno@clisp.org>
84393
84394         * lib/binary-io.h: New file, from GNU gettext.
84395
84396 2003-04-01  Bruno Haible  <bruno@clisp.org>
84397
84398         * modules/pathname: New file.
84399         * MODULES.html.sh (func_all_modules): Add it.
84400
84401 2003-04-01  Bruno Haible  <bruno@clisp.org>
84402
84403         * lib/pathname.h: New file, from GNU gettext.
84404         * lib/concatpath.c: New file, from GNU gettext.
84405
84406 2003-03-30  Bruno Haible  <bruno@clisp.org>
84407
84408         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84409
84410 2003-03-30  Bruno Haible  <bruno@clisp.org>
84411
84412         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84413         function chown() doesn't exist.
84414
84415 2003-03-28  Bruno Haible  <bruno@clisp.org>
84416
84417         * modules/copy-file: New file.
84418         * MODULES.html.sh (func_all_modules): Add it.
84419
84420 2003-03-28  Bruno Haible  <bruno@clisp.org>
84421
84422         * m4/copy-file.m4: New file.
84423
84424 2003-03-28  Bruno Haible  <bruno@clisp.org>
84425
84426         * lib/copy-file.h: New file, from GNU gettext.
84427         * lib/copy-file.c: New file, from GNU gettext.
84428
84429 2003-03-18  Jim Meyering  <jim@meyering.net>
84430
84431         * lib/quote.c (quote_n): Fix typo in comment.
84432
84433 2003-03-18  Bruno Haible  <bruno@clisp.org>
84434
84435         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84436         checking.
84437         * m4/onceonly_2_57.m4: Likewise.
84438
84439 2003-03-17  Bruno Haible  <bruno@clisp.org>
84440
84441         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84442         (m4_quote): Remove macro.
84443         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84444
84445 2003-03-14  Jim Meyering  <jim@meyering.net>
84446
84447         Merge changes from Coreutils.
84448         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84449         to be const, in order to avoid warnings.
84450         (obstack_room): Likewise.
84451         (obstack_empty_p): Likewise.
84452
84453 2003-03-14  Bruno Haible  <bruno@clisp.org>
84454
84455         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84456         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84457
84458 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84459
84460         Merge changes from Bison.
84461         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84462         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84463         when compiling Bison 1.875's `bitset bset = obstack_alloc
84464         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84465         * lib/hash.c: Include <stdbool.h> unconditionally.
84466
84467 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84468
84469         * m4/onceonly.m4 (m4_quote): New macro.
84470         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84471         Quote AC_FOREACH variable-expansions properly.
84472
84473 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84474
84475         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84476
84477 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84478
84479         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84480         Reported by Bruce Becker; see:
84481         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84482
84483 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84484             Bruno Haible  <bruno@clisp.org>
84485
84486         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84487         Reported by John Hughes, see
84488         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84489
84490 2003-02-20  Bruno Haible  <bruno@clisp.org>
84491
84492         * MODULES.html.sh (func_all_modules): Add poll.
84493
84494 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84495
84496         * modules/poll: New file.
84497
84498 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84499
84500         * lib/poll_.h: New file.
84501         * lib/poll.c: New file.
84502
84503 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84504
84505         * m4/poll.m4: New file.
84506
84507 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84508
84509         * modules/mathl: New file.
84510
84511 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84512
84513         * lib/mathl.h: New file.
84514         * lib/acosl.c: New file.
84515         * lib/asinl.c: New file.
84516         * lib/atanl.c: New file.
84517         * lib/ceill.c: New file.
84518         * lib/cosl.c: New file.
84519         * lib/expl.c: New file.
84520         * lib/floorl.c: New file.
84521         * lib/frexpl.c: New file.
84522         * lib/ldexpl.c: New file.
84523         * lib/logl.c: New file.
84524         * lib/sincosl.c: New file.
84525         * lib/sinl.c: New file.
84526         * lib/sqrtl.c: New file.
84527         * lib/tanl.c: New file.
84528         * lib/trigl.c: New file.
84529         * lib/trigl.h: New file.
84530
84531 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84532
84533         * m4/mathl.m4: New file.
84534
84535 2003-02-18  Bruno Haible  <bruno@clisp.org>
84536
84537         * MODULES.html.sh (func_all_modules): Add mathl.
84538
84539 2003-02-17  Bruno Haible  <bruno@clisp.org>
84540
84541         * modules/mkdtemp: New module.
84542         * MODULES.html.sh (func_all_modules): Add it.
84543
84544 2003-02-17  Bruno Haible  <bruno@clisp.org>
84545
84546         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84547
84548 2003-02-17  Bruno Haible  <bruno@clisp.org>
84549
84550         * lib/mkdtemp.h: New file, from GNU gettext.
84551         * lib/mkdtemp.c: New file, from GNU gettext.
84552
84553 2003-02-02  Jim Meyering  <jim@meyering.net>
84554
84555         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84556         e.g. glibc-2.2.93.
84557
84558 2003-01-31  Bruno Haible  <bruno@clisp.org>
84559
84560         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84561         'rpl_rename'.
84562         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84563         'rpl_strnlen'.
84564         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84565         'rpl_strtod'.
84566         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84567         'rpl_utime'.
84568
84569 2003-01-31  Bruno Haible  <bruno@clisp.org>
84570
84571         * lib/rename.c: #undef rename before defining rpl_rename.
84572         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84573
84574 2003-01-30  Bruno Haible  <bruno@clisp.org>
84575
84576         * modules/vasnprintf, modules/vasprintf: New modules.
84577         * MODULES.html.sh (func_all_modules): Add them.
84578
84579 2003-01-30  Bruno Haible  <bruno@clisp.org>
84580
84581         * m4/signed.m4: New file, from GNU gettext.
84582         * m4/longdouble.m4: New file, from GNU gettext.
84583         * m4/wchar_t.m4: New file, from GNU gettext.
84584         * m4/wint_t.m4: New file, from GNU gettext.
84585         * m4/vasnprintf.m4: New file.
84586         * m4/vasprintf.m4: New file.
84587
84588 2003-01-30  Bruno Haible  <bruno@clisp.org>
84589
84590         * lib/printf-args.h: New file, from GNU gettext.
84591         * lib/printf-args.c: New file, from GNU gettext.
84592         * lib/printf-parse.h: New file, from GNU gettext.
84593         * lib/printf-parse.c: New file, from GNU gettext.
84594         * lib/vasnprintf.h: New file, from GNU gettext.
84595         * lib/vasnprintf.c: New file, from GNU gettext.
84596         * lib/asnprintf.c: New file, from GNU gettext.
84597         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84598         * lib/vasprintf.c: New file, from GNU gettext.
84599         * lib/asprintf.c: New file, from GNU gettext.
84600
84601 2003-01-29  Bruno Haible  <bruno@clisp.org>
84602
84603         * modules/stpncpy: New module.
84604         * MODULES.html.sh (func_all_modules): Add it.
84605
84606 2003-01-29  Bruno Haible  <bruno@clisp.org>
84607
84608         * m4/stpncpy.m4: New file.
84609
84610 2003-01-29  Bruno Haible  <bruno@clisp.org>
84611
84612         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84613         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84614
84615 2003-01-28  Bruno Haible  <bruno@clisp.org>
84616
84617         * modules/c-ctype: New module.
84618         * MODULES.html.sh (func_all_modules): Add it.
84619
84620 2003-01-28  Bruno Haible  <bruno@clisp.org>
84621
84622         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84623         Paul Eggert.
84624         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84625         Paul Eggert.
84626
84627 2003-01-27  Bruno Haible  <bruno@clisp.org>
84628
84629         * modules/xsetenv: New module.
84630         * MODULES.html.sh (func_all_modules): Add it.
84631
84632 2003-01-27  Bruno Haible  <bruno@clisp.org>
84633
84634         * lib/xsetenv.h: New file, from GNU gettext.
84635         * lib/xsetenv.c: New file, from GNU gettext.
84636
84637 2003-01-23  Jim Meyering  <jim@meyering.net>
84638
84639         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84640         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84641
84642 2003-01-23  Bruno Haible  <bruno@clisp.org>
84643
84644         * modules/minmax: New module.
84645         * MODULES.html.sh (func_all_modules): Add it.
84646
84647 2003-01-23  Bruno Haible  <bruno@clisp.org>
84648
84649         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84650         Eggert.
84651
84652 2003-01-22  Bruno Haible  <bruno@clisp.org>
84653
84654         * modules/exit: New module.
84655         * MODULES.html.sh (func_all_modules): Add it.
84656
84657 2003-01-22  Bruno Haible  <bruno@clisp.org>
84658
84659         * lib/exit.h: New file, from GNU gettext.
84660
84661 2003-01-19  Bruno Haible  <bruno@clisp.org>
84662
84663         * gnulib-tool: Recognize option --extract-maintainer.
84664         (func_get_maintainer): New function.
84665         * modules/*: Add Maintainer entry.
84666
84667 2003-01-16  Jim Meyering  <jim@meyering.net>
84668
84669         * m4/regex.m4: The `regex' struct is both input and output.
84670         Initialize it before each use.  Patch by Tim Waugh.
84671
84672 2003-01-16  Bruno Haible  <bruno@clisp.org>
84673
84674         * MODULES.html.sh: Add a table of contents. Add the module name as
84675         leftmost column. Add hyperlinks.
84676
84677 2003-01-15  Bruno Haible  <bruno@clisp.org>
84678
84679         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84680
84681 2003-01-15  Bruno Haible  <bruno@clisp.org>
84682
84683         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84684         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84685         suffix.
84686
84687 2003-01-15  Bruno Haible  <bruno@clisp.org>
84688
84689         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84690
84691 2003-01-15  Bruno Haible  <bruno@clisp.org>
84692
84693         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84694         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84695
84696 2003-01-14  Jim Meyering  <jim@meyering.net>
84697
84698         * lib/same.c (same_name): Tweak a comment.
84699
84700 2003-01-14  Bruno Haible  <bruno@clisp.org>
84701
84702         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84703         when a string comparison is sufficient.
84704
84705 2003-01-14  Bruno Haible  <bruno@clisp.org>
84706
84707         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84708         'unsigned int'.
84709
84710 2003-01-14  Bruno Haible  <bruno@clisp.org>
84711
84712         * lib/hash-pjw.c: Add comment about low quality of this function.
84713
84714 2003-01-13  Bruno Haible  <bruno@clisp.org>
84715
84716         * modules/stpcpy: Distribute lib/stpcpy.h.
84717         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84718
84719 2003-01-13  Bruno Haible  <bruno@clisp.org>
84720
84721         * modules/*: Add a description.
84722         * modules/strpbrk: Fix Makefile.am snippet.
84723         * modules/strtoimax: Fix dependencies.
84724         * modules/strtoumax: Likewise.
84725
84726 2003-01-13  Bruno Haible  <bruno@clisp.org>
84727
84728         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84729         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84730         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84731
84732 2003-01-13  Bruno Haible  <bruno@clisp.org>
84733
84734         * gnulib-tool (func_create_testdir): Store config/* files in the main
84735         directory.
84736         * config.rpath: Move to ...
84737         * config/config.rpath: ... here.
84738         * modules/gettext: Contains config/config.rpath, not config.rpath.
84739         * modules/iconv: Likewise.
84740
84741 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84742
84743         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84744         to avoid collisions with libcurses and libreadline.
84745
84746         * m4/getstr.m4: Remove.
84747         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84748
84749 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84750
84751         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84752         to avoid collisions with libcurses and libreadline.
84753
84754         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84755         * lib/getstr.h, getstr.c: Remove.
84756         * lib/getline.c: Include "getline.h", to check interface.
84757         Move body of old getstr.c here: this defines MIN_CHUNK and
84758         declares getdelim2, which is renamed from getstr.
84759         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84760
84761         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84762         All uses changed.
84763         * lib/linebuffer.h: Likewise.
84764         (readline): Remove backward-compatibility macro.
84765
84766 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84767
84768         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84769         to avoid collisions with libcurses and libreadline.
84770         * getstr: Remove.
84771         * MODULES.html.sh: Remove getstr.
84772         * modules/getline: Depend on unlocked-io, not getstr.
84773
84774 2003-01-12  Jim Meyering  <jim@meyering.net>
84775
84776         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84777
84778 2003-01-10  Bruno Haible  <bruno@clisp.org>
84779
84780         * modules/alloca: Change Makefile.am requirements. Simplify Include
84781         requirements. Add lib/alloca_.h to file list.
84782
84783 2003-01-10  Bruno Haible  <bruno@clisp.org>
84784
84785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84786
84787 2003-01-10  Bruno Haible  <bruno@clisp.org>
84788
84789         * lib/alloca_.h: New file.
84790         * lib/getdate.y: Unconditionally include alloca.h.
84791         * lib/makepath.c: Likewise.
84792         * lib/setenv.c: Likewise.
84793         * lib/userspec.c: Likewise.
84794
84795 2003-01-09  Karl Berry  <karl@gnu.org>
84796
84797         * MODULES.html.sh: include `dirname $0` in PATH, to find
84798         gnulib-tool.
84799
84800 2003-01-09  Bruno Haible  <bruno@clisp.org>
84801
84802         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84803         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84804
84805 2003-01-09  Bruno Haible  <bruno@clisp.org>
84806
84807         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84808
84809 2003-01-09  Bruno Haible  <bruno@clisp.org>
84810
84811         * lib/stdbool.h.in: New file.
84812
84813 2003-01-09  Bruno Haible  <bruno@clisp.org>
84814
84815         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84816         * MODULES.html.sh: Likewise.
84817
84818 2003-01-08  Jim Meyering  <jim@meyering.net>
84819
84820         * lib/full-write.c: Undefine and define-away `const' after inclusion
84821         of errno.h, not before.  Suggestion from Bruno Haible.
84822
84823 2003-01-08  Bruno Haible  <bruno@clisp.org>
84824
84825         * modules/full-read: Depend on full-write.
84826
84827 2003-01-08  Bruno Haible  <bruno@clisp.org>
84828
84829         * lib/safe-read.c: Include specification header first, to ensure its
84830         selfcontainedness.
84831         * lib/full-write.c: Likewise.
84832
84833 2003-01-07  Jim Meyering  <jim@meyering.net>
84834
84835         * lib/full-write.c: Rework so that it may serve to define full_read,
84836         too.
84837         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84838
84839 2003-01-07  Bruno Haible  <bruno@clisp.org>
84840
84841         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84842         <inttypes.h>.
84843         * lib/xstrtol.h: Likewise.
84844         * lib/xstrtoimax.c: Likewise.
84845         * lib/xstrtoumax.c: Likewise.
84846         * lib/human.h: Likewise.
84847
84848         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84849         on systems that have <inttypes.h> but not <stdint.h>.
84850
84851 2003-01-07  Bruno Haible  <bruno@clisp.org>
84852
84853         * MODULES.html.sh: Add copyright notice.
84854         (missed_files): Omit CVS directory entries.
84855         (func_module): Make it work with sed-3.02.
84856         * MODULES.txt: Remove file.
84857
84858 2003-01-06  Jim Meyering  <jim@meyering.net>
84859
84860         * lib/version-etc.c: Update year in translatable copyright string.
84861
84862 2003-01-03  Karl Berry  <karl@gnu.org>
84863
84864         * config/config.{guess,sub}: update from prep.
84865
84866 2003-01-02  Karl Berry  <karl@gnu.org>
84867
84868         * doc/COPYING.DOC: belatedly updated to 1.2.
84869
84870 2003-01-01  Karl Berry  <karl@gnu.org>
84871
84872         * gnulib-tool (func_verify_module): report module name $module in
84873         error message, not $1.
84874         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84875         be created, only if it doesn't exist.
84876         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84877
84878 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84879
84880         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84881
84882 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84883
84884         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84885         memcmp if strcoll doesn't work.
84886
84887 2002-12-31  Bruno Haible  <bruno@clisp.org>
84888
84889         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84890         nonempty.
84891
84892 2002-12-31  Bruno Haible  <bruno@clisp.org>
84893
84894         * lib/memcoll.c (STRCOLL): New macro.
84895         (memcoll): Use it.
84896
84897 2002-12-31  Bruno Haible  <bruno@clisp.org>
84898
84899         * lib/localcharset.h: New file.
84900         * lib/localcharset.c: Include it.
84901         * lib/unicodeio.c: Likewise.
84902
84903 2002-12-31  Bruno Haible  <bruno@clisp.org>
84904
84905         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84906         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84907
84908 2002-12-31  Bruno Haible  <bruno@clisp.org>
84909
84910         * lib/getline.h: Include <stddef.h>, for size_t.
84911
84912         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84913         * lib/unicodeio.c: Don't include <stddef.h>.
84914
84915 2002-12-31  Bruno Haible  <bruno@clisp.org>
84916
84917         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84918         HAVE_TM_ZONE.
84919
84920 2002-12-24  Karl Berry  <karl@gnu.org>
84921
84922         * config/config.guess: update from prep.
84923
84924 2002-12-24  Bruno Haible  <bruno@clisp.org>
84925
84926         General infrasructure.
84927         * m4/README: Rewritten.
84928         * m4/onceonly.m4: New file.
84929         * m4/onceonly_2_57.m4: New file.
84930
84931         Module atexit.
84932         * m4/atexit.m4: New file.
84933
84934         Module strtod.
84935         * m4/strtod.m4: New file.
84936
84937         Module strtol.
84938         * m4/strtol.m4: New file.
84939
84940         Module strtoul.
84941         * m4/strtoul.m4: New file.
84942
84943         Module memchr.
84944         * m4/memchr.m4: New file.
84945
84946         Module memcmp.
84947         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84948         (jm_FUNC_MEMCMP): Invoke it.
84949
84950         Module memcpy.
84951         * m4/memcpy.m4: New file.
84952
84953         Module memmove.
84954         * m4/memmove.m4: New file.
84955
84956         Module memset.
84957         * m4/memset.m4: New file.
84958
84959         Module strcspn.
84960         * m4/strcspn.m4: New file.
84961
84962         Module strpbrk.
84963         * m4/strpbrk.m4: New file.
84964
84965         Module strstr.
84966         * m4/strstr.m4: New file.
84967
84968         Module strerror.
84969         * m4/strerror.m4: New file.
84970
84971         Module mktime.
84972         * m4/mktime.m4: Renamed from jm-mktime.m4.
84973         (gl_PREREQ_MKTIME): New macro.
84974         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84975
84976         Module malloc.
84977         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84978         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84979         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84980
84981         Module realloc.
84982         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84983         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84984         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84985
84986         Module strftime.
84987         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84988         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84989         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84990         gl_TM_GMTOFF.
84991         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84992
84993         Module xalloc.
84994         * m4/xalloc.m4: New file.
84995
84996         Module alloca.
84997         * m4/alloca.m4: New file.
84998
84999         Module putenv.
85000         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85001         (jm_FUNC_PUTENV): Invoke it.
85002
85003         Module setenv.
85004         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85005         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85006         when invoked twice.
85007         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85008         gt_FUNC_SETENV.
85009
85010         Module memrchr.
85011         * m4/memrchr.m4: New file.
85012
85013         Module stpcpy.
85014         * m4/stpcpy.m4: New file.
85015
85016         Module strcase.
85017         * m4/strcase.m4: New file.
85018
85019         Module strdup.
85020         * m4/strdup.m4: New file.
85021
85022         Module strnlen.
85023         * m4/strnlen.m4: New file.
85024
85025         Module strndup.
85026         * m4/strndup.m4: New file.
85027
85028         Module xstrtod.
85029         * m4/xstrtod.m4: New file.
85030
85031         Module xstrtol.
85032         * m4/xstrtol.m4: New file.
85033
85034         Module getdate.
85035         * m4/getdate.m4: New file.
85036
85037         Module unlocked-io.
85038         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85039         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85040         * m4/jm-glibc-io.m4n: Remove file.
85041
85042         Module long-options.
85043         * m4/long-options.m4: New file.
85044
85045         Module md5.
85046         * m4/md5.m4: New file.
85047
85048         Module sha.
85049         * m4/sha.m4: New file.
85050
85051         Module getstr.
85052         * m4/getstr.m4: New file.
85053
85054         Module getline.
85055         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85056         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85057         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85058         simply getline. Infoke gl_PREREQ_GETLINE.
85059
85060         Module obstack.
85061         * m4/obstack.m4: New file.
85062
85063         Module hash.
85064         * m4/hash.m4: New file.
85065
85066         Module readtokens.
85067         * m4/readtokens.m4: New file.
85068
85069         Module strverscmp.
85070         * m4/strverscmp.m4: New file.
85071
85072         Module stdbool.
85073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85074         OSF/1.
85075
85076         Module strtoll.
85077         * m4/strtoll.m4: New file.
85078
85079         Module strtoull.
85080         * m4/strtoull.m4: New file.
85081
85082         Module strtoimax.
85083         * m4/strtoimax.m4: New file.
85084
85085         Module strtoumax.
85086         * m4/strtoumax.m4: New file.
85087
85088         Module xstrtoimax.
85089         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85090         jm_AC_PREREQ_XSTRTOIMAX.
85091         Moved the strtol prerequisites to strtol.m4.
85092         Moved the strtoll prerequisites to strtoll.m4.
85093         Moved the strtoimax prerequisites to strtoimax.m4.
85094
85095         Module xstrtoumax.
85096         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85097         jm_AC_PREREQ_XSTRTOUMAX.
85098         Moved the strtoul prerequisites to strtoul.m4.
85099         Moved the strtoull prerequisites to strtoull.m4.
85100         Moved the strtoumax prerequisites to strtoumax.m4.
85101
85102         Module chown.
85103         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85104         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85105
85106         Module dup2.
85107         * m4/dup2.m4: New file.
85108
85109         Module ftruncate.
85110         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85111         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85112
85113         Module getgroups.
85114         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85115         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85116
85117         Module gettimeofday.
85118         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85119         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85120         gl_PREREQ_GETTIMEOFDAY.
85121
85122         Module mkdir.
85123         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85124         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85125
85126         Module mkstemp.
85127         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85128         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85129         jm_AC_TYPE_UINTMAX_T.
85130         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85131
85132         Module stat.
85133         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85134         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85135
85136         Module lstat.
85137         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85138         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85139
85140         Module timespec.
85141         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85142         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85143         * m4/st_mtim.m4: Indentation.
85144
85145         Module nanosleep.
85146         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85147         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85148         gl_PREREQ_NANOSLEEP.
85149
85150         Module regex.
85151         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85152         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85153         (gl_REGEX): New macro.
85154
85155         Module rename.
85156         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85157         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85158
85159         Module rmdir.
85160         * m4/rmdir.m4: New file.
85161
85162         Module utime.
85163         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85164         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85165         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85166
85167         Module dirname.
85168         * m4/dirname.m4: New file.
85169
85170         Module getopt.
85171         * m4/getopt.m4: New file.
85172
85173         Module unistd-safer.
85174         * m4/unistd-safer.m4: New file.
85175
85176         Module fnmatch.
85177         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85178         declaration.
85179         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85180         (gl_FUNC_FNMATCH_POSIX): New macro.
85181         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85182         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85183         simply fnmatch.
85184
85185         Module exclude.
85186         * m4/exclude.m4: New file.
85187
85188         Module human.
85189         * m4/human.m4: New file.
85190
85191         Module acl.
85192         * m4/acl.m4: Nop.
85193
85194         Module backupfile.
85195         * m4/backupfile.m4: New file.
85196         * m4/d-ino.m4: Indentation.
85197
85198         Module fsusage.
85199         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85200         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85201         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85202
85203         Module dirfd.
85204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85205         requirements.
85206
85207         Module euidaccess.
85208         * m4/euidaccess.m4: New file.
85209
85210         Module file-type.
85211         * m4/file-type.m4: New file.
85212
85213         Module fileblocks.
85214         * m4/fileblocks.m4: New file.
85215
85216         Module filemode.
85217         * m4/filemode.m4: New file.
85218
85219         Module isdir.
85220         * m4/isdir.m4: New file.
85221
85222         Module lchown.
85223         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85224         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85225
85226         Module makepath.
85227         * m4/makepath.m4: New file.
85228
85229         Module modechange.
85230         * m4/modechange.m4: New file.
85231
85232         Module mountlist.
85233         * m4/mountlist.m4: New file.
85234         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85235         Indentation.
85236
85237         Module path-concat.
85238         * m4/path-concat.m4: New file.
85239
85240         Module pathmax.
85241         * m4/pathmax.m4: New file.
85242
85243         Module same.
85244         * m4/same.m4: New file.
85245
85246         Module save-cwd.
85247         * m4/save-cwd.m4: New file.
85248
85249         Module savedir.
85250         * m4/savedir.m4: New file.
85251
85252         Module xgetcwd.
85253         * m4/xgetcwd.m4: New file.
85254         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85255
85256         Module xreadlink.
85257         * m4/xreadlink.m4: New file.
85258
85259         Module safe-read.
85260         * m4/safe-read.m4: New file.
85261
85262         Module safe-write.
85263         * m4/safe-write.m4: New file.
85264
85265         Module closeout.
85266         * m4/closeout.m4: New file.
85267
85268         Module stdio-safer.
85269         * m4/stdio-safer.m4: New file.
85270
85271         Module getpass.
85272         * m4/getpass.m4: New file.
85273
85274         Module getugroups.
85275         * m4/getugroups.m4: New file.
85276
85277         Module group-member.
85278         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85279         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85280
85281         Module idcache.
85282         * m4/idcache.m4: New file.
85283
85284         Module userspec.
85285         * m4/userspec.m4: New file.
85286
85287         Module gettime.
85288         * m4/clock_time.m4: New file.
85289         * m4/gettime.m4: New file.
85290
85291         Module settime.
85292         * m4/settime.m4: New file.
85293
85294         Module posixtm.
85295         * m4/posixtm.m4: New file.
85296
85297         Module gethostname.
85298         * m4/gethostname.m4: New file.
85299
85300         Module canon-host.
85301         * m4/canon-host.m4: New file.
85302
85303         Module gettext.
85304         * m4/codeset.m4: New file, from gettext-0.11.5.
85305         * m4/gettext.m4: New file, from gettext-0.11.5.
85306         * m4/glibc21.m4: New file, from gettext-0.11.5.
85307         * m4/iconv.m4: New file, from gettext-0.11.5.
85308         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85309         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85310         * m4/inttypes.m4: New file, from gettext-0.11.5.
85311         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85312         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85313         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85314         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85315         * m4/lib-link.m4: New file, from gettext-0.11.5.
85316         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85317         * m4/progtest.m4: New file, from gettext-0.11.5.
85318         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85319         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85320         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85321
85322         Module localcharset.
85323         * m4/localcharset.m4: New file.
85324
85325         Module hard-locale.
85326         * m4/hard-locale.m4: New file.
85327
85328         Module mbswidth.
85329         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85330         onceonly macros.
85331         * m4/mbrtowc.m4: Add comment.
85332
85333         Module memcasecmp.
85334         * m4/memcasecmp.m4: New file.
85335
85336         Module memcoll.
85337         * m4/memcoll.m4: New file.
85338
85339         Module unicodeio.
85340         * m4/unicodeio.m4: New file.
85341
85342         Module rpmatch.
85343         * m4/rpmatch.m4: New file.
85344
85345         Module yesno.
85346         * m4/yesno.m4: New file.
85347
85348         Module exitfail.
85349         * m4/exitfail.m4: New file.
85350
85351         Module c-stack.
85352         * m4/c-stack.m4 (gl_C_STACK): New macro.
85353         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85354
85355         Module error.
85356         * m4/error.m4 (gl_ERROR): New macro.
85357         (jm_PREREQ_ERROR): Use onceonly macros.
85358
85359         Module fatal.
85360         * m4/fatal.m4: New file.
85361
85362         Module getloadavg.
85363         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85364         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85365
85366         Module getpagesize.
85367         * m4/getpagesize.m4: New file.
85368
85369         Module getusershell.
85370         * m4/getusershell.m4: New file.
85371
85372         Module physmem.
85373         * m4/physmem.m4: New file.
85374
85375         Module posixver.
85376         * m4/posixver.m4: New file.
85377
85378         Module quotearg.
85379         * m4/quotearg.m4: New file.
85380
85381         Module quote.
85382         * m4/quote.m4: New file.
85383
85384         Module readutmp.
85385         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85386
85387         Module sig2str.
85388         * m4/sig2str.m4: New file.
85389
85390         Other.
85391         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85392         ulonglong.m4.
85393         * m4/intmax_t.m4: New file.
85394         * m4/d-type.m4: Indentation.
85395         * m4/jm-macros.m4: Update.
85396         * m4/prereq.m4 (jm_PREREQ): Update.
85397         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85398         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85399         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85400         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85401         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85402         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85403         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85404         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85405         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85406         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85407         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85408         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85409         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85410         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85411         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85412         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85413         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85414         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85415         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85416
85417 2002-12-24  Bruno Haible  <bruno@clisp.org>
85418
85419         * MODULES.txt: Update according to m4/ changes.
85420
85421         Module gettext.
85422         * config.rpath: New file, from gettext-0.11.5.
85423
85424         * modules/*: New module descriptions.
85425         * gnulib-tool: New file.
85426         * MODULES.html.sh: New file.
85427
85428 2002-12-21  Karl Berry  <karl@gnu.org>
85429
85430         * doc/fdl.texi: update to version 1.2.
85431
85432 2002-12-19  Karl Berry  <karl@gnu.org>
85433
85434         * config/config.guess: update from prep.
85435
85436 2002-12-18  Bruno Haible  <bruno@clisp.org>
85437
85438         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85439         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85440
85441 2002-12-17  Bruno Haible  <bruno@clisp.org>
85442
85443         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85444         stdlib.h, string.h.
85445
85446 2002-12-17  Bruno Haible  <bruno@clisp.org>
85447
85448         * lib/canon-host.c (strdup): Remove unused declaration.
85449
85450         * lib/fsusage.c: Include full_read.h.
85451         (get_fs_usage): Use full_read instead of safe_read.
85452
85453         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85454
85455 2002-12-12  Karl Berry  <karl@gnu.org>
85456
85457         * config/config.guess: update from prep.
85458
85459 2002-12-11  Bruno Haible  <bruno@clisp.org>
85460
85461         * m4/setenv.m4: New file, from gettext-0.11.5.
85462
85463 2002-12-11  Bruno Haible  <bruno@clisp.org>
85464
85465         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85466         not unsetenv().
85467         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85468         modifications:
85469
85470         2002-12-11  Bruno Haible  <bruno@clisp.org>
85471
85472                 * setenv.c (alloca): Fall back to malloc.
85473                 (freea): New macro.
85474                 (setenv): Use freea() to free memory allocated with alloca().
85475
85476         2002-11-13  Bruno Haible  <bruno@clisp.org>
85477
85478                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85479                 function declarations.
85480                 * unsetenv.c (unsetenv): Likewise.
85481
85482         2002-03-04  Bruno Haible  <bruno@clisp.org>
85483
85484                 Portability to AIX 4.3.3.
85485                 * unsetenv.c: New file, extracted from setenv.c.
85486                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85487
85488         2001-12-20  Bruno Haible  <bruno@clisp.org>
85489
85490                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85491                 use malloc instead. For SunOS 4.
85492
85493         2001-12-11  Bruno Haible  <bruno@clisp.org>
85494
85495                 * setenv.c: Declare alloca.
85496                 (compar_fn_t): New typedef.
85497                 (KNOWN_VALUE, STORE_VALUE): Use it.
85498
85499         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85500         setenv.h.
85501
85502 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85503
85504         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85505         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85506         Choose values that are less likely to collide with system fnmatch
85507         options.
85508         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85509         defined (e.g., a pure POSIX system).
85510         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85511         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85512
85513 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85514
85515         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85516         a pain in practice to deal with generated m4 files.  This change
85517         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85518
85519         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85520         and jm-glibc-io.m4, as they are no longer a special case.
85521         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85522         kludge and the auto-generation stuff.  Check only whether the
85523         functions are declared, not whether they exist, since older hosts
85524         that don't declare the functions can't use the optimization anyway.
85525
85526 2002-12-06  Jim Meyering  <jim@meyering.net>
85527
85528         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85529
85530         Merge in changes from libc's misc/error.c, in preparation
85531         for the merge of gnulib's changes back into libc.
85532
85533         * lib/error.c (_): Define only if not already defined.
85534         Move definition to follow all #include directives.
85535         Include unlocked-io.h only if !_LIBC.
85536         [_LIBC]: Include <libio/libioP.h>.
85537         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85538         (fflush): Tweak definition to use INTUSE.
85539         (putc): Define.
85540
85541 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85542
85543         * lib/alloca.c [defined emacs]: Include "lisp.h".
85544         (xalloc_die) [defined emacs]: New macro.
85545         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85546         [! defined emacs]: Include <xalloc.h>.
85547         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85548         (pointer): Typedef to POINTER_TYPE *.
85549         (malloc): Remove decl; we now always use xmalloc.
85550         (alloca): Use old-style definition, since Emacs needs this.
85551         Check for arithmetic overflow when computing combined size.
85552
85553 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85554
85555         Do not generate unlocked-io.h automatically, since it's easier to
85556         maintain it by hand.
85557
85558         * lib/unlocked-io.h: New file, from GNU diffutils,
85559         but with proper copyright notice and attribution.
85560         * lib/gen-uio: Remove.
85561         * lib/Makefile.am: Add copyright notice.
85562         (libfetish_a_SOURCES): Add unlocked-io.h.
85563         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85564         (DISTCLEANFILES, io_functions): Remove macros.
85565         (EXTRA_DIST): Remove gen_uio.
85566         (unlocked-io.h): Remove rule.
85567
85568 2002-12-04  Jim Meyering  <jim@meyering.net>
85569
85570         Reflect the fact that stat.c and lstat.c are no longer generated.
85571         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85572         (DISTCLEANFILES): Likewise.
85573         (EXTRA_DIST): Likewise.
85574         (all_local): Don't depend on stat.c or lstat.c.
85575         (stat.c, lstat.c): Remove rules.
85576         (EXTRA_DIST): Remove xstat.in.
85577
85578         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85579         * lib/stat.c: New file.  Contents mostly from xstat.in.
85580         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85581         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85582
85583         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85584         too.
85585         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85586
85587 2002-12-03  Jim Meyering  <jim@meyering.net>
85588
85589         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85590         but not semantics, to minimize the differences between these two files.
85591         (safe_read): Change comment to mention SAFE_READ_ERROR.
85592
85593         * lib/safe-read.c (IS_EINTR): Define.
85594         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85595
85596 2002-12-02  Jim Meyering  <jim@meyering.net>
85597
85598         * lib/safe-read.c (EINTR): Define.
85599         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85600         (INT_MAX): Provide fallback.
85601         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85602
85603         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85604
85605 2002-12-02  Bruno Haible  <bruno@clisp.org>
85606
85607         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85608         Define, taken from safe-read.c.
85609         (INT_MAX): Provide fallback.
85610         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85611         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85612
85613         * lib/safe-read.c (EINTR): Remove definition.
85614         (safe_read): Don't use EINTR if it is absent.
85615
85616 2002-12-01  Jim Meyering  <jim@meyering.net>
85617
85618         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85619         zero.
85620         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85621
85622 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85623
85624         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85625         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85626         with `if (! (value < limit)) abort ();', for readability.
85627
85628 2002-11-26  Karl Berry  <karl@gnu.org>
85629
85630         * lib/strdup.c: copy from libc again, with jim's ok.
85631         * lib/.cppi-disable: re-add strdup.c
85632
85633 2002-11-25  Karl Berry  <karl@gnu.org>
85634
85635         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85636         instead of "strtol.c".
85637
85638 2002-11-25  Karl Berry  <karl@gnu.org>
85639
85640         * config/install-sh: update from automake for variable quoting, $0 in
85641         error msgs, etc.
85642
85643         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85644         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85645         entry.
85646
85647 2002-11-25  Jim Meyering  <jim@meyering.net>
85648
85649         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85650
85651 2002-11-24  Karl Berry  <karl@gnu.org>
85652
85653         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85654         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85655
85656 2002-11-24  Jim Meyering  <jim@meyering.net>
85657
85658         Update from coreutils:
85659
85660         * lib/mktime.c: Merge in changes from libc.
85661
85662         Avoid a link-time failure on some Linux systems.
85663         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85664         (otherwise).
85665         (__mon_yday): Declare with the STATIC attribute.
85666         (__mktime_internal): Likewise.
85667         Based on a report from Greg Schafer.
85668
85669 2002-11-23  Jim Meyering  <jim@meyering.net>
85670
85671         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85672         Use `unsigned', not `int', as type of index.
85673
85674         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85675
85676         * lib/fsusage.c: Remove unneeded parentheses around operands of
85677         `defined'.
85678
85679 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85680
85681         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85682         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85683         so that we can be included first.
85684         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85685         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85686         No need to include stddef.h or sys/types.h any more.
85687         Surround local include files with "", not "<>".
85688         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85689         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85690         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85691         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85692         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85693         (ISPRINT): Remove; no longer needed now that we assume C89.
85694
85695         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85696         Preserve errno.
85697
85698         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85699         quotearg_char): Use SIZE_MAX rather than
85700         (size_t) -1 when we are talking about "infinity".
85701
85702         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85703
85704 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85705
85706         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85707         hint that one should use `if (! x) abort ();' rather than `assert
85708         (x);', and anyway it's one less thing to worry about configuring.
85709         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85710         hash_rehash, hash_insert): Use abort rather than assert.
85711
85712 2002-11-22  Bruno Haible  <bruno@clisp.org>
85713
85714         * lib/safe-read.h: Assume C89. Add comments.
85715         (safe_read): Change return type to size_t.
85716         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85717         byte counts > SSIZE_MAX correctly.
85718         * lib/safe-write.h: New file.
85719         * lib/safe-write.c: New file.
85720         * lib/full-read.h: New file.
85721         * lib/full-read.c: New file.
85722         * lib/full-write.h: Assume C89. Add comments.
85723         * lib/full-write.c: Include safe-write.h.
85724         (full_write): Rewritten to use safe_write.
85725         Suggested by Jim Meyering and Paul Eggert.
85726
85727 2002-11-21  Jim Meyering  <jim@meyering.net>
85728
85729         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85730
85731         Merge in changes from the coreutils.
85732
85733         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85734         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85735         <stdint.h>.
85736         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85737         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85738         int.  Work more efficiently if X is the same width as uintmax_t.
85739         Do not compare X to -1, to avoid bogus compiler warning.
85740         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85741         Don't assume that f_frsize and f_bsize are the same type.
85742
85743         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85744         warning on FreeBSD.
85745
85746         * lib/makepath.c (make_path): Restore umask *before* creating the final
85747         component.
85748         (make_path): Minor reformatting.
85749
85750         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85751         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85752         HAVE_MALLOC/HAVE_REALLOC.
85753
85754         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85755         dummy ones.  At least on GNU/Linux systems, `auto' means something
85756         else.
85757         From Michael Stone.
85758
85759 2002-11-21  Bruno Haible  <bruno@clisp.org>
85760
85761         Remove case insensitive option matching.
85762         * lib/argmatch.h (argcasematch): Remove declaration.
85763         (ARGCASEMATCH): Remove macro.
85764         (__xargmatch_internal): Remove case_sensitive argument.
85765         (XARGMATCH): Update.
85766         (XARGCASEMATCH): Remove macro.
85767         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85768         case_sensitive argument.
85769         (argcasematch): Remove function.
85770         (__xargmatch_internal): Remove case_sensitive argument.
85771         (main): Use XARGMATCH instead of XARGCASEMATCH.
85772
85773         * lib/xmalloc.c: Change compile-time error message. Add comment about
85774         required autoconf version.
85775
85776 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85777
85778         Merge argmatch cleanups from Bison.  Assume C89.
85779
85780         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85781         Include stdlib.h, for EXIT_FAILURE.
85782         Always include <string.h>, since we assume C89.
85783         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85784         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85785         Include <stddef.h> instead, since it's all we need for size_t.
85786         (PARAMS): Remove.  All uses removed.
85787         (ARRAY_CARDINALITY): Do not bother to #undef.
85788         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85789         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85790         Remove unnecessary parentheses.
85791         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85792         Insert necessary parentheses.
85793         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85794         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85795
85796 2002-11-19  Bruno Haible  <bruno@clisp.org>
85797
85798         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85799         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85800
85801         * lib/mbswidth.h (PARAMS): Remove macro.
85802         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85803         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85804
85805         * lib/gcd.h (PARAMS): Remove macro.
85806         (gcd): Use ANSI C function declarations.
85807         * lib/gcd.c (gcd): Likewise.
85808
85809 2002-11-15  Bruno Haible  <bruno@clisp.org>
85810
85811         * lib/strcspn.c: Include <stddef.h>.
85812         (strcspn): Use ANSI C function declaration. Change return type to
85813         size_t. Use NULL.
85814         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85815         (strpbrk): Use NULL.
85816         * lib/strpbrk.h (PARAMS): Remove macro.
85817         (strpbrk): Use ANSI C function declaration.
85818         * lib/strstr.c: Don't include <sys/types.h>.
85819         * lib/strstr.h (PARAMS): Remove macro.
85820         (strstr): Use ANSI C function declarations.
85821
85822 2002-11-14  Karl Berry  <karl@gnu.org>
85823
85824         * config/mkinstalldirs: `do' on separate line, instead of
85825         `for var; do'.
85826
85827 2002-11-06  Bruno Haible  <bruno@clisp.org>
85828
85829         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85830         * lib/gcd.c (gcd): Likewise.
85831
85832 2002-11-05  Bruno Haible  <bruno@clisp.org>
85833
85834         * lib/gcd.h: New file, from gettext-0.11.5.
85835         * lib/gcd.c: New file, from gettext-0.11.5.
85836
85837 2002-11-05  Bruno Haible  <bruno@clisp.org>
85838
85839         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85840         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85841         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85842         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85843
85844         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85845         <libintl.h>.
85846         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85847         <libintl.h>.
85848
85849         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85850         * lib/human.c: Include gettext.h instead of <libintl.h>.
85851         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85852         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85853         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85854         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85855         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85856         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85857         (textdomain): Remove definition.
85858         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85859
85860         * lib/long-options.c: Remove include of <libintl.h> and definition of
85861         _.
85862         * lib/same.c: Remove include of <libintl.h> and definition of _.
85863
85864 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85865
85866         * lib/config.charset: A few additions for Solaris.
85867
85868 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85869
85870         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85871         * lib/localcharset.c (locale_charset): Declare as extern "C".
85872
85873 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85874
85875         * lib/config.charset: msdos in uk_UA uses CP1125.
85876
85877 2002-11-04  Bruno Haible  <bruno@clisp.org>
85878
85879         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85880         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85881         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85882         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85883         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85884
85885 2002-11-04  Bruno Haible  <bruno@clisp.org>
85886
85887         * lib/localcharset.c (locale_charset): Don't return an empty string.
85888
85889 2002-11-04  Bruno Haible  <bruno@clisp.org>
85890
85891         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85892         aliases.
85893
85894 2002-11-04  Bruno Haible  <bruno@clisp.org>
85895
85896         * lib/config.charset: Update for newest glibc. Add canonical names
85897         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85898
85899 2002-11-04  Bruno Haible  <bruno@clisp.org>
85900
85901         * lib/config.charset: Add support for NetBSD.
85902
85903 2002-11-04  Bruno Haible  <bruno@clisp.org>
85904
85905         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85906
85907 2002-11-01  Bruno Haible  <bruno@clisp.org>
85908
85909         * configure.in: Add AC_CONFIG_AUX_DIR call.
85910         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85911         test/Makefile.
85912         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85913
85914 2002-09-28  Karl Berry  <karl@gnu.org>
85915
85916         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85917         installed automake until the next release, since changes have been
85918         made.
85919
85920 2002-09-25  Karl Berry  <karl@gnu.org>
85921
85922         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85923         * lib/getopt*: copy from libc/posix.
85924         * lib/gettext.h: copy from gettext.
85925         * lib/.cppi-disable: add strdup.c, gettext.h.
85926
85927 2002-09-25  Karl Berry  <karl@gnu.org>
85928
85929         * config/srclist.txt: enable gettext.h check.
85930         * config/config.{guess,sub}: update from prep.
85931         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85932                 from automake 1.6.3.
85933         See srclist*.
85934
85935 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85936
85937         * regex.c (PATFETCH): Remove the translating fetch.
85938         (PATFETCH_RAW): Rename to PATFETCH.
85939         (set_image_of_range): New fun.
85940         (SET_RANGE_TABLE_WORK_AREA): Use it.
85941         (regex_compile): Don't translate the pattern chars so eagerly.
85942         Only do it when inserting an `exactn' bytecode or when handling
85943         a char-range.
85944         (mutually_exclusive_p): Avoid empty statement.
85945
85946 2002-07-06  Jim Meyering  <meyering@lucent.com>
85947
85948         * m4/README: Don't mention Makefile.am.in.
85949         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85950
85951 2002-07-01  Jim Meyering  <meyering@lucent.com>
85952
85953         * lib/c-stack.c: Include sys/time.h.
85954         From Volker Borchert.
85955
85956 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85957
85958         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85959
85960 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85961
85962         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85963         New macro.  Use it uniformly instead of
85964         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85965         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85966         reported by Vin Shelton.
85967
85968 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85969
85970         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85971         Do not assume SA_SIGINFO behavior.
85972         Bug reported by Jim Meyering on NetBSD 1.5.2.
85973
85974 2002-06-22  Jim Meyering  <meyering@lucent.com>
85975
85976         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85977         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85978
85979         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85980         now that configure.ac uses AC_GNU_SOURCE.
85981         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85982         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85983
85984         Update to latest tools.  Suggestions from Paul Eggert.
85985         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85986         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85987         * m4/fnmatch.m4: Likewise.
85988         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85989         to AC_HEADER_STDBOOL
85990
85991 2002-06-22  Jim Meyering  <meyering@lucent.com>
85992
85993         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85994         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85995
85996 2002-06-22  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85999
86000         * lib/exitfail.c, exitfail.h: Likewise.
86001         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86002
86003         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86004         of fnmatch.h.
86005         (EXTRA_DIST): Add fnmatch_loop.c.
86006         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86007
86008         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86009         * lib/fnmatch.c: Update from diffutils-2.8.2.
86010         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86011         * lib/fnmatch.h: Remove file.
86012
86013 2002-06-21  Jim Meyering  <meyering@lucent.com>
86014
86015         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86016         * m4/mbrtowc.m4: Likewise.
86017
86018         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86019         * m4/mbswidth.m4: Reflect name change:
86020         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86021         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86022
86023         * m4/lib-link.m4: Update from gettext-0.11.2.
86024         * m4/gettext.m4: Likewise.
86025
86026         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86027         From Alfred M. Szmidt.
86028
86029 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86030
86031         * lib/file-type.h: Report an error if neither S_ISREG nor
86032         S_IFREG is defined, instead of using a test specific to glibc
86033         2.2.  This should be safe, since POSIX requires S_ISREG and
86034         Unix Version 7 had S_IFREG.  We don't need to check for
86035         <sys/types.h> since we don't use any symbols that it defines.
86036
86037 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86038
86039         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86040         $@-t, so that each temporary file name is unique and valid in the first
86041         8 characters, for operation under DOS.
86042
86043 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86044
86045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86046
86047 2002-06-15  Jim Meyering  <meyering@lucent.com>
86048
86049         Work even with DJGPP 2.03, which lacks support for symlinks.
86050         From Richard Dawe.
86051         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86052         is defined.
86053         * lib/lchown.c (S_ISLNK): Likewise.
86054
86055 2002-06-15  Jim Meyering  <meyering@lucent.com>
86056
86057         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86058         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86059         have been included before this file.
86060
86061 2002-06-14  Jim Meyering  <meyering@lucent.com>
86062
86063         * lib/file-type.h: Use the version from diffutils-2.8.2.
86064         * lib/file-type.c: Likewise.
86065
86066 2002-06-07  Jim Meyering  <meyering@lucent.com>
86067
86068         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86069         They're needed at least for NetBSD 1.5.2.
86070         ($statxfs_includes): Include those same headers.
86071         ($statxfs_includes): Include sys/vfs.h if available.
86072         ($statxfs_includes): Likewise for sys/statvfs.h.
86073         Check for the following members in both structs statfs and statvfs:
86074         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86075
86076 2002-06-01  Jim Meyering  <meyering@lucent.com>
86077
86078         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86079         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86080
86081 2002-05-28  Jim Meyering  <meyering@lucent.com>
86082
86083         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86084         Reported by Volker Borchert.
86085
86086 2002-05-27  Jim Meyering  <meyering@lucent.com>
86087
86088         Fix a problem seen only on nonconforming systems whereby ls.c's
86089         use of localtime, and then of gettimeofday would cause trouble:
86090         the localtime call used to initialize rpl_gettimeofday's save
86091         mechanism would clobber ls's current local time information so
86092         that in any long listing the first file would always be listed
86093         with date 1970-01-01.  Analysis by Volker Borchert.
86094
86095         * lib/gettimeofday.c (localtime): Undefine.
86096         (rpl_localtime): New function.
86097
86098 2002-05-27  Jim Meyering  <meyering@lucent.com>
86099
86100         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86101         localtime.
86102
86103         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86104         use the replacement function; it wouldn't resolve at link time.
86105         Reported by Volker Borchert.
86106
86107 2002-05-22  Jim Meyering  <meyering@lucent.com>
86108
86109         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86110         file-type.h.
86111         * lib/file-type.h: New file.
86112         * lib/file-type.c (file_type): New file/function.  Extracted from
86113         diffutils.
86114
86115 2002-04-30  Jim Meyering  <meyering@lucent.com>
86116
86117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86118
86119 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86120
86121         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86122
86123 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86124
86125         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86126         Do not check for alloca.h (no longer used) or stdbool.h (was never
86127         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86128
86129 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86130
86131         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86132
86133 2002-04-29  Jim Meyering  <meyering@lucent.com>
86134
86135         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86136         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86137         Use AC_FUNC_STRNLEN here instead.
86138
86139         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86140         With autoconf-2.53a, it's part of AC_PROG_CC.
86141
86142 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86143
86144         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86146
86147 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86148
86149         * lib/sig2str.h, lib/sig2str.c: New files.
86150         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86151
86152 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86153
86154         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86155         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86156         of 127, since 64 is the largest conceivable number for ancient
86157         nonstandard hosts.
86158         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86159
86160 2002-04-28  Jim Meyering  <meyering@lucent.com>
86161
86162         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86163
86164 2002-04-24  Jim Meyering  <meyering@lucent.com>
86165
86166         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86167         (jm_PREREQ): Use it.
86168
86169         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86170         mach/mach.h fcntl.h.
86171         Check for this function: setlocale.
86172
86173 2002-04-24  Jim Meyering  <meyering@lucent.com>
86174
86175         * lib/gettext.h: New file, from Gettext.
86176         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86177         (libfetish_a_SOURCES): Add gettext.h.
86178
86179 2002-04-16  Jim Meyering  <meyering@lucent.com>
86180
86181         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86182         ut_pid, ut_id, ut_exit.
86183
86184 2002-04-16  Jim Meyering  <meyering@lucent.com>
86185
86186         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86187         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86188         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86189
86190 2002-04-12  Jim Meyering  <meyering@lucent.com>
86191
86192         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86193         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86194         existence of the getmntinfo function.  Needed for Darwin 5.3.
86195
86196         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86197         This is necessary at least on Darwin 5.3.
86198
86199         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86200         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86201         strnlen.o in the library, and that makes some versions of ranlib
86202         object.
86203
86204 2002-04-12  Jim Meyering  <meyering@lucent.com>
86205
86206         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86207
86208 2002-04-09  Jim Meyering  <meyering@lucent.com>
86209
86210         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86211         to be more precise.  Rather than saying we're checking whether the
86212         function `works', say what we're testing.
86213         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86214         Reported by Bruno Haible.
86215
86216 2002-03-10  Jim Meyering  <meyering@lucent.com>
86217
86218         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86219         Suggestion from Santiago Vila.
86220
86221 2002-03-08  Jim Meyering  <meyering@lucent.com>
86222
86223         * lib/rename.c: Mention that this wrapper is needed also on
86224         mips-dec-ultrix4.4 systems.
86225
86226 2002-03-02  Jim Meyering  <meyering@lucent.com>
86227
86228         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86229         not HAVE_CLOCK_SETTIME.
86230
86231 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86232
86233         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86234         Check for clock_settime.
86235
86236 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86237
86238         * lib/nanosleep.h: Rename to....
86239         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86240
86241         * lib/gettime.c: New file.
86242         * lib/settime.c: New file.
86243         * lib/stime.c: Remove.
86244
86245         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86246         timespec.h.  Remove nanosleep.h.
86247
86248 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86249
86250         * m4/acl.m4: New file.
86251         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86252         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86253
86254 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86255
86256         * lib/acl.c, lib/acl.h: New files.
86257         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86258
86259 2002-02-24  Jim Meyering  <meyering@lucent.com>
86260
86261         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86262         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86263         cause trouble.  Reported by Nelson Beebe.
86264
86265 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86266
86267         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86268         compilers that don't know that xalloc_die never returns.
86269
86270 2002-02-20  Jim Meyering  <meyering@lucent.com>
86271
86272         * lib/getdate.c: Regenerate using bison-1.33.
86273
86274 2002-02-17  Jim Meyering  <meyering@lucent.com>
86275
86276         * config/config.guess (main): Don't use `head -1'; it's no longer
86277         portable. Use `sed 1q' instead.
86278
86279 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86280
86281         * m4/codeset.m4: Upgrade to gettext-0.11.
86282         * m4/gettext.m4: Upgrade to gettext-0.11.
86283         * m4/glibc21.m4: Upgrade to gettext-0.11.
86284         * m4/iconv.m4: Upgrade to gettext-0.11.
86285         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86286         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86287         * m4/lib-ld.m4: New file, from gettext-0.11.
86288         * m4/lib-link.m4: New file, from gettext-0.11.
86289         * m4/lib-prefix.m4: New file, from gettext-0.11.
86290         * m4/progtest.m4: Upgrade to gettext-0.11.
86291
86292 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86293
86294         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86295         (jm_PREREQ): Use it.
86296
86297 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/posixver.c, lib/posixver.h: New files.
86300         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86301
86302 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86303             Bruno Haible  <bruno@clisp.org>
86304
86305         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86306         (fwrite_success_callback): New declaration.
86307         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86308         print_unicode_char. Call failure callback instead of error.
86309         (fwrite_success_callback): New function.
86310         (exit_failure_callback): New function.
86311         (fallback_failure_callback): New function.
86312         (print_unicode_char): Call unicode_to_mb.
86313
86314 2002-01-26  Jim Meyering  <meyering@lucent.com>
86315
86316         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86317         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86318
86319 2002-01-26  Jim Meyering  <meyering@lucent.com>
86320
86321         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86322
86323 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86324
86325         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86326
86327 2002-01-22  Jim Meyering  <meyering@lucent.com>
86328
86329         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86330         Otherwise, some versions of automake would omit the rule that makes
86331         Makefile from Makefile.in.
86332
86333 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86336         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86337         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86338         (memcoll): Set errno to zero if there is no error.
86339
86340         * lib/quotearg.c (quotearg_buffer_restyled):
86341         Fix bug with quoting buffers containing NUL when backslashing escapes.
86342         This bug was exposed by the other changes in this patch.
86343         (quotearg_n_options): New arg ARGSIZE.
86344         All callers changed.
86345         (quoting_options_from_style): New function.
86346         (quotearg_n_style): Use it.
86347         (quotearg_n_style_mem): New function.
86348
86349         * lib/quotearg.h (quotearg_n_style_mem): New function.
86350
86351 2002-01-19  Jim Meyering  <meyering@lucent.com>
86352
86353         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86354         Remove useless quotes: DF_PROG="df".
86355         * m4/strnlen.m4: New file.
86356
86357 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86358
86359         * lib/backupfile.c (ISDIGIT): Comment fix.
86360         * lib/getdate.y (ISDIGIT): Likewise.
86361         * lib/posixtm.c (ISDIGIT, year): Likewise.
86362         * lib/strverscmp.c (ISDIGIT): Likewise.
86363         * lib/userspec.c (ISDIGIT): Likewise.
86364
86365 2002-01-16  Jim Meyering  <meyering@lucent.com>
86366
86367         * lib/getdate.y: Add three semicolons, each just before a closing
86368         brace. Bison (as of version 1.31) no longer papers over that mistake.
86369
86370 2002-01-05  Jim Meyering  <meyering@lucent.com>
86371
86372         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86373
86374 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86375
86376         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86377         not silently exit merely because the output buffer happens to
86378         have nothing pending.
86379
86380 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86381
86382         See the big note in ../ChangeLog.
86383         * lib/human.c (suffixes): Prefer K to k for 1024.
86384         (generate_suffix_backwards): New function.
86385         (human_readable_inexact): Use it.
86386         * lib/xstrtol.c (__xstrtol): If there is no number but there
86387         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86388         Accept 'K' as well as 'k'.
86389
86390 2001-12-15  Jim Meyering  <meyering@lucent.com>
86391
86392         * lib/regex.h (__restrict_arr): Update from libc.
86393
86394         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86395         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86396         (STREQ): Define.
86397
86398 2001-12-14  Jim Meyering  <meyering@lucent.com>
86399
86400         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86401         Suggestion from Bruno Haible.
86402
86403 2001-12-10  Jim Meyering  <meyering@lucent.com>
86404
86405         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86406         xrealloc, Instead, include "xalloc.h".
86407         (initbuffer): Don't cast xmalloc return value to char*.
86408         (readline): Reword comment.
86409         Don't cast xrealloc return value to char*
86410         Return NULL, not 0.
86411
86412 2001-12-09  Jim Meyering  <meyering@lucent.com>
86413
86414         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86415         about `signed and unsigned type in conditional expression'.
86416         * lib/posixtm.c (posix_time_parse): Likewise.
86417
86418         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86419
86420         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86421         to avoid a pedantic warning.
86422
86423         * lib/getstr.c: Don't include assert.h.
86424         (getstr): Remove warning-evoking assertions.
86425         Return -1 if offset parameter is out of bounds.
86426         Change the type of a local from int to size_t.
86427
86428         * lib/strftime.c (my_strftime_localtime_r): Include this function
86429         definition in the `#if ! HAVE_TM_GMTOFF' block.
86430
86431         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86432         Include xalloc.h instead.
86433
86434 2001-12-02  Jim Meyering  <meyering@lucent.com>
86435
86436         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86437         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86438         included.
86439
86440         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86441         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86442
86443 2001-11-30  Akim Demaille  <akim@epita.fr>
86444
86445         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86446         before being defined.
86447
86448 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86449
86450         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86451         First arg is int, not unsigned.
86452         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86453         (SIZE_MAX, UINT_MAX): New macros.
86454         (quotearg_n_options): Abort if N is negative.
86455         Avoid overflow check on hosts where size_t is 64 bits and int
86456         is 32 bits, as overflow is impossible there.
86457         Fix off-by-one typo that caused unnecessary reallocation.
86458
86459 2001-11-27  Jim Meyering  <meyering@lucent.com>
86460
86461         * lib/tempname.c: Merge with version from libc.
86462         * lib/regex.c: Likewise.
86463
86464         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86465         systems for which STDC_HEADERS is 0, it was not included, resulting in
86466         a warning about an integer-to-pointer conversion problem with getenv.
86467         Reported by Volker Borchert.
86468
86469 2001-11-26  Jim Meyering  <meyering@lucent.com>
86470
86471         * lib/gtod.h: Remove file.
86472         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86473         * lib/gettimeofday.c: Don't include gtod.h.
86474         (GTOD_init): Remove function.
86475         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86476         Suggestion from Volker Borchert.
86477
86478 2001-11-23  Jim Meyering  <meyering@lucent.com>
86479
86480         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86481         it.
86482         * lib/hash.c (struct hash_table): Define it here instead.
86483
86484 2001-11-22  Jim Meyering  <meyering@lucent.com>
86485
86486         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86487
86488 2001-11-20  Jim Meyering  <meyering@lucent.com>
86489
86490         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86491         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86492
86493 2001-11-19  Jim Meyering  <meyering@lucent.com>
86494
86495         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86496         directory.  Use "conftestXXXXXX" as the template.
86497         Suggestion from Paul Eggert.
86498
86499         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86500         immediately, so the test doesn't mistakenly hit the max-open-files
86501         limit.
86502
86503 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86504
86505         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86506         (TEMPORARIES): New macro.
86507         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86508         removes an artificial limitation (e.g. HP-UX 10.20, where
86509         TMP_MAX is 17576).
86510
86511 2001-11-18  Jim Meyering  <meyering@lucent.com>
86512
86513         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86514
86515 2001-11-18  Jim Meyering  <meyering@lucent.com>
86516
86517         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86518         on SunOS 4.
86519
86520         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86521         files will be created before anything else.
86522
86523 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86524
86525         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86526         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86527
86528 2001-11-17  Jim Meyering  <meyering@lucent.com>
86529
86530         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86531         Prompted by a report from Bob Proulx.
86532
86533         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86534         Instead, require UTILS_FUNC_MKSTEMP.
86535
86536 2001-11-17  Jim Meyering  <meyering@lucent.com>
86537
86538         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86539         Now, that's done as part of AC_FUNC_STRTOD.
86540
86541 2001-11-17  Jim Meyering  <meyering@lucent.com>
86542
86543         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86544         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86545         rather than group writable.  Patch by Juan F. Codagnone.
86546
86547         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86548         xrealloc, Instead, include "xalloc.h".
86549
86550         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86551         Remove explicit declarations of xmalloc, xrealloc,
86552         and xstrdup.  Instead, include "xalloc.h".
86553
86554         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86555         unlocked-io.h.
86556         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86557         Likewise.
86558         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86559
86560         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86561         Reported by Padraig Brady.
86562
86563         * lib/mkstemp.c: #undef mkstemp.
86564         Include config.h.
86565         (rpl_mkstemp): Rename from mkstemp.
86566         Protoize.
86567
86568 2001-11-16  Jim Meyering  <meyering@lucent.com>
86569
86570         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86571         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86572         determine the amount of total physical memory, use pstat_getstatic.
86573         HPUX-11 doesn't define _SC_PHYS_PAGES.
86574         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86575         If sysconf couldn't be used to determine the amount of available
86576         physical memory, use both pstat_getstatic and pstat_getdynamic.
86577         Based on a patch from Bob Proulx.
86578
86579 2001-11-10  Jim Meyering  <meyering@lucent.com>
86580
86581         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86582         (jm_PREREQ): Use it.
86583
86584 2001-11-09  Jim Meyering  <meyering@lucent.com>
86585
86586         * m4/jm-macros.m4: Require autoconf-2.52f.
86587         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86588         Use these AC_-prefixed names, not the AM_-prefixed ones.
86589
86590         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86591
86592 2001-11-05  Jim Meyering  <meyering@lucent.com>
86593
86594         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86595
86596 2001-11-04  Jim Meyering  <meyering@lucent.com>
86597
86598         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86599         $DEFS.
86600
86601 2001-11-03  Jim Meyering  <meyering@lucent.com>
86602
86603         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86604         of AC_DEFUN.
86605
86606         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86607         know the name of the variable in the macro definition.
86608
86609 2001-11-03  Jim Meyering  <meyering@lucent.com>
86610
86611         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86612         in argmatch_to_argument call.
86613
86614         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86615         argument.
86616
86617         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86618         e.g., a fault due to an attempt to free a NULL pointer.
86619
86620 2001-11-01  Jim Meyering  <meyering@lucent.com>
86621
86622         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86623         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86624
86625 2001-11-01  Jim Meyering  <meyering@lucent.com>
86626
86627         * lib/dirfd.c, lib/dirfd.h: New files.
86628         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86629
86630         * lib/hash.c (hash_print) [TESTING]: Clean up.
86631
86632 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86633
86634         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86635         to avoid a warning if -Wall.
86636
86637 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86638
86639         * README: New file
86640         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86641         (per RMS's instructions, this is now the canonical source)
86642         * lgpl/, gpl/: New directories.
86643
86644 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86645
86646         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86647
86648 2001-10-21  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86651         this code would end up calling gettext even in packages built
86652         with --disable-nls.
86653         * lib/getopt.c (_): Likewise.
86654         * lib/regex.c (_): Likewise.
86655
86656 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86657
86658         * m4/error.m4 (jm_PREREQ_ERROR):
86659         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86660         AC_FUNC_STRERROR_R does that.
86661         Check for strerror declaration.
86662
86663         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86664         are supposed to have them these days.
86665         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86666         Merge changes from latest Autoconf CVS.
86667         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86668         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86669         POSIX decided to standardize on the int flavor of strerror_r.
86670
86671 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86672
86673         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86674         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86675         Use strerror_r that is only a macro, even if it is not a function.
86676         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86677         (private_strerror): Use prototypes, not old-style function definition.
86678         (print_errno_message): New function.
86679         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86680         char*-flavored one.
86681         (error_tail, error, error_at_line): Use it.
86682
86683 2001-10-11  Jim Meyering  <meyering@lucent.com>
86684
86685         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86686         and quote_n (1, ... to avoid clobbering a buffer.
86687
86688 2001-10-05  Jim Meyering  <meyering@lucent.com>
86689
86690         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86691         hash-pjw.h.
86692         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86693         * lib/hash-pjw.h: New file.
86694
86695 2001-09-30  Jim Meyering  <meyering@lucent.com>
86696
86697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86698         `struct fsstat' has the `f_fstypename' member.
86699         Use that to define FS_TYPE, which is now used to make
86700         the getfsstat link test tighter.
86701
86702 2001-09-30  Jim Meyering  <meyering@lucent.com>
86703
86704         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86705         Include <sys/ucred.h>, for Apple Darwin.
86706         Include sys/mount.h and sys/fs_types.h only if available.
86707         (FS_TYPE): Define.
86708         (read_filesystem_list): Use FS_TYPE.
86709
86710 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86711
86712         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86713         a boolean context.
86714
86715 2001-09-29  Jim Meyering  <meyering@lucent.com>
86716
86717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86718         [one-argument getmntent function]): Include stdio.h before mntent.h.
86719         SunOS 4.1.x needs it for the declaration of `FILE'.
86720         Patch by Volker Borchert.
86721
86722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86723         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86724         sys/fs_types.h, and make the link-test for getfsstat guard #include
86725         directives with appropriate #if HAVE_*_H tests so that we can
86726         detect getfsstat on Apple Darwin1.3.7 systems.
86727         Reported by Nelson Beebe.
86728         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86729
86730 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86731
86732         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86733         #defines strtoimax.  Also treat the other strto* functions
86734         like strtoimax.
86735
86736         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86737         Check for strtoul and strtoumax,
86738         as those declarations are made even in the signed case.
86739         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86740         Likewise, for strtol and strtoimax.
86741
86742 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86743
86744         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86745         #defines strtoimax.  Also treat the other strto* functions
86746         like strtoimax.
86747
86748         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86749         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86750         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86751
86752 2001-09-26  Jim Meyering  <meyering@lucent.com>
86753
86754         Most macros in unlocked-io.h had the wrong number of arguments.
86755         * lib/gen-uio: New script.
86756         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86757         * lib/unlocked-io.hin: Remove file.
86758         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86759         rather than trying to embed it here.
86760         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86761         Reported by Padraig Brady.
86762
86763 2001-09-25  Volker Borchert  <bt@teknon.de>
86764
86765         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86766         `result'.
86767
86768 2001-09-24  Jim Meyering  <meyering@lucent.com>
86769
86770         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86771
86772 2001-09-23  Jim Meyering  <meyering@lucent.com>
86773
86774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86775         instead of the mere test for existence of mntent.h.  The latter
86776         would get a false-positive on AIX 3.4 systems.
86777         In the outer getmntent if-block, don't die if neither of the getmntent
86778         tests succeeds.  Instead, just fall through and continue with the
86779         remaining tests.
86780
86781 2001-09-23  Jim Meyering  <meyering@lucent.com>
86782
86783         * lib/mountlist.c: Remove useless parentheses in #if directives.
86784         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86785         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86786
86787 2001-09-22  Jim Meyering  <meyering@lucent.com>
86788
86789         * m4/gettext.m4: New file.  From gettext.
86790         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86791         * m4/progtest.m4: Likewise
86792         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86793         * m4/glibc21.m4: Likewise.
86794
86795         * m4/libintl.m4: Remove.  No longer used.
86796
86797 2001-09-22  Jim Meyering  <meyering@lucent.com>
86798
86799         * lib/localcharset.c: Update from latest gettext.
86800         * lib/config.charset: Likewise.
86801
86802 2001-09-20  Jim Meyering  <meyering@lucent.com>
86803
86804         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86805         strtoimax.
86806         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86807         strtoumax.
86808
86809 2001-09-20  Jim Meyering  <meyering@lucent.com>
86810
86811         * lib/xstrtol.c (strtoimax): Guard declaration with
86812         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86813         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86814         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86815         (strtoumax): Likewise, for completeness (it wasn't necessary).
86816
86817 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86818
86819         * lib/strtoimax.c (HAVE_LONG_LONG):
86820         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86821         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86822         to work around bug in IBM C compiler.
86823
86824 2001-09-17  Jim Meyering  <meyering@lucent.com>
86825
86826         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86827         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86828         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86829         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86830         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86831         whenever the right hand side need not be expanded by the shell.
86832
86833 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86834
86835         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86836         library.  It's not correct, as some older glibcs are buggy.
86837         fnmatch wasn't fixed until glibc 2.2.
86838
86839         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86840         special shell magic here.
86841
86842 2001-09-16  Jim Meyering  <meyering@lucent.com>
86843
86844         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86845         * m4/jm-macros.m4: Require it.
86846
86847 2001-09-16  Jim Meyering  <meyering@lucent.com>
86848
86849         * lib/mkdir.c: New file.
86850
86851 2001-09-15  Jim Meyering  <meyering@lucent.com>
86852
86853         * m4/jm-macros.m4: Check for help2man.
86854
86855 2001-09-11  Jim Meyering  <meyering@lucent.com>
86856
86857         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86858         The body, by Paul Eggert, was moved here from configure.in.
86859         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86860
86861 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86862
86863         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86864         (jm_PREREQ): Use it.
86865
86866 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86867
86868         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86869         Use ssize_t, not int, to store result of readlink.
86870         Check for ssize_t overflow as well as size_t overflow,
86871         as POSIX says the result of readlink is implementation-defined
86872         when ssize_t overflows.
86873         Remove unnecessary cast to char*.
86874         Use free+malloc instead of realloc, as the storage doesn't need
86875         to be preserved and it's clearer and can be more efficient that way.
86876         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86877         * lib/xreadlink.h (xreadlink): Update prototype.
86878
86879 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86880
86881         * lib/xgetcwd.c: Revert some of the previous change; intead,
86882         fix the HAVE_GETCWD_NULL code to behave more like the
86883         !HAVE_GETCWD_NULL code used to.
86884
86885         Include "xalloc.h".
86886         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86887         invoke xalloc_die.
86888
86889 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86890
86891         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86892         sys/param.h, as pathmax.h includes them.
86893
86894 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86895
86896         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86897         (jm_PREREQ_XGETCWD): New macro.
86898
86899         * m4/getcwd.m4: New file.
86900
86901 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86902
86903         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86904         like the HAVE_GETCWD_NULL code.
86905         Include pathmax.h if not HAVE_GETCWD.
86906         Do not include xalloc.h.
86907         (INITIAL_BUFFER_SIZE): New symbol.
86908         Do not use xmalloc / xrealloc, since the caller is responsible for
86909         handling errors.  Preserve errno around `free' during failure.
86910         Do not overrun buffer when using getwd.
86911
86912 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86913
86914         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86915         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86916         getcwd (NULL, 0).
86917
86918 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86919
86920         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86921         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86922         spotted by Jim Meyering.
86923
86924 2001-09-03  Jim Meyering  <meyering@lucent.com>
86925
86926         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86927         failure.
86928
86929 2001-09-02  Jim Meyering  <meyering@lucent.com>
86930
86931         * lib/error.c: Update from GNU libc.
86932
86933 2001-09-01  Jim Meyering  <meyering@lucent.com>
86934
86935         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86936         Used by df.
86937
86938 2001-09-01  Jim Meyering  <meyering@lucent.com>
86939
86940         * lib/xreadlink.c: New file.
86941         * lib/xreadlink.h: New file.
86942         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86943         xreadlink.h.
86944
86945         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86946         doesn't conflict with sparc Solaris 7's definition in
86947         /usr/include/sys/int_types.h.
86948
86949         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86950         files.
86951         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86952         and strncasecmp as r-values.  Unixware didn't have declarations.
86953
86954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86955
86956         * lib/xstrtol.h: Add copyright notice.
86957         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86958         LONGINT_INVALID_SUFFIX_CHAR.
86959
86960 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86961
86962         * lib/xstrtol.c (strtoimax): New decl.
86963
86964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86965
86966         * lib/xgetcwd.c: Don't include pathmax.h.
86967         Include stdlib.h and unistd.h if available.
86968         Include xalloc.h.
86969         (xmalloc, xstrdup, free): Remove decls.
86970         (xgetcwd): Don't assume sizes fit in unsigned.
86971         Check for overflow when computing sizes.
86972         Simplify reallocation code.
86973
86974 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86975
86976         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86977         a directory's st_size can have an arbitrary value, so the old
86978         usage could waste an arbitrary amount of memory.  All uses
86979         changed.
86980         * lib/savedir.h: Update prototype.
86981
86982 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86983
86984         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86985
86986         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86987         old strtoimax.c.
86988
86989         Also, make the following further changes to make this file's
86990         configuration more similar to that of strtol.c:
86991         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86992         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86993         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86994         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86995         changed to signed values.
86996
86997         And make the following changes as well:
86998         Fix copyright notice, as 1999 was missing.
86999         (verify): New macro.
87000         (strtoimax): Check sizes at compile-time, not run-time.
87001         Prefer strtol to strtoll if both work.
87002         (main): Remove; it was not that useful and was a pain to maintain.
87003
87004         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87005
87006 2001-08-31  Jim Meyering  <meyering@lucent.com>
87007
87008         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87009         Use an initial, malloc'd, buffer of length 128 rather than
87010         a statically allocated one of length 1024.
87011
87012 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87013
87014         Simplify code, partly by assuming autoconf 2.52 semantics.
87015
87016         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87017
87018         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87019         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87020         All uses removed.
87021         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87022         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87023         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87024         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87025         jm_AC_HEADER_INTTYPES_H.
87026         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87027
87028         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87029
87030         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87031         Quote first arg of AC_DEFUN.
87032         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87033         since they are needed to parse the include file even if we need
87034         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87035         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87036         but with opposite signedness.
87037
87038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87039
87040         Merge 'exclude' changes from tar 1.13.22.
87041         This fixes one or two unlikely storage allocation overflow bugs,
87042         but doesn't change user-visible behavior otherwise.
87043
87044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87045
87046         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87047         (jm_PREREQ_EXCLUDE): New macro.
87048
87049 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87050
87051         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87052         tm to be declared.
87053
87054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87055
87056         * lib/hash.c: Remove '2001' from copyright notice.
87057
87058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87059
87060         * lib/full-write.h: New file.
87061         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87062         * lib/full-write.c: Correct credits, as cccp.c no longer
87063         exists and anyway it was so heavily changed from the old cccp
87064         code as to be unrecognizable.  Include full-write.h.
87065         (full_write): Return size_t, with short writes meaning failure.
87066         All callers changed.  This fixes a bug with large buffers
87067         on 64-bit hosts.
87068         * lib/utime.c: Include full-write.h.
87069
87070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87071
87072         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87073         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87074         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87075         Include if available.
87076         (<xalloc.h>): Include
87077         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87078         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87079         collide with FNM macros.
87080         (struct patopts): New struct.
87081         (struct exclude): Use it, as exclude patterns now come with options.
87082         (new_exclude): Support above changes.
87083         (new_exclude, add_exclude_file):
87084         Initial size must now be a power of two to simplify overflow checking.
87085         (free_exclude, fnmatch_no_wildcards): New function.
87086         (excluded_filename): No longer requires options arg, as the options
87087         are determined by add_exclude.  Now returns bool, not int.
87088         (excluded_filename, add_exclude):
87089         Add support for the fancy new exclusion options.
87090         (add_exclude, add_exclude_file): Now takes int options arg.
87091         Check for arithmetic overflow when computing sizes.
87092         (add_exclude_file): xrealloc might modify errno, so don't
87093         realloc until after errno might be used.
87094
87095         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87096         New macros.
87097         (free_exclude): New decl.
87098         (add_exclude, add_exclude_file): Now takes int options arg.
87099         (excluded_filename): No longer requires options arg, as the options
87100         are determined by add_exclude.  Now returns bool, not int.
87101
87102 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87103
87104         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87105
87106 2001-08-27  Jim Meyering  <meyering@lucent.com>
87107
87108         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87109
87110         * lib/version-etc.c (N_): Remove definition.
87111         Revert most of last change.
87112         Instead, simply don't mark the `Copyright...' string for translation.
87113         Based on advice from Paul Eggert.
87114
87115         * lib/strtoxmax.c: Tweak comment.
87116
87117 2001-08-26  Jim Meyering  <meyering@lucent.com>
87118
87119         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87120
87121         * m4/xstrtoimax.m4: New file.
87122         * m4/xstrtoumax.m4: Add comments explaining why we
87123         AC_REPLACE_FUNCS(strtol).
87124
87125 2001-08-26  Jim Meyering  <meyering@lucent.com>
87126
87127         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87128         of copyright with `%s' so translators don't get an untranslated
87129         message in 2002.
87130         (COPYRIGHT_YEAR): Define.
87131         (version_etc): Use fprintf rather than fputs.
87132         Suggestion from Ulrich Drepper.
87133
87134         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87135
87136         * lib/strtoll.c: New file, from GNU libc.
87137         * lib/xstrtoimax.c: New file.
87138
87139         * lib/xstrtol.h: Add xstrtoimax.
87140         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87141         * lib/strtoimax.c: New file.  Likewise, but first define
87142         STRTOUXMAX_SIGNED.
87143
87144         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87145         ...
87146         * lib/strtoxmax.c: ... then renamed to this.
87147
87148 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87149
87150         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87151         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87152         (jm_AC_TYPE_INTMAX_T): New macro.
87153         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87154
87155         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87156
87157         * m4/longlong.m4: Renamed from ulonglong.m4.
87158         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87159         * m4/uintmax_t.m4: Removed.
87160
87161 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87162
87163         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87164         Port to Solaris 8, where 'sed' requires a space after the 'r'
87165         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87166         Redirect output to $tmp just once.
87167
87168 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87169
87170         * lib/addext.c (<errno.h>): Include.
87171         (errno): Declare if not defined.
87172         (addext): Work correctly when pathconf returns -1 and leaves
87173         errno alone because there is no limit.  Also, work even if
87174         pathconf returns a value greater than SIZE_MAX.
87175
87176 2001-08-12  Jim Meyering  <meyering@lucent.com>
87177
87178         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87179         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87180         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87181         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87182         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87183         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87184         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87185         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87186         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87187         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87188         utime.m4, utimes.m4, xstrtoumax.m4:
87189         Quote the first argument in each use of AC_DEFUN.
87190
87191 2001-08-12  Jim Meyering  <meyering@lucent.com>
87192
87193         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87194         Simply `return getcwd (NULL, 0);'.
87195         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87196         Use 1300 as initial value for length, not PATH_MAX.
87197
87198         * lib/pathmax.h: Clean up cpp syntax.
87199
87200 2001-08-12  Jim Meyering  <meyering@lucent.com>
87201
87202         * lib/gettimeofday.c: New file.
87203         * lib/gtod.h: New file.
87204         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87205
87206 2001-08-05  Jim Meyering  <meyering@lucent.com>
87207
87208         * m4/jm-macros.m4: Require autoconf-2.52.
87209
87210 2001-08-04  Jim Meyering  <meyering@lucent.com>
87211
87212         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87213         stmt, to get in sync with glibc.
87214
87215 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87216
87217         The following changes are from gettext 0.10.39 as maintained by
87218         Bruno Haible.
87219
87220         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87221         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87222         with inverted sense.  All uses changed.
87223
87224         * lib/mbswidth.c: Don't include <limits.h>.
87225         Include <stdlib.h> and <string.h> unconditionally.
87226         (iswcntrl, mbsinit, ISCNTRL): New macros.
87227         (mbsnwidth): Use K&R style function declarations.
87228         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87229         can optimize it when MB_CUR_MAX == 1.
87230         The width of control characters is zero, not 1.
87231
87232 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87233
87234         The following changes are from gettext 0.10.39 as maintained by
87235         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87236
87237         * m4/codeset.m4: Upgrade to serial AM1.
87238         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87239         all uses changed.  Quote first arg of AC_DEFUN.
87240         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87241
87242         * m4/iconv.m4: Upgrade to serial AM2.
87243         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87244         Add --with-libconv-prefix.
87245         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87246         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87247         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87248         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87249         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87250
87251         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87252         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87253         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87254         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87255         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87256         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87257         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87258         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87259         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87260
87261         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87262         string.h any more.
87263
87264         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87265         not the default value.
87266
87267         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87268         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87269         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87270         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87271         Also check for iswcntrl, used for wcwidth fallback.
87272         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87273         to Autoconf 2.13.
87274
87275 2001-08-03  Jim Meyering  <meyering@lucent.com>
87276
87277         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87278         as it was in the original.  Reported by Paul Eggert.
87279
87280 2001-07-16  Jim Meyering  <meyering@lucent.com>
87281
87282         * m4/gettimeofday.m4: New file.
87283         Prompted by a report from Bernhard Baehr.
87284
87285 2001-07-15  Jim Meyering  <meyering@lucent.com>
87286
87287         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87288         stuff. Now it's in ../Makefile.cfg.
87289
87290 2001-07-15  Jim Meyering  <meyering@lucent.com>
87291
87292         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87293         (BUILT_SOURCES): Add unlocked-io.h.
87294         (io_functions): Define.
87295         (unlocked-io.h): New rule.
87296         (DISTCLEANFILES): Add unlocked-io.h.
87297         (all-local): Depend on unlocked-io.h, to ensure it is created.
87298
87299         * lib/unlocked-io.hin: New file
87300
87301         * lib/regex.c: Update from glibc.
87302
87303 2001-07-05  Jim Meyering  <meyering@lucent.com>
87304
87305         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87306         recommendation.
87307         (libfetish_a_SOURCES): Put all .h files here instead.
87308         Remove a thus-exposed (better checks in automake) duplicate and
87309         two unnecessary .h files.
87310
87311 2001-07-04  Jim Meyering  <meyering@lucent.com>
87312
87313         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87314         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87315         distcheck failure.
87316
87317 2001-07-02  Jim Meyering  <meyering@lucent.com>
87318
87319         The following changes were prompted by suggestions from Bruno Haible.
87320
87321         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87322         is now generated.
87323         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87324         definition of EXTRA_DIST.
87325         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87326         ensure that the generated file is created/updated whenever the list
87327         of $(unlocked_functions) is changed.
87328         (jm-glibc-io.m4): New rule.
87329         (unlocked-io.h): New rule -- currently unused.
87330
87331 2001-06-24  Jim Meyering  <meyering@lucent.com>
87332
87333         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87334         unmatched right bracket, rather than kludging it with an extra,
87335         falsely-matching quote in a comment.  Patch by Akim Demaille.
87336
87337 2001-06-11  Jim Meyering  <meyering@lucent.com>
87338
87339         * lib/regex.c: Update from GNU libc.
87340
87341 2001-05-27  Jim Meyering  <meyering@lucent.com>
87342
87343         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87344         Check for ut_type in struct utmp.
87345
87346 2001-05-27  Jim Meyering  <meyering@lucent.com>
87347
87348         * lib/readutmp.h (UT_TYPE): Define.
87349
87350 2001-05-24  Jim Meyering  <meyering@lucent.com>
87351
87352         * lib/argmatch.c: Include "quote.h".
87353         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87354         quote function.  Reported by Göran Uddeborg.
87355
87356 2001-05-22  Jim Meyering  <meyering@lucent.com>
87357
87358         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87359         now that we use the package-supplied version unconditionally.
87360         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87361
87362 2001-05-21  Jim Meyering  <meyering@lucent.com>
87363
87364         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87365         shell syntax errors.
87366
87367 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87368
87369         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87370
87371 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87372
87373         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87374         Don't bother to check library strftime, since
87375         we'll be using our own my_strftime function anyway.
87376         Define my_strftime instead of strftime.
87377
87378 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87379
87380         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87381         which is not yet declared.
87382
87383 2001-05-15  Jim Meyering  <meyering@lucent.com>
87384
87385         * m4/regex.m4: Use proper quoting so brackets appear in the test
87386         program.
87387         Reported by, and with help from, Bruno Haible.
87388
87389 2001-05-13  Jim Meyering  <meyering@lucent.com>
87390
87391         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87392         undefined.
87393
87394 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87395
87396         dirname code cleanup.  base_name now behaves more compatibly
87397         with POSIX basename when given file names that have trailing
87398         slashes, and similarly for dir_name.  Add new primitives
87399         base_len and dir_len.  Put the directory-name-related decls
87400         into dirname.h.
87401
87402         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87403         * lib/backupfile.c (base_name): Likewise.
87404         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87405         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87406         * lib/makepath.c (strip_trailing_slashes): Likewise.
87407         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87408         ISSLASH): Likewise.
87409         * lib/rename.c (strip_trailing_slashes): Likewise.
87410         * lib/same.c (base_name): Likewise.
87411         * lib/stripslash.c (ISSLASH): Likewise.
87412
87413         * lib/addext.c: Include <dirname.h> after size_t is defined.
87414         * lib/backupfile.c: Likewise.
87415
87416         * lib/addext.c (addext): Use base_len to trim redundant
87417         trailing slashes instead of doing it ourselves.
87418         But do not trim the last slash if it is not redundant.
87419
87420         * lib/backupfile.c (find_backup_file_name,
87421         max_backup_version): Use base_len instead of rolling it ourselves.
87422         Handle the case of "" and (on DOS) "C:" correctly.
87423
87424         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87425         needed. Include <string.h>, <dirname.h>.
87426         (base_name): Allow file names ending in slashes, other than names
87427         that are all slashes.  In this case, return the basename followed
87428         by the slashes.  This is more general, and can be used in places
87429         where the original base_name purposely had an assertion failure.
87430         (base_len): New function.
87431
87432         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87433         Do not include <assert.h>; no longer needed.
87434         Include xalloc.h.
87435         (memrchr): Remove decl.
87436         (dir_name_r): Remove.
87437         (dir_len): Renamed from dirlen.  All callers changed.
87438         Rewrite in terms of base_name, for simplicity and consistency.
87439         (dir_name): Never return NULL.  All callers changed.
87440         Do not include <stdlib.h> in test program; no longer needed.
87441         return 0; is fine for test program.
87442
87443         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87444         New macros.
87445         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87446
87447         * lib/path-concat.c (path_concat): Use base_len to compute
87448         base length, not strlen; this means we cannot rely on memcpy
87449         to null-terminate.
87450
87451         * lib/same.c (STREQ): Remove.
87452         (same_name): Handle the case where the basename ends in trailing '/'.
87453
87454         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87455         a slash was stripped.  Do not strip the last slash after a
87456         file system prefix.
87457
87458 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87459
87460         * lib/Makefile.am (libfetish_a_SOURCES):
87461         Add strftime.c, since we now compile it on all hosts.
87462
87463         * lib/strftime.c (my_strftime):
87464         Define to nstrftime if emacs, but only if my_strftime is not defined.
87465         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87466         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87467         Add one more extra argument: a nanoseconds value.
87468         All uses changed.
87469         (ns): New macro.
87470         (my_strftime function): Add %N format.
87471         (emacs_strftimeu): Renamed from emacs_strftime,
87472         with extra ut argument.
87473
87474 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87475
87476         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87477
87478 2001-04-21  Jim Meyering  <meyering@lucent.com>
87479
87480         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87481         doesn't interfere.
87482
87483 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87484
87485         * m4/ftruncate.m4: Check for chsize.
87486         Link with ftruncate.o unconditionally if ftruncate is missing.
87487         This was required when cross-compiling to i586-mingw32msvc.
87488
87489 2001-04-08  Jim Meyering  <meyering@lucent.com>
87490
87491         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87492         recomputed; that's necessary when the offset spans a DST transition.
87493         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87494
87495 2001-04-02  Jim Meyering  <meyering@lucent.com>
87496
87497         * lib/regex.h, regex.c: Update from GNU libc.
87498
87499 2001-03-24  Jim Meyering  <meyering@lucent.com>
87500
87501         * m4/jm-macros.m4: Require autoconf-2.49d.
87502
87503 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87504
87505         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87506
87507 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87508
87509         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87510
87511 2001-03-17  Jim Meyering  <meyering@lucent.com>
87512
87513         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87514         now that the version in autoconf is equivalent.
87515         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87516
87517         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87518         Suggestion from Akim Demaille.
87519
87520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87521         (jm_PREREQ_TEMPNAME): New function.
87522
87523 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87524
87525         * lib/tempname.c (uint64_t): Define to uintmax_t if
87526         not defined, and if UINT64_MAX is not defined.
87527         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87528         Reported by John David Anglin.
87529
87530 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87531
87532         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87533         resolve alias if codeset is empty.
87534         * lib/config.charset (BeOS): Use wildcard syntax.
87535
87536 2001-03-13  Jim Meyering  <meyering@lucent.com>
87537
87538         * lib/path-concat.c (path_concat)
87539         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87540         concatenating e.g., `C:' and `foo'.
87541         From Bruno Haible.
87542
87543 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87544
87545         * lib/localcharset.c (locale_charset): Don't use
87546         setlocale(LC_CTYPE,NULL). Don't return NULL.
87547         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87548
87549 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87550
87551         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87552         support for DOS/DJGPP.
87553
87554 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87555
87556         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87557         lacks mkstemp.  Compile our own tempname.c if we compile our own
87558         mkstemp.c, as mkstemp relies on tempname.
87559
87560 2001-03-01  Jim Meyering  <meyering@lucent.com>
87561
87562         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87563         AH_VERBATIM really does output its argument verbatim.
87564
87565 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87566
87567         * lib/Makefile.am (libfetish_a_SOURCES):
87568         Add dup-safer.c, fopen-safer.c.
87569         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87570
87571         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87572         * lib/unistd-safer.h: New files.
87573
87574 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87575
87576         The mkstemp replacement is taken from glibc 2.2.2, with some
87577         portability fixes for use outside glibc, as follows:
87578
87579         * lib/tempname.c (struct_stat64): New macro.
87580         (direxists, __gen_tempname): Use it.
87581         This avoids a portability problem with Solaris 8.
87582
87583         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87584         (<stddef.h>, <stdint.h>, <string.h>):
87585         Include only if STDC_HEADERS || _LIBC.
87586         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87587         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87588         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87589         (__set_errno): Define this macro if <errno.h> doesn't.
87590         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87591         Define these macros if <stdio.h> doesn't.
87592         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87593         Define these macros if <sys/stat.h>
87594         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87595         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87596         __xstat64): Define if not _LIBC.
87597         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87598         (__gen_tempname): Invoke gettimeofday only if
87599         HAVE_GETTIMEOFDAY || _LIBC;
87600         otherwise, fall back on plain "time".
87601         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87602
87603         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87604
87605         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87606
87607 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87608
87609         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87610
87611 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87612
87613         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87614         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87615         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87617
87618 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87619
87620         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87621         Remove workaround macros for hosts that have mbrtowc but not
87622         mbstate_t, as we now insist on proper declarations for both
87623         before using mbrtowc.
87624
87625 2001-02-17  Jim Meyering  <meyering@lucent.com>
87626
87627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87628         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87629         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87630         UnixWare 7.1.1.
87631
87632         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87633         rather than AC_CACHE_VAL.
87634
87635 2001-02-17  Jim Meyering  <meyering@lucent.com>
87636
87637         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87638         around included file name.
87639
87640         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87641
87642         * lib/strftime.c: Update from GNU libc (the only changes were to
87643         comments).
87644
87645 2001-02-17  Jim Meyering  <meyering@lucent.com>
87646
87647         * lib/regex.c: Update from libc.
87648
87649 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87650
87651         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87652         clash.
87653
87654 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87655
87656         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87657         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87658         Reported by Mark Hounschell via Paul Eggert.
87659
87660 2001-02-07  Jim Meyering  <meyering@lucent.com>
87661
87662         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87663
87664 2001-02-05  Jim Meyering  <meyering@lucent.com>
87665
87666         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87667         it includes the patch required for `large file' support with at least
87668         HP-UX's 10.20 /bin/cc.
87669
87670 2001-02-03  Jim Meyering  <meyering@lucent.com>
87671
87672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87673         AS_IF, now that it works once again (mysteriously).
87674         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87675
87676 2001-01-30  Jim Meyering  <meyering@lucent.com>
87677
87678         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87679         * m4/chown.m4: Rename conftestchown to conftest.chown.
87680         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87681         s/conftestdir2/conftest.d2/.
87682         * m4/utimes.m4: s/conftestdata/conftest.data/
87683         Inspired by Pavel Roskin's change in autoconf.
87684
87685 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87686
87687         * lib/config.charset: Update for FreeBSD 4.2.
87688
87689 2001-01-27  Jim Meyering  <meyering@lucent.com>
87690
87691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87692         a use of AS_IF.
87693         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87694
87695 2001-01-26  Jim Meyering  <meyering@lucent.com>
87696
87697         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87698         quotearg.c includes it.
87699
87700 2001-01-26  Jim Meyering  <meyering@lucent.com>
87701
87702         * lib/quotearg.c: Include stddef.h.
87703         * lib/quote.c: Include stddef.h.
87704         Reported by Axel Kittenberger.
87705
87706         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87707         line in double quotes so that it evokes a better diagnostic.
87708         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87709         Reported by Axel Kittenberger.
87710
87711 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87712
87713         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87714         as if it was a `charset'.
87715
87716 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87717
87718         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87719         has const.
87720
87721 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87722
87723         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87724         to avoid a warning.  Add back 'const' to inptr.
87725
87726 2001-01-20  Jim Meyering  <meyering@lucent.com>
87727
87728         Be sure that headers are checked before used in code compiled
87729         for the type checks.
87730         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87731         In place of that, invoke jm_CHECK_ALL_TYPES.
87732         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87733         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87734         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87735         The check for ssize_t was mistakenly run before the test for unistd.h.
87736
87737         The configure-time check for stdbool.h was missing.
87738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87739         (jm_PREREQ_HASH): New function.
87740
87741 2001-01-17  Jim Meyering  <meyering@lucent.com>
87742
87743         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87744         for autoconf-2.49c.
87745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87746
87747 2001-01-16  Jim Meyering  <meyering@lucent.com>
87748
87749         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87750         From Bruno Haible.
87751
87752 2001-01-14  Jim Meyering  <meyering@lucent.com>
87753
87754         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87755         foo and bar.  Create conftestdir/ in the script, not in the C code.
87756         Remove directories in the script, not in the C code.
87757         Remove conftestdir{,2} before trying to create the directory.
87758         Make the entire configure script fail if the mkdir fails.
87759
87760 2001-01-14  Jim Meyering  <meyering@lucent.com>
87761
87762         * lib/rename.c: New file.  From Volker Borchert.
87763         Include stdlib.h, string.h or strings.h, and xalloc.h.
87764         Use strip_trailing_slashes rather than open-coding it.
87765
87766 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87767
87768         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87769
87770 2001-01-03  Jim Meyering  <meyering@lucent.com>
87771
87772         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87773         of local `inptr' to avoid warning with some system declarations of
87774         iconv.
87775
87776 2001-01-02  Volker Borchert  <bt@teknon.de>
87777
87778         * m4/rename.m4: New file.
87779         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87780
87781 2001-01-01  Jim Meyering  <meyering@lucent.com>
87782
87783         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87784         even on systems with utmpx.h.  It's necessary for the declaration of
87785         utmp's ut_user member.  Reported by Andreas Jaeger.
87786
87787         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87788         available. They are required for the declarations of getgrgid and
87789         getpwuid resp.
87790         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87791         Reported by Andreas Jaeger.
87792
87793 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87794
87795         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87796         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87797         so `make install' also works in VPATH builds.
87798
87799 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87800
87801         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87802         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87803         can be used in subdirectories.
87804
87805 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87806
87807         * lib/modechange.c: Do not assume that mode_t uses the
87808         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87809         the other-execute bit of FOO even if S_IXOTH != 1.
87810
87811         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87812         WOTH, XOTH, ALLM): New macros.
87813         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87814          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87815         Use them.
87816         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87817         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87818         (mode_compile):
87819         No need to use uintmax_t; unsigned long is long enough.
87820         Don't bother to get suffix since we don't use it.
87821
87822 2000-12-26  Jim Meyering  <meyering@lucent.com>
87823
87824         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87825         better with autoheader.
87826
87827 2000-12-24  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/hash.c (is_prime): Return explicit boolean values.
87830         (hash_get_first): Return NULL to appease Irix5.6's 89.
87831         Reported by Nelson Beebe.
87832
87833 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87834
87835         * lib/localcharset.c (locale_charset): Add support for Win32.
87836
87837 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87838
87839         * lib/physmem.h, lib/physmem.c: New files.
87840
87841         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87842         (noinst_HEADERS): Add physmem.h.
87843
87844         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87845         't' for compatibility with Solaris 8 sort.
87846
87847 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87848
87849         * lib/config.charset: Add support for BeOS.
87850
87851 2000-12-17  Jim Meyering  <meyering@lucent.com>
87852
87853         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87854         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87855
87856 2000-12-16  Jim Meyering  <meyering@lucent.com>
87857
87858         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87859         N and M) would have treated it like `chown N:N FILE'.
87860
87861         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87862
87863 2000-12-16  Jim Meyering  <meyering@lucent.com>
87864
87865         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87866         SHELLS_FILE to a file name that's useful on djgpp systems.
87867         Include stdlib.h.
87868         (ADDITIONAL_DEFAULT_SHELLS): Define.
87869         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87870         Based mostly on a patch from Prashant TR.
87871
87872 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87873
87874         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87875         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87876         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87877
87878 2000-12-08  Andreas Schwab  <schwab@suse.de>
87879
87880         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87881         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87882
87883 2000-12-07  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/stripslash.c (ISSLASH): Define.
87886         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87887         `/'.
87888         From Prashant TR.
87889
87890         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87891         (dir_name_r): Declare this function as static.
87892         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87893         manifest itself on a name containing a mix of slashes and
87894         backslashes.
87895         Make this function work with names starting with a DOS-style
87896         drive letter and colon prefix.
87897         (dir_name): Append `.' if necessary.
87898         Based mostly on patches from Prashant TR and Eli Zaretskii.
87899
87900         * lib/dirname.h (dir_name_r): Remove prototype.
87901
87902 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87903
87904         * m4/off_t-format.m4: Remove this file.
87905         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87906
87907 2000-12-06  Jim Meyering  <meyering@lucent.com>
87908
87909         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87910         replacement strtoull, we may well need the replacement strtoul, too.
87911         Check for declarations of strtoul and strtoull.
87912         Check for strtol.  Mainly as a cue to cause automake to include
87913         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87914         Check for limits.h -- strtol.c needs it.
87915
87916 2000-12-05  Jim Meyering  <meyering@lucent.com>
87917
87918         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87919
87920 2000-12-04  Jim Meyering  <meyering@lucent.com>
87921
87922         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87923         Also include memory.h, stdlib.h, unistd.h if appropriate.
87924         Reported by Andreas Jaeger (conflicting declaration of malloc).
87925
87926 2000-12-02  Jim Meyering  <meyering@lucent.com>
87927
87928         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87929         * m4/jm-macros.m4 (jm_MACROS): require it.
87930
87931 2000-12-02  Jim Meyering  <meyering@lucent.com>
87932
87933         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87934
87935 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87936
87937         * lib/memrchr.c: Include <config.h> before any system include file.
87938
87939 2000-11-30  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87942
87943 2000-11-30  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87946
87947 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87948
87949         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87950
87951 2000-11-26  Jim Meyering  <meyering@lucent.com>
87952
87953         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87954
87955 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87956
87957         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87958         size of (size_t) -1; it's not portable.
87959
87960 2000-11-17  Jim Meyering  <meyering@lucent.com>
87961
87962         * lib/strstr.c: Update from GNU libc.
87963
87964 2000-11-17  Akim Demaille  <akim@epita.fr>
87965
87966         * lib/obstack.h: Formatting changes.
87967         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87968         prevent type checking.
87969         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87970         cast the value to (void *): assigning a `foo *' to a `void *'
87971         variable is valid.
87972         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87973
87974 2000-11-16  Jim Meyering  <meyering@lucent.com>
87975
87976         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87977
87978 2000-11-11  Jim Meyering  <meyering@lucent.com>
87979
87980         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87981
87982 2000-11-10  Jim Meyering  <meyering@lucent.com>
87983
87984         * lib/obstack.h: Update from GNU libc.
87985         * lib/obstack.c: Likewise.
87986
87987 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87988
87989         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87990
87991 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87992
87993         * lib/getusershell.c (setusershell): Use rewind rather than
87994         fseek/fseeko, to avoid configuration hassles with fseeko.
87995         Don't bother opening SHELLS_FILE if shellstream is NULL;
87996         it's not necessary.
87997
87998 2000-11-05  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/makepath.h (make_dir): Declare.
88001         * lib/makepath.c (make_dir): Remove `static' attribute.
88002         Tweak a comment.
88003
88004 2000-11-04  Jim Meyering  <meyering@lucent.com>
88005
88006         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88007
88008 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88009
88010         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88011         last one in a bucket, advance to the next bucket.
88012
88013 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88014
88015         * lib/fnmatch.c: Do not comment out all the code if we are using
88016         the GNU C library, because in some cases we are replacing buggy
88017         code in the GNU C library itself.
88018
88019 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88020
88021         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88022         (regex_compile): Catch bogus \(\1\).
88023
88024 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88025
88026         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88027         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88028         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88029
88030 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88031
88032         * lib/error.h, getline.h, modechange.h:
88033         Remove "2000" from Copyright line, as the file hasn't been
88034         changed this year other than in the copyright notice.
88035
88036         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88037         was changed this year.
88038
88039 2000-10-29  Jim Meyering  <meyering@lucent.com>
88040
88041         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88042         renaming.
88043         * m4/ls-mntd-fs.m4: Likewise
88044
88045 2000-10-29  Jim Meyering  <meyering@lucent.com>
88046
88047         * lib/xstat.in: Fix grammar in comment.
88048
88049 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88050
88051         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88052         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88053         doesn't define __restrict_arr.
88054
88055 2000-10-28  Jim Meyering  <meyering@lucent.com>
88056
88057         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88058         (jm_PREREQ_MEMCHR): New function.
88059
88060 2000-10-28  Jim Meyering  <meyering@lucent.com>
88061
88062         * lib/memchr.c: Update from libc.
88063         Adjust for portability:
88064         [HAVE_STDLIB_H]: Include stdlib.h.
88065         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88066         Undef __memchr, too.
88067         [!weak_alias]: Define __memchr to memchr.
88068
88069         * lib/regex.c: Update from libc.
88070         * lib/regex.h: Likewise.
88071         * lib/getopt1.c: Likewise.
88072         * lib/memcmp.c: Likewise.
88073
88074         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88075         Avoid using fseek, when possible -- it's broken by design.
88076         Patch by Ulrich Drepper.
88077
88078 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88079
88080         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88081         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88082         Giving in to popular pressure to shut up the compiler with casts.
88083
88084 2000-10-26  Jim Meyering  <meyering@lucent.com>
88085
88086         * lib/strftime.c: Update from libc.
88087
88088 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88089
88090         * regex.c: More `unsigned char' -> `re_char' changes.
88091         Also change several `int' into `re_wchar_t'.
88092         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88093         (PUSH_FAILURE_POINTER): Don't cast any more.
88094         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88095         We want GCC to complain, since this piece of code makes
88096         re_match non-reentrant, which *should* be fixed.
88097         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88098         (EXTEND_BUFFER): Use RETALLOC.
88099         (SET_LIST_BIT): Don't cast.
88100         (re_wchar_t): New type.
88101         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88102         that those two functions will always properly return.
88103         (IMMEDIATE_QUIT_CHECK): Cast to void.
88104         (analyse_first): Use recursion rather than an explicit stack.
88105         (re_compile_fastmap): Can't fail anymore.
88106         (re_search_2): Don't check re_compile_fastmap for failure.
88107         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88108         Now also sets the new value (passed in a new argument).
88109         (re_match_2_internal): Use it.
88110         Also, use a new var `reg' of type size_t when looping through regs
88111         rather than reuse the inappropriate `mcnt'.
88112
88113 2000-10-25  Jim Meyering  <meyering@lucent.com>
88114
88115         * lib/obstack.c: Update from libc.
88116
88117 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88118
88119         * regex.c (regex_compile): Change the way of handling a range from
88120         a char less than 256 to a char not less than 256.
88121
88122 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88123
88124         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88125         NT-Emacs only.
88126         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88127         so that re_search functions only quit when callers expect them to.
88128
88129 2000-10-23  Jim Meyering  <meyering@lucent.com>
88130
88131         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88132         wrong.  That set_locale call must not have any side effects.
88133         From Paul Eggert.
88134
88135 2000-10-22  Jim Meyering  <meyering@lucent.com>
88136
88137         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88138         [CYCLIC]: Remove now-unused definition.
88139
88140         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88141         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88142         Suggestion from Ulrich Drepper.
88143
88144 2000-10-21  Jim Meyering  <meyering@lucent.com>
88145
88146         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88147         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88148         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88149
88150 2000-10-21  Jim Meyering  <meyering@lucent.com>
88151
88152         * lib/dirname.c (memrchr): Declare if necessary.
88153         (dir_name): Remove the restriction that there be no
88154         trailing slashes.  Now, this code skips past them, effectively
88155         ignoring them.
88156         [TEST_DIRNAME] (main): New unit tests.
88157
88158         * lib/memrchr.c: New file from GNU libc.
88159         Undef __memrchr, too.
88160         [!weak_alias]: Define __memrchr to memrchr.
88161         Guard weak_alias use with `#ifdef weak_alias'.
88162
88163 2000-10-21  Jim Meyering  <meyering@lucent.com>
88164
88165         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88166         (dir_name): Use dir_name_r.
88167         * lib/dirname.h (dir_name_r): Declare it.
88168
88169 2000-10-17  Jim Meyering  <meyering@lucent.com>
88170
88171         * lib/quote.h (PARAMS): Define and use.
88172         Reported by Akim Demaille.
88173
88174         * lib/getopt.c: Update from libc.
88175
88176 2000-10-16  Jim Meyering  <meyering@lucent.com>
88177
88178         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88179         setlocale.
88180         From Jan Fedak.
88181
88182 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88183
88184         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88185
88186 2000-09-25  Jim Meyering  <meyering@lucent.com>
88187
88188         * lib/md5.h (rol): Define (from GnuPG).
88189
88190         * lib/sha.c: Give credit (GnuPG) where due.
88191         (M): Use rol rather than open-coding it.
88192         Add a FIXME comment.
88193
88194 2000-09-21  Jim Meyering  <meyering@lucent.com>
88195
88196         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88197         Reported by Michael Stone.
88198
88199 2000-09-20  Jim Meyering  <meyering@lucent.com>
88200
88201         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88202         (noinst_HEADERS): Add sha.h.
88203         Based on code from Scott G. Miller and from GnuPG.
88204
88205 2000-09-18  Jim Meyering  <meyering@lucent.com>
88206
88207         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88208         LIBS. Otherwise, everyone ends up linking with -lelf for some
88209         configurations.
88210         Reported by Mike Stone.
88211
88212 2000-09-15  Jim Meyering  <meyering@lucent.com>
88213
88214         * lib/regex.c: Update from libc.
88215
88216 2000-09-10  Jim Meyering  <meyering@lucent.com>
88217
88218         * lib/getopt.c (_getopt_internal): Update from glibc.
88219
88220 2000-09-09  Jim Meyering  <meyering@lucent.com>
88221
88222         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88223         think it should be used as a general replacement for isascii.
88224         * lib/fnmatch.c: Likewise.
88225         * lib/mbswidth.c: Likewise
88226         * lib/regex.c: Likewise.
88227
88228         Don't use atoi.
88229         * lib/userspec.c: Include sys/param.h and limits.h.
88230         Include xstrtol.h.
88231         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88232         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88233         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88234         UID, GID.  Check range.
88235
88236 2000-09-06  Jim Meyering  <meyering@lucent.com>
88237
88238         * lib/getopt.c (_getopt_internal): Update from glibc.
88239
88240 2000-08-30  Jim Meyering  <meyering@lucent.com>
88241
88242         * lib/strftime.c: Merge in changes from GNU libc.
88243
88244 2000-08-26  Jim Meyering  <meyering@lucent.com>
88245
88246         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88247         * m4/fpending.m4: New file.
88248
88249 2000-08-26  Jim Meyering  <meyering@lucent.com>
88250
88251         * lib/closeout.c: Include "__fpending.h".
88252         (close_stdout_status): Return right away if there's nothing to flush.
88253
88254         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88255         * lib/__fpending.c: New file.
88256         * lib/__fpending.h: New file.
88257
88258 2000-08-20  Jim Meyering  <meyering@lucent.com>
88259
88260         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88261         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88262         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88263
88264 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88265
88266         Improve fileutils installation on systems where running
88267         programs (like install) can't be unlinked.
88268         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88269         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88270
88271 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88272
88273         Standardize on "memory exhausted" instead of "Memory exhausted"
88274         or "virtual memory exhausted".
88275         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88276         "virtual memory exhausted".
88277         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88278         our own message.
88279         * lib/userspec.c (parse_user_spec): Likewise.
88280         * lib/bumpalloc.h: comment fix
88281         * lib/same.c, userspec.c: Include xalloc.h.
88282
88283         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88284         not char *const and pointing to a constant array.
88285         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88286         (xrealloc): Comment fix.
88287
88288         * lib/userspec.c (parse_user_spec):
88289         Don't translate a message until just before returning,
88290         to avoid unnecessary translation.
88291
88292 2000-08-07  Jim Meyering  <meyering@lucent.com>
88293
88294         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88295         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88296         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88297         getgroups.c, gethostname.c, getopt.h, group-member.c,
88298         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88299         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88300         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88301         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88302         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88303         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88304         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88305         yesno.c: Back out Copyright date changes for each file with no change
88306         this year.  This eases coordination with other programs using the same
88307         source code modules.  From Paul Eggert.
88308
88309 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88310
88311         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88312         not char, for compatibility with glibc 2.1.3 strftime.c.
88313
88314 2000-08-03  Greg McGary  <greg@mcgary.org>
88315
88316         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88317         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88318         (EXTEND_BUFFER): Use them.
88319
88320 2000-08-01  Jim Meyering  <meyering@lucent.com>
88321
88322         * lib/dirname.c (ISSLASH): Define.
88323         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88324         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88325         both `\' and `/' may be use as path separators.
88326         Based on a patch from Prashant TR.
88327
88328 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88329
88330         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88331         slot vector a constant, since it might get modified.
88332
88333 2000-07-31  Jim Meyering  <meyering@lucent.com>
88334
88335         * lib/xmalloc.c: Use `virtual memory exhausted', not
88336         `Memory exhausted'.
88337         * lib/obstack.c (print_and_abort): Likewise.
88338
88339 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88340
88341         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88342         buffer, so that the caller can always quote one small
88343         component of a "memory exhausted" message in slot 0.
88344         From a suggestion by Jim Meyering.
88345
88346 2000-07-30  Jim Meyering  <meyering@lucent.com>
88347
88348         * lib/makepath.c (make_path): Quote the other instance, too.
88349
88350         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88351         (STATIC_BUF_SIZE): Define.
88352         (quotearg_n_options): Use only statically allocated storage when
88353         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88354         than STATIC_BUF_SIZE.
88355
88356 2000-07-29  Jim Meyering  <meyering@lucent.com>
88357
88358         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88359         * lib/dirname.c (dir_name): Likewise.
88360
88361         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88362         `/'.
88363
88364         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88365         (dir_name): Assert that there are no trailing slashes.
88366
88367 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88368
88369         * lib/mbswidth.h (mbswidth): Add a flags argument.
88370         (mbswidth): New declaration.
88371         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88372         * lib/mbswidth.c (mbswidth): Add a flags argument.
88373         (mbsnwidth): New function.
88374
88375 2000-07-24  Jim Meyering  <meyering@lucent.com>
88376
88377         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88378
88379 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88380
88381         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88382
88383 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88384
88385         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88386         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88387         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88388         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88389         invoke multibyte primitives.
88390
88391 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88392
88393         * lib/quotearg.c:
88394         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88395         so that mbstate_t is always defined.
88396
88397         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88398         be 1 in at least one GCC installation, and this configuration
88399         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88400         performance on hosts that have mbrtowc but have only unibyte
88401         locales, but I assume these hosts are rare.
88402
88403 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88404
88405         * lib/mbswidth.c (_XOPEN_SOURCE):
88406         Don't define; this causes problems on Solaris 7.
88407         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88408
88409 2000-07-23  Jim Meyering  <meyering@lucent.com>
88410
88411         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88412         too: getgrgid, getpwuid, getuid.
88413
88414 2000-07-23  Jim Meyering  <meyering@lucent.com>
88415
88416         * lib/basename.c (base_name): Add an assertion.
88417
88418 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88419
88420         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88421         shadow its mbsinit function.
88422
88423 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88424
88425         * lib/mbswidth.h: New file.
88426         * lib/mbswidth.c: New file.
88427         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88428         (noinst_HEADERS): Add mbswidth.h.
88429
88430 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88431
88432         * lib/config.charset: Add support for FreeBSD. Improve support for
88433         HP-UX and IRIX 6.
88434
88435 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88436
88437         * m4/mbswidth.m4: New file.
88438         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88439
88440 2000-07-15  Jim Meyering  <meyering@lucent.com>
88441
88442         * lib/makepath.c: Include quote.h.
88443         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88444         corresponding argument in a `quote (...)' call.
88445         Give better diagnostics.
88446
88447         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88448         (noinst_HEADERS): Add quote.h.
88449
88450         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88451         from tar's src/misc.c.
88452         * lib/quote.h: New file.  Prototypes for same.
88453
88454 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88455
88456         From a suggestion by Bruno Haible.
88457         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88458         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88459         to decide whether to define the BeOS workaround macro;
88460         this adjusts to the change to AC_MBSTATE_T.
88461
88462 2000-07-14  Jim Meyering  <meyering@lucent.com>
88463
88464         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88465         jm_AC_TYPE_UINTMAX_T.
88466
88467 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88468
88469         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88470
88471         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88472         quotearg_buffer_restyled): Add support for
88473         clocale_quoting_style.  Undo previous change to
88474         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88475         and "{RIGHT QUOTATION MARK}" msgids.
88476
88477 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88478
88479         From a suggestion by Bruno Haible.
88480         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88481         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88482         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88483         and mbstate_t, to a single-part test that simply defines mbstate_t.
88484         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88485         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88486
88487 2000-07-10  Jim Meyering  <meyering@lucent.com>
88488
88489         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88490
88491         * m4/gnu-source.m4: Output to confdefs.h directly.
88492         Suggestion from Akim Demaille.
88493
88494 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88495
88496         The old behavior of quoting `like this' doesn't look good with
88497         newer, ISO-style fonts.  See:
88498         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88499
88500         Instead, quote "like this" by default.  Let the translator
88501         tailor the locale-specific quoting behavior by providing
88502         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88503
88504         * lib/quotearg.c (N_): New macro.
88505         (gettext_default): New function.
88506         (quotearg_buffer_restyled): Use
88507         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88508         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88509
88510 2000-07-09  Jim Meyering  <meyering@lucent.com>
88511
88512         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88513         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88514
88515         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88517
88518 2000-07-09  Jim Meyering  <meyering@lucent.com>
88519
88520         * lib/Most files: Update copyright dates to include 2000.
88521
88522 2000-07-08  Jim Meyering  <meyering@lucent.com>
88523
88524         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88525         if not defined.
88526         (xgethostname): Remove now-unnecessary #ifdef.
88527         Move declaration of `err' into loop where it's used.
88528
88529 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88530         and Bruno Haible  <haible@clisp.cons.org>
88531
88532         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88533         only if the test for an object-type mbstate_t fails.  This
88534         prevents us from mistakenly reporting that mbstate_t is a
88535         system object type after we "#define mbstate_t int" to work
88536         around its lack.
88537
88538 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88539         and Bruno Haible  <haible@clisp.cons.org>
88540
88541         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88542
88543 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88544
88545         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88546         to strerror_r.
88547         Include <ctype.h> for use of isalpha.
88548
88549 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88550
88551         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88552         by allocating a larger buffer. Test the gethostname return value for
88553         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88554         returns an error and ENAMETOOLONG isn't defined.
88555
88556 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88557
88558         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88559         dimension.
88560
88561 2000-07-04  Jim Meyering  <meyering@lucent.com>
88562
88563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88564         of the deprecated AC_CHECKING.
88565
88566 2000-07-04  Jim Meyering  <meyering@lucent.com>
88567
88568         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88569         Reported by Bruno Haible.
88570
88571 2000-07-04  Jim Meyering  <meyering@lucent.com>
88572
88573         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88574         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88575         lacks mbrtowc.
88576
88577 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88578
88579         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88580         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88581
88582 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88583         and Bruno Haible  <haible@clisp.cons.org>
88584
88585         * lib/quotearg.c (mbrtowc):
88586         Assign to *pwc, and return 1 only if result is nonzero.
88587         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88588
88589 2000-07-03  Jim Meyering  <meyering@lucent.com>
88590
88591         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88592
88593 2000-07-03  Jim Meyering  <meyering@lucent.com>
88594
88595         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88596         This is necessary to get a definition of e.g., UTMP_FILE on
88597         HP-UX 10.20.
88598         From Bob Proulx.
88599
88600 2000-07-02  Jim Meyering  <meyering@lucent.com>
88601
88602         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88603
88604         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88605         AC_LIBOBJ(function_name).
88606         * m4/chown.m4: Likewise.
88607         * m4/fnmatch.m4: Likewise.
88608         * m4/ftruncate.m4: Likewise.
88609         * m4/getgroups.m4: Likewise.
88610         * m4/getline.m4: Likewise.
88611         * m4/group-member.m4: Likewise.
88612         * m4/jm-macros.m4: Likewise.
88613         * m4/lstat.m4: Likewise.
88614         * m4/malloc.m4: Likewise.
88615         * m4/memcmp.m4: Likewise.
88616         * m4/nanosleep.m4: Likewise.
88617         * m4/putenv.m4: Likewise.
88618         * m4/realloc.m4: Likewise.
88619         * m4/regex.m4: Likewise.
88620         * m4/stat.m4: Likewise.
88621         * m4/strftime.m4: Likewise.
88622
88623 2000-07-02  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/quotearg.c (mbstate_t): Don't define here.
88626
88627 2000-07-02  Jim Meyering  <meyering@lucent.com>
88628
88629         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88630
88631 2000-07-01  Jim Meyering  <meyering@lucent.com>
88632
88633         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88634
88635 2000-07-01  Jim Meyering  <meyering@lucent.com>
88636
88637         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88638         problem.
88639
88640 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88641
88642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88643         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88644
88645 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88646
88647         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88648         per change in ../m4/ls-mntd-fs.m4.
88649         (read_filesystem_list): Ignore symbolic links.
88650
88651 2000-06-29  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88654         for declaration of strcmp.
88655
88656         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88657
88658         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88659         Avoid warning by casting result to `char *' to remove `const'.
88660
88661 2000-06-28  Jim Meyering  <meyering@lucent.com>
88662
88663         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88664         included by quotearg.c, for which we perform this test.  From
88665         Bruno Haible.
88666
88667 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88668
88669         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88670         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88671         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88672
88673 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88674
88675         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88676
88677 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88678
88679         savedir now sets errno on failure and invokes xmalloc to get memory.
88680         Fix a couple of other minor bugs while we're at it.
88681
88682         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88683         (NAMLEN): Remove macro.
88684         (malloc, realloc): Remove decls.
88685         (stpcpy): Likewise.
88686         ("xalloc.h"): Include.
88687         (NAME_SIZE_DEFAULT): New macro.
88688         (savedir): Use xmalloc / xrealloc to allocate memory.
88689         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88690         Skip "" directory entries.
88691         Use strlen to calculate directory entry length, since the old method
88692         is rarely used these days and isn't worth supporting.
88693         Don't use a pointer after freeing it.
88694         Check for integer overflow when calculating allocation size.
88695         Use memcpy to copy entries, instead of stpcpy.
88696         Set errno properly when returning NULL.
88697         Check for readdir error.
88698
88699 2000-06-26  Jim Meyering  <meyering@lucent.com>
88700
88701         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88702
88703 2000-06-25  Jim Meyering  <meyering@lucent.com>
88704
88705         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88706         Linux header bug when _XOPEN_SOURCE is defined to 500.
88707
88708 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88709
88710         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88711         deficiency.
88712
88713 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88714
88715         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88716         Include xalloc.h.
88717         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88718
88719 2000-06-24  Jim Meyering  <meyering@lucent.com>
88720
88721         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88722         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88723         for which strerror does return char*, but which lacks a conveniently
88724         accessible declaration of the function.  If the compile-test says
88725         strerror_r doesn't work, then resort to a `run'-test that works on
88726         BeOS and segfaults on DEC Unix.
88727
88728 2000-06-24  Jim Meyering  <meyering@lucent.com>
88729
88730         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88731
88732 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88733
88734         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88735         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88736
88737 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88738
88739         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88740         (mbrtowc, mbstate_t): Define substitutes if
88741         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88742         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88743         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88744
88745 2000-06-23  Jim Meyering  <meyering@lucent.com>
88746
88747         * m4/afs.m4: Add missing AC_MSG_RESULT.
88748         Reported by Bruno Haible.
88749
88750         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88751         Suggestion from Bruno Haible.
88752
88753 2000-06-23  Jim Meyering  <meyering@lucent.com>
88754
88755         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88756
88757 2000-06-21  Jim Meyering  <meyering@lucent.com>
88758
88759         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88760
88761 2000-06-21  Jim Meyering  <meyering@lucent.com>
88762
88763         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88764         (noinst_HEADERS): Add getstr.h.
88765
88766         * lib/getline.c (getstr): Move into a separate file.
88767         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88768         the following changes: new parameter, delim2; both delim[12]
88769         parameters have type `int', not `char'.  The latter would lose
88770         with 8-bit delimiters.
88771         * lib/getstr.h: New file.
88772
88773 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88774
88775         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88776         than 1024, return a memory chunk of least possible size, instead
88777         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88778         Use free/xmalloc instead of xrealloc to avoid copying for very long
88779         paths.
88780
88781 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88782
88783         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88784         the empty string.
88785
88786 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88787
88788         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88789         address, not strdup.  Include <stdlib.h> and don't declare free().
88790
88791 2000-06-19  Jim Meyering  <meyering@lucent.com>
88792
88793         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88794
88795 2000-06-18  Jim Meyering  <meyering@lucent.com>
88796
88797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88798
88799         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88800         `checking whether...' message to be consistent with that of the
88801         lstat test.
88802
88803 2000-06-18  Jim Meyering  <meyering@lucent.com>
88804
88805         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88806         Besides, these days every porting target provides a mkdir function.
88807
88808         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88809         needed. (this snippet comes from src/system.h).
88810
88811 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88812
88813         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88814
88815 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88816
88817         * lib/human.c (adjust_value): New function.
88818         (human_readable_inexact): Apply rounding style even when
88819         printing approximate values.
88820
88821 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88822
88823         * lib/human.c (human_readable_inexact): Allow an input block
88824         size that is not a multiple of the output block size, and vice versa.
88825         Reported by Piergiorgio Sartor.
88826
88827 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88828
88829         * lib/getdate.y (get_date): Apply relative times after time
88830         zone indicator, not before.  Reported by Todd A. Jacobs.
88831
88832 2000-06-13  Jim Meyering  <meyering@lucent.com>
88833
88834         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88835
88836         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88837
88838 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88839
88840         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88841
88842 2000-06-12  Jim Meyering  <meyering@lucent.com>
88843
88844         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88845         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88846         optional argument.
88847         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88848         the optional argument, `lib'.
88849
88850 2000-06-08  Jim Meyering  <meyering@lucent.com>
88851
88852         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88853
88854 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88855
88856         Rewrite largefile configuration so that we don't need to run
88857         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88858         AC_CANONICAL_HOST in configure.in -- jmm]
88859
88860         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88861         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88862         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88863         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88864         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88865         All uses changed.
88866         Instead of inspecting the output of getconf, try to compile the
88867         test program without and with the macro definition.
88868         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88869         for getconf.  Instead, check for the needed flags by compiling
88870         test programs.
88871
88872 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88873
88874         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88875
88876 2000-06-04  Jim Meyering  <meyering@lucent.com>
88877
88878         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88879         SunOS 4.1.4 for which gid_t is an unsigned type.
88880
88881 2000-06-03  Jim Meyering  <meyering@lucent.com>
88882
88883         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88884         now that autoconf requires that.
88885
88886         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88887         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88888         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88889
88890 2000-06-03  Jim Meyering  <meyering@lucent.com>
88891
88892         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88893
88894 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88895
88896         * m4/glibc21.m4: New file.
88897         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88898
88899 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88900
88901         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88902         newer, don't install charset.alias.
88903         * lib/config.charset: Change the Linux/glibc rules so they become empty
88904         on glibc-2.1 or newer.
88905
88906 2000-06-02  Jim Meyering  <meyering@lucent.com>
88907
88908         * lib/mountlist.c: Back out last change.  Instead, do this...
88909         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88910         me_dummy member using the same `ignore'-testing code.
88911         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88912         fs_type strings.
88913         From Mark D. Roth.
88914
88915 2000-05-29  Jim Meyering  <meyering@lucent.com>
88916
88917         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88918         mounts with the `ignore' attribute.  Based on a patch from
88919         Mark D. Roth.
88920
88921 2000-05-28  Jim Meyering  <meyering@lucent.com>
88922
88923         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88924         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88925         * m4/stat.m4: Likewise.
88926         * m4/lstat.m4: Likewise.
88927         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88928
88929         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88930         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88931
88932 2000-05-26  Jim Meyering  <meyering@lucent.com>
88933
88934         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88935
88936 2000-05-24  Jim Meyering  <meyering@lucent.com>
88937
88938         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88939         autoconf requires that.
88940         * m4/lib-check.m4: Likewise.
88941         * m4/jm-macros.m4: Likewise.
88942         * m4/strftime.m4: Likewise.
88943
88944         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88945         AC_CHECK_DECLS, now that autoconf requires that.
88946
88947 2000-05-22  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88950         * m4/lstat.m4: Likewise.
88951
88952 2000-05-22  Jim Meyering  <meyering@lucent.com>
88953
88954         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88955
88956 2000-05-20  Jim Meyering  <meyering@lucent.com>
88957
88958         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88959         (jm_PREREQ): Use it.
88960
88961 2000-05-18  Jim Meyering  <meyering@lucent.com>
88962
88963         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88964         back, too, since it may have been modified by allocate_entry.
88965         (hash_delete): Rewrite to use neither the assignment operator
88966         nor the comma operator in an if-expression.
88967
88968 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88969
88970         * lib/closeout.c:
88971         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88972         Remove; no longer needed.
88973         "quotearg.h": Add include.
88974         (file_name): Do not bother to explicitly initialize to NULL; it's less
88975         efficient on some hosts.
88976         (close_stdout_status): Remove test as to whether stdout was already
88977         closed; it breaks for the case "echo x | sort >&-".
88978         Quote file name colons.
88979         Do not assume that _("write error") lacks format strings.
88980
88981 2000-05-15  Jim Meyering  <meyering@lucent.com>
88982
88983         * lib/version-etc.c (version_etc_copyright): Update the copyright
88984         string used in all --version output.
88985
88986 2000-05-14  Jim Meyering  <meyering@lucent.com>
88987
88988         * lib/closeout.c (close_stdout_set_file_name): New function.
88989         (close_stdout_status): Use new file-scoped global.
88990         Return right away if fstat says the stdout file descriptor is invalid.
88991         * lib/closeout.h (close_stdout_set_file_name): Declare.
88992
88993 2000-05-10  Jim Meyering  <meyering@lucent.com>
88994
88995         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88996         (close_stdout_set_status): New function.
88997         * lib/closeout.h (close_stdout_set_status): Declare.
88998
88999 2000-05-09  Jim Meyering  <meyering@lucent.com>
89000
89001         * m4/gettext.m4: Rename this...
89002         * m4/libintl.m4: ...to this.
89003
89004 2000-05-08  Jim Meyering  <meyering@lucent.com>
89005
89006         * lib/long-options.c: Don't include closeout.h.
89007         (parse_long_options): Don't call close_stdout for --version.
89008
89009 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89010
89011         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89012         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89013         2.1.3 bug.  This avoids a clash when files like regex.c define
89014         _GNU_SOURCE.
89015
89016 2000-05-06  Jim Meyering  <meyering@lucent.com>
89017
89018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89019         (AC_REPLACE_FUNCS): Add strnlen.
89020
89021         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89022         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89023
89024         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89025         AC_SEARCH_LIBS call for nanosleep.
89026         (LIB_NANOSLEEP): Set and AC_SUBST.
89027
89028 2000-05-06  Jim Meyering  <meyering@lucent.com>
89029
89030         * lib/strnlen.c: Undefine __strnlen and strnlen.
89031         [!weak_alias]: Define __strnlen to strnlen.
89032
89033         * lib/atexit.c: New file, from libiberty.
89034
89035 2000-05-06  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/closeout.c (close_stdout_status): Also check for errors on the
89038         stderr stream.
89039
89040 2000-05-05  Jim Meyering  <meyering@lucent.com>
89041
89042         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89043         AC_SEARCH_LIBS call for clock_gettime.
89044         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89045
89046         * m4/search-libs.m4: Update from autoconf.
89047
89048         su doesn't work on Solaris 2.6.
89049         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89050         <shadow.h>.  Reported by Dragos Harabor.
89051
89052 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89053
89054         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89055         memcpy instead of xmalloc, xrealloc, path_concat.
89056         (locale_charset): Treat empty environment variables as absent.
89057         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89058
89059 2000-05-04  Jim Meyering  <meyering@lucent.com>
89060
89061         * lib/getopt.c: Update from glibc.
89062         * lib/obstack.c: Likewise.
89063         * lib/obstack.h: Likewise.
89064         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89065         file
89066
89067         * lib/regex.h: Likewise.
89068         * lib/strndup.c: Likewise.
89069         * lib/strnlen.c: New file, from glibc.
89070
89071 2000-05-03  Jim Meyering  <meyering@lucent.com>
89072
89073         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89074
89075 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89076
89077         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89078         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89079         compile-time test, rather than inspecting host and OS, to
89080         decide whether to define _LARGEFILE_SOURCE.
89081
89082 2000-05-01  Jim Meyering  <meyering@lucent.com>
89083
89084         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89085
89086         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89087         Based on a patch from Bruno Haible.
89088
89089 2000-05-01  Jim Meyering  <meyering@lucent.com>
89090
89091         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89092
89093 2000-04-29  Jim Meyering  <meyering@lucent.com>
89094
89095         * lib/path-concat.c: Declare strdup only if it's not defined.
89096         * lib/canon-host.c: Likewise.
89097
89098 2000-04-28  Jim Meyering  <meyering@lucent.com>
89099
89100         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89101         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89102         is included first, then limits.h is included by locale.h by libintl.h.
89103         From John David Anglin.
89104
89105 2000-04-25  Jim Meyering  <meyering@lucent.com>
89106
89107         * lib/makepath.c (S_IRWXUGO): Define.
89108         (make_path): Always perform explicit chmod if MODE specifies any
89109         of the `special' permission bits.  Prompted by a bug report against
89110         install from Mate Wierdl and Joost van Baal.
89111
89112 2000-04-18  Jim Meyering  <meyering@lucent.com>
89113
89114         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89115         (jm_PREREQ): Use it.
89116
89117 2000-04-18  Jim Meyering  <meyering@lucent.com>
89118
89119         * lib/README: New file.
89120
89121         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89122         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89123
89124 2000-04-17  Jim Meyering  <meyering@lucent.com>
89125
89126         Get it right :-)
89127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89128         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89129         Suggestion from Akim Demaille.
89130
89131 2000-04-17  Jim Meyering  <meyering@lucent.com>
89132
89133         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89134         the definition of it to rpl_strftime also defined-away the system's
89135         declaration.
89136
89137 2000-04-15  Jim Meyering  <meyering@lucent.com>
89138
89139         Use `C' to denote so-called `contiguous' files, the same way
89140         that tar does.
89141         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89142         (ftypelet): Use S_ISCTG.
89143         From Michael Deutschmann.
89144
89145 2000-04-14  Jim Meyering  <meyering@lucent.com>
89146
89147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89148         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89149         clobbered.
89150
89151 2000-04-14  Jim Meyering  <meyering@lucent.com>
89152
89153         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89154
89155 2000-04-13  Jim Meyering  <meyering@lucent.com>
89156
89157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89158         AH_VERBATIM to insert required #ifndef into config.h.in.
89159         Suggestion from Akim Demaille.
89160
89161 2000-04-12  Jim Meyering  <meyering@lucent.com>
89162
89163         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89164         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89165         Christian Krackowizer.
89166
89167         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89168         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89169         (AC_SYS_LARGEFILE): Require.
89170         (AM_C_PROTOTYPES): Require.
89171
89172 2000-04-08  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89175         names don't conflict.  Reported by Eli Zaretskii.
89176
89177 2000-04-07  Jim Meyering  <meyering@lucent.com>
89178
89179         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89180         sys/types.h, to work around system header problems on AIX 3.2.5.
89181         From Bruno Haible.
89182
89183 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89184
89185         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89186         bug.  Deal with the different error behavior of Irix iconv.
89187
89188 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89189
89190         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89191         IRIX if the installer said otherwise.
89192
89193 2000-04-05  Jim Meyering  <meyering@lucent.com>
89194
89195         Portability tweaks required for ultrix4.3.
89196         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89197         (jm_CHECK_DECLS): Add getutent to the list of functions.
89198         (_jm_DECL_HEADERS): Add utmpx.h.
89199         From John David Anglin.
89200
89201         * m4/strftime.m4: Back out the 2000-04-02 change.
89202         Instead of that change, simply undefine putenv in the test program.
89203
89204 2000-04-05  Jim Meyering  <meyering@lucent.com>
89205
89206         Portability tweaks required for ultrix4.3.
89207         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89208         getutent.
89209         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89210         * lib/canon-host.c: Declare strdup.
89211         * lib/path-concat.c: Likewise.
89212         From John David Anglin.
89213
89214 2000-04-04  Jim Meyering  <meyering@lucent.com>
89215
89216         Be more DOS 8.3-friendly.
89217         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89218         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89219         * lib/Makefile.am: Reflect renaming.
89220         Reported by Eli Zaretskii.
89221
89222         Use a temporary file name that won't clash with `charset.alias'
89223         in the DOS 8.3 name space.
89224         * lib/Makefile.am (charset_tmp): Define.
89225         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89226         (uninstall-local): Likewise.
89227         Reported by Eli Zaretskii.
89228
89229 2000-04-03  Jim Meyering  <meyering@lucent.com>
89230
89231         * m4/gettext.m4: Fix typo in comment.
89232
89233         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89234         textutils/configure.in).  Suggestion from Paul Eggert.
89235         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89236
89237 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89238
89239         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89240         variable in the shell rather than using putenv, which isn't
89241         portable.  This avoids the configure-time inter-test dependency
89242         on the potentially-renamed putenv function.
89243
89244 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89245
89246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89247         before checking struct stat.st_blksize, so that
89248         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89249
89250 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89251
89252         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89253         since strftime.c uses HAVE_STRFTIME to decide whether to use
89254         the underlying strftime.
89255
89256 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89257
89258         * lib/time/strftime.c (my_strftime): Make sure we call the system
89259         strftime, not ourselves, when invoking the underlying strftime.
89260
89261 2000-03-24  Jim Meyering  <meyering@lucent.com>
89262
89263         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89264         (charset_alias): Define.
89265         (install-exec-local): Factor out common code.
89266         (uninstall-local): Split lines longer than 80.
89267         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89268         (SUFFIXES): Define.
89269         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89270         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89271
89272 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89273
89274         * lib/config.charset: Output a line containing "Packages using this
89275         file".
89276         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89277         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89278         ref-del.sed): New rules.
89279
89280 2000-03-17  Jim Meyering  <meyering@lucent.com>
89281
89282         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89283         Otherwise, include <strings.h>
89284
89285 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89286
89287         * lib/unicodeio.c (utf8_wctomb): New function.
89288         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89289         format instead of in UCS-4 with platform dependent endianness.
89290
89291 2000-03-10  Jim Meyering  <meyering@lucent.com>
89292
89293         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89294         From Marco Franzen.
89295
89296 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89297
89298         * lib/savedir.c (savedir): Work even if directory size is
89299         negative; this can happen with some screwy NFS configurations.
89300
89301 2000-03-06  Jim Meyering  <meyering@lucent.com>
89302
89303         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89304         if it's NULL (because we ran out of memory).  From Bruno Haible.
89305
89306 2000-03-05  Jim Meyering  <meyering@lucent.com>
89307
89308         * lib/localcharset.c ("path-concat.h"): Include.
89309         (get_charset_aliases): Use path_concat instead of ANSI string
89310         concatenation.
89311
89312         * lib/unicodeio.h (PARAMS): Define.
89313         Use it to guard prototype.
89314
89315 2000-03-04  Jim Meyering  <meyering@lucent.com>
89316
89317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89318         for lib/localcharset.c.
89319
89320 2000-03-04  Jim Meyering  <meyering@lucent.com>
89321
89322         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89323         installing into it.
89324         (uninstall-local): Uncomment this rule so `make distcheck' works
89325         once again.
89326
89327         * lib/unicodeio.c (<errno.h>): Include it.
89328         (errno): Declare if not defined.
89329
89330         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89331
89332         * lib/config.charset: New version, incorporating remarks from a linux
89333         i18n mailing list.  From Bruno Haible.
89334
89335 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89336
89337         * m4/codeset.m4: New file.
89338         * m4/iconv.m4: New file.
89339         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89340
89341 2000-03-03  Jim Meyering  <meyering@lucent.com>
89342
89343         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89344
89345 2000-03-02  Jim Meyering  <meyering@lucent.com>
89346
89347         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89348         the messages come out on separate lines.
89349
89350         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89351         rather than jm_CHECK_DECLARATIONS.
89352         * m4/decl.m4: Remove now-unused file.
89353
89354         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89355         geteuid.
89356
89357 2000-03-02  Jim Meyering  <meyering@lucent.com>
89358
89359         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89360
89361 2000-03-01  Jim Meyering  <meyering@lucent.com>
89362
89363         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89364         * lib/unicodeio.c: Likewise.
89365
89366 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89367
89368         * lib/config.charset: New file.
89369         * lib/localcharset.c: New file.
89370         * lib/unicodeio.h, lib/unicodeio.c: New files.
89371         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89372         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89373         (noinst_HEADERS): Add unicodeio.h.
89374         (all-local, install-exec-local, charset.alias): New targets.
89375
89376 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/quotearg.c (ALERT_CHAR): New macro.
89379         (quotearg_buffer_restyled): Use it.
89380
89381 2000-02-27  Jim Meyering  <meyering@lucent.com>
89382
89383         * m4/check-decl.m4: Add getenv to the list.
89384
89385 2000-02-27  Jim Meyering  <meyering@lucent.com>
89386
89387         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89388         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89389
89390         * lib/backupfile.c: Guard inclusion of stdlib.h with
89391         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89392         Declare malloc if needed.
89393
89394         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89395         `#ifndef HAVE_DECL..'
89396         now that autoconf always defines the HAVE_DECL_ symbols.
89397         * lib/human.c: Likewise.
89398         * lib/same.c: Likewise.
89399         * lib/strtoumax.c: Likewise.
89400
89401         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89402         declaration check was not run.
89403         * lib/hash.c: Likewise.
89404         * lib/human.c: Likewise.
89405         * lib/same.c: Likewise.
89406         * lib/strtoumax.c: Likewise.
89407
89408         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89409         `.', then first look up the entire `.'-containing string as a login
89410         name.
89411
89412 2000-02-23  Jim Meyering  <meyering@lucent.com>
89413
89414         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89415         in place of my hack.
89416
89417 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89418
89419         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89420         (textint): New typedef.
89421         (parser_control): Member year changed from int to textint.
89422         All uses changed.
89423         (YYSTYPE): Removed; replaced by %union with int and textint members.
89424         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89425         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89426         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89427         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89428         (date, number, to_year): Use width of number in digits, not its value,
89429         to determine whether it's a 2-digit year, or a 2-digit time.
89430         (yylex): Store number of digits of numeric tokens.
89431         Reported by John Kendall.
89432
89433         (parser_control): Changed from struct parser_control to typedef (for
89434         consistency).  All uses changed.
89435
89436         (tID): Removed; not used.
89437         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89438
89439 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89440
89441         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89442         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89443
89444 2000-02-12  Jim Meyering  <meyering@lucent.com>
89445
89446         * lib/userspec.c (ISDIGIT): Define it.
89447         (isdigit): Remove definition.
89448         (is_number): Use ISDIGIT, not isdigit.
89449         <libintl.h>: Include.
89450         (_ and N_): Define.
89451         (parse_user_spec): Mark translatable strings.
89452
89453 2000-02-10  Jim Meyering  <meyering@lucent.com>
89454
89455         With these changes, nanosleep.[ch] are finally enough like the other
89456         lib/* replacement files to compile on a few more losing systems.
89457
89458         * lib/nanosleep.h: Don't include config.h.
89459         Remove prototype from declaration of nanosleep.
89460         (PARAMS): Remove now-unneeded definition.
89461         * lib/nanosleep.c: #undef nanosleep.
89462         (rpl_nanosleep): Rename from nanosleep.
89463
89464 2000-02-10  Jim Meyering  <meyering@lucent.com>
89465
89466         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89467         gnu_nanosleep to rpl_nanosleep.
89468
89469 2000-02-09  Jim Meyering  <meyering@lucent.com>
89470
89471         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89472         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89473
89474 2000-02-08  Akim Demaille  <akim@epita.fr>
89475
89476         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89477         `[' and `]' and remove uses of `changequote'.
89478         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89479         (AC_SYS_LARGEFILE): Likewise.
89480         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89481         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89482         of changequote.
89483         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89484         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89485         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89486         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89487
89488 2000-02-05  Jim Meyering  <meyering@lucent.com>
89489
89490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89491         Remove explicit use of AC_HEADER_TIME.  It is required by
89492         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89493         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89494         in autoconf whereby the expansion of the latter ended up preceding
89495         the expansion of its prerequisite, AC_HEADER_TIME.
89496         Reported by Volker Borchert.
89497
89498 2000-02-03  Jim Meyering  <meyering@lucent.com>
89499
89500         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89501
89502 2000-02-03  Jim Meyering  <meyering@lucent.com>
89503
89504         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89505         rather than with `#if HAVE_UTMPNAME'.
89506
89507 2000-02-02  Jim Meyering  <meyering@lucent.com>
89508
89509         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89510         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89511         Reported by Eli Zaretskii.
89512
89513 2000-02-01  Jim Meyering  <meyering@lucent.com>
89514
89515         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89516
89517 2000-01-31  Jim Meyering  <meyering@lucent.com>
89518
89519         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89520         functions.  Add the time.h and sys/time.h headers along with the
89521         AC_REQUIRE'ment of AC_HEADER_TIME.
89522
89523 2000-01-31  Jim Meyering  <meyering@lucent.com>
89524
89525         * lib/nanosleep.h (nanosleep): Guard declaration with
89526         `#if ! HAVE_DECL_NANOSLEEP'.
89527         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89528         the declaration in that vendor's sys/timers.h.
89529         Reported by Christian Krackowizer.
89530
89531         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89532         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89533         (ISPRINT): Likewise.
89534         Reported by Tom Tromey.
89535
89536 2000-01-30  Jim Meyering  <meyering@lucent.com>
89537
89538         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89539
89540         * m4/prereq.m4 (utmp_includes): Define.
89541         Check for ut_user and ut_name members in both struct utmpx
89542         and struct utmp.
89543
89544 2000-01-30  Jim Meyering  <meyering@lucent.com>
89545
89546         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89547         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89548         header files where only utmpx.ut_user is declared.
89549
89550         * lib/readutmp.h (UT_USER): Define.
89551
89552 2000-01-29  Jim Meyering  <meyering@lucent.com>
89553
89554         * m4/lib-check.m4: New file containing library-related checks from
89555         fileutils and sh-utils (textutils had none).
89556
89557 2000-01-28  Jim Meyering  <meyering@lucent.com>
89558
89559         * m4/perl.m4: Change format of warning message to look more like that
89560         from the missing script.  Suggestion from François Pinard.
89561
89562 2000-01-25  Jim Meyering  <meyering@lucent.com>
89563
89564         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89565         well as time.h in the compile check.
89566         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89567         Fix typo in cross-compiling case: s/yes/no/.
89568
89569 2000-01-23  Jim Meyering  <meyering@lucent.com>
89570
89571         * m4/jm-macros.m4: Move df-related tests here from
89572         fileutils/configure.in
89573
89574         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89575         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89576
89577         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89578         s/space/ac_fsusage_space/.
89579         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89580
89581         * m4/ftruncate.m4: New file (derived from part of
89582         fileutils/configure.in).
89583         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89584         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89585
89586         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89587         AC_SUBST these here, rather than just in sh-util/configure.in, so
89588         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89589         all the same.
89590         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89591         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89592         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89593         (AC_SUBST(POW_LIBM)): Likewise.
89594         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89595
89596 2000-01-23  Jim Meyering  <meyering@lucent.com>
89597
89598         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89599         obstack.c.
89600
89601 2000-01-22  Jim Meyering  <meyering@lucent.com>
89602
89603         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89604
89605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89606
89607         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89608         configure.in
89609         (AC_CHECK_HEADERS): Likewise for sh-utils.
89610         (AC_CHECK_HEADERS): Likewise for textutils.
89611         Merge the three lists of headers.
89612
89613         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89614         from fileutils' configure.in.
89615
89616         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89617         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89618         check-decl.m4.
89619
89620         * m4/check-decl.m4: Use #if rather than #ifdef.
89621         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89622         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89623         (_jm_DECL_HEADERS): Define new function.
89624         (jm_CHECK_DECLARATIONS): Require it.
89625
89626 2000-01-22  Jim Meyering  <meyering@lucent.com>
89627
89628         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89629         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89630         Required for some AIX systems.  Reported by Christian Krackowizer.
89631         [TESTING] (main): New function.
89632
89633         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89634         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89635         letters.
89636
89637         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89638         iswprint.
89639
89640         * lib/strverscmp.c (ISDIGIT): Define.
89641         (strverscmp): Use ISDIGIT, not isdigit.
89642
89643 2000-01-19  Jim Meyering  <meyering@lucent.com>
89644
89645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89646         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89647         defines `struct timespec' in <sys/time.h>
89648
89649         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89650         Thanks to Akim for explaining.
89651
89652 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89653
89654         * lib/nanosleep.c (nanosleep):
89655         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89656         POSIX.1 doesn't require SA_INTERRUPT and some systems
89657         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89658         it's been part of POSIX.1 since day 1 (in 1988).
89659
89660 2000-01-17  Jim Meyering  <meyering@lucent.com>
89661
89662         * lib/interlock: Remove unused file.  Reported by François Pinard.
89663
89664 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89665
89666         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89667         alert, backslash, formfeed, and vertical tab unnecessarily in
89668         shell quoting style.
89669
89670 2000-01-16  Jim Meyering  <meyering@lucent.com>
89671
89672         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89673         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89674         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89675         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89676
89677 2000-01-16  Jim Meyering  <meyering@lucent.com>
89678
89679         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89680         because the latter didn't work.
89681
89682 2000-01-15  Jim Meyering  <meyering@lucent.com>
89683
89684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89685         (AC_REPLACE_FUNCS): Add memcpy and memset.
89686         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89687         Add strpbrk.
89688         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89689
89690 2000-01-12  Jim Meyering  <meyering@lucent.com>
89691
89692         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89693         (jm_PREREQ): Use it.
89694         (jm_PREREQ_READUTMP): New macro.
89695         (jm_PREREQ): Use it.
89696
89697 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89698
89699         Quote multibyte characters correctly.
89700         * m4/c-bs-a.m4: New file.
89701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89702         (jm_PREREQ): Use it.
89703
89704 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89705
89706         * m4/uintmax_t.m4: Port to autoconf 2.13.
89707
89708 2000-01-08  Jim Meyering  <meyering@ascend.com>
89709
89710         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89711         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89712
89713 2000-01-04  Jim Meyering  <meyering@ascend.com>
89714
89715         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89716         jm_STRUCT_DIRENT_D_TYPE.
89717         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89718         jm_STRUCT_DIRENT_D_INO.
89719         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89720         jm_STRUCT_UTIMBUF.
89721         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89722         renamings.
89723         * m4/utime.m4: Likewise.
89724
89725         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89726         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89727
89728 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89729
89730         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89731         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89732
89733 2000-01-02  Jim Meyering  <meyering@ascend.com>
89734
89735         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89736         remember if this is necessary.
89737
89738 1999-12-26  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/jm-macros.m4: Use it here.
89741         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89742
89743 1999-12-23  Jim Meyering  <meyering@ascend.com>
89744
89745         * m4/jm-macros.m4: Check for clock_gettime (moved from
89746         fileutils/configure.in)
89747         Check for gettimeofday.
89748
89749 1999-12-20  Jim Meyering  <meyering@ascend.com>
89750
89751         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89752         autoconf-2.14a-1999-12-20.
89753
89754 1999-12-19  Jim Meyering  <meyering@ascend.com>
89755
89756         * m4/lstat-slash.m4: New file.
89757         * m4/jm-macros.m4: Use the new macro:
89758         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89759
89760 1999-12-07  Jim Meyering  <meyering@ascend.com>
89761
89762         * m4/perl.m4: Require that File::Compare be available, too.
89763         Too many systems seem to lack it.
89764
89765         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89766         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89767
89768 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89769
89770         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89771         problem with the QNX 4.25 shell, which doesn't propagate exit
89772         status of failed commands inside shell assignments.
89773
89774 1999-11-17  Jim Meyering  <meyering@ascend.com>
89775
89776         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89777
89778 1999-11-07  Jim Meyering  <meyering@ascend.com>
89779
89780         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89781
89782 1999-11-06  Jim Meyering  <meyering@ascend.com>
89783
89784         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89785         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89786
89787 1999-11-05  Jim Meyering  <meyering@ascend.com>
89788
89789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89790         configure.in of textutils, fileutils, and sh-utils into this one
89791         (shared between those packages) file.
89792         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89793         AC_STRUCT_ST_BLKSIZE.
89794
89795 1999-11-03  Jim Meyering  <meyering@ascend.com>
89796
89797         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89798         of AC_CHECK_TYPE checks includes unistd.h.
89799         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89800         Suggestion from Akim Demaille.
89801
89802 1999-10-30  Jim Meyering  <meyering@ascend.com>
89803
89804         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89805         m4-quoted string.
89806         * m4/ls-mntd-fs.m4: Likewise.
89807         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89808         * m4/jm-winsz1.m4: Likewise.
89809
89810         * m4/const.m4: Remove file, since the fix made it into the experimental
89811         version of autoconf.
89812         * m4/mktime.m4: Likewise.
89813
89814         * m4/check-type.m4: Remove file, now that the latest version of
89815         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89816
89817         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89818         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89819         AC_CHECK_TYPE.
89820
89821 1999-10-04  Jim Meyering  <meyering@ascend.com>
89822
89823         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89824
89825 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89826
89827         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89828         2.95.1 bug with HP-UX 10.20.
89829
89830 1999-09-17  Jim Meyering  <meyering@ascend.com>
89831
89832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89833         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89834         due to missing strdup (against sh-utils-2.0).
89835
89836 1999-08-29  Jim Meyering  <meyering@ascend.com>
89837
89838         * m4/jm-macros.m4: Require jm_BISON.
89839         * m4/bison.m4: New file.
89840
89841 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89842
89843         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89844         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89845
89846 1999-08-05  Jim Meyering  <meyering@ascend.com>
89847
89848         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89849         to avoid conflicts with `conftest' on 8+3 filesystems.
89850         Suggestion from Eli Zaretskii.
89851
89852 1999-08-04  Jim Meyering  <meyering@ascend.com>
89853
89854         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89855         fileutils and sh-utils (textutils's getline test was inadequate).
89856         (AM_FUNC_GETLINE): Run this test.
89857         (AC_CHECK_FUNCS): Check for getdelim.
89858         Reported by Bob Proulx.
89859
89860 1999-08-02  Jim Meyering  <meyering@ascend.com>
89861
89862         * m4/jm-macros.m4: Add a comment.
89863
89864 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89865
89866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89867         <inttypes.h> defines strtoumax as a macro (and not as a
89868         function).
89869
89870 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89871
89872         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89873         that we can shift, multiply and divide unsigned long long
89874         values; Ultrix cc can't do it.
89875
89876 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89877
89878         * m4/mktime.m4: New file, which is a preview of what should appear
89879         in the next public autoconf release.
89880
89881 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89882
89883         * m4/lfs.m4: Remove this file.
89884         * m4/largefile.m4: New file.  It contains the old contents of
89885         lfs.m4, except that all names with prefix AC_LFS have been
89886         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89887         compatible with future autoconf versions.  Also, some minor m4
89888         quoting problems have been fixed.
89889
89890 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89891
89892         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89893         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89894         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89895         and simplify the shell code.
89896
89897 1999-08-01  Jim Meyering  <meyering@ascend.com>
89898
89899         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89900         m4.
89901
89902 1999-07-20  Jim Meyering  <meyering@ascend.com>
89903
89904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89905
89906 1999-07-15  Jim Meyering  <meyering@ascend.com>
89907
89908         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89909
89910 1999-05-22  Jim Meyering  <meyering@ascend.com>
89911
89912         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89913
89914 1999-05-20  Jim Meyering  <meyering@ascend.com>
89915
89916         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89917         Add a colon after each `then' in case $4 is empty.
89918
89919 1999-05-16  Jim Meyering  <meyering@ascend.com>
89920
89921         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89922
89923 1999-05-10  Jim Meyering  <meyering@ascend.com>
89924
89925         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89926
89927         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89928         AC_FUNC_MKTIME.
89929
89930 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89931
89932         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89933
89934 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89935
89936         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89937         not CPPFLAGS, so that linking works correctly in IRIX.
89938
89939 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89940
89941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89942
89943 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89944
89945         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89946         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89947         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89948         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89949         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89950
89951         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89952
89953 1999-04-20  Jim Meyering  <meyering@ascend.com>
89954
89955         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89956         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89957         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89958
89959 1999-04-18  Jim Meyering  <meyering@ascend.com>
89960
89961         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89962         * m4/jm-macros.m4: Use it.
89963
89964 1999-04-06  Jim Meyering  <meyering@ascend.com>
89965
89966         * m4/strftime.m4: Remove test for %f.
89967
89968 1999-03-29  Jim Meyering  <meyering@ascend.com>
89969
89970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89971         superset of the AC_TYPE_* checks in the textutils, fileutils,
89972         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89973         AC_TYPE_PID_T.
89974
89975 1999-03-28  Jim Meyering  <meyering@ascend.com>
89976
89977         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89978         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89979         replaced e.g., in the *.sh files of the sh-utils.
89980
89981 1999-03-20  Jim Meyering  <meyering@ascend.com>
89982
89983         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89984         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89985         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89986
89987 1999-03-19  Jim Meyering  <meyering@ascend.com>
89988
89989         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89990
89991 1999-03-12  Jim Meyering  <meyering@ascend.com>
89992
89993         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89994
89995 1999-03-07  Jim Meyering  <meyering@ascend.com>
89996
89997         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89998         declared.
89999
90000 1999-02-17  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90003         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90004
90005 1999-02-07  Jim Meyering  <meyering@ascend.com>
90006
90007         * m4/group-member.m4: New file -- extracted from sh-utils'
90008         configure.in.
90009
90010         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90011         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90012
90013 1999-02-06  Jim Meyering  <meyering@ascend.com>
90014
90015         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90016         * m4/fnmatch.m4: Likewise.
90017         * m4/getgroups.m4: Likewise.
90018         * m4/lstat.m4: Likewise.
90019         * m4/malloc.m4: Likewise.
90020         * m4/putenv.m4: Likewise.
90021         * m4/realloc.m4: Likewise.
90022         * m4/regex.m4: Likewise.
90023         * m4/stat.m4: Likewise.
90024         * m4/strftime.m4: Likewise.
90025         Suggestion from Alain Magloire.
90026
90027         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90028         * m4/fnmatch.m4: Likewise.
90029         * m4/getgroups.m4: Likewise.
90030         * m4/getline.m4: Likewise.
90031         * m4/lstat.m4: Likewise.
90032         * m4/malloc.m4: Likewise.
90033         * m4/memcmp.m4: Likewise.
90034         * m4/putenv.m4: Likewise.
90035         * m4/realloc.m4: Likewise.
90036         * m4/regex.m4: Likewise.
90037         * m4/stat.m4: Likewise.
90038         * m4/strftime.m4: Likewise.
90039         Suggestion from Alain Magloire.
90040
90041         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90042         an argument.
90043
90044         * m4/regex.m4: Add a run-time Test for proper operation of
90045         re_compile_pattern.
90046
90047 1999-01-31  Jim Meyering  <meyering@ascend.com>
90048
90049         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90050
90051 1999-01-30  Jim Meyering  <meyering@ascend.com>
90052
90053         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90054
90055         * m4/jm-mktime.m4: Make this a wrapper around the official
90056         AM_FUNC_MKTIME rather than my private copy, now that the official one
90057         is up to date.
90058         * m4/mktime.m4: Remove file.
90059
90060         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90061         * m4/uptime.m4: Likewise.
90062         * m4/uintmax_t.m4: Likewise.
90063
90064 1999-01-28  Jim Meyering  <meyering@ascend.com>
90065
90066         * m4/jm-macros.m4: Use jm_AFS.
90067         * m4/afs.m4: New file (from fileutils' configure.in).
90068
90069         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90070         * m4/chown.m4: Likewise.
90071         * m4/d-ino.m4: Likewise.
90072         * m4/d-type.m4: Likewise.
90073         * m4/fnmatch.m4: Likewise.
90074         * m4/getgroups.m4: Likewise.
90075         * m4/gettext.m4: Likewise.
90076         * m4/jm-mktime.m4: Likewise.
90077         * m4/jm-winsz2.m4: Likewise.
90078         * m4/lcmessage.m4: Likewise.
90079         * m4/ls-mntd-fs.m4: Likewise.
90080         * m4/malloc.m4: Likewise.
90081         * m4/memcmp.m4: Likewise.
90082         * m4/putenv.m4: Likewise.
90083         * m4/realloc.m4: Likewise.
90084         * m4/st_mtim.m4: Likewise.
90085         * m4/strftime.m4: Likewise.
90086
90087 1999-01-16  Jim Meyering  <meyering@ascend.com>
90088
90089         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90090         (ARGMATCH_DIE_DECL): Define.
90091
90092 1999-01-12  Jim Meyering  <meyering@ascend.com>
90093
90094         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90095         Reported by Lars Hecking.
90096
90097 1999-01-10  Jim Meyering  <meyering@ascend.com>
90098
90099         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90100         gross kludge.
90101         * m4/inttypes_h.m4: Likewise.
90102         * m4/lstat.m4: Likewise.
90103         * m4/malloc.m4: Likewise.
90104         * m4/readdir.m4: Likewise.
90105         * m4/realloc.m4: Likewise.
90106         * m4/st_dm_mode.m4: Likewise.
90107         * m4/stat.m4: Likewise.
90108         * m4/utimbuf.m4: Likewise.
90109         * m4/utimes.m4: Likewise.
90110
90111         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90112         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90113         comments in config.h.in are meaningful.
90114
90115         * m4/jm-macros.m4: Require autoconf-2.13 here.
90116
90117         * m4/regex.m4: By default, don't use the included regex.c on systems
90118         with glibc 2.  Suggestion from Uli Drepper.
90119
90120 1999-01-02  Jim Meyering  <meyering@ascend.com>
90121
90122         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90123
90124 1998-12-18  Jim Meyering  <meyering@ascend.com>
90125
90126         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90127         Based on a suggestion from Lars Hecking.
90128
90129 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90130
90131         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90132
90133 1998-11-16  Jim Meyering  <meyering@ascend.com>
90134
90135         * m4/lfs.m4: Double-quote the `uname...` expression.
90136
90137 1998-11-14  Jim Meyering  <meyering@ascend.com>
90138
90139         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90140         * m4/stat.m4: Likewise.
90141
90142 1998-11-03  Jim Meyering  <meyering@ascend.com>
90143
90144         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90145         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90146
90147 1998-10-18  Jim Meyering  <meyering@ascend.com>
90148
90149         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90150
90151 1998-10-17  Jim Meyering  <meyering@ascend.com>
90152
90153         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90154         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90155         calls for those previously hard-coded headers.  Instead, take a new
90156         parameter.
90157         (jm_CHECK_DECLARATIONS): Reflect interface change.
90158         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90159         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90160
90161         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90162
90163 1998-10-14  Jim Meyering  <meyering@ascend.com>
90164
90165         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90166         instead of "TZ=America/Vancouver".  From Paul Eggert.
90167
90168 1998-10-11  Jim Meyering  <meyering@ascend.com>
90169
90170         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90171         This adds a test for a recently added compatibility fix for mktime.c.
90172         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90173
90174 1998-09-27  Jim Meyering  <meyering@ascend.com>
90175
90176         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90177
90178         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90179         ../configure.in, including a change from Gordon Matzigkeit to allow
90180         cross-compiling for the Hurd.
90181
90182         * m4/glibc.m4: New file/macro to test for the GNU C Library
90183         versions 1 and 2.  From Gordon Matzigkeit.
90184         Indent.
90185
90186 1998-09-21  Jim Meyering  <meyering@ascend.com>
90187
90188         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90189
90190 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90191
90192         Port nanosecond-resolution times to UnixWare 2.1.2 and
90193         pedantic Solaris 2.6.
90194
90195         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90196         AC_STRUCT_ST_MTIM.
90197         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90198         Generate name of ns member, instead of just 1 or undef.
90199         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90200
90201 1998-08-15  Jim Meyering  <meyering@ascend.com>
90202
90203         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90204         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90205         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90206         instead of jm_TYPE_SSIZE_T.
90207
90208 1998-08-12  Jim Meyering  <meyering@ascend.com>
90209
90210         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90211
90212 1998-08-02  Jim Meyering  <meyering@ascend.com>
90213
90214         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90215         in acconfig.h manually.
90216
90217 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90218
90219         * m4/st_mtim.m4: New file.
90220
90221 1998-07-28  Jim Meyering  <meyering@ascend.com>
90222
90223         * m4/utimes.m4: Undef stat.
90224
90225 1998-07-25  Jim Meyering  <meyering@ascend.com>
90226
90227         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90228         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90229
90230 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90231
90232         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90233         uid and gid actually remain unchanged.
90234
90235 1998-07-07  Jim Meyering  <meyering@ascend.com>
90236
90237         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90238
90239 1998-07-04  Jim Meyering  <meyering@ascend.com>
90240
90241         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90242         to prove that this macro can be used in packages without regex.c.
90243
90244 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90245
90246         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90247         is to be used.
90248
90249 1998-07-03  Jim Meyering  <meyering@ascend.com>
90250
90251         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90252
90253         * m4/gettext.m4: New file -- from gettext-0.10.35.
90254         * m4/lcmessage.m4: Likewise.
90255         * m4/progtest.m4: Likewise.
90256
90257         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90258         * m4/jm-macros.m4: Require the new macro.
90259
90260 1998-06-29  Jim Meyering  <meyering@ascend.com>
90261
90262         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90263         for the definition of NGROUPS (used in a system header included
90264         by sys/mount.h).
90265
90266 1998-06-28  Jim Meyering  <meyering@ascend.com>
90267
90268         * m4/ls-mntd-fs.m4: New file.
90269         * m4/fstypename.m4: New file.
90270
90271         * m4/jm-macros.m4: Require the new macro.
90272         * m4/jm-glibc-io.m4: New file.
90273
90274 1998-05-19  Jim Meyering  <meyering@ascend.com>
90275
90276         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90277         * m4/lchown.m4: New file.
90278
90279         * m4/Makefile.am.in: New file.
90280         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90281
90282 1998-05-14  Jim Meyering  <meyering@ascend.com>
90283
90284         * m4/Makefile.am (EXTRA_DIST): Add them.
90285         * m4/jm-macros.m4: New file.
90286         * m4/utimbuf.m4: New file.
90287
90288 1998-05-12  Jim Meyering  <meyering@ascend.com>
90289
90290         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90291
90292 1998-05-11  Jim Meyering  <meyering@ascend.com>
90293
90294         * m4/isc-posix.m4: New file.
90295
90296 1998-05-10  Jim Meyering  <meyering@ascend.com>
90297
90298         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90299
90300 1998-05-09  Jim Meyering  <meyering@ascend.com>
90301
90302         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90303         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90304         with automake.
90305
90306         * m4/ssize_t.m4: New file.
90307         * m4/mktime.m4: Remove file -- the new automake has this now.
90308
90309 1998-04-26  Jim Meyering  <meyering@ascend.com>
90310
90311         * m4/assert.m4: New file.
90312         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90313
90314 1998-04-05  Jim Meyering  <meyering@ascend.com>
90315
90316         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90317         (jm_PREREQ): Use it here.
90318
90319 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90320
90321         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90322         in acconfig.h.
90323
90324 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90325
90326         * m4/prereq.m4: New file.
90327         * m4/error.m4: New file.
90328         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90329
90330 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90331
90332         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90333         cache-check for the same variable -- that defeated the purpose of
90334         the test; the test program was never run.  This was a problem only
90335         on systems with losing getline functions -- HP-UX 10.20 is one.
90336         Reported by Bjorn Helgaas.
90337
90338 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90339
90340         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90341
90342 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90343
90344         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90345
90346         * m4/const.m4: New file.  Use an initializer in this declaration
90347         typedef int charset[2]; const charset x;
90348         Reported by Bob Glickstein.
90349
90350 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90351
90352         * m4/chown.m4: Fix reversed types on -1 args to chown.
90353         From Kaveh Ghazi.
90354
90355 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90356
90357         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90358         Add lseek and memchr.
90359
90360         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90361         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90362         have a 20-character limit on names.
90363
90364 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90365
90366         * m4/inttypes_h.m4: New file.
90367         * m4/uintmax_t.m4: New file.
90368         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90369
90370
90371         -----
90372
90373         Local Variables:
90374         coding: utf-8
90375         End:
90376
90377         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90378
90379         Copying and distribution of this file, with or without
90380         modification, are permitted provided the copyright notice
90381         and this notice are preserved.